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

LSM303AGR

STMicroelectronics

-40℃~+85℃ 1.5uA 1.71V~3.6V 16bit Accelerometer SPI、I2C X,Y,Z ±16g LGA-12(2x2) Accelerometers ROHS

Extended
Category
Accelerometers
Package
LGA-12(2x2)
Pins
12

Overview

The LSM303AGR is an accelerometer made by STMicroelectronics in a LGA-12(2x2) package with 12 pins. -40℃~+85℃ 1.5uA 1.71V~3.6V 16bit Accelerometer SPI、I2C X,Y,Z ±16g LGA-12(2x2) Accelerometers ROHS.

PCBKit's library has its KiCad symbol (EasyEDA_Cloud:LSM303AGRTR, from EasyEDA) and its footprint (4ms_Package_QFP:LGA-12_2x2mm_P0.5mm, from KiCad's library), ready for a KiCad board. 10,085 are in stock at JLCPCB (part C126671). 18 open-source boards in 14 repositories on GitHub use it.

Symbol

SCL/SPC1CS_XL2CS_MAG3SDA/SDI/SDO4C15GND6INT_MAG/DRDY7GND8Vdd9Vdd_IO10INT_2_XL11INT_1_XL12
EasyEDA_Cloud:LSM303AGRTRFrom EasyEDA

Footprint

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

From the datasheet

7
Supply, least
1.71 V · Vdd, recommended operating min · p. 15
Supply, most
3.6 V · Vdd, recommended operating max · p. 15
Supply, absolute maximum
4.8 V · Vdd, absolute maximum · p. 19
Works from
-40 °C · Operating temperature min · p. 15
Works up to
85 °C · Operating temperature max · p. 15
Takes working
211 µA · sum of typical magnetometer high-resolution current at 20 Hz and accelerometer normal-mode current at 50 Hz · p. 15
Takes asleep
1.5 µA · Power-down current typical · p. 15

What it is and has

12
Magnetic field channels
3 · p. 1
Acceleration channels
3 · p. 1
Magnetic dynamic range
±50 gauss · p. 1
Acceleration full scales
±2/±4/±8/±16 g, selectable · p. 1
Data output
16-bit · p. 1
Serial interfaces
SPI / I2C · p. 1
Power modes
Power-down / low-power · p. 1
Self-test
Embedded · p. 1
Temperature sensor
Embedded · p. 1
FIFO
Embedded · p. 1
Compliance
ECOPACK®, RoHS and Green · p. 1
Orientation detection
6D / 4D, accelerometer only · p. 27

Around it

1
res not specified
between SCL and Vdd_IO; External pull-up required for I2C. · p. 36

Specifications

