The magnetometer detects magnetic north and then represents your heading in degrees with north
being 0 degrees, east being 90 degrees, south being 180 degrees and west being 270. Pretty cool!
Now let’s put this compass to good use!
Hardware Hookup
Ready to start hooking everything up? Check out the wiring diagram below to see how everything is
connected.
Polarized
Components
Payspecialattentiontothecomponent’smarkingsindicatinghowtoplaceiton
thebreadboard.Polarizedcomponentscanonlybeconnectedtoacircuitinone
direction.