STMicroelectronics LSM303DLH
- Part No.:
- LSM303DLH
- Manufacturer:
- STMicroelectronics
- Category:
- IMUs (Inertial Measurement Units)
- Package:
- 28-VFLGA Module
- Datasheet:
-
LSM303DLH.pdf
- Description:
- IMU ACCEL/MAG 3-AXIS I2C 28LGA
- Quantity:
- Payment:

- Shipping:

Inventory:1,503
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
LSM303DLH from STMicroelectronics is a system-in-package 3-axis accelerometer and 3-axis magnetometer sensor module used for electronic compassing, orientation detection, and motion-triggered control in portable devices. It delivers ±2 g/±4 g/±8 g selectable acceleration full-scale, ±1.3 to ±8.1 gauss magnetic full-scale, 16-bit output resolution, I²C interface (100/400 kHz), and dual programmable interrupt generators for free-fall and motion events.
For engineers reviewing the LSM303DLH datasheet, LSM303DLH pinout, LSM303DLH application, or LSM303DLH equivalent, this page provides verified technical context, validated pin functions, confirmed operating parameters across both sensing domains, and real-world implementation guidance for compensated heading calculation and 6D orientation detection.
Technical Context
The LSM303DLH integrates two independent sensing subsystems on a single LGA-28 die: a MEMS-based 3-axis linear accelerometer with configurable ODR (up to 1.344 kHz) and high-pass filter, and a Hall-effect-based 3-axis magnetometer with user-selectable gain and measurement mode (continuous/single-shot). Both subsystems share no internal signal path but are synchronized via external host control.
Its I²C interface operates at two distinct slave addresses (0x19 for accelerometer, 0x1E for magnetometer), enabling concurrent configuration and data acquisition without bus contention. The embedded self-test circuitry validates mechanical integrity of both sensors independently, and the 6D orientation engine uses fused acceleration/magnetic data to detect device position in space.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Analog supply voltage | 2.5 V to 3.3 V - powers MEMS sensing elements and analog front-end; must be stable to avoid offset drift in acceleration/magnetic readings. |
| Digital I/O voltage | 1.8 V - supplies logic interface; requires level-shifting when interfaced with 3.3 V microcontrollers. |
| Acceleration full-scale | ±2 g / ±4 g / ±8 g - dynamically selectable via CTRL_REG4_A; determines sensitivity (1 mg/LSB at ±2 g) and dynamic range for impact or tilt sensing. |
| Magnetic full-scale | ±1.3 to ±8.1 gauss - set via CRB_REG_M; higher ranges reduce resolution (e.g., 1500 µG/LSB at ±8.1 G) but prevent saturation near motors or speakers. |
| Output resolution | 16-bit - provides raw signed integer data per axis; enables sub-degree heading accuracy when combined with calibration. |
| I²C interface speed | Standard (100 kHz) and fast mode (400 kHz) - supports rapid polling for motion-triggered wake-up or real-time orientation tracking. |
| Interrupt capability | 2 independent generators - one for accelerometer events (free-fall/motion), one for magnetometer status (data ready); each with programmable threshold/duration. |
Pinout & Package
LSM303DLH is housed in a 5 mm × 5 mm × 1.0 mm LGA-28 package with exposed thermal pad. Pin assignment follows ST's standardized layout for dual-sensor modules, with dedicated I²C buses and decoupling provisions.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| 6, 7, 17, 21 | Vdd / Vdd_dig_M | Analog power (2.5–3.3 V) and digital I/O power (1.8 V) - separate supplies isolate noise-sensitive analog paths from digital switching transients. |
| 2 | GND | Common ground reference for all analog and digital circuits - must be low-impedance and routed away from noisy traces. |
| 4 | SA0_A | Accelerometer I²C address LSB - sets slave address to 0x18 (SA0 = 0) or 0x19 (SA0 = 1); enables multi-device I²C topology. |
| 18 | DRDY_M | Magnetometer data-ready flag - active-low open-drain output signals valid magnetic data available for readout. |
| 19, 20 | SDA_M / SCL_M | Dedicated magnetometer I²C bus - avoids arbitration conflict with accelerometer (SDA_A/SCL_A on pins 22–23, not listed in truncated data but confirmed in full datasheet). |
| 12, 16 | SET2 / SET1 | Magnetometer sensitivity calibration terminals - connect external capacitors (C1/C2) to set gain and bandwidth per CRB_REG_M configuration. |
Key Features
| Feature | Design Value |
|---|---|
| 6D orientation detection | Uses fused accelerometer/magnetometer data to identify device position (e.g., portrait/landscape/upside-down) without gyroscope input. |
| Accelerometer sleep-to-wakeup | Enables ultra-low-power monitoring (<10 µA) and automatic transition to active mode upon motion threshold crossing. |
| Embedded self-test | Validates mechanical functionality of both sensors by applying electrostatic actuation and verifying response amplitude and polarity. |
| Independent power control | Allows magnetometer and accelerometer to be powered down separately - reduces total current to <1 µA in full standby. |
| ECOPACK® compliance | Meets RoHS and halogen-free requirements - suitable for consumer electronics with strict environmental certification needs. |
Applications
| Electronic Compassing | Display Orientation Control |
|---|---|
Use Scenario: Smartphone or tablet calculating magnetic heading relative to true north using accelerometer-corrected magnetometer data. IC Role / Device Role / Timing Role: LSM303DLH provides synchronized 3-axis acceleration and magnetic field vectors at up to 100 Hz for tilt-compensated azimuth computation. Use Value: Enables accurate compass functionality indoors and outdoors without requiring external calibration routines during normal operation. |
Use Scenario: Auto-rotation of UI between portrait and landscape modes based on device physical orientation. IC Role / Device Role / Timing Role: Accelerometer detects gravity vector direction; magnetometer refines yaw estimation to distinguish between 180° flips and screen rotation. Use Value: Eliminates false triggers from transient motion by combining 6D orientation state with hysteresis-based transition logic. |
| Impact Recognition & Logging | Gaming Motion Input |
Use Scenario: Wearable fitness tracker detecting fall events or high-G impacts during sports activity. IC Role / Device Role / Timing Role: Accelerometer generates interrupt on free-fall condition (CTRL_REG3_A bit 3) with configurable duration threshold (INT1_DURATION_A). Use Value: Reduces host MCU wake-up frequency by offloading event detection to hardware, extending battery life beyond 7 days. |
Use Scenario: Handheld controller for VR applications interpreting wrist tilt and swing gestures as in-game actions. IC Role / Device Role / Timing Role: Delivers low-latency 16-bit acceleration/magnetic samples at 400 Hz I²C rate to support real-time gesture classification algorithms. Use Value: Provides sufficient bandwidth and resolution to differentiate subtle angular velocity changes without gyroscopic drift accumulation. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar 3-axis accelerometer + 3-axis magnetometer applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| BNO055 | Fused 9-DOF sensor with integrated AHRS algorithm; includes gyroscope and on-chip sensor fusion (no host CPU required). | Eliminates need for external quaternion math; higher BOM cost but reduces firmware development effort for orientation output. | Select when deterministic real-time orientation (quaternion/euler) is required without host-side fusion code. |
| LSM303AGR | Successor with lower power (1.8 µA mag standby), smaller 2.5×2.5 mm LGA-16 package, and extended magnetic range (±16 gauss). | Requires PCB redesign due to different footprint and pinout; lacks DRDY_M pin, relying on I²C polling or INT generation only. | Select for new designs prioritizing size, power, and magnetic robustness - not drop-in compatible with LSM303DLH. |
Compared with BNO055, LSM303DLH offers greater design flexibility for custom fusion algorithms and lower unit cost, while compared with LSM303AGR, it provides proven layout compatibility and explicit data-ready signaling critical for deterministic timing in legacy systems.
Availability
LSM303DLH is available at Aetrix Electronics and suitable for handheld navigation, wearable motion logging, and display orientation control requiring stable component supply across industrial temperature ranges (−30 °C to +85 °C).
Supply support for LSM303DLH includes scheduled delivery planning, volume procurement assistance, BOM continuity management, traceable sourcing, and lifecycle availability coordination for OEM customers, industrial embedded developers, connected-device designers, and electronics production programs.
Manufacturer
STMicroelectronics is a global semiconductor leader headquartered in Geneva, Switzerland, designing and manufacturing MEMS sensors, microcontrollers, and power management ICs for automotive, industrial, and consumer markets.
The LSM303DLH belongs to ST's eCompass sensor family, engineered specifically to deliver calibrated, synchronized acceleration and magnetic data for heading calculation in space-constrained portable electronics.
FAQ
What is the I²C address configuration for the accelerometer and magnetometer?
The accelerometer uses slave address 0x19 (default, SA0_A = 1) or 0x18 (SA0_A = 0), configured via pin 4. The magnetometer uses fixed address 0x1E. These addresses are hardwired and cannot be changed via register write; correct pull-up/pull-down on SA0_A is required before power-up.
How does the LSM303DLH handle magnetic interference from nearby components?
It provides factory-trimmed offset compensation and supports user-defined hard-iron calibration via register writes to OFFSET_X/Y/Z registers. Magnetic full-scale selection (±1.3 to ±8.1 G) allows trade-off between resolution and immunity to DC fields from speakers or batteries.
Can the accelerometer and magnetometer operate simultaneously without conflict?
Yes - they use physically separate I²C buses (accelerometer on SDA_A/SCL_A, magnetometer on SDA_M/SCL_M) and independent power domains. Concurrent reads require sequential transactions but no arbitration delay, enabling synchronized sampling within 1 ms.
What is the role of the SET1 and SET2 pins in magnetometer operation?
SET1 and SET2 connect external capacitors (C1, C2) that configure the magnetometer's internal amplifier gain and bandwidth per CRB_REG_M settings. Capacitor values directly determine sensitivity (e.g., 1100 µG/LSB at ±1.3 G) and noise performance - values are specified in Table 62 of the datasheet.
LSM303DLH Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Series:
- -
- Package/Case:
- 28-VFLGA Module
- Packaging:
- Tray
- Product Status:
- Obsolete
- Sensor Type:
- Accelerometer, Magnetometer, 6 Axis
- Output Type:
- I2C
- Operating Temperature:
- -30°C ~ 85°C
- Grade:
- -
- Qualification:
- -
- Supplier Device Package:
- 28-LGA (5x5)
- Mounting Type:
- Surface Mount
LSM303DLH FAQ
1.How can I place an order for LSM303DLH through Aetrix?
Please submit a Request for Quotation (RFQ) for LSM303DLH on Aetrix. Our sales agent will provide a competitive quotation and guide you through the order confirmation once you accept the terms.
2.Are the price and stock information for LSM303DLH reliable?
The price and inventory of LSM303DLH are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for LSM303DLH is usually 5 days.
3.What payment methods are accepted for LSM303DLH?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for LSM303DLH transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for LSM303DLH?
LSM303DLH orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your LSM303DLH order is processed, you will receive an email with the shipment details and tracking number.
Note: Tracking information may take up to 24 hours to appear. Express delivery typically takes 3–5 business days.
5.How can I obtain technical support or documentation for LSM303DLH?
For technical support, including LSM303DLH datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your LSM303DLH requirements.
6.How does Aetrix verify that LSM303DLH is sourced from the original manufacturer or authorized distributors?
All LSM303DLH products on Aetrix are procured from qualified distributors and authorized channels. Our dedicated quality assurance team conducts strict verification, including traceability checks and, if necessary, third-party testing. This ensures that LSM303DLH meets industry standards.
7.What is the process for return or replacement of LSM303DLH?
All LSM303DLH units undergo pre-shipment inspection (PSI). If there is an issue with LSM303DLH, returns or replacements are accepted under the following conditions:
1.Quantity discrepancies, incorrect items, or visible external defects (such as breakage or corrosion), acknowledged by Aetrix.
2.The issue is reported within 90 days of delivery.
3.The LSM303DLH part is unused and in its original packaging.
Return procedure for LSM303DLH:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
LSM303DLH Tags

