I need to control the movement speed of an RC servo with a PICAXE im currently using the PICAXE 20M2. I have this code below which works fine but need to change the movement speed so it can move slower. With that code below the servo is moving too fast, I need to slow it down. PLEASE PROVIDE ME WITH NEW CODE
Here is the code im working with now:
--------------------------------------------
init: servo 4,75 ; initialise servo
main:
do
random w0
loop until w0 <= 10000 and w0 >= 3000
pause w0
servopos b.4,75 ; move servo to one end
pause 2000 ; wait 2 seconds
servopos b.4,150 ; move servo to middle
do : loop until pinc.1 = 1
goto main ; loop back to start
----------------------------------------------
Here is the code im working with now:
--------------------------------------------
init: servo 4,75 ; initialise servo
main:
do
random w0
loop until w0 <= 10000 and w0 >= 3000
pause w0
servopos b.4,75 ; move servo to one end
pause 2000 ; wait 2 seconds
servopos b.4,150 ; move servo to middle
do : loop until pinc.1 = 1
goto main ; loop back to start
----------------------------------------------