

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
Footprint
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| Parameter | Conditions | As printed | Page |
|---|---|---|---|
| Linear acceleration sensitivity LA_So | FS = ±2 g and in normal mode | typ 3.9 mg/LSB | 13 |
| Linear acceleration sensitivity LA_So | FS = ±2 g and in high-resolution mode | typ 0.98 mg/LSB | 13 |
| Linear acceleration sensitivity LA_So | FS = ±2 g and in low-power mode | typ 15.63 mg/LSB | 13 |
| Linear acceleration sensitivity LA_So | FS = ±4 g and in normal mode | typ 7.82 mg/LSB | 13 |
| Linear acceleration sensitivity LA_So | FS = ±4 g and in high-resolution mode | typ 1.95 mg/LSB | 13 |
| Linear acceleration sensitivity LA_So | FS = ±4 g and in low-power mode | typ 31.26 mg/LSB | 13 |
| Linear acceleration sensitivity LA_So | FS = ±8 g and in normal mode | typ 15.63 mg/LSB | 13 |
| Linear acceleration sensitivity LA_So | FS = ±8 g and in high-resolution mode | typ 3.9 mg/LSB | 13 |
| Linear acceleration sensitivity LA_So | FS = ±8 g and in low-power mode | typ 62.52 mg/LSB | 13 |
| Linear acceleration sensitivity LA_So | FS = ±16 g and in normal mode | typ 46.9 mg/LSB | 13 |
| Linear acceleration sensitivity LA_So | FS = ±16 g and in high-resolution mode | typ 11.72 mg/LSB | 13 |
| Linear acceleration sensitivity LA_So | FS = ±16 g and in low-power mode | typ 187.58 mg/LSB | 13 |
| Magnetic sensitivity M_GN | Vdd = 2.5 V, T = 25 °C | typ 1.5 mgauss/LSB | 13 |
| Linear acceleration sensitivity change vs. temperature(3) LA_TCSo | typ 0.01 %/°C | 13 | |
| Magnetic sensor offset M_TyOff | With offset cancellation | typ 0 gauss | 13 |
| Linear acceleration RMS noise LA_An | ODR = 100 Hz, high-resolution mode, FS = ±2 g | typ 3 mg (RMS) | 13 |
| Magnetic RMS noise(6) M_R | High-performance mode; with low-pass filter or offset cancellation enabled | typ 3 mgauss (RMS) | 14 |
| Linear acceleration self-test positive difference(7) (8) (9) LA_ST | FS = ±2 g; normal mode | min 17 · max 360 LSB | 14 |
| Magnetic self-test(10) M_ST | min 15 · max 500 mgauss | 14 | |
| Operating temperature range Top | min -40 · max 85 °C | 14 | |
| Temperature sensor output change vs. temp. TSDr | Vdd = 2.5 V, T = 25 °C; 8-bit resolution | typ 1 digit/°C(2) | 15 |
| Supply voltage Vdd | T = 25 °C unless otherwise noted | min 1.71 · max 3.6 V | 15 |
| Module power supply for I/O Vdd_IO | Vdd = 2.5 V, T = 25 °C unless otherwise noted | min 1.71 · typ 1.8 V | 15 |
| Accelerometer current consumption Magnetic sensor in power-down mode. LA_Idd_NM | 50 Hz ODR in normal mode; Vdd = 2.5 V, T = 25 °C | typ 11 uA | 15 |
| Accelerometer current consumption Magnetic sensor in power-down mode. LA_Idd_NM | 1 Hz ODR in normal mode; Vdd = 2.5 V, T = 25 °C | typ 2 uA | 15 |
| Magnetic current consumption in high-resolution mode M_Idd_HR | ODR = 20 Hz; accelerometer in power-down mode; Vdd = 2.5 V, T = 25 °C | typ 200 uA | 15 |
| Magnetic current consumption in low-power mode M_Idd_LP | ODR = 20 Hz; accelerometer in power-down mode; Vdd = 2.5 V, T = 25 °C | typ 50 uA | 15 |
| Current consumption in power-down Idd_PD | Vdd = 2.5 V, T = 25 °C | typ 1.5 uA | 15 |
| Low-level output voltage VOL | IOL = 4 mA | max 0.2 V | 15 |
| Operating temperature range TOP | min -40 · max 85 °C | 15 | |
| SPI clock cycle tc(SPC) | General operating conditions for Vdd and Top; 3-wire SPI | min 100 ns | 16 |
| SPI clock frequency fc(SPC) | General operating conditions for Vdd and Top; 3-wire SPI | max 10 MHz | 16 |
| CS setup time tsu(CS_XL, CS_MAG) | General operating conditions for Vdd and Top; 3-wire SPI | min 5 ns | 16 |
| CS hold time th(CS_XL, CS_MAG) | General operating conditions for Vdd and Top; 3-wire SPI | min 20 ns | 16 |
| SDI input setup time tsu(SI) | General operating conditions for Vdd and Top; 3-wire SPI | min 5 ns | 16 |
| SDI input hold time th(SI) | General operating conditions for Vdd and Top; 3-wire SPI | min 15 ns | 16 |
| SDO valid output time tv(SO) | General operating conditions for Vdd and Top; 3-wire SPI | max 50 ns | 16 |
| SDO output hold time th(SO) | General operating conditions for Vdd and Top; 3-wire SPI | min 5 ns | 16 |
| SDO output disable time tdis(SO) | General operating conditions for Vdd and Top; 3-wire SPI | max 50 ns | 16 |
| SCL clock frequency f(SCL) | I2C standard mode | min 0 · max 100 kHz | 17 |
| SCL clock frequency f(SCL) | I2C fast mode | min 0 · max 400 kHz | 17 |
| Low period of the SCL clock tw(SCLL) | I2C standard mode | min 4.7 us | 17 |
| Low period of the SCL clock tw(SCLL) | I2C fast mode | min 1.3 us | 17 |
| High period of the SCL clock tw(SCLH) | I2C standard mode | min 4 us | 17 |
| High period of the SCL clock tw(SCLH) | I2C fast mode | min 0.6 us | 17 |
| Data setup time tsu(SDA) | I2C standard mode | min 250 ns | 17 |
| Data setup time tsu(SDA) | I2C fast mode | min 100 ns | 17 |
| Data hold time th(SDA) | I2C standard mode | min 0 · max 3.45 us | 17 |
| Data hold time th(SDA) | I2C fast mode | min 0 · max 0.9 us | 17 |
| START condition hold time th(ST) | I2C standard mode | min 4 us | 17 |
| START condition hold time th(ST) | I2C fast mode | min 0.6 us | 17 |
| Setup time for a repeated START condition tsu(SR) | I2C standard mode | min 4.7 us | 17 |
| Setup time for a repeated START condition tsu(SR) | I2C fast mode | min 0.6 us | 17 |
| Setup time for STOP condition tsu(SP) | I2C standard mode | min 4 us | 17 |
| Setup time for STOP condition tsu(SP) | I2C fast mode | min 0.6 us | 17 |
| Bus free time between STOP and START condition tw(SP:SR) | I2C standard mode | min 4.7 us | 17 |
| Bus free time between STOP and START condition tw(SP:SR) | I2C fast mode | min 1.3 us | 17 |
| SCL clock frequency f(SCL) | I2C fast mode plus | min 0 · max 1 MHz | 17 |
| SCL clock frequency f(SCL) | I2C high speed | min 0 · max 3.4 MHz | 17 |
| Low period of the SCL clock tw(SCLL) | I2C fast mode plus | min 0.5 us | 17 |
| Low period of the SCL clock tw(SCLL) | I2C high speed | min 0.16 us | 17 |
| High period of the SCL clock tw(SCLH) | I2C fast mode plus | min 0.26 us | 17 |
| High period of the SCL clock tw(SCLH) | I2C high speed | min 0.06 us | 17 |
| Data setup time tsu(SDA) | I2C fast mode plus | min 50 ns | 17 |
| Data setup time tsu(SDA) | I2C high speed | min 10 ns | 17 |
| Data hold time th(SDA) | I2C fast mode plus | min 0 us | 17 |
| Data hold time th(SDA) | I2C high speed | min 0 · max 0.07 us | 17 |
| START condition hold time th(ST) | I2C fast mode plus | min 0.26 us | 17 |
| START condition hold time th(ST) | I2C high speed | min 0.16 us | 17 |
| Setup time for a repeated START condition tsu(SR) | I2C fast mode plus | min 0.26 us | 17 |
| Setup time for a repeated START condition tsu(SR) | I2C high speed | min 0.16 us | 17 |
| Setup time for STOP condition tsu(SP) | I2C fast mode plus | min 0.26 us | 17 |
| Setup time for STOP condition tsu(SP) | I2C high speed | min 0.16 us | 17 |
| Bus free time between STOP and START condition tw(SP:SR) | I2C fast mode plus | min 0.5 us | 17 |
| Supply voltage Vdd | min -0.3 · max 4.8 V | 19 | |
| I/O pins supply voltage Vdd_IO | min -0.3 · max 4.8 V | 19 | |
| Input voltage on any control pin Vin | CS_XL, CS_MAG, SCL/SPC, SDA/SDI/SDO | min -0.3 V | 19 |
| Acceleration (any axis, powered, Vdd = 2.5 V) APOW | 0.5 ms | max 3000 g | 19 |
| Acceleration (any axis, powered, Vdd = 2.5 V) APOW | 0.1 ms | max 10000 g | 19 |
| Acceleration (any axis, unpowered) AUNP | 0.5 ms | max 3000 g | 19 |
| Acceleration (any axis, unpowered) AUNP | 0.1 ms | max 10000 g | 19 |
| Maximum exposed field MEF | max 10000 gauss | 19 | |
| Operating temperature range TOP | min -40 · max 85 °C | 19 | |
| Storage temperature range TSTG | min -40 · max 125 °C | 19 | |
| Electrostatic discharge protection (HBM) ESD | HBM | max 2 kV | 19 |
| Noise RMS | CFG_REG_B_M [LPF] = 0 (disable); CFG_REG_A_M [LP = 0], high-resolution mode; BW = ODR/2 | typ 4 mg | 21 |
| Noise RMS | CFG_REG_B_M [LPF] = 0 (disable); CFG_REG_A_M [LP = 1], low-power mode; BW = ODR/2 | typ 8.5 mg | 21 |
| Noise RMS | CFG_REG_B_M [LPF] = 1 (enable); CFG_REG_A_M [LP = 0], high-resolution mode; BW = ODR/4 | typ 3 mg | 21 |
| Noise RMS | CFG_REG_B_M [LPF] = 1 (enable); CFG_REG_A_M [LP = 1], low-power mode; BW = ODR/4 | typ 6 mg | 21 |
| Current consumption | Magnetometer; ODR = 10 Hz; CFG_REG_A_M [LP] = 0, high-resolution | typ 100 uA | 21 |
| Current consumption | Magnetometer; ODR = 10 Hz; CFG_REG_A_M [LP] = 1, low-power | typ 25 uA | 21 |
| Current consumption | Magnetometer; ODR = 20 Hz; CFG_REG_A_M [LP] = 0, high-resolution | typ 200 uA | 21 |
| Current consumption | Magnetometer; ODR = 20 Hz; CFG_REG_A_M [LP] = 1, low-power | typ 50 uA | 21 |
| Current consumption | Magnetometer; ODR = 50 Hz; CFG_REG_A_M [LP] = 0, high-resolution | typ 500 uA | 21 |
| Current consumption | Magnetometer; ODR = 50 Hz; CFG_REG_A_M [LP] = 1, low-power | typ 125 uA | 21 |
| Current consumption | Magnetometer; ODR = 100 Hz; CFG_REG_A_M [LP] = 0, high-resolution | typ 1000 uA | 21 |
| Current consumption | Magnetometer; ODR = 100 Hz; CFG_REG_A_M [LP] = 1, low-power | typ 250 uA | 21 |
| Turn-on time | CFG_REG_A_M[LP] = 0 (high-resolution); CFG_REG_A_M[OFF_CANC = 0] | typ 9.4 ms | 21 |
| Turn-on time | CFG_REG_A_M[LP] = 1 (low-power); CFG_REG_A_M[OFF_CANC = 0] | typ 6.4 ms | 21 |
| Turn-on time | Low-power mode (8-bit data output); LPen = 1, HR = 0 | typ 1 ms | 26 |
| So @ ±2 g So | Low-power mode (8-bit data output); LPen = 1, HR = 0 | typ 16 mg/digit | 26 |
| Turn-on time | Normal mode (10-bit data output); LPen = 0, HR = 0 | typ 1.6 ms | 26 |
| So @ ±2 g So | Normal mode (10-bit data output); LPen = 0, HR = 0 | typ 4 mg/digit | 26 |
| So @ ±2 g So | High-resolution mode (12-bit data output); LPen = 0, HR = 1 | typ 1 mg/digit | 26 |
| Current consumption | Accelerometer; 1 Hz; low-power mode (8-bit data output) | typ 2 uA | 26 |
| Current consumption | Accelerometer; 1 Hz; normal mode (10-bit data output) | typ 2 uA | 26 |
| Current consumption | Accelerometer; 1 Hz; high resolution (12-bit data output) | typ 2 uA | 26 |
| Current consumption | Accelerometer; 10 Hz; low-power mode (8-bit data output) | typ 3 uA | 26 |
| Current consumption | Accelerometer; 10 Hz; normal mode (10-bit data output) | typ 4 uA | 26 |
| Current consumption | Accelerometer; 10 Hz; high resolution (12-bit data output) | typ 4 uA | 26 |
| Current consumption | Accelerometer; 25 Hz; low-power mode (8-bit data output) | typ 4 uA | 26 |
| Current consumption | Accelerometer; 25 Hz; normal mode (10-bit data output) | typ 6 uA | 26 |
| Current consumption | Accelerometer; 25 Hz; high resolution (12-bit data output) | typ 6 uA | 26 |
| Current consumption | Accelerometer; 50 Hz; low-power mode (8-bit data output) | typ 6 uA | 26 |
| Current consumption | Accelerometer; 50 Hz; normal mode (10-bit data output) | typ 11 uA | 26 |
| Current consumption | Accelerometer; 50 Hz; high resolution (12-bit data output) | typ 11 uA | 26 |
| Current consumption | Accelerometer; 100 Hz; low-power mode (8-bit data output) | typ 10 uA | 26 |
| Current consumption | Accelerometer; 100 Hz; normal mode (10-bit data output) | typ 20 uA | 26 |
| Current consumption | Accelerometer; 100 Hz; high resolution (12-bit data output) | typ 20 uA | 26 |
| Current consumption | Accelerometer; 200 Hz; low-power mode (8-bit data output) | typ 18 uA | 26 |
| Current consumption | Accelerometer; 200 Hz; normal mode (10-bit data output) | typ 38 uA | 26 |
| Current consumption | Accelerometer; 200 Hz; high resolution (12-bit data output) | typ 38 uA | 26 |
| Current consumption | Accelerometer; 400 Hz; low-power mode (8-bit data output) | typ 36 uA | 26 |
| Current consumption | Accelerometer; 400 Hz; normal mode (10-bit data output) | typ 73 uA | 26 |
| Current consumption | Accelerometer; 400 Hz; high resolution (12-bit data output) | typ 73 uA | 26 |
| Current consumption | Accelerometer; 1344 Hz; normal mode (10-bit data output) | typ 185 uA | 27 |
| Current consumption | Accelerometer; 1344 Hz; high resolution (12-bit data output) | typ 185 uA | 27 |
| Current consumption | Accelerometer; 1620 Hz; low-power mode (8-bit data output) | typ 100 uA | 27 |
| Current consumption | Accelerometer; 5376 Hz; low-power mode (8-bit data output) | typ 185 uA | 27 |
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- LSM303AGRTRLCSC C126671
Pinout
12| Pin | Name | Type |
|---|---|---|
| 1 | SCL/SPC | Unspecified |
| 2 | CS_XL | Unspecified |
| 3 | CS_MAG | Unspecified |
| 4 | SDA/SDI/SDO | Unspecified |
| 5 | C1 | Unspecified |
| 6 | GND | Unspecified |
| 7 | INT_MAG/DRDY | Unspecified |
| 8 | GND | Unspecified |
| 9 | Vdd | Unspecified |
| 10 | Vdd_IO | Unspecified |
| 11 | INT_2_XL | Unspecified |
| 12 | INT_1_XL | Unspecified |
Open-source boards using it
All 18- 6 layers100 × 70 mm

