TD-CMP04 Compass v2 |
|
Front view. |
TD-CMP04 Compass v2.
Module Software Updated on Dec. 27, 2011. |
Circuit explanation / Getting started:
PIC18F25k20 | The 18F25k20 offers high speed and low power operation. Well suited for a portable application such as this one. | |
HMC5883 | Digital 3-axis compass IC | |
Push button |
Short press to power up the
compass (LED starts to flash.) Long press (5 seconds) to start calibration. |
|
LED |
Flashing fastly when the compass
is ON. Stays lit when heading (top of the box as shown above) is close to North (from heading 355° to 5°) Flashing slowly when requesting calibration (push button for 5 seconds.) Stays lit for calibration (for 10 seconds.) Low current red LED for power saving. |
|
Calibration |
|
Screenshots:
front view, cover removed |
bare PCB - populated backside |
|
|
|
|
|
||
|
||
Tools:
Check out our development tools page.
The PIC code was made with the PCWH CCS compiler ($500,-); you can install Microchip's MPLAB IDE (click on the link and you can get it for free) with it to get things running smoothly.
Programming of the PIC was done with a GTP-USB+ hardware programmer along with the WinPic800 software.
Eagle 4.11e was used for the schematic & PCB layout.