GY-511 LSM303DLHC 3-Axis E-Compass Sensor Module
GY-511 LSM303DLHC 3-axis E-Compass Sensor Module
The GY-511 module integrates the LSM303DLHC chip, providing a 3-axis accelerometer and 3-axis magnetometer. It delivers tilt-compensated heading data over I2C, making it ideal for orientation, navigation, and motion-sensing projects. Whether you're designing a drone, robot, or wearable, this sensor offers accurate and compact performance with 3.3V logic.
Key Specifications
| Specification | Value |
|---|---|
| Chipset | LSM303DLHC |
| Accelerometer Range | ±2/±4/±8/±16 g |
| Magnetometer Range | ±1.3/±1.9/±2.5/±4.0/±4.7/±5.6/±8.1 gauss |
| Interface | I2C (up to 400 kHz) |
| Operating Voltage | 2.16V – 3.6V (VDD), 1.8V (VDDIO) |
| Dimensions | ~18mm x 14mm |
What You Can Build With This
- Digital compass for autonomous robots
- Gesture-controlled gadgets with tilt sensing
- Pedestrian dead reckoning system
- Augmented reality head tracking
Compatibility
This sensor works with any microcontroller supporting I2C, such as Arduino Uno, Mega, Nano, ESP32, and Raspberry Pi. It operates at 3.3V logic; for 5V boards, use a logic level converter on SDA and SCL lines. It pairs well with GPS modules for navigation systems and with gyroscopes for full IMU configurations.
Wiring Notes
Connect VCC to 3.3V, GND to common ground, SDA to A4 (Arduino Uno) or GPIO21 (ESP32), SCK to A5 or GPIO22. The module includes onboard pull-up resistors, but if communication is unstable, add external 4.7kΩ resistors between SDA/SCL and 3.3V. Keep wires short to avoid interference.
Why Buy from Compoden
Every component is sourced from verified suppliers and tested for compatibility before listing. We've spent 10 years building projects for makers, schools, and institutions across India. Ships from Bengaluru in 3-5 days. If defective on arrival, replace within 7 days.
Is this compatible with Arduino Uno?
Yes, it works with Arduino Uno via I2C. Connect SDA to A4, SCK to A5, and use the LSM303 library for data reading.
Does it include tilt compensation?
The LSM303DLHC chip provides both accelerometer and magnetometer data; heading must be calculated in software with tilt compensation algorithms.
Can I use it to detect metal objects?
The magnetometer can detect magnetic fields, so it may respond to ferrous metals but is primarily designed for compass heading.
What is the update rate?
The maximum output data rate is 400 Hz for the magnetometer and up to 1.6 kHz for the accelerometer, depending on configuration.
📦 Free Setup Handoff Document Included
Every Compoden order includes a free setup handoff document — step-by-step instructions to get your component working within minutes. Download it via QR code on your package. The handoff document is also trained to help you troubleshoot the majority of problems.
Ask Soldr above what you can build with this — it knows every Compoden kit this part appears in.
Shipping Information
- Prepaid Orders: ₹75 for orders up to ₹999, FREE shipping above ₹999
- COD Orders: ₹125 shipping + ₹50 COD fee = ₹175 total
- Delivery Timeline: Dispatch in 1-2 days, delivery in 2-7 days depending on location
Returns & Warranty
- 7-Day Return: Manufacturing defects only (approval required)
- Warranty: 7 days from delivery
- Non-Returnable: Batteries, consumables, cut wires, clearance items