GY-511 LSM303DLHC 3-Axis Accelerometer and 3-Axis Magnetometer E-Compass Module is an integrated 6-degree-of-freedom electronic compass breakout board based on the STMicroelectronics LSM303DLHC sensor IC. By housing a 16-bit 3-axis digital linear accelerometer and a 16-bit 3-axis digital magnetic field sensor on a single compact substrate, it enables accurate tilt-compensated heading calculations even when the module is tilted or pitched. The board features an onboard low-dropout 3.3V regulator and bidirectional I2C level shifters, allowing seamless communication with 3.3V and 5V microcontrollers like Arduino, STM32, and Raspberry Pi for autonomous vehicle navigation, marine heading displays, and robotic mapping.
Key Features:
- Full Tilt-Compensated Electronic Compass: Combines 3D magnetic sensing with 3D gravity tilt vectors to calculate accurate geographic headings.
- Wide Full-Scale Magnetic Range: Selectable magnetic field ranges from ±1.3 to ±8.1 Gauss to accommodate strong ambient magnetic fields.
- Programmable Linear Acceleration: Dynamically selectable accelerometer full scales of ±2g, ±4g, ±8g, and ±16g with 16-bit output.
- Onboard Voltage Regulation & Level Shifting: Compatible with 3.3V and 5.0V power and logic levels without external converter circuits.
- Dual Programmable Interrupt Pins: Configurable interrupt thresholds for free-fall, motion wake-up, click/double-click, and magnetic data ready.
Technical Specifications:
- Sensor IC: STMicroelectronics LSM303DLHC
- Operating Supply Voltage: 3.0V to 5.0V DC
- Communication Interface: Fast-mode I2C (up to 400 kHz)
- I2C Addresses: Accelerometer: 0x19; Magnetometer: 0x1E
- Accelerometer Range: ±2g, ±4g, ±8g, ±16g
- Magnetometer Range: ±1.3, ±1.9, ±2.5, ±4.0, ±4.7, ±5.6, ±8.1 Gauss
- Resolution: 16-bit per axis for both acceleration and magnetic field
- Current Consumption: Approx. 2.2 mA (normal mode), 110 μA (low-power mode)
- Operating Temperature Range: -40°C to +85°C
Mechanical Specifications:
- PCB Material: FR-4 double-sided fiberglass PCB with blue solder mask
- Header Pitch: Standard 2.54mm breadboard pitch
- Mounting: Dual 2.0mm mechanical screw holes for rigid chassis anchoring
- Pad Finish: ENIG gold plating for high electrical conductivity
Dimensions:
- Length: 20.5 mm
- Width: 14.5 mm
- Height: 3.0 mm
- Weight: Approximately 2.0 g
Pinout and Wiring:
- VCC: Main power supply input (3.3V to 5.0V DC).
- GND: Ground reference connection (0V).
- SCL: I2C serial clock line with onboard pull-up resistor.
- SDA: I2C bidirectional serial data line with onboard pull-up resistor.
- INT1: Programmable interrupt 1 output for accelerometer motion events.
- INT2: Programmable interrupt 2 output for accelerometer tap/orientation events.
- DRDY: Magnetometer data-ready signal output pin.
Datasheet Reference:
- Review the STMicroelectronics LSM303DLHC Ultra-Compact High-Performance E-Compass Datasheet for tilt-compensation trigonometry algorithms and magnetic calibration matrices.
Commonly Used in:
- Marine heading displays, electronic compasses, and autonomous boat navigation.
- Autonomous robotic lawnmowers, vacuum cleaners, and rover positioning systems.
- Unmanned aerial vehicle (UAV) backup magnetic heading modules.
- Handheld GPS navigation units and mapping instruments.
Applications:
- Tilt-Compensated Azimuth Calculation: Utilizing accelerometer gravity vectors to mathematically project 3D magnetic readings onto the horizontal plane.
- Dead-Reckoning Robot Navigation: Providing absolute bearing reference to eliminate cumulative wheel-slip odometry errors.
- Free-Fall Detection: Triggering emergency protective head-parking or motor cut-off upon detecting near-zero gravity conditions.
Equivalent Models:
- GY-271 HMC5883L Module: Dedicated 3-axis magnetic compass module requiring an external accelerometer for tilt compensation.
- GY-273 HMC5883L Module: Compact breakout variant of the HMC5883L 3-axis digital compass sensor with I2C output.
- MPU-9250 9-Axis IMU Module: Comprehensive 9-DOF motion tracking sensor containing 3-axis accelerometer, 3-axis gyroscope, and 3-axis compass.
- MCU-9911 AK09911C Module: High-sensitivity standalone 3-axis geomagnetic sensor module with 14-bit resolution and wide dynamic range.
Package Includes:
- 1 × GY-511 LSM303DLHC 3-Axis Accelerometer and 3-Axis Magnetometer E-Compass Module
- 1 × 8-Pin Straight 2.54mm Pitch Male Header Strip





Reviews
No reviews yet. Be the first to share your experience!