Skip to main content

Worldwide Shipping · Secure Payments

AI Summary

The GY-511 LSM303DLHC module combines a 3-axis accelerometer and magnetometer with I2C output for precise motion and heading sensing. Its 16-bit resolution and selectable ranges make it ideal for drones, robots, and navigation projects.

Key Highlights

  • 3-axis accelerometer and 3-axis magnetometer in one module
  • I2C digital interface for easy microcontroller connection
  • 16-bit data output for high-resolution measurements
  • Selectable acceleration ranges: ±2g, ±4g, ±8g, ±16g
  • Selectable magnetic field ranges: ±1.3 to ±8.1 gauss
  • Operates from 3 to 5 VDC for wide compatibility

Ideal For

  • Drone and FPV builders needing reliable heading and motion data
  • Robotics enthusiasts developing navigation systems
  • Electronics hobbyists exploring motion sensing
  • Students and educators learning about IMU sensors
  • Makers building tilt-compensated compass projects

Buying Tip

Check that your project's I2C bus operates at 3.3V or 5V and that you have a free I2C port before purchasing this module.

Elecvora expert review

Our verdict

The GY-511 LSM303DLHC is a solid choice for adding combined acceleration and magnetic field sensing to your projects. Its high resolution and selectable ranges offer flexibility, and the I2C interface keeps wiring simple. However, it requires some setup and calibration for best results.

AI-assisted analysis based on the manufacturer's specifications. Not a hands-on lab test.

Pros

  • High 16-bit resolution for precise measurements
  • Selectable ranges allow optimization for different applications
  • Compact and lightweight design
  • Wide operating voltage range

Cons

  • Requires soldering of header for breadboard use
  • Magnetometer needs calibration for accurate heading
  • No onboard voltage regulator, so ensure supply is within 3-5V

Best for

Makers and engineers needing a reliable 6-axis motion sensor for drones, robots, or navigation.

Not ideal for

Beginners who want a plug-and-play solution without any soldering or calibration.

Specifications

Item TypeAccelerometer
Operating Voltage (VDC)3 to 5
Interface TypeI2C
Additional Specs.Data Output: 16 bit
Axis3 Magentic Field Axis, 3 Acceleration Axis
Magnetic field range± 1.3 to ±8.1 gauss
Acceleration (g)Range: ±2g/±4g/±8g /±16g
Length (mm)20
Width (mm)14
Weight (g)1.2
Shipping Weight0.02 kg
Shipping Dimensions6 × 8 × 1 cm

What's in the box

  • 1 x GY-511 LSM303DLHC high-precision 3 Axis electronic compass acceleration sensor module
  • 1 x 8 Pin Male Header

Frequently Asked Questions

What is the difference between the accelerometer and magnetometer?
The accelerometer measures linear acceleration and tilt, while the magnetometer measures magnetic fields to determine heading. Together they provide motion and orientation data.
Can I use this module with a 5V microcontroller?
Yes, the module operates from 3 to 5 VDC, so it can be connected directly to 5V systems. However, check that the I2C logic levels are compatible.
Do I need to calibrate the sensor?
The magnetometer typically requires calibration to compensate for magnetic interference from nearby components. The accelerometer may also benefit from simple offset calibration.
What is included in the package?
The package includes the GY-511 LSM303DLHC sensor module and an 8-pin male header.
What is the maximum acceleration this sensor can measure?
The accelerometer can be configured for full-scale ranges of ±2g, ±4g, ±8g, or ±16g, with ±16g being the maximum.
How do I connect the module to my Arduino?
Connect VCC to 3.3V or 5V, GND to GND, SDA to A4 (on Uno), and SCL to A5 (on Uno). Use an appropriate library to read data.

Overview

The GY-511 LSM303DLHC is a high-precision sensor module that integrates a 3-axis accelerometer and a 3-axis magnetometer. It provides digital output of acceleration and magnetic field measurements via an I2C interface, making it a practical choice for motion sensing and compass applications. The module is built around the LSM303DLHC chip, which includes a 16-bit analog-to-digital converter for each axis, ensuring fine resolution. With user-selectable full-scale ranges, you can tailor the sensitivity to your specific project needs. Whether you are building a drone, a robot, or a handheld navigation device, this module delivers reliable data in a compact form factor.

Key Features

  • Dual sensor integration: Combines 3-axis acceleration and 3-axis magnetic field sensing in a single module.
  • High-resolution output: 16-bit data output for precise measurements.
  • Flexible ranges: Acceleration range selectable from ±2g to ±16g; magnetic field range from ±1.3 to ±8.1 gauss.
  • Simple connectivity: I2C interface requires only two data lines, saving microcontroller pins.
  • Wide voltage compatibility: Operates from 3 to 5 VDC, suitable for both 3.3V and 5V systems.
  • Compact design: Measures just 20 mm by 14 mm and weighs 1.2 grams, ideal for space-constrained builds.

Specifications Explained

Acceleration range: The accelerometer can measure up to ±16g, which is sufficient for most motion and tilt sensing applications. Lower ranges like ±2g provide higher sensitivity for subtle movements.

Magnetic field range: The magnetometer measures fields from ±1.3 to ±8.1 gauss, covering Earth's magnetic field (approximately 0.25 to 0.65 gauss) and allowing for compass heading calculations.

16-bit data output: Each axis provides 16-bit resolution, enabling detection of very small changes in acceleration or magnetic field.

I2C interface: The standard I2C protocol makes it easy to connect to popular microcontrollers like Arduino, Raspberry Pi, and others.

Operating voltage: The module accepts 3 to 5 VDC, so it can be powered directly from most development boards.

Compatibility and Requirements

The module requires a microcontroller or development board with an I2C interface and a power supply between 3 and 5 VDC. No additional components are needed for basic operation. The module comes with an 8-pin male header that can be soldered for breadboard or cable connections.

Typical Uses

  • Drone and FPV flight controllers for stabilization and heading
  • Robotic navigation and orientation systems
  • Tilt-compensated compasses and heading indicators
  • Motion-activated devices and gesture recognition
  • Educational projects and sensor experimentation

What's in the Box

  • 1 x GY-511 LSM303DLHC high-precision 3-axis electronic compass acceleration sensor module
  • 1 x 8-pin male header

Quick specs

Item Type
Accelerometer
Operating Voltage (VDC)
3 to 5
Interface Type
I2C
Additional Specs.
Data Output: 16 bit
Axis
3 Magentic Field Axis, 3 Acceleration Axis
Magnetic field range
± 1.3 to ±8.1 gauss
See all specifications