Description
Sense magnetic fields with this compact Adafruit Triple-axis Magnetometer based on the LIS2MDL sensor. It detects magnetic north and measures magnetic fields in real-time using either I2C or SPI interfaces. Ideal for creating 9-DoF inertial measurement units when paired with accelerometers and gyroscopes.
This sensor supports a ±50 gauss magnetic range, 16-bit data output, and up to 150 Hz update rate. It works with 3.3V or 5V logic and features STEMMA QT / Qwiic connectors for easy plug-and-play connectivity with compatible microcontrollers. Assembly includes 0.1" headers for breadboard use and 2.5mm mounting holes.
- Triple-axis magnetometer for magnetic field sensing
- Supports I2C and SPI communication protocols
- ±50 gauss magnetic field range
- Up to 150 Hz data update rate
- 16-bit data output for high resolution
- Compatible with 3.3V and 5V logic levels
- Includes STEMMA QT / Qwiic connectors for solderless connection
- Comes assembled with 0.1" headers and mounting holes
- Supports continuous and single-conversion modes
- Includes interrupt data pin in I2C mode and self-test mode
Comprehensive guides, example code, Arduino and CircuitPython libraries are available for easy integration in the Adafruit Learning System.