Skip to main content

Worldwide Shipping · Secure Payments

AI Summary

A compact I2C module combining a 3-axis magnetometer and accelerometer for motion and orientation sensing. It provides 16-bit data over a wide 3-5V supply, making it easy to add to robotics or drone projects.

Key Highlights

  • Integrated 3-axis magnetometer and 3-axis accelerometer
  • I2C digital interface for simple two-wire connection
  • Wide 3 to 5 V operating voltage
  • Selectable magnetic field ranges from ±1.3 to ±8.1 gauss
  • Accelerometer ranges: ±2 g, ±4 g, ±8 g
  • 16-bit data output for precise measurements

Ideal For

  • Electronics hobbyists building IMU projects
  • Students learning about sensors and I2C
  • Drone and RC enthusiasts needing orientation data
  • Robotics developers adding motion sensing
  • Engineers prototyping navigation systems

Buying Tip

Check that your microcontroller supports I2C and that you have pull-up resistors if not already present on your board.

Elecvora expert review

Our verdict

The GY-51 LSM303DLH is a solid, no-frills module for adding combined magnetic and acceleration sensing to your projects. Its small size and I2C interface make it easy to integrate, though it lacks some of the advanced features found in pricier IMUs.

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

Pros

  • Compact and lightweight design
  • Simple I2C interface
  • Wide 3-5V operating voltage
  • Configurable measurement ranges
  • 16-bit resolution

Cons

  • No onboard voltage regulator or level shifting
  • Requires external pull-up resistors for I2C in some setups
  • Limited documentation compared to branded modules

Best for

Hobbyists and students needing a basic 6-axis sensor for robotics or navigation.

Not ideal for

Applications requiring high-precision or industrial-grade sensors.

Specifications

Item TypeAccelerometer
Operating Voltage (VDC)3 to 5
Model No. / NameGY-51 LSM303DLH
Communication ModeI2C
Magnetic field range± 1.3 / ± 1.9 / ± 2.5 / ± 4.0 / ± 4.7 /± 5.6 / ± 8.1 gauss
Acceleration (g)Range: ± 2 g / ± 4 g / ± 8 g
Additional Specs.Data Output: 16 bit
Length (mm)23
Width (mm)23
Weight (g)3
Shipping Weight0.005 kg
Shipping Dimensions6 × 8 × 2 cm

What's in the box

  • 1 x GY-51 LSM303DLH module

Frequently Asked Questions

What is the operating voltage of this module?
The module operates from 3 to 5 VDC.
Does it require external components?
It may require pull-up resistors on the I2C lines if your host device does not have them.
What is the communication interface?
It uses I2C for communication.
What are the measurement ranges?
The magnetometer supports ±1.3, ±1.9, ±2.5, ±4.0, ±4.7, ±5.6, and ±8.1 gauss. The accelerometer supports ±2 g, ±4 g, and ±8 g.
What is included in the package?
The package includes one GY-51 LSM303DLH module.
How should I care for the module?
Keep it dry and avoid exposure to strong magnetic fields or static electricity.

Overview

The GY-51 LSM303DLH module packs a 3-axis magnetometer and a 3-axis accelerometer onto a tiny 23 mm × 23 mm board. It is designed for projects that need to detect orientation, motion, or magnetic heading without complex wiring. Communication is handled through an I2C bus, so only two signal lines are required to connect it to a microcontroller. The module operates from a 3 to 5 V supply, making it compatible with common logic levels. With 16-bit data output and selectable measurement ranges, it offers flexibility for a variety of sensing tasks.

Key Features

  • Dual-sensor integration: A single chip provides both magnetic field and acceleration data.
  • I2C interface: Simple connection to microcontrollers using SDA and SCL lines.
  • Wide voltage range: Works with 3 V and 5 V systems.
  • Configurable ranges: Magnetometer from ±1.3 to ±8.1 gauss; accelerometer from ±2 g to ±8 g.
  • High resolution: 16-bit output for both sensors.
  • Compact and lightweight: 23 × 23 mm board weighs only 3 g.

Specifications Explained

The magnetometer’s multiple full-scale ranges let you trade resolution for range depending on the magnetic environment. Lower ranges like ±1.3 gauss are sensitive enough for compass applications, while higher ranges up to ±8.1 gauss can handle stronger fields. The accelerometer’s ±2 g, ±4 g, and ±8 g ranges suit everything from gentle tilt sensing to moderate motion detection. Both sensors output 16-bit data, giving fine granularity for precise calculations. The 3-5 V operating voltage means the module can be powered directly from most development boards. Measuring just 23 mm square and 3 grams, it adds negligible weight and size to your project.

Compatibility and Requirements

The module requires a microcontroller or host device with an I2C interface. It operates on 3 to 5 VDC, so ensure your power supply matches. No additional external components are needed for basic operation. The module is not waterproof or shielded, so avoid exposing it to moisture or strong magnetic interference. Mounting holes are not specified, but the small size allows for adhesive or custom mounting.

Typical Uses

  • Robotics navigation and orientation sensing
  • Drone and RC vehicle stabilization
  • Compass and heading reference systems
  • Motion detection and gesture recognition
  • Educational projects and prototyping

What's in the Box

1 x GY-51 LSM303DLH module (3-axis magnetic field acceleration).

Quick specs

Item Type
Accelerometer
Operating Voltage (VDC)
3 to 5
Model No. / Name
GY-51 LSM303DLH
Communication Mode
I2C
Magnetic field range
± 1.3 / ± 1.9 / ± 2.5 / ± 4.0 / ± 4.7 /± 5.6 / ± 8.1 gauss
Acceleration (g)
Range: ± 2 g / ± 4 g / ± 8 g
See all specifications