Hi,
I am a french user of a micro maestro and i try to move a servo forward and reward when i push on a button.
My configuration is :
7.4V servo
Resistance 3.3kohm
Switch on channel 5 (value from 0 to 255.75)
Servo on channel 1 (value from 992 to 2000)
Servo is moving and value of input (button NO) is moving from 0 to 255.75 when i push on the button.
I want to move the servo from position A to position B when i touch the button, maintain 5 sec in B and then return to A waiting for next order.
I wrote this script using polulu support
begin
5 get_position # get the value of input 5 as a number from 0 to 255
255 less_than # test whether it is less than 255 -> 1 if true, 0 if false
if
2000 1 servo # this part is run when input5 < 255
5000 delay
else
1000 1 servo # this part is run when input5 >= 255
endif
repeat
The script seems to work…but the servo is not moving !!
Thanks in advance for your help and sorry for my poor english
Cheers
Roger