129
ParameterConditionsAs printedPage
Linear acceleration sensitivity LA_SoFS = ±2 g and in normal modetyp 3.9 mg/LSB13
Linear acceleration sensitivity LA_SoFS = ±2 g and in high-resolution modetyp 0.98 mg/LSB13
Linear acceleration sensitivity LA_SoFS = ±2 g and in low-power modetyp 15.63 mg/LSB13
Linear acceleration sensitivity LA_SoFS = ±4 g and in normal modetyp 7.82 mg/LSB13
Linear acceleration sensitivity LA_SoFS = ±4 g and in high-resolution modetyp 1.95 mg/LSB13
Linear acceleration sensitivity LA_SoFS = ±4 g and in low-power modetyp 31.26 mg/LSB13
Linear acceleration sensitivity LA_SoFS = ±8 g and in normal modetyp 15.63 mg/LSB13
Linear acceleration sensitivity LA_SoFS = ±8 g and in high-resolution modetyp 3.9 mg/LSB13
Linear acceleration sensitivity LA_SoFS = ±8 g and in low-power modetyp 62.52 mg/LSB13
Linear acceleration sensitivity LA_SoFS = ±16 g and in normal modetyp 46.9 mg/LSB13
Linear acceleration sensitivity LA_SoFS = ±16 g and in high-resolution modetyp 11.72 mg/LSB13
Linear acceleration sensitivity LA_SoFS = ±16 g and in low-power modetyp 187.58 mg/LSB13
Magnetic sensitivity M_GNVdd = 2.5 V, T = 25 °Ctyp 1.5 mgauss/LSB13
Linear acceleration sensitivity change vs. temperature(3) LA_TCSotyp 0.01 %/°C13
Magnetic sensor offset M_TyOffWith offset cancellationtyp 0 gauss13
Linear acceleration RMS noise LA_AnODR = 100 Hz, high-resolution mode, FS = ±2 gtyp 3 mg (RMS)13
Magnetic RMS noise(6) M_RHigh-performance mode; with low-pass filter or offset cancellation enabledtyp 3 mgauss (RMS)14
Linear acceleration self-test positive difference(7) (8) (9) LA_STFS = ±2 g; normal modemin 17 · max 360 LSB14
Magnetic self-test(10) M_STmin 15 · max 500 mgauss14
Operating temperature range Topmin -40 · max 85 °C14
Temperature sensor output change vs. temp. TSDrVdd = 2.5 V, T = 25 °C; 8-bit resolutiontyp 1 digit/°C(2)15
Supply voltage VddT = 25 °C unless otherwise notedmin 1.71 · max 3.6 V15
Module power supply for I/O Vdd_IOVdd = 2.5 V, T = 25 °C unless otherwise notedmin 1.71 · typ 1.8 V15
Accelerometer current consumption Magnetic sensor in power-down mode. LA_Idd_NM50 Hz ODR in normal mode; Vdd = 2.5 V, T = 25 °Ctyp 11 uA15
Accelerometer current consumption Magnetic sensor in power-down mode. LA_Idd_NM1 Hz ODR in normal mode; Vdd = 2.5 V, T = 25 °Ctyp 2 uA15
Magnetic current consumption in high-resolution mode M_Idd_HRODR = 20 Hz; accelerometer in power-down mode; Vdd = 2.5 V, T = 25 °Ctyp 200 uA15
Magnetic current consumption in low-power mode M_Idd_LPODR = 20 Hz; accelerometer in power-down mode; Vdd = 2.5 V, T = 25 °Ctyp 50 uA15
Current consumption in power-down Idd_PDVdd = 2.5 V, T = 25 °Ctyp 1.5 uA15
Low-level output voltage VOLIOL = 4 mAmax 0.2 V15
Operating temperature range TOPmin -40 · max 85 °C15
SPI clock cycle tc(SPC)General operating conditions for Vdd and Top; 3-wire SPImin 100 ns16
SPI clock frequency fc(SPC)General operating conditions for Vdd and Top; 3-wire SPImax 10 MHz16
CS setup time tsu(CS_XL, CS_MAG)General operating conditions for Vdd and Top; 3-wire SPImin 5 ns16
CS hold time th(CS_XL, CS_MAG)General operating conditions for Vdd and Top; 3-wire SPImin 20 ns16
SDI input setup time tsu(SI)General operating conditions for Vdd and Top; 3-wire SPImin 5 ns16
SDI input hold time th(SI)General operating conditions for Vdd and Top; 3-wire SPImin 15 ns16
SDO valid output time tv(SO)General operating conditions for Vdd and Top; 3-wire SPImax 50 ns16
SDO output hold time th(SO)General operating conditions for Vdd and Top; 3-wire SPImin 5 ns16
SDO output disable time tdis(SO)General operating conditions for Vdd and Top; 3-wire SPImax 50 ns16
SCL clock frequency f(SCL)I2C standard modemin 0 · max 100 kHz17
SCL clock frequency f(SCL)I2C fast modemin 0 · max 400 kHz17
Low period of the SCL clock tw(SCLL)I2C standard modemin 4.7 us17
Low period of the SCL clock tw(SCLL)I2C fast modemin 1.3 us17
High period of the SCL clock tw(SCLH)I2C standard modemin 4 us17
High period of the SCL clock tw(SCLH)I2C fast modemin 0.6 us17
Data setup time tsu(SDA)I2C standard modemin 250 ns17
Data setup time tsu(SDA)I2C fast modemin 100 ns17
Data hold time th(SDA)I2C standard modemin 0 · max 3.45 us17
Data hold time th(SDA)I2C fast modemin 0 · max 0.9 us17
START condition hold time th(ST)I2C standard modemin 4 us17
START condition hold time th(ST)I2C fast modemin 0.6 us17
Setup time for a repeated START condition tsu(SR)I2C standard modemin 4.7 us17
Setup time for a repeated START condition tsu(SR)I2C fast modemin 0.6 us17
Setup time for STOP condition tsu(SP)I2C standard modemin 4 us17
Setup time for STOP condition tsu(SP)I2C fast modemin 0.6 us17
Bus free time between STOP and START condition tw(SP:SR)I2C standard modemin 4.7 us17
Bus free time between STOP and START condition tw(SP:SR)I2C fast modemin 1.3 us17
SCL clock frequency f(SCL)I2C fast mode plusmin 0 · max 1 MHz17
SCL clock frequency f(SCL)I2C high speedmin 0 · max 3.4 MHz17
Low period of the SCL clock tw(SCLL)I2C fast mode plusmin 0.5 us17
Low period of the SCL clock tw(SCLL)I2C high speedmin 0.16 us17
High period of the SCL clock tw(SCLH)I2C fast mode plusmin 0.26 us17
High period of the SCL clock tw(SCLH)I2C high speedmin 0.06 us17
Data setup time tsu(SDA)I2C fast mode plusmin 50 ns17
Data setup time tsu(SDA)I2C high speedmin 10 ns17
Data hold time th(SDA)I2C fast mode plusmin 0 us17
Data hold time th(SDA)I2C high speedmin 0 · max 0.07 us17
START condition hold time th(ST)I2C fast mode plusmin 0.26 us17
START condition hold time th(ST)I2C high speedmin 0.16 us17
Setup time for a repeated START condition tsu(SR)I2C fast mode plusmin 0.26 us17
Setup time for a repeated START condition tsu(SR)I2C high speedmin 0.16 us17
Setup time for STOP condition tsu(SP)I2C fast mode plusmin 0.26 us17
Setup time for STOP condition tsu(SP)I2C high speedmin 0.16 us17
Bus free time between STOP and START condition tw(SP:SR)I2C fast mode plusmin 0.5 us17
Supply voltage Vddmin -0.3 · max 4.8 V19
I/O pins supply voltage Vdd_IOmin -0.3 · max 4.8 V19
Input voltage on any control pin VinCS_XL, CS_MAG, SCL/SPC, SDA/SDI/SDOmin -0.3 V19
Acceleration (any axis, powered, Vdd = 2.5 V) APOW0.5 msmax 3000 g19
Acceleration (any axis, powered, Vdd = 2.5 V) APOW0.1 msmax 10000 g19
Acceleration (any axis, unpowered) AUNP0.5 msmax 3000 g19
Acceleration (any axis, unpowered) AUNP0.1 msmax 10000 g19
Maximum exposed field MEFmax 10000 gauss19
Operating temperature range TOPmin -40 · max 85 °C19
Storage temperature range TSTGmin -40 · max 125 °C19
Electrostatic discharge protection (HBM) ESDHBMmax 2 kV19
Noise RMSCFG_REG_B_M [LPF] = 0 (disable); CFG_REG_A_M [LP = 0], high-resolution mode; BW = ODR/2typ 4 mg21
Noise RMSCFG_REG_B_M [LPF] = 0 (disable); CFG_REG_A_M [LP = 1], low-power mode; BW = ODR/2typ 8.5 mg21
Noise RMSCFG_REG_B_M [LPF] = 1 (enable); CFG_REG_A_M [LP = 0], high-resolution mode; BW = ODR/4typ 3 mg21
Noise RMSCFG_REG_B_M [LPF] = 1 (enable); CFG_REG_A_M [LP = 1], low-power mode; BW = ODR/4typ 6 mg21
Current consumptionMagnetometer; ODR = 10 Hz; CFG_REG_A_M [LP] = 0, high-resolutiontyp 100 uA21
Current consumptionMagnetometer; ODR = 10 Hz; CFG_REG_A_M [LP] = 1, low-powertyp 25 uA21
Current consumptionMagnetometer; ODR = 20 Hz; CFG_REG_A_M [LP] = 0, high-resolutiontyp 200 uA21
Current consumptionMagnetometer; ODR = 20 Hz; CFG_REG_A_M [LP] = 1, low-powertyp 50 uA21
Current consumptionMagnetometer; ODR = 50 Hz; CFG_REG_A_M [LP] = 0, high-resolutiontyp 500 uA21
Current consumptionMagnetometer; ODR = 50 Hz; CFG_REG_A_M [LP] = 1, low-powertyp 125 uA21
Current consumptionMagnetometer; ODR = 100 Hz; CFG_REG_A_M [LP] = 0, high-resolutiontyp 1000 uA21
Current consumptionMagnetometer; ODR = 100 Hz; CFG_REG_A_M [LP] = 1, low-powertyp 250 uA21
Turn-on timeCFG_REG_A_M[LP] = 0 (high-resolution); CFG_REG_A_M[OFF_CANC = 0]typ 9.4 ms21
Turn-on timeCFG_REG_A_M[LP] = 1 (low-power); CFG_REG_A_M[OFF_CANC = 0]typ 6.4 ms21
Turn-on timeLow-power mode (8-bit data output); LPen = 1, HR = 0typ 1 ms26
So @ ±2 g SoLow-power mode (8-bit data output); LPen = 1, HR = 0typ 16 mg/digit26
Turn-on timeNormal mode (10-bit data output); LPen = 0, HR = 0typ 1.6 ms26
So @ ±2 g SoNormal mode (10-bit data output); LPen = 0, HR = 0typ 4 mg/digit26
So @ ±2 g SoHigh-resolution mode (12-bit data output); LPen = 0, HR = 1typ 1 mg/digit26
Current consumptionAccelerometer; 1 Hz; low-power mode (8-bit data output)typ 2 uA26
Current consumptionAccelerometer; 1 Hz; normal mode (10-bit data output)typ 2 uA26
Current consumptionAccelerometer; 1 Hz; high resolution (12-bit data output)typ 2 uA26
Current consumptionAccelerometer; 10 Hz; low-power mode (8-bit data output)typ 3 uA26
Current consumptionAccelerometer; 10 Hz; normal mode (10-bit data output)typ 4 uA26
Current consumptionAccelerometer; 10 Hz; high resolution (12-bit data output)typ 4 uA26
Current consumptionAccelerometer; 25 Hz; low-power mode (8-bit data output)typ 4 uA26
Current consumptionAccelerometer; 25 Hz; normal mode (10-bit data output)typ 6 uA26
Current consumptionAccelerometer; 25 Hz; high resolution (12-bit data output)typ 6 uA26
Current consumptionAccelerometer; 50 Hz; low-power mode (8-bit data output)typ 6 uA26
Current consumptionAccelerometer; 50 Hz; normal mode (10-bit data output)typ 11 uA26
Current consumptionAccelerometer; 50 Hz; high resolution (12-bit data output)typ 11 uA26
Current consumptionAccelerometer; 100 Hz; low-power mode (8-bit data output)typ 10 uA26
Current consumptionAccelerometer; 100 Hz; normal mode (10-bit data output)typ 20 uA26
Current consumptionAccelerometer; 100 Hz; high resolution (12-bit data output)typ 20 uA26
Current consumptionAccelerometer; 200 Hz; low-power mode (8-bit data output)typ 18 uA26
Current consumptionAccelerometer; 200 Hz; normal mode (10-bit data output)typ 38 uA26
Current consumptionAccelerometer; 200 Hz; high resolution (12-bit data output)typ 38 uA26
Current consumptionAccelerometer; 400 Hz; low-power mode (8-bit data output)typ 36 uA26
Current consumptionAccelerometer; 400 Hz; normal mode (10-bit data output)typ 73 uA26
Current consumptionAccelerometer; 400 Hz; high resolution (12-bit data output)typ 73 uA26
Current consumptionAccelerometer; 1344 Hz; normal mode (10-bit data output)typ 185 uA27
Current consumptionAccelerometer; 1344 Hz; high resolution (12-bit data output)typ 185 uA27
Current consumptionAccelerometer; 1620 Hz; low-power mode (8-bit data output)typ 100 uA27
Current consumptionAccelerometer; 5376 Hz; low-power mode (8-bit data output)typ 185 uA27

Pins, by the datasheet

12
1 SCL/SPC
I2C serial clock or SPI serial port clock. · p. 19
2 CS_XL
Accelerometer SPI enable and interface selection: high enables I2C and SPI idle mode; low enables SPI and disables I2C. · p. 12
3 CS_MAG
Magnetometer SPI enable and interface selection: high enables I2C and SPI idle mode; low enables SPI and disables I2C. · p. 12
4 SDA/SDI/SDO
I2C serial data, SPI serial data input, or 3-wire serial data output. · p. 19
5 C1
Capacitor connection, C1 = 220 nF. · p. 12
6 GND
Connected to GND. · p. 12
7 INT_MAG/DRDY
Magnetometer interrupt/data-ready signal. · p. 12
8 GND
0 V. · p. 12
9 Vdd
Power supply. · p. 12
10 Vdd_IO
Power supply for I/O pins. · p. 12
11 INT_2_XL
Accelerometer interrupt 2. · p. 12
12 INT_1_XL
Accelerometer interrupt 1. · p. 12

Ordering codes, by the datasheet

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

Parameters

11
Acceleration Measurement Range (MAX)
±16g
Accelerometer Sensing Axis
X,Y,Z
Current - Supply
211uA
Features
Motion event detection
Interface
I2C
Operating Temperature
-40℃~+85℃
Output Bits
16bit
Sensor Type
Accelerometer
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 LSM303AGR
PinNameType
1SCL/SPCUnspecified
2CS_XLUnspecified
3CS_MAGUnspecified
4SDA/SDI/SDOUnspecified
5C1Unspecified
6GNDUnspecified
7INT_MAG/DRDYUnspecified
8GNDUnspecified
9VddUnspecified
10Vdd_IOUnspecified
11INT_2_XLUnspecified
12INT_1_XLUnspecified

