Measurement of Motion LSM303DLHC (GY-511) Sensor Module Interfacing With Arduino Uno - KT703

SKU KT703

Arduino IDE 1.8.5 (programmable platform for Arduino) GY-511 Accelerometer and E-Compass Axis Magnetometer Sensor Module GY-511 Accelerometer and E-Compass Axis Magnetometer Sensor

₹1401.00

18% GST added at checkout

In stock

₹150 flat shipping, free over ₹3000

  • Pay by UPI: GPay, PhonePe, Paytm & BHIM (no gateway fees)
  • GST invoice on every order
  • Payment confirmed by us before dispatch (no auto-charge)
  • Dispatched in 2–4 working days from Agra, Uttar Pradesh.

Buying for a school or in bulk? Ask us for institutional pricing. Get a quote

About this product

KIT INCLUDED:

Arduino uno with USB cable- 1

GY-511 Accelerometer and E-Compass Axis Magnetometer Sensor Module- 1

Jumper wire(male to male) – 40 pieces

Jumper wire(male to female) – 40 pieces

9V Battery with DC Jack - 1

HARDWARE REQUIRED

Arduino uno with USB cable- 1

GY-511 Accelerometer and E-Compass Axis Magnetometer Sensor Module- 1

Jumper wire(male to male) – 40 pieces

Jumper wire(male to female) – 40 pieces

9V Battery with DC Jack - 1

SOFTWARE REQUIRED

Arduino IDE 1.8.5 (programmable platform for Arduino) Click To Download :https://www.arduino.cc/en/Main/Software

SPECIFICATIONS

GY-511 Accelerometer and E-Compass Axis Magnetometer Sensor Module

Power Supply: 3.3V-5V

3 magnetic field channels

3 acceleration channels

I2C serial data interface

12 bit ADC

16 bit data output

Output format (I²C):

Accelerometer: one 12-bit reading (left-justified) per axis

Magnetometer: one 12-bit reading (right-justified) per axis

Sensitivity range (configurable):

Accelerometer: ±2, ±4, ±8, or ±16 g

Magnetometer: ±1.3, ±1.9, ±2.5, ±4.0, ±4.7, ±5.6, or ±8.1 gauss

20.5mm x 14.5mm

PIN DESCRIPTION

GY-511 Accelerometer and E-Compass Axis Magnetometer Sensor Module

Pin

Name

Description

1

GND

Ground (It grounds the input and completes the circuit path)

2

3.3V

Power Supply (It is Recommended Voltage)

3

SDA

Serial Data (Serial Data used for I2C communication)

4

SCL

Serial Clock (Serial Clock used for I2C serial clock)

5

INT1

Inertial Interrupt 1 (It is External Interrupt Request 1 Enable)

6

INT2

Inertial Interrupt 2 (It is External Interrupt Request 1 Enable)

7

DRDY

Data Ready (It is an output that functions as a new data ready indicator)

8

VIN

It is for the main 2.5 V to 5.5 V power supply connection

CIRCUIT CONNECTION

The GND Pin of GY-511 is connected with GND pin in Arduino Uno board and VCC Pin of GY-511 is attached to 3.3V to build a simple circuit which is capable of measuring the waving motion.

The SDA Pin of GY-511 is attached to pin SDA Pin of Arduino Uno and SCL Pin of GY-511 is connected to pin SCL in the Arduino Uno board. And the Output is being generated in Serial Monitor.

The INT1 (Inertial Interrupt 1) and INT2 (Inertial Interrupt 2) is a Programmable interrupt, a 3.3-V-logic-level output. But it is not used in the circuit.

The VIN Pin is for the 2.5 V to 5.5 V power supply connection. The SCL/SPC and SDA/SDI level shifters pull the I²C and SPI bus high bits up to this level. But this Pin is not used in the circuit.

The Pin DRDY indicates Data Ready. It is an output that functions as a new data ready indicator. It is not used in the following circuit connection.

This particular sensor measures the pressure or motion in the range of 10 ÷ 1200 hPa and temperature in the range of -40 ÷ 85 °C.

CODE

Click to see code here: https://docs.google.com/document/d/e/2PACX-1vSOA9qhefW2ZzM2IXLDCsqzPFw863fvK8QqoyXlsTiSk5G5W-dOfFjgiHjGx68kEO9e18kaysIVi4dg/pub?embedded=true

WORKING

Welcome to this Arduino based GY-511 Accelerometer and E-Compass Axis Magnetometer Sensor which mainly consists of 3 channel, 3 axis compass, magnetometer and an accelerometer. This magnetic sensor supports I2C protocols with standard and fast modes (100 kHz and 400 kHz), but does not support high-speed mode (Hs). External pull-up resistors are required to support the standard and fast modes. Depending on the application, the internal pull-ups may be used to support slower data speeds than specified by I2C standards. The sensor module is supplied with both 5V and 3.3V voltage where 3.3V is considered ideal option. But if 5V is being supplied to the circuit, then pay special attention by connecting the sensor to the appropriate pin. The pin marked SCL (GY-511) is connected to the SCL pin (Arduino Uno), while the SDA pin (GY-511) to the SDA pin (Arduino Uno). The GND (GY-511) is connected with GND (Arduino Uno). Its major advantage is that it is 24-bit ADC converter which allows you to determine the height with an accuracy of up to 10cm on the basis of the pressure and motion measurement. But the ideal supply voltage lies in between 1.8V to 3.6 V with power consumption of just 1μA.

Block Diagram of LSM303DLHC (GY-511):

More in Arduino Boards

You might also need