- 2 layers34.4 × 215.2 mm

Smartwatch
DasBasti/SchmartWatch_Hardware
Smart watch built from only electronic components
104 parts5BSD-2-Clause - 2 layers100 × 70 mm

- 6 layers53 × 80 mm

- 2 layers33.3 × 54.5 mm

- 2 layers143 × 40.6 mm

- 4 layers99.5 × 150.5 mm

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 mm

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
<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><img src="https://pcbkit.io/embed/parts/st/LSM303AGR.jpg" alt="LSM303AGR" width="1200" height="900">[](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
8LIS2DW12
LGA-12(2x2)-40℃~+85℃ 1.62V~3.6V 16bit 50nA Accelerometer Motion event detection SPI、I2C X,Y,Z ±16g LGA-12(2x2) Accelerometers ROHSSTMicroelectronicsAccelerometersSC7A20HTR
LGA-12(2x2)-40℃~+85℃ 1.71V~3.6V 500nA Accelerometer SPI、I2C X,Y,Z ±16g LGA-12(2x2) Accelerometers ROHSHangzhou Silan MicroelectronicsAccelerometersQMA6100P
LGA-12_2x2mm-40℃~+85℃ 1.71V~3.6V 14bit 500nA Accelerometer SPI、I2C X,Y,Z ±32g 运动事件检测 LGA-12(2x2) Accelerometers ROHSQSTAccelerometersKX134-1211
LGA-12(2x2)16bit Accelerometer I2C X,Y,Z ±8g 运动事件检测 LGA-12(2x2) Accelerometers ROHSROHM SemiconductorAccelerometersLIS2HH12
LGA-12(2x2)-40℃~+85℃ 1.71V~3.6V 16bit 5uA Accelerometer SPI、I2C X,Y,Z ±8g LGA-12(2x2) Accelerometers ROHSSTMicroelectronicsAccelerometersIIS2DLPC
LGA-12(2x2)-40℃~+85℃ 1.62V~3.6V 14bit 50nA Accelerometer Motion event detection SPI、I2C X,Y,Z ±16g LGA-12(2x2) Accelerometers ROHSSTMicroelectronicsAccelerometersBMA253
LGA-12(2x2)-40℃~+85℃ 1.2V~3.6V 12bit 62uA Accelerometer SPI、I2C X,Y,Z ±16g LGA-12(2x2) Accelerometers ROHSBosch SensortecAccelerometersLIS2DH12
LGA-12(2x2)-40℃~+85℃ 0.2KB 1.71V~3.6V 500nA 8bit、10bit、12bit Accelerometer Motion event detection SPI、I2C X,Y,Z ±16g LGA-12(2x2) Accelerometers ROHSSTMicroelectronicsAccelerometers