Magnetometer GY-271 3-axis digital I2C 3,3V / 5V - HMC5883L

Index: MOD-02722 EAN: 5903351249621

Sensor to measure the magnetic field in three axes in the range of ±8 gauss with a resolution of 5 miles gaus. It works with the voltage from 3.3 V to 5.0 V. It is characterized by small size of the board and low current consumption.

Magnetometer GY-271 3-axis digital I2C 3,3V / 5V - HMC5883L
€5.28 tax excl.
Shipping in 24 hours
30-day returns
PayPal payment
Manufacturer: OEM

Product description: The magnetometer GY-271 3-axis digital I2C 3.3 V / 5V - HMC5883L

Sensor to measure a magnetic field in three axes. It is characterized by small size, low power consumption and simplicity. It communicates via the I2C bus. Thanks to the built-in regulators, it works with voltages like 3.3 V and 5 V.

Magnetometr GY-271

For communication with the central unit, the popular I2C bus (TWI) is used. The module has necessary for the correct operation of the system, passive elements. Pins are the popular goldpin connectors for connecting the sensor viawiresor to directly attach tothe breadboard.


The product is compatible with Arduino

The device comes in two versions: with HMC5883L or QMC5883 system.

In the case of the module with the system QMC5883, you should use a library for Arduino from GitHub.

Available is also an even older version of the module with HMC5883L system. For this system, you need to use

the library along with a sample program for users of Arduino.




The sensor has five pins for self-installation of the goldpin connectors - pitch of 2.54 mm (included). In order to use alibrary for Arduino, you should connect the module in accordance with the array below.


Magnetometr GY-271




VCC 5V The module's supply voltage in the range from 3.3 V to 5.0 V
GND GND The ground of the system.
SCL A5 The clock line of the I2C bus (TWI), it tolerates the voltages from 3.3 V to 5.0 V.
SDA A4 The data line of the I2C bus (TWI), it tolerates the voltages from 3.3 V to 5.0 V.
DRDY - The external interrupt, to signal by the low status, the data availability. By default, it is pulled up to the supply voltage.


Specification of the magnetometer GY-271

  • Supply voltage: from 3.3 V to 5.0 V
  • The operating voltage of the pins: from 3.3 V to 5.0 V
  • Consumption of current: 1000 uA
  • Three axes: X, Y, Z
  • Communication interface: I2C (TWI)
  • Built-in resistors of 2.2 kΩ pulling up the SDA and SCL lines
  • Resolution: 12 bits for each axis - 2 miles gaus
  • Measuring range (configurable): ±8 gaus
  • Introduction: goldpin connectors, 2.54 mm pitch (included in the kit for self soldering)
  • Board sizes: 14 x 13 mm


Package width 6 cm
Package height 9 cm
Package depth 0.5 cm
Package weight 0.002 kg

Same-day shipping

  • Crediting the payment for the order on our account on a business day before 10:00 AM means sending the goods on the same day.
  • All packages are being delivered by GLS Group courier and covered with insurance up to 1200 EUR.
  • You will receive a link to track your package and monitor the progress of delivery as soon as it is shipped.

Terms of delivery 

GLS - zone 1

Austria, Belgium, Croatia, The Czech Republic, Denmark, Germany, Netherlands, Poland, Slovakia 

  • Delivery time: 2-4 days
  • Delivery cost: from 4.18 EUR
  • Insurance: 1200 EUR
GLS - zone 2

Bulgaria, Estonia, France, Hungary, Italy, Latvia, Lithuania, Luxembourg, Portugal, Romania, San Marino, Slovenia

  • Delivery time: 2-5 days
  • Delivery cost: from 5.35 EUR
  • Insurance: 1200 EUR
GLS - zone 3

Finland, Greece, Ireland, Spain, Sweden 

  • Delivery time: 2-7 days
  • Delivery cost: from 7.67 EUR
  • Insurance: 1200 EUR

Payment methods

Card image cap
  • Botland is a PayPal verified seller. Protect your financial information with this fast, safe and secure online payment system.

Card image cap
  • Choose easy and quick PayU e-payment method. Your financial information will stay secure.

Product reviews

Magnetometer GY-271 3-axis digital I2C 3,3V / 5V - HMC5883L


Average grade


Customers opinion
The following opinions are collected
and verified by
an external partner Trustmate
and come from the post-purchase process.
Grzegorz 05.12.2022 Confirmed purchase
Andrzej L. 13.01.2022 Confirmed purchase Translated review
cut off
Ireneusz K. 21.12.2021 Confirmed purchase Translated review
I'm trying to use it as a magnetometer (not a compass) - it's a bit hard to find info on how to convert the indication to uT. Seems to be working fine (as far as possible).

Customers who bought this product also bought:

Products from the same category: