Shop OBEX P1 Docs P2 Docs Learn Events
Speed Controller — Parallax Forums

Speed Controller

ChazChaz Posts: 18
edited 2009-07-24 22:39 in BASIC Stamp
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?

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-07-24 22:39
    No

    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
Sign In or Register to comment.