GY-511 module includes a 3-axis accelerometer and a 3-axis magnetometer. This sensor can measure the linear acceleration at full scales of ± 2 g / ± 4 g / ± 8 g / ± 16 g and magnetic fields at full scales of ± 1.3 / ± 1.9 / ± 2.5 / ± 4.0 / ± 4.7 / ± 5.6 / ± 8.1 Gauss. When you place this module in a magnetic field, according to the Lorentz law, a current is induced in its microscopic coil. The compass module converts this current to the differential voltage for each coordinate direction by calculating these voltages, you can calculate the magnetic field in each direction and obtain the geographic position. It communicates using I2C communication protocol and the voltage level required to power this device is 3V-5V. You can use it in DIY GPS system, accelerometer data acquisition system to be used in Vehicles etc.
GY-511 module Specifications
Product Description

You can take the data from I2C communication pins directly connected to the microcontroller. Powering the device should be from 3.3V and GND pins.
Package Contents
1×GY-511 LSM303DLHC 3-axis E-compass Sensor
Due to the type of products we sell, we accept limited returns. Below are the conditions where we can accept a return request.
If you receive a product damaged during shipment, please notify us within 3 days of receiving the product, supported by proper pictures and a description. Once our support team accepts the return, we will provide a replacement or a complete refund, including the return shipping cost.
If your item looks different from what is shown in the image on our website, we will take the item back and provide a refund or replacement as per your choice.
We don’t accept returns for products damaged due to improper use. Moreover, we don’t accept returns if the ordered product is not suitable for a specific application. Please read the product specifications and datasheet carefully before placing an order. Returns are accepted only within 3 days from the date of delivery.
We ship all over India with free shipping on all prepaid orders above ₹500. For Cash on Delivery (COD) orders, ₹80 will be charged for orders below ₹599 and ₹30 for orders above ₹599.
For any questions related to shipping, please contact our support team at support@quartzcomponents.com.
Note: The minimum order value for COD orders is ₹500.