Open-source boards using it

All 18
  • 6 layers100 × 70 mmCanardBoard, the printed circuit board in 3D

    CanardBoard

    waterloo-rocketry/canhw

    Hardware monorepo avionics PCB

    280 parts15GPL-3.0
  • 2 layers34.4 × 215.2 mmSmartwatch, the printed circuit board in 3D

    Smartwatch

    DasBasti/SchmartWatch_Hardware

    Smart watch built from only electronic components

    104 parts5BSD-2-Clause
  • 2 layers100 × 70 mmCPU Board, the printed circuit board in 3D

    CPU Board

    jsjolund/sailoraid

    Sensor package for the Laser Pico sail boat

    116 parts3
  • 6 layers53 × 80 mmTheSummitProject, the printed circuit board in 3D

    TheSummitProject

    Da-Dog/the-summit-project-hardware

    108 parts1
  • 4 layers99.5 × 150.5 mmNewpcb, the printed circuit board in 3D

    Newpcb

    leorosenbaum11-ui/RFM-LoRa

    Part Models (more detailed BOM in files): Microcontroller: Adafruit Feather ESP32-S3 Pin Extender: MCU23S17 Transciever: Seeed WIO-LR2021 Keyboard Driver: STM32F042CFU(x) Keyboard: Solderparty Keebdeck Keyboard6R13C…

    48 parts1
  • 4 layers100 × 100 mmIMUnav H00, the printed circuit board in 3D

    IMUnav H00

    marouncz/IMU-navigation

    This is a repository for my bachelor's thesis regarding IMU navigation

    220 parts1MIT

Show this part on your page

A live frame, for any web page
<iframe src="https://pcbkit.io/embed/parts/st/LSM303AGR" title="LSM303AGR 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/LSM303AGR.jpg" alt="LSM303AGR" width="1200" height="900">
A picture that opens the part, for a README
[![LSM303AGR](https://pcbkit.io/embed/parts/st/LSM303AGR.jpg?size=s)](https://pcbkit.io/parts/st/LSM303AGR)

Questions

Is there a KiCad symbol and footprint for the LSM303AGR?

Yes. The symbol is EasyEDA_Cloud:LSM303AGRTR 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 LSM303AGR?

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

Where is the LSM303AGR datasheet?

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

Where can I order the LSM303AGR?

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

What can replace the LSM303AGR?

Parts like it in the library: the LIS2DW12 by STMicroelectronics, the SC7A20HTR by Hangzhou Silan Microelectronics, the QMA6100P by QST and the KX134-1211 by ROHM Semiconductor. Check their datasheets: a part that fits the footprint may still differ in its ratings.

Which open-source boards use the LSM303AGR?

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

Parts like it

8