MicroView Digital Compass
Contributors:
AGlass0fMilk
Resources and Going Further
There are a many more cool projects you can make with the MAG3110 sensor. If you combine the MAG3110 with a few other sensors, you can make a variety of projects that involve location and orientation sensing.
Check out Shawn Hymel's Adventues in Science: Using a Magnetometer as a Compass and example code for ideas:
For more sensor fun, check out these other great SparkFun tutorials:
Photocell Hookup Guide
Hook a light-sensing photocell up to an Arduino to create an ambient light monitor.
micro:climate Kit Experiment Guide
A weather station kit that is built on top of the inexpensive, easy-to-use micro:bit and Microsoft MakeCode.
SparkFun gator:particle Hookup Guide
The gator:particle is an I2C heart-rate monitor and pulse oximeter that can be used as a particle sensor. This tutorial will get you started using the gator:particle with the micro:bit platform.
Magnetic Levitation
This tutorial will show you how to build a magnetic levitation circuit using common parts.