Shop OBEX P1 Docs P2 Docs Learn Events
PWM versus high? — Parallax Forums

PWM versus high?

RoHerman00RoHerman00 Posts: 22
edited 2011-12-01 18:35 in BASIC Stamp
I just have a quick question. I have a teleoperated robot arm, that follows my arm. Even in small incremental movements the main arm will jerk into position because it gets full power regardless of how far it has to move. I was wondering about the PWM command. Does it work just like the HIGH command in that once I set a pin to PWM it will continue to output a PWM until i send a LOW signal? I don't want to do looping or offloading to a seperate controller for motor control.

Thanks in advance

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2011-12-01 12:45
    No. The PWM statement produces a signal for a period of time (specified) and the Stamp stops there until the time period is up. This is intended to charge a capacitor to a particular voltage which is amplified to produce some result. If this circuit is designed properly, the capacitor will hold the voltage until the program can get around to doing a PWM statement again.
  • RoHerman00RoHerman00 Posts: 22
    edited 2011-12-01 18:35
    Thank you for replying.

    Well I guess I will try it out and see if it works out.

    Robert
Sign In or Register to comment.