Quote:
|
Originally Posted by xxmaddjxx
Arghhh! I don't understand lol.
Ok the Hall Effect sensor counts teeth and has to be mounted very close to the gear.
The accelerometer measures acceleration. How is that done and where does it have to be mounted.
How do all these values come together in the RC and help me?
What does the code that we get for both these sensors do?
|
If you know what your final gear ratio is (or you test to find out the correlation between counts and inches moved on the floor) you can determine how far the robot has moved. If it runs straight, you can tell where it is at any moment by keeping track of the counts. If you use the accelerometer, you can tell how much the robot has turned (or if it has turned the amount you want it to) so you now have direction and distance. Combine the two and get a rough idea where you are on the field. Be careful, the accelerometer output is proportional to the acceleration in one direction or the opposite direction. If it is mounted parallel to your direction of travel, it has no output. Read the spec sheet carefully to learn all of the nuances of the device and how to best filter out the info you need.