Compass Sensor HMC5883L GY271

৳ 380.00

  • 3-axis magnetic electronic compass.
  • Precise heading information.
  • Operating Voltage: 3 -5 V DC.
  • Driver Chip: HMC5883L.
  • Communication: I2C protocol.
  • Measuring range: ± 1.3-8 Gauss.


HW-127 HMC5883L 3-axis Electronic Compass Module Magnetic Field Sensor(with Original HMC5883L Driver Chip) is designed for low field magnetic sensing with a digital interface and it is perfect to give precise heading information. htebd
This compact sensor fits into small projects such as UAVs and robot navigation systems. The sensor converts any magnetic field to a differential voltage output on 3 axes. This voltage shift is the raw digital output value, which can then be used to calculate headings or sense magnetic fields coming from different directions. htebd
A development board that provides a simple interface for the HMC5883L (three-axis magnetic field module).
This module is based on a popular and well-loved magnetometer, the HMC5883L. This compact sensor uses I2C to communicate and its very easy to use. Since it’s a 3.3V max chip, we added circuitry to make it 5V-safe logic and power, for easy use with either 3 or 5V microcontrollers. Simply connect VCC to +3-5V and ground to ground. Then read data from the I2C clock and data pins. There’s also a Data Ready pin you can use to speed up reads (check the datasheet for details)
If using with an Arduino, its extra-easy to get started as electropeak already wrote a nice little Arduino interfacing tutorial to get you started. Simply download our library and connect the SCL pin to your Arduino’s I2C clock pin, and SDA pin to your Arduino’s I2C data pin and upload our test example sketch to read out magnetic field data and heading (i.e. which way is north)

This is the same magnetometer sensor that is inside the LSM303. So if you want an accelerometer as well as a magnetometer, check out the LSM303 – it has basically this sensor + a nice digital 3-axis accelerometer!

Note: QMC5883L is made by a Chinese company, they get the production authorization of HMC5883L from Honeywell, and rename it QMC5883L. So QMC5883L and HMC5883L basically are the same, they share the same hardware design. Just their register is a bit different. We only need to change the software a bit. htebd

Features :

3-axis magnetic electronic compass.
Precise heading information.
Fits into small projects easily.
I2C communication.

General Specification
Driver IC
Operating Voltage (VDC)
3 ~ 5
I2C Protocol
Measuring Range
± 1.3-8 Gauss
Length (mm)
Width (mm)
Height (mm)
Weight (gm)
Shipment Weight
0.005 kg
Shipment Dimensions
3 × 2 × 1 cm

Documentation :

Interfacing GY-271 (HMC5883L) Compass Magnetometer with Arduino

Package Includes :
1 x HW-217  HMC5883L 3-axis Electronic Compass Module.
2 x 5*1 Male Burg Connectors (without soldered).

Additional information

Weight 0.1 g


There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.