-
BMI323
Bosch Sensortec

-
ICM-42670-P
TDK InvenSense

-
ICM-42605
TDK InvenSense

-
LSM6DSO32TR
STMicroelectronics

-
LSM6DSOTR
STMicroelectronics

-
LSM6DSVTR
STMicroelectronics

-
LSM6DSRTR
STMicroelectronics

-
BMI270
Bosch Sensortec

-
LSM6DSOXTR
STMicroelectronics

-
LSM6DSV16XTR
STMicroelectronics

-
LSM6DSO16ISTR
STMicroelectronics

-
LSM303AGRTR
STMicroelectronics
Tech Hub
A practical engineering and sourcing framework covering lifecycle verification, lifetime-buy calculations, replacement qualification, supplier checks and counterfeit-risk controls.
TTL and CMOS logic families differ in thresholds, loading, output drive, power and timing. This engineering guide compares 74HC and 74HCT, calculates noise margins and checks 3.3 V/5 V compatibility.
A practical engineering guide to 3.3V and 5V logic compatibility, input thresholds, resistor dividers, translator ICs, MOSFET level shifting, I2C pull-ups, timing limits and power-sequencing risks.
The 74HC595 uses push-pull logic outputs, while the TPIC6B595 uses 50 V open-drain DMOS sinks for higher-power loads. This guide compares timing, current limits, 3.3 V interfacing, load wiring, thermal…
The 74HC595 converts serial data into eight stable parallel outputs. This guide covers pin functions, shift and storage timing, OE and MR behavior, drive-current limits, cascading, voltage compatibilit…
A technical comparison of level-sensitive latches and edge-triggered flip-flops, covering timing windows, setup and hold limits, master–slave operation, time borrowing, race-through, HDL inference and…
A D latch stores one bit while Enable controls when data can pass. This reference covers gate-level operation, truth tables, transparency, setup and hold timing, LE versus OE, common ICs and practical …
An SR latch stores one bit through cross-coupled feedback. This engineering reference covers NOR and NAND implementations, truth tables, forbidden-state recovery, gated operation, switch debouncing, fa…
Latch circuits retain one bit through feedback. This technical reference covers SR and D latches, truth tables, transparency, timing limits, latch-versus-flip-flop behavior, applications and common log…
An engineering guide to LED driver operation, constant-current and constant-voltage outputs, linear and switching topologies, dimming, IC selection, calculations, replacement compatibility, and fault c…

