Wish List 0

Gy 271 Qmc5883L 3 Axis Electronic Compass Module Magnetic Field Sensor (China Chip)

Rs. 95.00 Rs. 105.00

-The GY-271 is meant to have an HMC5883L, but some forums have a QMC5883L which has the equal simple capability, however isn't always compatible with the H.
-The GY-271 QMC5883L three-axis Electronic Compass Module Magnetic Field Sensor is designed for low field magnetic sensing with a digital interface and it is best to present particular heading facts.
-If you get a GY-271 board and study an I2C address of 0x0C and study lower back not anything but zeros from the board, you then probable have a QMC5883L chip! Try this library and notice if it really works for you.
-To installation this library into your Arduino environment, download the today's release file to your desktop: today's released files

-This compact sensor suits into small initiatives along with UAVs and robotic navigation structures.
-The sensor converts any magnetic discipline to a differential voltage output on three axes.
-This voltage shift is the raw virtual output price, which could then be used to calculate headings or feel magnetic fields coming from extraordinary directions.

A development board that provides a easy interface for the HMC5883L (3-axis magnetic subject module).
Features :
1. 3-axis magnetic electronic compass.
2. Precise heading information.
3. Fits into small projects easily.
4. I2C communication.

SPECIFICATIONS:
Driver Chip             HMC5883L(China)
Type                    GY-271
Operating Voltage(VDC)  3 to 5
Communication           I2C Protocol
Measuring Range         ± 1.3-8 Gauss

OVERVIEW:

-3-axis magnetic electronic compass.

-Precise heading information.

-Operating Voltage: 3 -5 V DC.

-Driver Chip: QMC5883L.

-Communication: I2C protocol.


PACKAGE INCLUDES:

1 PCS x Gy 271 Qmc5883L 3 Axis Electronic Compass Module Magnetic Field Sensor


//SAMPLE CODE TAKEN FROM BELOW LINK

//https://forum.arduino.cc/index.php?topic=651302.0


#include <Wire.h> //I2C Arduino Library


#define addr 0x0D //I2C Address for The HMC5883


void setup() {


  Serial.begin(9600);

  Wire.begin();



  Wire.beginTransmission(addr); //start talking

  Wire.write(0x0B); // Tell the HMC5883 to Continuously Measure

  Wire.write(0x01); // Set the Register

  Wire.endTransmission();

  Wire.beginTransmission(addr); //start talking

  Wire.write(0x09); // Tell the HMC5883 to Continuously Measure

  Wire.write(0x1D); // Set the Register

  Wire.endTransmission();

}


void loop() {


  int x, y, z; //triple axis data


  //Tell the HMC what regist to begin writing data into



  Wire.beginTransmission(addr);

  Wire.write(0x00); //start with register 3.

  Wire.endTransmission();


  //Read the data.. 2 bytes for each axis.. 6 total bytes

  Wire.requestFrom(addr, 6);

  if (6 <= Wire.available()) {

    x = Wire.read(); //MSB  x

    x |= Wire.read() << 8; //LSB  x

    z = Wire.read(); //MSB  z

    z |= Wire.read() << 8; //LSB z

    y = Wire.read(); //MSB y

    y |= Wire.read() << 8; //LSB y

  }


  // Show Values

  Serial.print("X Value: ");

  Serial.println(x);

  Serial.print("Y Value: ");

  Serial.println(y);

  Serial.print("Z Value: ");

  Serial.println(z);

  Serial.println();


  delay(500);

}


15 days

Write a review

Please login or register to review