Menu

Servo motor, only turns in one direction

Help
2012-12-01
2013-05-30
  • Rostislav Persion

    I tried driving a few different brands of servo motors using the PIC12F509… but the motor turned in one direction only. I made a loop, turned the output up to 5V for 1ms - 2ms and then off for 19ms - 18ms… strange… Should i just buy a driver IC ?

     
  • mmotte

    mmotte - 2012-12-06

    Your question is vague as far as GCBasic.
    You have the the protcol for servos  -  ccw 1ms pulse  every 20ms or so,  middle is 1.52ms pulse and cw is 2 ms pulse.

    I have operated servos using experimenter board with 16F887 on  programmed with GCBasic and it works as descibed.

    I don't know the 12F509 but on some of those small chips one of the pins(i think MLCR) needs special attention for an ouput. Which pin are  you  using?

    Can you check the pulses coming out of the pic with a o'scope?  Do you have the 5v to the servo and polarized correct?

    73
    mike

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.