Description:
The GY-51 LSM303DLH 3-Axis Accelerometer and Magnetic Field Sensor Module is a compact digital sensor board designed to measure acceleration and magnetic field strength along three independent axes (X, Y and Z). It combines a 3-axis accelerometer and a 3-axis magnetometer, making it suitable for motion detection, electronic compass development, orientation sensing and robotics applications.
Based on the LSM303DLH sensor, this module provides acceleration and magnetic field measurement data through an I2C communication interface. It allows compatible microcontrollers and development boards to read movement, tilt, orientation and magnetic field information.
The 3-axis accelerometer helps detect linear acceleration, movement and changes in device orientation, while the 3-axis magnetometer measures the surrounding magnetic field. When used together with suitable calibration and processing, these sensors can help develop a digital compass and orientation tracking system.
The GY-51 module can be integrated with Arduino, ESP32, Raspberry Pi and other compatible microcontrollers. Its compact PCB design makes it useful for robotics, navigation systems, motion-controlled devices, educational experiments and DIY electronics projects.
Buy the GY-51 LSM303DLH 3-Axis Accelerometer and Magnetometer Module from FIFTRONICS for your robotics, navigation, motion sensing and electronics development projects.
Specifications:
|
Specification |
Details |
|---|---|
|
Product Name |
GY-51 LSM303DLH Sensor Module |
|
Sensor IC |
LSM303DLH |
|
Sensor Type |
3-Axis Accelerometer + 3-Axis Magnetometer |
|
Accelerometer Axes |
X, Y, Z |
|
Magnetometer Axes |
X, Y, Z |
|
Accelerometer Measurement Range |
±2g, ±4g, ±8g, ±16g |
|
Magnetometer Measurement Range |
Approximately ±1.3 to ±8.1 Gauss |
|
Communication Interface |
I2C |
|
Digital Output |
16-Bit Data Output |
|
Operating Voltage |
Sensor IC: 2.16V–3.6V |
|
Module Voltage |
Depends on onboard regulator and level-shifting circuitry |
|
I2C Address |
Accelerometer: 0x19; Magnetometer: 0x1E |
|
Functions |
Acceleration, Magnetic Field and Orientation Sensing |
|
Compatible Controllers |
Arduino, ESP32, Raspberry Pi and other compatible boards |
|
Module Design |
Compact PCB |
|
Applications |
Digital Compass, Robotics, Navigation and Motion Detection |
Features:
-
- Dual Sensor Functionality: Combines a 3-axis accelerometer and 3-axis magnetometer on one module.
- 3-Axis Acceleration Measurement: Detects acceleration and movement along X, Y and Z axes.
- 3-Axis Magnetic Field Detection: Measures magnetic field strength in three directions.
- Digital Compass Development: Can be used to develop electronic compass and heading detection systems.
- I2C Communication: Provides convenient communication through SDA and SCL pins.
- 16-Bit Digital Output: Provides digital measurement data for motion and magnetic field processing.
- Multiple Measurement Ranges: Supports configurable accelerometer and magnetometer measurement ranges.
- Microcontroller Compatibility: Suitable for Arduino, ESP32, Raspberry Pi and compatible development boards.
- Compact PCB Design: Easy to integrate into embedded systems and robotics projects.
-
Versatile Applications: Useful for navigation, tilt detection, motion sensing and orientation measurement.
Applications:
-
- Digital compass and electronic navigation systems.
- Robotics and autonomous robot navigation.
- 3-axis acceleration measurement.
- Magnetic field detection and monitoring.
- Tilt and orientation detection.
- Motion tracking and movement detection.
- Drone and robotics development projects.
- Embedded navigation systems.
- Arduino and ESP32 sensor projects.
- Raspberry Pi electronics projects.
- Educational STEM and engineering experiments.
- DIY electronics and sensor development.
- Magnetic direction sensing applications.
-
Motion-controlled electronic devices.
Safety Precautions:
-
- Check the module's operating voltage before connecting the power supply.
- Verify VCC, GND, SDA and SCL connections before powering the module.
- Do not exceed the sensor IC's specified supply voltage.
- Check whether your particular module supports 5V input before connecting it to a 5V controller.
- Check whether your particular module supports 5V input before connecting it to a 5V controller.
- Avoid short circuits between power and ground pins.
- Keep the magnetometer away from strong magnets and magnetic interference during measurements.
- Avoid placing the module close to motors, speakers or high-current wires when accurate compass readings are required.
- Handle the PCB carefully to prevent damage to electronic components.
- Disconnect the power supply before changing wiring connections.
- Calibrate the magnetometer for more reliable compass and heading measurements.
Frequently Asked Questions (FAQs)
1. What is the GY-51 LSM303DLH module used for?
The GY-51 module measures acceleration and magnetic field strength along three axes. It is commonly used in digital compass development, robotics, navigation and motion sensing projects.
2. Does the GY-51 module have both an accelerometer and a magnetometer?
Yes. It combines a 3-axis accelerometer and a 3-axis magnetometer in one module.
3. Can I use the GY-51 LSM303DLH with Arduino?
Yes. It can be interfaced with compatible Arduino boards using the I2C communication interface and suitable libraries.
4. Is this module compatible with ESP32 and Raspberry Pi?
Yes. It supports I2C communication and can be used with ESP32 and Raspberry Pi after checking the module's voltage and logic-level requirements.
5. Can this module be used as a digital compass?
Yes. Its magnetometer can be used to develop a digital compass. Proper calibration and tilt compensation may be required for accurate heading measurements.
Package Included:
1 × GY-51 LSM303DLH 3-Axis Accelerometer and Magnetic Field Sensor Module



