3-Axis Compass module, I2C based QMC5883 digital compass. This ASIC is equipped with high resolution magneto-resistive sensors and a 16-bit ADC. It provides compass heading accuracy up to 1° to 2°. Signal conditioning like amplification, automatic degaussing strap drivers and offset cancellation are inbuilt. User can connect any 3.3V to 5V DC power supply.
- I2C interface
- Compatible with 3.3V-5.0V voltage level
- Max 200Hz output rate
- High heading accuracy
Below is a register map that might help you understand what you can get from this module. There are totally 14 registers provided by QMC5883L. Two Control Registers decide the working mode of the device, they come with address “09H” and “0AH”. Most of the remaining registers are read only data output registers, status register and identification registers.
In this example we will make the module output the heading angle between South and this module.
- Connect the QMC5883L Electronic Compass to Arduino via the I2C port. Make sure the QMC5883L module is horizontal。
- Download the library file: QMC5883L Compass library .Unzip it into the libraries file of Arduino IDE by the path: ..\arduino-1.x.x\libraries.
- Open the demo by the path:File -> Example ->DFRobot_QMC5883\QMC5883_compass
- Upload the Code.
- Check the output result by opening the serial monitor.