10 years, 11 months ago.

Rover 90 degres rotation

Good morning to all the community! I'm doing a small rover intelligent navigation: to avoid obstacles uses two GP2D120 by averaging the data acquired, and once I found the obstacle that made a 90 degree turn as I do? Using an accelerometer?

1 Answer

10 years, 11 months ago.

An accelerometer normal function is measuring the earth's gravity field, so you know which side is down. But you can rotate a rover as much as you want: The same side is always down. So that won't help you.

The general ways to do it:

Just rotate an amount that is roughly 90 degrees, and if there are no more obstacles go in that direction.

Add encoders to your wheels. Now you can quite accurately calculate how much you turned.

And finally if you want to really measure the rotation, get a magnetometer. That measures the earth's magnetic field, so then you do know which way your robot is pointing.