I'm having some trouble with a continuous rotation servo and a 12F629. I've managed to have a BS2 control the servo at different speeds in both directions, but everytime I try to use the 12F629 to control the servo, it only operates in one direction (counter-clockwise) at the same speed (fast). A typical program I'd use with the BS2 was:
loop
pulsout 0, 750
pause 20
goto loop
The code I used for the 12F629 was:
loop
pulsout 0, 150
pause 20
goto loop
I tried varying the 150 to 100, 180, 750, etc... with the same direction and speed everytime. I'm using the 12F629's internal RC oscillator (4Mhz), which is why I use the 150 instead of the 750 (for the BS2). I even included a "Define OSC 4" to make sure the pulsout was correct.
Does anyone have any suggestions or advice as to what I'm doing wrong?
Thanks in advance!
Dave
P.S. Also, everytime I touch any of the leads with my finger (ground, +5V, etc), the servo stops. Is this because my finger is interfering with the capacitance of the internal RC oscillator, effectively stopping the 12f629?
Bookmarks