Hello, I'm working on a pole climbing robot
I'm at the stage where I can tell a servo to move to a specific postion, I've also been fiddling with microswitches, so a press of the switch causes the servo to do some stuff:
symbol RARM = 2
main: if pin3 = 0 then loop goto main
loop: servo RARM,75 pause 1000 servo RARM,220 pause 1000 if pin3 = 1 then main goto loop
(Its a little over-complicated, but only because I'm using it to investigate how it works.)
The two things I would like to know are as follows:
1) How do I programme the servo to move more slowly?
2) I want a microswitch to - when depressed - interrupt the servo's movement, regardless of its position (i.e: on my robot, a microswitch has been mounted at the limit of its arm's gaits. The arm reaches the limit, the microswitch is depressed, which means the servo must go back again.
Many Thanks,
James