Hello,
I apologise in advance for this, if it is long and slightly confusing!
I'm relatively new at programming, but for my final year project I've
designed and built a pole climbing robot (No photos yet, but I have a
visualisation here:
http://img.photobucket.com/albums/v412/Stompy1/bodytemplatewithlid.jpg).
I've got a PICAXE microcontroller for the 'brains' of the robot and I'm
having difficulties getting off the ground.
Can anyone give me some help on programming BASIC to control servos?
The robot comprises of four servos, one for each arm, one for each
hand. One hand grips the pole and that arm pulls the robot up, while
the other hand is open and moves over it.
(http://img.photobucket.com/albums/v412/Stompy1/climbrobotclimb.png)
So, each arm servo moves from '-40 degrees to 40 degrees' and back
again, repeatedly, while the hand servos close to grip the pole as the
arm moves down. These are the most basic actions required to enable
climbing of the pole and I would like to know the best way of
programming this.
For the grippers, I have heard that servos can 'sense' when a certain
level of grip has been achieved by using the positioning sensor within
the servo to determine when the servo is no longer moving. Is this
true, and how can I programme this kind of functionality in? As in, the
gripper closes around the pole until a point when the servo is no
longer spinning (ie, the pole is stopping the gripper from closing
further). There is, of course, the option of using microswitches (and
other sensors) for pole sensing, etc, if this is not possible.
I hope this isn't too much, any help in servo programming would be
helpful, even if its just a description of how servos work and the
corresponding code.
Many thanks,
James