Subject:
|
Controling LEGO trains via Decta Control Lab
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Thu, 29 Oct 1998 00:34:30 GMT
|
Viewed:
|
2693 times
|
| |
| |
Hi All,
I have been working on controlling LEGO trains thru the Decta Control Lab
and I got a tip to pulse the power to the rails to better control the trains
speed. There are 8 power settings via the ctrl lab and there are really only
2 or 3 settings that are usable for trains.
My prob is that the smallest time "tick" is 1/10 of a second. My experiments
with 10Hz pulsing is not to good. Does any one have a better solution. An EE
question, to change the speed do you vary the duty cycle, freq, or the
voltage of the square wave?
Also: Are comments allowed in the LOGO code? Are all variables global? Can
you pass a param list to a procedure?
Lastly, I hate LOGO and the MAC UI under DOS. Is there a Visual Basic OCX
for the Crtl Lab?
SteveB
Frustrated LOGO programmer
Please reply to steve.e.barile@intel.com and steve.bar@worldnet.att.net
|
|
Message has 2 Replies: | | Re: Controling LEGO trains via Decta Control Lab
|
| (...) To change the speed of the pulsing, you change the frequency. Frequency is measured in Hz. You want more Hz. To change the speed of the train, you increase either the duty cycle or the voltage. The duty cycle is the percentage of time that the (...) (26 years ago, 29-Oct-98, to lugnet.robotics)
| | | Re: Controling LEGO trains via Decta Control Lab
|
| 10Hz is nowhere near fast enough to control a train motor using PWM (pulse width modulation). You need at least 100Hz, and higher would be better. Any of your suggestions will vary the speed of a motor, but the most common is varying the duty cycle. (...) (26 years ago, 29-Oct-98, to lugnet.robotics)
|
5 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|