Teensy 3.6 + CMPS11 compass

This is a good tilt compensation compass.

Output


$CMP,140,-7,0

Photo

Using 1.8k ohms resistors

I2C protocol3.3 volts

Fritzing

Image developed using Fritzing

copy/paste Sketch