{"title":"Adafruit Triple-axis Magnetometer - LIS3MDL","handle":"adafruit-triple-axis-magnetometer-lis3mdl","url":"/products/adafruit-triple-axis-magnetometer-lis3mdl","description":"The Adafruit LIS3MDL is a triple-axis magnetometer (compass) breakout from ST, with selectable measurement ranges from ±4 gauss (±400 µT) up to ±16 gauss (±1600 µT). It's ideal for detecting magnetic north, measuring magnetic fields, or pairing with an accelerometer/gyroscope like the LSM6DSOX 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. Arduino and CircuitPython/Python libraries are available for quick setup.\n\nKey Features\n\n\nSelectable Range – ±4, ±8, ±12, or ±16 gauss full-scale measurement range\n\nTriple-Axis Sensing – Measures magnetic field strength on X, Y, and Z axes\n\nUp to 1000 Hz Output – 155 Hz at ultra-high precision, or up to 1000 Hz with slightly reduced precision\n\nI2C and SPI Interfaces – Flexible connectivity options\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 the LSM6DSOX accelerometer/gyroscope\n\nMagnetic field measurement and detection\nRobotics and navigation systems\n\n\nPackage Contents\n\n1× Adafruit LIS3MDL Triple-Axis Magnetometer Breakout (assembled and tested)\n1× 0.1\" header strip\n\n\n\nNote: A STEMMA QT / Qwiic cable is required for solderless connection and is not included.\n\n\nResources\n\nArduino Library (GitHub)\nCircuitPython / Python Library (GitHub)\n","vendor":"Adafruit","product_type":"physical","in_stock":true,"options":[],"variants":[{"id":2920,"title":"Default Title","sku":"AF-4479","price":20.07,"compare_at_price":0.0,"on_sale":false,"in_stock":true,"available_quantity":102,"option1":"Default Title"}]}