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:
Photon Remote Water Level Sensor
Learn how to build a remote water level sensor for a water storage tank and how to automate a pump based off the readings!
SparkFun GPS Breakout - XA1110 (Qwiic) Hookup Guide
Figure out where in the world you are with the Qwiic SparkFun GPS Breakout - XA1110.
SparkFun PIR Breakout Hookup Guide
Get started with these Panasonic EKM-Series PIR breakouts following this Hookup Guide.
Air Quality Sensor - SGP40 (Qwiic) Hookup Guide
Get started measuring indoor air quality with the SparkFun Air Quality Sensor - SGP40 (Qwiic) Hookup Guide.