O'Reilly logo

Intel Galileo Essentials by Richard Grimmett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Connecting a digital compass to the Galileo

One of the important pieces of information that might be useful for your project is its direction of travel. This could be given by a GPS unit, but a GPS unit can be expensive, and it often doesn't work well inside buildings. You can also just "keep track" of the direction associated with your hardware, but you'll need to carefully update this whenever your project might move. Using a compass frees you from always having to keep track, and will also allow you to avoid inaccuracies that can accumulate from inaccuracies in your control system. So, let's learn how to hook up a digital compass to the Galileo.

There are several chips that provide digital compass capability; one of the most common is the HMC5883L ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required