Skip to content
is here! Shop now, pay later in 4 easy installments

GY-271 QMC5883P Compass Module – 3-Axis Magnetometer, I2C, 3V to 5V – Unsoldered

Brand NZN Electronics CLICK IT SKU CLICK-IT-302349 Category Components

(0 reviews)

  • Brand NZN Electronics

Verified specifications

Brand
NZN Electronics

Taken from this product's published details. If something is not listed here, it has not been verified.

Ask AI about this product

Answers use this product's information and the store's details. If it cannot be confirmed, it will point you to our team.

Any language. Press Enter to ask

Frequently bought together

Bundle idea: this item plus 2 recommended accessory/accessories, $27.38 in total. Add each item to the cart below.

Overview

A GY-271 3-axis magnetometer board fitted with the QMC5883P sensor, for adding a digital compass heading or magnetic field readings to an Arduino, ESP32 or Raspberry Pi project. It runs from 3V to 5V and talks over I2C at address 0x2C, so it works with a QMC5883P library such as Adafruit QMC5883P, not the older QMC5883L or HMC5883L code. Choose Unsoldered with a loose header, or Soldered with the header already fitted.

Specifications

Sensor chipQMC5883P 3-axis magnetometer
Supply (VCC)3V to 5V, onboard regulator
Works with5V Arduino and 3.3V ESP32, Pi
InterfaceI2C, fixed address 0x2C
Field range±2, ±8, ±12 or ±30 gauss
Resolution16-bit, 2 mG noise on X and Y
Output rate10 to 200 Hz, up to 1.5 kHz continuous
PinsVCC, GND, SCL, SDA, DRDY (not used)
Board size14.0 x 13.0 mm, 1.55 g with header

Datasheets

What’s in the box

1×
GY-271 QMC5883P magnetometer board

Unsoldered ships with a 5-pin 2.54 mm male header, loose and ready to solder. Soldered comes with the header soldered in, ready for a breadboard or jumper wires. Jumper wires and the microcontroller are not included.

Great for

Give a robot or rover a compass heading
Point an antenna, camera or solar panel north
Detect a magnet or steel moving past
Log magnetic field changes over time
Add heading to a GPS tracker build
Learn I2C sensors on an Arduino or ESP32

Wiring & getting started

  1. Fit the header

    On the Unsoldered option, fit the short ends of the 5-pin header through the board and solder all five pads. The Soldered option is ready to go.

  2. Wire four pins

    VCC to 5V on an Uno or Nano, or 3V3 on an ESP32. GND to GND. SCL to A5 and SDA to A4 on an Uno or Nano, or GPIO22 and GPIO21 on an ESP32. Leave DRDY unconnected.

  3. Install the library

    In the Arduino IDE open Tools > Manage Libraries, search QMC5883P and install Adafruit QMC5883P with its dependencies.

  4. Run the test sketch

    Upload the sketch from the Quick Start and open the Serial Monitor at 115200 baud. It prints QMC5883P found, then X, Y and Z in gauss that change as you turn the board.

Note: For a compass heading, mount the board level and away from steel screws, magnets, motors and speakers, then calibrate it in place. In New Zealand add about 19 to 27 degrees east of declination to turn magnetic north into true north. The datasheet has a calibrated heading sketch.

Specification

Specification for GY-271 QMC5883P Compass Module - 3-Axis Magnetometer, I2C, 3V to 5V - Unsoldered
CLICK IT SKU CLICK-IT-302349
Brand NZN Electronics

Features

A GY-271 3-axis magnetometer board fitted with the QMC5883P sensor, for adding a digital compass heading or magnetic field readings to an Arduino, ESP32 or Raspberry Pi project. It runs from 3V to 5V and talks over I2C at address 0x2C, so it works with…

  • Brand NZN Electronics

Reviews

No reviews yet.

Be the first to review this product and help other shoppers decide.

Do you own this product?

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

Combo deals: buy together and save!

Add these products in one go - the total updates as you tick each item.

  • In stock $8.97
  • In stock $6.67
  • In stock $6.67
  • In stock $6.67