GY-271 HMC5883L Electronic Compass Module Magnetic Sensor
Review: 5 - "A masterpiece of literature" by John Doe, written onMay 4, 20020

GY-271 HMC5883L Electronic Compass Module Magnetic Sensor

Available:In Stock
  • Product SKU: KG039
₹ 351 ₹ 499
Available offers
Best Rates

on Express Shipping – Hurry! Shipping starts from Rs69.

Free Shipping Offer -

Avail free shipping on all orders above Rs999.

Volume Discounts-

Buy More Save More! Discounts upto 20%. Contact us

Special Bulk Discounts

for colleges, Schools, Companies & resellers Contact us

Cash on Delivery

Available above Rs 999

  • Original, High Quality
  • KitsGuru Warranty
  • Email Support
  • Video Support to be purchased separately
Easy Payment Options
  • Netbanking
  • Debit/Credit cards
  • Cash on Delivery
  • E-wallets/UPI
Shipping Details
International Shipping

  Need Volume Discounts? Deals are specially designed for you. Click here

  Need Customization? Provide us more details Click here

Warehouse Details   11F-144

  • Order within



The "GY 271 ESP32" is a specific module that incorporates the HMC5883L magnetometer sensor. It is commonly used in electronic projects to measure and detect magnetic fields.

Here's what the description means:

GY-271: "GY-271" is the model number or identifier of the specific breakout board or module that houses the HMC5883L sensor. It's common for sensor modules to have different breakout boards with specific names or numbers, making it easier to identify and use in projects.

HMC5883L: The "HMC5883L" is the actual magnetometer sensor chip used in the module. It is manufactured by Honeywell and is known for its high accuracy in measuring magnetic fields.

Magnetometer Sensor: A magnetometer is a type of sensor that is capable of detecting and measuring magnetic fields. The HMC5883L is a three-axis magnetometer, meaning it can measure magnetic fields in three dimensions: X, Y, and Z. This capability allows it to determine both the strength and direction of magnetic fields.

The GY-271 HMC5883L module is widely used in various applications, such as compass modules, heading determination in robotics and drones, navigation systems, geomagnetic field measurement, and more. When connected to a microcontroller or development board (e.g., Arduino), the sensor can provide precise magnetic field data, which can then be used for orientation or navigation purposes in your projects.

To use the GY-271 HMC5883L effectively, you'll need to interface it with a microcontroller and communicate with it using the I2C (Inter-Integrated Circuit) protocol.

Applications of GY 271 HMC5883l:

Navigation and Orientation: One of the primary applications of the HMC5883L module is navigation systems. It can be used to determine the direction an object is facing relative to the Earth's magnetic north. This can be particularly useful in applications like robotics, drones, and autonomous vehicles.

Digital Compass: The module can serve as a digital compass in various devices, providing users with real-time information about their orientation. This is useful in applications such as smartphones, tablets, and GPS navigation devices.

Geocaching: Geocaching enthusiasts use electronic compass modules to help them find hidden caches by providing accurate directional information.

Technical Details Of GY 271 HMC5883l

  • Type: GY-271
  • Operating Voltage (VDC) : 3 ~ 5
  • Communication: I2C Protocol
  • Measuring Range: ± 1.3-8 Gauss
  • Length (mm): 14.8
  • Width (mm): 13.5
  • Height (mm): 3.5
  • Weight (gm): 2

Physical Attributes of GY 271 HMC5883l

  • Length * Width * Height (mm): 15 x 09 x 4
  • Weight (gm): 2

Integration with Arduino of GY 271 ESP32

GY-271 HMC5883L Module

Sample Code

    Features of GY 271 ESP32

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

    Product Video


    Package Includes

    • 1 x GY-271 QMC5883L 3-axis Electronic Compass Module Magnetic Field Sensor

    Customer Reviews

    Based on 11 reviews
    neeraj kumar
    Five Stars

    Cool beans

    Works fine

    Initially couldn't get flight controller to reliably communicate with this module, but then I popped off the 2 pull-up resistors (the absolutely TINY things right next to the SDA and SCL pads on the board) to ensure it would work with other devices connected to the bus, and from then on there have been no issues at all.

    Great Deal.

    Great Deal.

    smt.farhana baigum
    Great sensor.

    Works as expected. Side story: Don't drop it. It breaks easily. My group partner and I were outside soldering jumper wires to this chip. Music was playing outside because there was a band concert at my University. If only I could attend the Spring Show. But I had to focus on my project. So we finished soldering. Then we walked back to the lab with our hands full. I tried opening the door and this chip fell. The music played on. People were cheering. I looked at the chip in shock. It was broken. I had to purchase a second one. I know it's common sense not to drop sensitive things like this. I just wanted to give you a story.

    leela dhar narang
    The position sensor works perfectly with my antenna and Wi-Fi Arduino

    I needed a position sensor for my attic antenna and this worked perfectly. The QMC is supposed to be inferior to the HMC; however, it is more than adequate for my purposes! I.e., it is quite accurate in provided 360 degree precision, although in my application, it seems to have a margin of error of 2 degrees, which is still overkill for me.

    mohit @ himanshu
    Five Stars

    Works as expected.

    Sreenivasulu Pittala
    Cheap compass for apm

    Worked well. A little difficult to mount with no mounting holes. Not plug and play.

    kunal kishore
    Five Stars


    They are NOT compatible with the HMC5883l

    There is a lib in Arduino for the QMC5883L and it does work well.

    Works as advertised.

    Set this up with an arduino uno and integrated it into a ROS system. Put it on a chip socket that is permanently mounted onto a proto shield.