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 ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 ?
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