

Overview
The LIS3MDL is a 3D Magnetic Sensor made by STMicroelectronics in a LGA-12(2x2) package with 12 pins. -40℃~+85℃ 1.9V~3.6V 16bit 1uA、40uA、270uA I2C、SPI ±1.6mT、±1.2mT、±8Gs、±4Gs ±1.6mT、±1.2mT、±8Gs、±4Gs LGA-12(2x2) 3D Magnetic Sensors ROHS.
PCBKit's library has its KiCad symbol (Sensor_Magnetic:LIS3MDL, from KiCad's library) and its footprint (4ms_Package_QFP:LGA-12_2x2mm_P0.5mm, from KiCad's library), ready for a KiCad board. 732 are in stock at JLCPCB (part C478483). 72 open-source boards in 56 repositories on GitHub use it.
Symbol
Footprint
From the datasheet
8- Supply, least
- 1.9 V · Vdd, recommended operating min · p. 9
- Supply, most
- 3.6 V · Vdd, recommended operating max · p. 9
- Supply, least
- 1.71 V · Vdd_IO, recommended operating min · p. 9
- Supply, absolute maximum
- 4.8 V · Vdd, absolute max · p. 12
- Works from
- -40 °C · Operating temperature min · p. 9
- Works up to
- 85 °C · Operating temperature max · p. 9
- Takes working
- 270 µA · Vdd, typical ultra-high-resolution mode, ODR = 20 Hz · p. 9
- Takes asleep
- 1 µA · Vdd, typical power down · p. 9
What it is and has
9- Magnetic full scales
- ±4/±8/±12/±16 gauss selectable · p. 1
- Conversion modes
- Continuous and single-conversion · p. 1
- Data output
- 16-bit · p. 1
- Interrupt generator
- Supported · p. 1
- Self-test
- Supported · p. 1
- Digital interfaces
- I2C/SPI · p. 1
- Power modes
- Power-down and low-power · p. 1
- Compliance
- ECOPACK®, RoHS and Green · p. 1
- Package
- LGA-12 (2.0x2.0x1.0 mm) · p. 1
Specifications
33| Parameter | Conditions | As printed | Page |
|---|---|---|---|
| Measurement range FS | Selectable ±4 gauss range; Vdd = 2.5 V, T = 25 °C | typ 4 gauss | 8 |
| Measurement range FS | Selectable ±8 gauss range; Vdd = 2.5 V, T = 25 °C | typ 8 gauss | 8 |
| Measurement range FS | Selectable ±12 gauss range; Vdd = 2.5 V, T = 25 °C | typ 12 gauss | 8 |
| Measurement range FS | Selectable ±16 gauss range; Vdd = 2.5 V, T = 25 °C | typ 16 gauss | 8 |
| Sensitivity GN | FS=±4 gauss; Vdd = 2.5 V, T = 25 °C | typ 6842 LSB/gauss | 8 |
| Sensitivity GN | FS=±8 gauss; Vdd = 2.5 V, T = 25 °C | typ 3421 LSB/gauss | 8 |
| Sensitivity GN | FS=±12 gauss; Vdd = 2.5 V, T = 25 °C | typ 2281 LSB/gauss | 8 |
| Sensitivity GN | FS=±16 gauss; Vdd = 2.5 V, T = 25 °C | typ 1711 LSB/gauss | 8 |
| Zero-gauss level Zgauss | FS=±4 gauss; typical value is ±1 gauss | typ 1 gauss | 8 |
| RMS noise RMS | X-axis; FS=±12 gauss; Ultra-high-performance mode | typ 3.2 mgauss | 8 |
| RMS noise RMS | Y-axis; FS=±12 gauss; Ultra-high-performance mode | typ 3.2 mgauss | 8 |
| RMS noise RMS | Z-axis; FS=±12 gauss; Ultra-high-performance mode | typ 4.1 mgauss | 8 |
| Non-linearity NL | Best-fit straight line; FS = ±12 gauss; Happlied = ±6 gauss; typical value is ±0.12 %FS | typ 0.12 %FS | 8 |
| Self test(2) ST | X-axis; FS = ±12 gauss; absolute value | min 1 · max 3 gauss | 8 |
| Self test(2) ST | Y-axis; FS = ±12 gauss; absolute value | min 1 · max 3 gauss | 8 |
| Self test(2) ST | Z-axis; FS = ±12 gauss; absolute value | min 0.1 · max 1 gauss | 8 |
| Magnetic disturbance field DF | Zero-gauss offset starts to degrade | max 50 gauss | 8 |
| Operating temperature range Top | min -40 · max 85 °C | 8 | |
| Temperature sensor output change vs. temperature TSDr | Vdd = 2.5 V, T = 25 °C | typ 8 LSB/°C | 9 |
| Operating temperature range Top | min -40 · max 85 °C | 9 | |
| Supply voltage Vdd | min 1.9 · max 3.6 V | 9 | |
| Power supply for I/O Vdd_IO | Maximum is Vdd+0.1 V | min 1.71 · typ 1.8 V | 9 |
| Current consumption in ultra-high-resolution mode Idd_HR | ODR = 20 Hz; Vdd = 2.5 V, T = 25 °C | typ 270 uA | 9 |
| Current consumption in low-power mode Idd_LP | ODR = 20 Hz; Vdd = 2.5 V, T = 25 °C | typ 40 uA | 9 |
| Current consumption in power down Idd_PD | Vdd = 2.5 V, T = 25 °C | typ 1 uA | 9 |
| Supply voltage Vdd | min -0.3 · max 4.8 V | 12 | |
| I/O pins supply voltage Vdd_IO | min -0.3 · max 4.8 V | 12 | |
| Input voltage on any control pin (SCL/SPC, SDA/SDI/SDO, SDO/SA1, CS) Vin | Maximum is Vdd_IO +0.3 V | min -0.3 V | 12 |
| Acceleration (any axis) AUNP | 0.5 ms | max 3000 g | 12 |
| Acceleration (any axis) AUNP | 0.1 ms | max 10000 g | 12 |
| Maximum exposed field MEF | max 1000 gauss | 12 | |
| Operating temperature range TOP | min -40 · max 85 °C | 12 | |
| Storage temperature range TSTG | min -40 · max 125 °C | 12 |
Pins, by the datasheet
12- 1 SCL/SPC
- I2C serial clock or SPI serial port clock. · p. 6
- 2 Reserved
- Connect to GND. · p. 7
- 3 GND
- Connect to GND. · p. 7
- 4 C1
- Capacitor connection (C1=100 nF). · p. 7
- 5 Vdd
- Power supply. · p. 7
- 6 Vdd_IO
- Power supply for I/O pins. · p. 7
- 7 INT
- Interrupt. · p. 7
- 8 DRDY
- Data Ready. · p. 7
- 9 SDO/SA1
- SPI serial data output or I2C address selection input; connect to Vdd_IO or GND for I2C. · p. 6
- 10 CS
- SPI enable and I2C/SPI mode selection: high enables I2C and SPI idle; low enables SPI and disables I2C. · p. 7
- 11 SDA/SDI/SDO
- I2C serial data, SPI serial data input, or 3-wire serial data output. · p. 6
- 12 Reserved
- Connect to GND. · p. 7
Ordering codes, by the datasheet
1- LIS3MDLTR
- LGA-12 · -40 to +85 °C; tape and reel · p. 1
Parameters
10- Current - Supply
- 270uA
- Features
- Built-in self-test (BIST)
- Interface Type
- SPI
- Magnetic Sensing Range(X,Y)
- ±1.6mT
- Magnetic Sensing Range(Z)
- ±4Gs
- Operating Temperature
- -40℃~+85℃
- Output bit
- 16bit
- Standby Current
- 1uA
- Voltage - Supply
- 1.71V~3.6V
- Voltage - Supply(Absolute Max)
- 4.8V
Order codes
1- LIS3MDLTRLCSC C478483
Pinout
12| Pin | Name | Type |
|---|---|---|
| 1 | SCL/SPC | Input |
| 2 | GND | Passive |
| 3 | GND | Power in |
| 4 | C1 | Power out |
| 5 | Vdd | Power in |
| 6 | Vdd_IO | Power in |
| 7 | INT | Output |
| 8 | DRDY | Output |
| 9 | SDO/SA1 | Input/output |
| 10 | CS | Input |
| 11 | SDA/SDI/SDO | Input/output |
| 12 | GND | Passive |
Open-source boards using it
All 72- 4 layers60 × 100 mm

- 2 layers36.8 × 90.9 mm

Bwlr3d
teapotlaboratories/bwlr3d
Teapot BWLR3D: Asset Tracker and Environmental Sensor with Solar Energy Harvesting
108 parts18MIT - 2 layers

Navigatorschema
maddevsio/mad-navigator
Mad navigator is simple compass-like device shows direction to predefined geo point. This repository contains firmware source code and schematics for device.
107 parts14 - 4 layers64 × 60 mm

Dronemagnav
ajisrawi/dronemagnav
Magnetic-anomaly navigation (MagNav) board + firmware for drones: ESP32-S3, BMI088, LIS3MDL, BMP280, u-blox GNSS, WDMAM map matching, particle filter, MAVLink, phone route planner. Proprietary - all rights reserved.
60 parts11 - 4 layers72 × 75 mm

Nrf52480 Dev board
brendena/Nordic_Pebble_Steel
The goal of this project is to replace the main motherboard in the pebble steel with newer parts. Specifically the cpu will be a Nordic NRF52840.
75 parts9 - 2 layers100 × 100 mm

Earth Field NMR
fmarrabal/Earth-Field-NMR
This repository contains the complete design, schematics, PCB layout, microcontroller firmware, and computer software for an Earth Field Nuclear Magnetic Resonance (EFNMR) spectrometer.
103 parts5MIT - 2 layers44 × 42.5 mm

- 4 layers50 × 60 mm

Show this part on your page
<iframe src="https://pcbkit.io/embed/parts/st/LIS3MDL" title="LIS3MDL in PCBKit" width="100%" height="480" style="border:0;border-radius:12px" allow="fullscreen" loading="lazy"></iframe><img src="https://pcbkit.io/embed/parts/st/LIS3MDL.jpg" alt="LIS3MDL" width="1200" height="900">[](https://pcbkit.io/parts/st/LIS3MDL)Questions
Is there a KiCad symbol and footprint for the LIS3MDL?
Yes. The symbol is Sensor_Magnetic:LIS3MDL and the footprint 4ms_Package_QFP:LGA-12_2x2mm_P0.5mm, both drawn on this page. PCBKit places them on a board for you when you design with it.
What package is the LIS3MDL?
LGA-12(2x2), with 12 pins. Its footprint is drawn on this page.
Where is the LIS3MDL datasheet?
STMicroelectronics publishes it: the Datasheet link on this page opens it.
Where can I order the LIS3MDL?
JLCPCB lists it as part C478483, with 732 in stock; the sellers' links on this page open their listings.
What can replace the LIS3MDL?
Parts like it in the library: the IIS2MDC by STMicroelectronics and the LIS2MDL by STMicroelectronics. Check their datasheets: a part that fits the footprint may still differ in its ratings.
Which open-source boards use the LIS3MDL?
72 boards in 56 repositories on GitHub; the most starred are listed on this page, with their KiCad files.