3-Axis Magnetic Field Sensor I2C Module GY-271 - Digital Output, I2C Interface - QMC5883L

  • Was  RM25.00 
  • RM12.00

  • Product Code: GY-271
  • Availability: In Stock

This is a breakout board for QMC5883L (replacement of HMC5883L), a 3-axis digital compass. Communication with the QMC5883L is simple and all done through an I2C interface. There is an on board regulator.  The breakout board includes the HMC5883L sensor and all filtering capacitors as shown. The power and 2-wire interface pins are all broken out to a 0.1" pitch header.

 

Features

  • Uses famous magnetometer chip
  • On board 3.3V Low Dropout (LDO) Voltage regulator
  • Onboard Voltage level translator
  • Precise heading information
  • Fits into small projects easily
  • I2C communication

 

Specifications

  • Power Supply: 3-5VDC
  • IO Voltage Level: 3-5V
  • Communication: Standard IIC communication protocol
  • Measuring range: ± 1.3 - 8 Gauss
  • Module Dimensions: 14.35 mm (L) x 13.16 mm (W) x 3.40 mm (H)

 

Package Includes

  • 1x GY-271
  • 1x Straight header

 

Documents

 

 

Connect to Arduino

Library and example are included in: Mecha_QMC5883-master.zip (4.97KB)

  • Arduino GND -> QMC5883L GND
  • Arduino 3.3V -> QMC5883L VCC
  • Arduino A4 (SDA) -> QMC5883L SDA
  • Arduino A5 (SCL) -> QMC5883L SCL

 

#include <Wire.h>
#include <MechaQMC5883.h>

MechaQMC5883 qmc;

void setup() {
  Wire.begin();
  Serial.begin(9600);
  qmc.init();
  //qmc.setMode(Mode_Continuous,ODR_200Hz,RNG_2G,OSR_256);
}

void loop() {
  int x,y,z;
  qmc.read(&x,&y,&z);

  Serial.print("x: ");
  Serial.print(x);
  Serial.print(" y: ");
  Serial.print(y);
  Serial.print(" z: ");
  Serial.print(z);
  Serial.println();
  delay(100);
}

 

Write a review

Note: HTML is not translated!
    Bad           Good

Downloads / Support files