Hi guys,
I'm new to all this robotics malarkey and seem to have come accross a snag and was wondering if someone would help me.
I'm running a Pic28 board with a 28X1 with the servo upgrade DIL chip. I have two Hitec HS-81 servo's which I have adjusted for continual motor drive using seperate 22 turn pots. I have two microswitches which i'm going to use as front sensors. The problem I have is when using the following code:
main:
IF pin4 = 1 OR pin5 = 1 THEN drive
servo 3, 128
servo 6, 128
pause 400
goto main
drive:
servo 3, 70
servo 6, 70
pause 400
goto main
The first servo always has a constant jitter like pulse, in this case servo 3.
Am I missing something vital from the code or is that just the way the picaxe works?
Thanks
Andy
I'm new to all this robotics malarkey and seem to have come accross a snag and was wondering if someone would help me.
I'm running a Pic28 board with a 28X1 with the servo upgrade DIL chip. I have two Hitec HS-81 servo's which I have adjusted for continual motor drive using seperate 22 turn pots. I have two microswitches which i'm going to use as front sensors. The problem I have is when using the following code:
main:
IF pin4 = 1 OR pin5 = 1 THEN drive
servo 3, 128
servo 6, 128
pause 400
goto main
drive:
servo 3, 70
servo 6, 70
pause 400
goto main
The first servo always has a constant jitter like pulse, in this case servo 3.
Am I missing something vital from the code or is that just the way the picaxe works?
Thanks
Andy