Using the compass

Although the compass is simpler to use than the dGPS, there is still one important rule to follow when incorporating the compass into an EV3 robot. The compass is designed to measure the Earth's magnetic field, but the electronic and metal components in a robot can create their own local magnetic fields or distort the field that the compass is trying to measure. To minimize interference, the compass should be mounted on the robot so that it is at least ten centimeters away from the robot's EV3 brick, motors, batteries, or other sensors. In the following section, we will describe a specific mount for the GPS Car.

For more information about these sensors, visit their respective manufacturers' websites. The dGPS is manufactured ...

Get Building Smart LEGO MINDSTORMS EV3 Robots now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.