Perhaps I am just been a bit thick but I seem to be having trouble with the servo command. I have a tried several fully working PICaxe 18x's, and have tried the following with several servo's I know are working fine. The circuit is built on a 'normal' breadboard. The servo has its own 6V power supply (common ground with PIC power supply) all unused inputs are also grounded. It is driven via 330 - Ohm resistor from an output. The circuit works fine for everything but the servo commands. I have tried several outputs.
servo 0,150- on its own does nothing (for any position value). I thought this was meant to send a pulse chain until stopped for example by setting the output low?
servo 0,150
pause 1000
- Also does nothing
loopit:
servo 0,150
pause 1000
goto loopit
- moves it to the required position – the servo command seems to need looping in order for it to work?
loopit: -
servo 0,225
goto loopit
- Take out the pause and nothing happens – presumably the servo command is 'interrupting' itself?
servo 0,150
servopos 0,150
pause 1000
this works – but if you reduce the pause it only moves until the pause finishes!!
servo 0,225
servopos 0,225
does nothing
does anyone have any ideas about what is going on????
very bewildered
Colin
servo 0,150- on its own does nothing (for any position value). I thought this was meant to send a pulse chain until stopped for example by setting the output low?
servo 0,150
pause 1000
- Also does nothing
loopit:
servo 0,150
pause 1000
goto loopit
- moves it to the required position – the servo command seems to need looping in order for it to work?
loopit: -
servo 0,225
goto loopit
- Take out the pause and nothing happens – presumably the servo command is 'interrupting' itself?
servo 0,150
servopos 0,150
pause 1000
this works – but if you reduce the pause it only moves until the pause finishes!!
servo 0,225
servopos 0,225
does nothing
does anyone have any ideas about what is going on????
very bewildered
Colin