Quote:
|
Originally Posted by nehalita
has anyone managed to do the autonomous code without using these?
and if we were to use them, where exactly does each part go? i know the potentiometer is for the arm, but where exactly?
where does the encoder and gyro go?
|
Greetings Neha,
Welcome to the wonderful world of sensors.
Other people have touched on the pot and encoder issues so i wont really go into those.
The gyro can be mounted just about anywhere on your robot, but the ideal location would be in a safe protected area of the robot. What it does is sense change in the rotation of your robot along a certain axis. Depending on how you mount it, it will change the axis that it sense. The most common use for this sensor being the sensing of the robot turning and the direction it is turning. When used in conjuction with encoders on the wheels, the basic idea is that you sense how far you have turned with the gyro and sense how far you have moved with the rotary encoders. The pot is then used to sense the movement of other things, although rotary encoders can be used in the place of pots as they sense in a very similar way. Like stated above, another sensor to consider is the limit switch, which are really easy to use and just return a on or off signal and can be used to sense all sorts of stuff and can be used to provide software stops to prevent the robot from damaging itself.
Hope this information is helpful, good luck!