Speed Controller
Chaz
Posts: 18
Hi
I was wondering will a speed controller recognize a FREQOUT command as long as it has the right frequency and wave length. I know it should be a square wave and not a sine wave but would it work? If i do need a square wave i can use PULSOUT command but i am confused about the length of the pulse and how to set the pause right. I am using the Stamp 2px so i know it changes the unit of time. but...... is there an equation?
I was wondering will a speed controller recognize a FREQOUT command as long as it has the right frequency and wave length. I know it should be a square wave and not a sine wave but would it work? If i do need a square wave i can use PULSOUT command but i am confused about the length of the pulse and how to set the pause right. I am using the Stamp 2px so i know it changes the unit of time. but...... is there an equation?
Comments
You misunderstand the FREQOUT statement. This works somewhat like the PWM statement in that it produces a lot of short pulses with a pseudo-random distribution. The average amount of time spent in the on state determines the output voltage level (if you use the recommended output filter). In the case of FREQOUT, the result is an approximation of an analog waveform of the frequency or frequencies requested. It won't work with a speed controller.
See http://forums.parallax.com/showthread.php?p=826280