Arduino Due + CMPS12 compass

It is pretty essential to have a tilt-compensated compass module on a boat that heels. The CMPS12 compass is an example that met this requirement. Compared to the CMPS11, the input voltage can now be 3.3v. The module adds a Bosch BNO055 processor to remove errors caused by tilting the module. The CMPS12 also introduced automatic calibration. Automatic calibration might sound like an improvement, but my experience was that I had to turn the compass through 360 degrees before getting good readings each time I turn it on. It looks like a dance when I do this next to ponds with the compass inside a boat.

Connections

Description Colour Arduino Due CMPS12 compass
Power 3v Orange 3.3v 3.6v - 5v
Ground Black GND GND
i2c Data White 20 Second from top
i2c Clock Blue 21 Third from top

Video

Please click thumbnail image to start the video

Video on Arduino Due + CMPS12 compass    iconI2C.png    volts33.png

Photo

Arduino Due + CMPS12 compass
Arduino Due + CMPS12 compass
Arduino Due + CMPS12 compass
Arduino Due + CMPS12 compass
Arduino Due + CMPS12 compass

Sketch