{"title":"Adafruit Triple-axis Magnetometer - LIS2MDL - STEMMA QT / Qwiic","handle":"adafruit-triple-axis-magnetometer-lis2mdl-stemma-qt-qwiic","url":"/products/adafruit-triple-axis-magnetometer-lis2mdl-stemma-qt-qwiic","description":"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.\n\nThe 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.\n\nKey Features\n\n\n±50 Gauss Range – Wide measurement range (±5000 µT) with no range-setting required\n\nTriple-Axis Sensing – Measures magnetic field strength on X, Y, and Z axes\n\nUp to 150 Hz Output – 100 Hz at full resolution, or 150 Hz with slightly reduced precision\n\nI2C and SPI Interfaces – Flexible connectivity; I2C via STEMMA QT or header pins, SPI also available\n\n3.3V and 5V Compatible – Onboard voltage regulator and level shifting\n\nSTEMMA QT / Qwiic Compatible – Solderless I2C connectors for plug-and-play setup and daisy-chaining\n\nFour Mounting Holes – 2.5mm (0.1\") for secure attachment\n\n\nIdeal For\n\nDigital compass and heading applications\n9-DoF IMU when paired with an accelerometer/gyroscope (pairs well with the LSM6DSOX)\nMagnetic field measurement and detection\nRobotics and navigation systems\n\n\nPackage Contents\n\n1× Adafruit LIS2MDL Triple-Axis Magnetometer Breakout (assembled and tested)\n1× 0.1\" header strip\n\n\nResources\n\nAdafruit LIS2MDL Learning Guide (Code, Schematics &amp; Examples)\nArduino Library (GitHub)\nCircuitPython / Python Library (GitHub)\n","vendor":"Adafruit","product_type":"physical","in_stock":true,"options":[],"variants":[{"id":4144,"title":"Default Title","sku":"AF-4488","price":16.08,"compare_at_price":0.0,"on_sale":false,"in_stock":true,"available_quantity":101,"option1":"Default Title"}]}