Wish List 0

Gy 282 Hmc5983 Module

Rs. 494.00 Rs. 569.00

-The HMC5983 is a temperature compensated three-axis integrated circuit magnetometer.
-The HMC5983 includes our present day, high-resolution HMC118X collection magneto resistive sensors plus an ASIC containing amplification, automated degaussing strap drivers, offset cancellation, and a 12-bit ADC that enables 1° to two° compass heading accuracy.
-The I²C or SPI serial bus lets in for easy interface.
-This floor-mount, multi-chip module is designed for low-subject magnetic sensing for applications which includes automobile and personal navigation, vehicle detection, and pointing.




SPECIFICATIONS:

-Contains a 3-Axis Magnetoresistive Sensors

-Supports I²C (Standard, Fast, High-Speed modes) or SPI Digital Interface

-Wide Magnetic Field Range (+/-8 Oe)

-Supply voltage: 3.3v to 5V

-Low Power Consumption (100 μA)

OVERVIEW:

-Low Voltage Operations (2.16 to 3.6V)

-Low Power Consumption (100 μA)

-3-Axis Magneto resistive Sensors

-Temperature Compensated Data Output and Temperature Output

-12-Bit ADC Coupled with Low Noise AMR Sensors Achieves 2 milli-gauss Field Resolution

-I²C (Standard, Fast, High-Speed modes) or SPI Digital Interface

-Fast 220 Hz Maximum Output Rate

-Compatible for battery powered applications

PACKAGE INCLUDES:

1 PCS x Gy 282 Hmc5983 Compass Module


//SOURCECODE TAKEN FROM BELOW LINK

//https://wiki.eprolabs.com/index.php?title=GY-282_HMC5983_Module#:~:text=The%20HMC5983%20is%20a%20temperature%20compensated%20three%2Daxis%20integrated%20circuit%20magnetometer.&text=This%20surface%2Dmount%2C%20multi%2D,datasheetFile%3ASEN%2D0070.


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

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

void setup(){

Serial.begin(9600);

Wire.begin();

Wire.beginTransmission(addr); //start talking

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

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

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(0x03); //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()<<8; //MSB  x 

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

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

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

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

  y |= Wire.read(); //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