Quantcast
Channel: Software and microcontrollers - Pololu Forum
Viewing all articles
Browse latest Browse all 81

Best Way to Sample a Magnetic Field with Magnetometer of Pololu 3Pi Plus

$
0
0

I have a Pololu 3Pi 32U4. I am using the magnetometer for accurate 90 degree turns. This method works well given that the magnetic field is consistent, has low variability, and no obstructions. It is critical to sample the magnetic field of the local area properly for accurate turns. I have a track enclosed in a box that looks like this:

images

What is the best way to sample this magnetic field? I want to sample it so that my robot can learn enough of the magnetic field to turn accurately at any point of this track. One idea I had was having the robot sample each of the four corners of the magnetic field. This can be implemented in code.

What are some other more efficient and less work strategies to get a good sample of the magnetic field in the area of this track?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 81

Trending Articles