Teensy 3.6 + US Digital MA3

Wind vane direction

Output


1052  
1051
1058
1060
1062
5
8
10
13

Photo

5 volts

Using the MA3 to detect the wind direction. Notice I'm running the MA3 at 3.3v and not at 5v, as I should. The max reading can be used to equal 360 degrees.

Fritzing

Image developed using Fritzing

Sketch