Teensy 3.6 + CMPS10 compass

This is a good tilt compensation compass.

Output


$CMP,140,-7,0	$ACC,-0.0322,-0.1055,1.0156
$CMP,140,-7,0	$ACC,-0.0156,-0.1084,0.9834
$CMP,140,-7,0	$ACC,-0.0400,-0.1045,0.9834
$CMP,140,-7,0	$ACC,-0.0576,-0.0752,0.9766

Photo

Using 1.8k ohms resistors
Can not read the gyro.

I2C protocol3.3 volts

Fritzing

Image developed using Fritzing

copy/paste Sketch