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:
SparkFun BME280 Breakout Hookup Guide
A guide for connecting the BME280 sensor to a microcontroller, and for using the SparkFun Arduino library.
SparkFun gator:microphone Hookup Guide
The gator:microphone is an I2C sensor for detecting sound with an electret microphone. This tutorial will get you started using the gator:microphone with the micro:bit platform.
Air Velocity Sensor Breakout - FS3000 Hookup Guide
Get started with the Air Velocity Sensor Breakout - FS3000!
SparkFun Temperature Sensor - STTS22H (Qwiic) Hookup Guide
Get started with the ultralow-power, high-accuracy, qwiic-enabled SparkFun Temperature Sensor - STTS22H!