MAG3110 Magnetometer Hookup Guide

Pages
Contributors: AGlass0fMilk
Favorited Favorite 1

Hardware Assembly

As mentioned before, if you are using this sensor with a 5V Arduino or other microcontroller, you will need to have a logic level converter between the microcontroller and the sensor.

If you are unsure how to hook up a logic level converter, see this guide.

You will also need to step down the supply voltage to a suitable level for this sensor. Some microcontrollers (like the Arduino Micro and SparkFun RedBoard) have built in 3.3V regulators that you can use to power the MAG3110!

As an example, here is how to connect the MAG3110 sensor to a SparkFun RedBoard.

The pins should be connected as follows:

RedBoard PinLogic Converter PinMAG3110 Pin
3.3VLVVCC
GNDGNDGND
5VHV-
SDAHV1-
SCLHV2-
-LV1SDA
-LV2SCL

Here is this circuit laid out on a breadboard:

fritzing diagram

Click the image for a closer look.

If you're not using a SparkFun RedBoard, the only pins that will change are the SDA and SCL. For other Arduino boards, SDA and SCL are:

BoardI2C Pins
Uno, EthernetA4 (SDA), A5 (SCL)
Mega256020 (SDA), 21 (SCL)
Leonard/Micro2 (SDA), 3 (SCL)
Due20 (SDA), 21 (SCL), SDA1, SCL1