Skip to the content
PCBKitNew board
LIS2MDL on a board, in 3D

LIS2MDL

STMicroelectronics

-40℃~+85℃ 1.71V~3.6V 16bit 200uA I2C、SPI ±5mT ±5mT LGA-12(2x2) 3D Magnetic Sensors ROHS

Extended
Category
3D Magnetic Sensors
Package
LGA-12(2x2)
Pins
12

Overview

The LIS2MDL is a 3D Magnetic Sensor made by STMicroelectronics in a LGA-12(2x2) package with 12 pins. -40℃~+85℃ 1.71V~3.6V 16bit 200uA I2C、SPI ±5mT ±5mT LGA-12(2x2) 3D Magnetic Sensors ROHS.

PCBKit's library has its KiCad symbol (Sensor_Magnetic:LIS2MDL, from KiCad's library) and its footprint (4ms_Package_QFP:LGA-12_2x2mm_P0.5mm, from KiCad's library), ready for a KiCad board. JLCPCB lists it (part C919695). 46 open-source boards in 44 repositories on GitHub use it.

Symbol

SCL/SPC1CS3SDA/SDI/SDO4C15GND6DRDY7Vdd9Vdd_IO10
Sensor_Magnetic:LIS2MDLFrom KiCad's library

Footprint

123456789101112
4ms_Package_QFP:LGA-12_2x2mm_P0.5mmFrom KiCad's library

From the datasheet

8
Supply, least
1.71 V · Vdd, recommended operating min · p. 10
Supply, most
3.6 V · Vdd, recommended operating max · p. 10
Supply, absolute maximum
4.8 V · Vdd, absolute max · p. 14
Works from
-40 °C · Operating temperature min · p. 10
Works up to
85 °C · Operating temperature max · p. 10
Takes working
200 µA · Vdd, high-resolution mode, ODR = 20 Hz, typical · p. 10
Takes asleep
1.5 µA · Vdd, power-down, typical · p. 10
A pin gives at most
4 mA · Digital pin source/sink driving capability max · p. 10

What it is and has

10
Magnetic field channels
3 · p. 1
Magnetic dynamic range
±50 gauss · p. 1
Data output
16-bit · p. 1
Serial interfaces
SPI/I2C · p. 1
Power modes
Selectable power mode/resolution · p. 1
Measurement mode
Single measurement mode · p. 1
Interrupt generator
Programmable · p. 1
Self-test
Embedded · p. 1
Temperature sensor
Embedded · p. 1
Compliance
ECOPACK®, RoHS and “Green” · p. 1

Specifications

40
ParameterConditionsAs printedPage
Temperature sensor output change vs. temp. TSDrVdd = 2.5 V, T = 25 °Ctyp 8 digit/°C(2)10
Operating temperature range Topmin -40 · max 85 °C10
Supply voltage VddT = 25 °Cmin 1.71 · typ 2.5 · max 3.6 V10
Module power supply for I/O Vdd_IOVdd = 2.5 V, T = 25 °Cmin 1.71 · max 3.6 V10
Current consumption in high-resolution mode Idd_HRVdd = 2.5 V, T = 25 °C, ODR = 20 Hztyp 200 uA10
Current consumption in low-power mode Idd_LPVdd = 2.5 V, T = 25 °C, ODR = 20 Hztyp 50 uA10
Current consumption in power-down Idd_PDVdd = 2.5 V, T = 25 °Ctyp 1.5 uA10
Low-level output voltage VOLVdd = 2.5 V, T = 25 °C; IOL = 4 mAmax 0.2 V10
Operating temperature range TOPmin -40 · max 85 °C10
Supply voltage Vddmin -0.3 · max 4.8 V14
I/O pins supply voltage Vdd_IOmin -0.3 · max 4.8 V14
Input voltage on any control pin (CS, SCL/SPC, SDA/SDI/SDO) VinMaximum Vdd_IO +0.3 Vmin -0.3 V14
Maximum exposed field MEFmax 10000 gauss14
Operating temperature range TOPmin -40 · max 85 °C14
Storage temperature range TSTGmin -40 · max 125 °C14
Electrostatic discharge protection (HBM) ESDmax 2 kV14
Noise RMSHigh-resolution mode, CFG_REG_A[LP = 0]; CFG_REG_B[LPF] or CFG_REG_B[OFF_CANC] = 0 (disable); BW = ODR/2typ 4.5 mg16
Noise RMSLow-power mode, CFG_REG_A[LP = 1]; CFG_REG_B[LPF] or CFG_REG_B[OFF_CANC] = 0 (disable); BW = ODR/2typ 9 mg16
Noise RMSHigh-resolution mode, CFG_REG_A[LP = 0]; CFG_REG_B[LPF] or CFG_REG_B[OFF_CANC] = 1 (enable); BW = ODR/4typ 3 mg16
Noise RMSLow-power mode, CFG_REG_A[LP = 1]; CFG_REG_B[LPF] or CFG_REG_B[OFF_CANC] = 1 (enable); BW = ODR/4typ 6 mg16
Current consumptionODR = 10 Hz; high-resolution; CFG_REG_A[LP] = 0; CFG_REG_B[OFF_CANC] = 0typ 100 uA16
Current consumptionODR = 10 Hz; low-power; CFG_REG_A[LP] = 1; CFG_REG_B[OFF_CANC] = 0typ 25 uA16
Current consumptionODR = 10 Hz; high-resolution; CFG_REG_A[LP] = 0; CFG_REG_B[OFF_CANC] = 1typ 120 uA16
Current consumptionODR = 10 Hz; low-power; CFG_REG_A[LP] = 1; CFG_REG_B[OFF_CANC] = 1typ 50 uA16
Current consumptionODR = 20 Hz; high-resolution; CFG_REG_A[LP] = 0; CFG_REG_B[OFF_CANC] = 0typ 200 uA16
Current consumptionODR = 20 Hz; low-power; CFG_REG_A[LP] = 1; CFG_REG_B[OFF_CANC] = 0typ 50 uA16
Current consumptionODR = 20 Hz; high-resolution; CFG_REG_A[LP] = 0; CFG_REG_B[OFF_CANC] = 1typ 235 uA16
Current consumptionODR = 20 Hz; low-power; CFG_REG_A[LP] = 1; CFG_REG_B[OFF_CANC] = 1typ 100 uA16
Current consumptionODR = 50 Hz; high-resolution; CFG_REG_A[LP] = 0; CFG_REG_B[OFF_CANC] = 0typ 475 uA16
Current consumptionODR = 50 Hz; low-power; CFG_REG_A[LP] = 1; CFG_REG_B[OFF_CANC] = 0typ 125 uA16
Current consumptionODR = 50 Hz; high-resolution; CFG_REG_A[LP] = 0; CFG_REG_B[OFF_CANC] = 1typ 575 uA16
Current consumptionODR = 50 Hz; low-power; CFG_REG_A[LP] = 1; CFG_REG_B[OFF_CANC] = 1typ 235 uA16
Current consumptionODR = 100 Hz; high-resolution; CFG_REG_A[LP] = 0; CFG_REG_B[OFF_CANC] = 0typ 950 uA16
Current consumptionODR = 100 Hz; low-power; CFG_REG_A[LP] = 1; CFG_REG_B[OFF_CANC] = 0typ 250 uA16
Current consumptionODR = 100 Hz; high-resolution; CFG_REG_A[LP] = 0; CFG_REG_B[OFF_CANC] = 1typ 1130 uA16
Current consumptionODR = 100 Hz; low-power; CFG_REG_A[LP] = 1; CFG_REG_B[OFF_CANC] = 1typ 460 uA16
Turn-on timeCFG_REG_A[LP] = 0 (high-resolution); CFG_REG_A[OFF_CANC = 0]typ 9.4 ms17
Turn-on timeCFG_REG_A[LP] = 1 (low-power); CFG_REG_A[OFF_CANC = 0]typ 6.4 ms17
Maximum ODRHigh resolution (LP = ‘0’)max 100 Hz17
Maximum ODRLow power (LP = ‘1’)max 150 Hz17

Pins, by the datasheet

12
1 SCL/SPC
I2C serial clock or SPI serial port clock. · p. 14
2 NC
Internally not connected; can be tied to Vdd, Vdd_IO or GND. · p. 8
3 CS
I2C/SPI mode selection: high enables I2C and SPI idle; low enables SPI and disables I2C. · p. 8
4 SDA/SDI/SDO
I2C serial data, SPI serial data input, or 3-wire serial data output. · p. 14
5 C1
Capacitor connection, C1 = 220 nF. · p. 8
6 GND
Connected to GND. · p. 8
7 INT/DRDY/SDO
Interrupt/data-ready signal or SDO line for 4-wire SPI connection. · p. 8
8 GND
0 V. · p. 8
9 Vdd
Power supply. · p. 8
10 Vdd_IO
Power supply for I/O pins. · p. 8
11 NC
Internally not connected; can be tied to Vdd, Vdd_IO or GND. · p. 8
12 NC
Internally not connected; can be tied to Vdd, Vdd_IO or GND. · p. 8

Ordering codes, by the datasheet

2
LIS2MDL
LGA-12 · Tray; -40 to +85 °C · p. 1
LIS2MDLTR
LGA-12 · Tape and reel; -40 to +85 °C · p. 1

Parameters

11
Current - Supply
200uA
Features
Built-in temperature sensor, Multi-function INT pin, Built-in self-test (BIST)
Interface Type
I2C, SPI
Magnetic Sensing Range(X,Y)
±5mT
Magnetic Sensing Range(Z)
±5mT
Operating Temperature
-40℃~+85℃
Output Current per Pin(Max)
4mA
Output bit
16bit
Standby Current
1.5uA
Voltage - Supply
1.71V~3.6V
Voltage - Supply(Absolute Max)
4.8V

Order codes

1

Pinout

12
The pins of the LIS2MDL
PinNameType
1SCL/SPCInput
2NCNot connected
3CSInput
4SDA/SDI/SDOInput/output
5C1Power out
6GNDPower in
7DRDYOutput
8GNDPassive
9VddPower in
10Vdd_IOPower in
11NCNot connected
12NCNot connected

Open-source boards using it

All 46
  • 6 layers76.2 × 20.3 mmDEV G2-NANO, the printed circuit board in 3D

    DEV G2-NANO

    theta-machines/DEV-G2-NANO

    The G2 Nano is powered by a record-breaking 1 GHz Arm Cortex-M7 processor, combining the performance of an application processor with real-time determinism.

    141 parts346CERN-OHL-P-2.0
  • 6 layers39.5 × 39.5 mmP4eregrine, the printed circuit board in 3D

    P4eregrine

    anticitizn/p4eregrine

    All-in-one ESP32 P4-based drone ESC, flight controller, and video processor

    359 parts21
  • 8 layers42.2 × 67.2 mmOBC PCB, the printed circuit board in 3D

    OBC PCB

    timohueser/OpenBikeComputer

    Open source Bikecomputer with a focus on exploration and adventure.

    186 parts11GPL-3.0
  • 4 layers36 × 36 mmTrackMAG, the printed circuit board in 3D

    TrackMAG

    mupfdev/TrackMAG

    An open hardware development board primarily intended for the development of accessible input devices.

    58 parts3
  • 4 layers66 × 60 mmMainFlightComputer, the printed circuit board in 3D

    MainFlightComputer

    RockSat-X/RSXVT2026

    Our experiment aims to evaluate the use of optical navigation with Commercial-off-the-Shelf (COTS) products for use in spaceflight applications.

    72 parts3MIT
  • 4 layers42 × 65 mmIcarus Flight Computer, the printed circuit board in 3D

    Icarus Flight Computer

    daedalus-ind/icarus-hardware

    Hardware of the onboard flight computer for the Icarus rocket.

    106 parts2MIT
  • 4 layers112.7 × 122 mmPanel, the printed circuit board in 3D

    Panel

    ioteratech/bluetera-hardware

    Bluetera hardware repository

    1,033 parts2MIT

Show this part on your page

A live frame, for any web page
<iframe src="https://pcbkit.io/embed/parts/st/LIS2MDL" title="LIS2MDL in PCBKit" width="100%" height="480" style="border:0;border-radius:12px" allow="fullscreen" loading="lazy"></iframe>
A picture
<img src="https://pcbkit.io/embed/parts/st/LIS2MDL.jpg" alt="LIS2MDL" width="1200" height="900">
A picture that opens the part, for a README
[![LIS2MDL](https://pcbkit.io/embed/parts/st/LIS2MDL.jpg?size=s)](https://pcbkit.io/parts/st/LIS2MDL)

Questions

Is there a KiCad symbol and footprint for the LIS2MDL?

Yes. The symbol is Sensor_Magnetic:LIS2MDL 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 LIS2MDL?

LGA-12(2x2), with 12 pins. Its footprint is drawn on this page.

Where is the LIS2MDL datasheet?

STMicroelectronics publishes it: the Datasheet link on this page opens it.

Where can I order the LIS2MDL?

JLCPCB lists it as part C919695, with 0 in stock; the sellers' links on this page open their listings.

What can replace the LIS2MDL?

Parts like it in the library: the IIS2MDC by STMicroelectronics and the LIS3MDL by STMicroelectronics. Check their datasheets: a part that fits the footprint may still differ in its ratings.

Which open-source boards use the LIS2MDL?

46 boards in 44 repositories on GitHub; the most starred are listed on this page, with their KiCad files.

Parts like it

2