Gy 282 Hmc5983 Module
Rs. 494.00 Rs. 569.00
- Brand: https://www.digikey.in/product-detail/en/honeywell-aerospace/HMC
- Product Code: SEN-MAGNOMETER
- SKU -
- Availability: In Stock
- Price in reward points: 8
- For Bulk Order 9962060070
Quick support on WhatsApp (+919962060070) only between morning 11am-4pm, no call will be answered
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
https://www.digikey.in/product-detail/en/honeywell-aerospace/HMC5883L-TR/342-1082-2-ND/2507850
//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