Adafruit
Adafruit Triple-axis Magnetometer - LIS2MDL - STEMMA QT / Qwiic
The Adafruit LIS2MDL is a triple-axis magnetometer (compass) breakout from ST, capable of sensing magnetic fields across a wide ±50 gauss (±5000 µT) range wi...
The Adafruit LIS2MDL is a triple-axis magnetometer (compass) breakout from ST, capable of sensing magnetic fields across a wide ±50 gauss (±5000 µT) range with no range configuration required. It's ideal for detecting magnetic north, measuring magnetic fields, or pairing with an accelerometer/gyroscope to create a full 9-DoF inertial measurement unit.
The breakout board includes voltage regulation and level shifting for compatibility with both 3.3V and 5V microcontrollers. STEMMA QT / Qwiic connectors provide solderless I2C connections, and the sensor also supports SPI if preferred. Arduino and CircuitPython/Python libraries are available for quick setup.
Key Features
- ±50 Gauss Range – Wide measurement range (±5000 µT) with no range-setting required
- Triple-Axis Sensing – Measures magnetic field strength on X, Y, and Z axes
- Up to 150 Hz Output – 100 Hz at full resolution, or 150 Hz with slightly reduced precision
- I2C and SPI Interfaces – Flexible connectivity; I2C via STEMMA QT or header pins, SPI also available
- 3.3V and 5V Compatible – Onboard voltage regulator and level shifting
- STEMMA QT / Qwiic Compatible – Solderless I2C connectors for plug-and-play setup and daisy-chaining
- Four Mounting Holes – 2.5mm (0.1") for secure attachment
Ideal For
- Digital compass and heading applications
- 9-DoF IMU when paired with an accelerometer/gyroscope (pairs well with the LSM6DSOX)
- Magnetic field measurement and detection
- Robotics and navigation systems
Package Contents
- 1× Adafruit LIS2MDL Triple-Axis Magnetometer Breakout (assembled and tested)
- 1× 0.1" header strip
Resources
Jargon buster
Plain-language definitions for the technical terms used above.
- breakout
- A breakout is a small circuit board that makes a tiny or hard-to-solder component easier to connect to with standard pins. It matters because this OLED module can be wired into a microcontroller project without needing to solder directly to the display’s fine contacts.
- CircuitPython
- A beginner-friendly version of Python designed to run directly on microcontroller boards. If a product supports CircuitPython, you can often program it by copying code files onto the board rather than setting up a more complex toolchain.
- Gyroscope
- A gyroscope measures rotation, such as how fast a board is turning around its X, Y, and Z axes. This matters for projects like gesture controls, balancing robots, and motion tracking where tilt or rotation changes need to be detected.
- I2C
- I2C is a two-wire communication bus used by many sensors and small modules. It matters because several I2C devices can share the same two wires, but each device needs a compatible address and your controller must support I2C.
- IMU
- An Inertial Measurement Unit combines motion sensors to measure movement and orientation. It matters for asset tracking because it can detect movement, tilt, vibration, or changes in direction.
- magnetometer
- A sensor that measures magnetic fields, often used to work out compass direction. It matters because nearby magnets, motors, or metal objects can affect readings and may require calibration.
- Qwiic
- Qwiic is a plug-in connector system for I2C devices that uses small 4-pin cables, so you can connect compatible sensors without soldering. It matters because your controller or adapter also needs Qwiic, or you will need a cable or breakout to wire it up.
- SPI
- A fast serial communication bus often used for displays, memory cards, and sensors. It matters because SPI devices need specific pins for clock and data, plus a separate chip-select line for each device.
- STEMMA
- A plug-and-cable connection system used on some maker electronics boards to make wiring simpler. If a product uses STEMMA, you need the matching cable or connector type to plug it in without soldering.
- STEMMA QT
- A small plug-in connector system for I2C boards that lets you connect compatible sensors and controllers without soldering. It matters because it can make wiring faster and less error-prone, especially when adding several small modules to a project.
Find this product in
Brands
Sensors & Input
Related Tutorials
Free guides on learn.littlebird.com.au