Hi all,
I have another small project to show base on HMC58833 digital compass.
Material:
1. http://www.lelong.com.my/digital-compass-hmc5883-pic32-pic18-arduino-stm32-gigasitron-172768871-2017-01-Sale-P.htm
2. http://www.lelong.com.my/pic18-gigasitron-172784154-2017-01-Sale-P.htm
3.http://www.lelong.com.my/pic32-pic18f-arduino-tft-lcd-module-1-44-gigasitron-161706788-2016-03-Sale-P.htm
4. http://www.lelong.com.my/pickit-3-compatible-pickit3-microchip-debugger-pic18-pic32-mcu-gigasitron-160567440-2016-02-Sale-P.htm
5. Mini USB cable
Program flow:
1.Open I2C
2. Configure HMC5883 to continuous read data
3. Convert X, Y , Z to angle degree
4. Display on Color LCD
Video:
*Source code : will be upload later. Need to touch up.