Using a magnetometer can be a little tricky, especially if you are unsure about the formulas to use to get the correct bearing and when other magnetic objects are interfering with your signal. You could download a arduino library for this module, which will also be compatible with other HMC5883L breakout boards made by other manufacturers.
Description :
Using a magnetometer can be a little tricky, especially if you are unsure about the formulas to use to get the correct bearing and when other magnetic objects are interfering with your signal. You could download a arduino library for this module, which will also be compatible with other HMC5883L breakout boards made by other manufacturers.
Electronic Feature :
1. Immersion Gold PCB, machine welding process to ensure quality.
2. Name: HMC5883L module (three-axis magnetic field module).
3. Use the chip: HMC5883L.
4. Power supply: 3V ~ 5V.
5. Communication modes: standard IIC communication protocol (3.3V~5V TTL).
6. Measuring range: ± 1.3-8 Gauss.
7. Size: 14mm x 13mm
Example :
More details will be shown step by step in the test file.
Download the Arduino Library for HMC5883L and extract it to your library folder in your Arduino installation. Mine is here: C: Program Files arduino-0021libraries.
Connect this module with Arduino :
Arduino GND -> HMC5883L GND
Arduino 3.3V -> HMC5883L VCC
Arduino A4 (SDA) -> HMC5883L SDA
Arduino A5 (SCL) -> HMC5883L SCL
Here we use Arduino Sensor Shield to make connection very easy.Â