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 Line Follower Array Hookup Guide
Learn how to connect the RedBot Line-Following Sensor Bar to an Arduino-type microcontroller. Use the example sketches to read data from the bar, and try out a simple line-following algorithm.
IoT Weight Logging Scale
This tutorial will show you how to make a scale that logs your weight to a custom website on the Internet. The principles can be extrapolated to any type of data.
Magnetic Levitation
This tutorial will show you how to build a magnetic levitation circuit using common parts.
Garage Distance Sensor
This tutorial will take your SparkFun Qwiic Ultrasonic Distance Sensor to the next level by turning it into a parking distance sensor!