Hi. I'm on a project of a car (like a four wheel rover) and I have to make it turn precisely.
I know that making a pair of wheels go forward and the other one go backwards, the car will rotate having the center of its body as the axis. Now, I need to make it turn just the angle I need (for example, if I tell it to turn 90º clockwise, it'll has to do so).
I found this as a very difficult job having DC motors on each wheel. I thought measuring the time that the car lasts to make a 360º turn would be the solution, but this was very messy and imprecise.
Then, I had the idea to buy a compass so I could calculate the position having north as a reference (if the car was 58º from north, then if I wanted it to turn 90º clockwise, he would have to be 58º+90º from north), but I'm afraid some kind of magnet could ruin the measure.
I was thinking about using a gyroscope too but I've never used one so I don't know if that's what I need.
What do you think? Which kind of sensor could I use to achieve this?
Thanks in advance.
(P.S.: Sorry for my bad English. I'm argentinian :D)