Hardware Reference
In-Depth Information
micro-Tesla (uT)) */
Serial . print ( "X: " ); Serial . print ( event . magnetic . x );
Serial . print ( " " );
Serial . print ( "Y: " ); Serial . print ( event . magnetic . y );
Serial . print ( " " );
Serial . print ( "Z: " ); Serial . print ( event . magnetic . z );
Serial . print ( " " ); Serial . println ( "uT" );
delay ( 500 );
}
Open the serial monitor again and make sure you don't get the
“Ooops, no LSM303 detected … Check your wiring!” warning.
You should see the X, Y, and Z values change as you move your
NeoGeo Watch around.
Now that you have confirmed all of the sensors are working, it is
time to modify the main NeoGeo Watch sketch. Find this part of
the code near the top of the sketch:
//--------------------------------------------------|
// WAYPOINT |
//--------------------------------------------------|
//Please enter the latitude and longitude of your |
//desired destination: |
#define GEO_LAT 44.998531
#define GEO_LON -93.230322
//--------------------------------------------------|
//Your NeoPixel ring may not line up with ours. |
//Enter which NeoPixel led is your top LED (0-15). |
#define TOP_LED 1
//--------------------------------------------------|
//Your compass module may not line up with ours. |
//Once you run compass mode, compare to a separate |
//compass (like one found on your smartphone). |
//Point your TOP_LED north, then count clockwise |
//how many LEDs away from TOP_LED the lit LED is |
#define LED_OFFSET 0
//--------------------------------------------------|
We like iTouchMap for finding latitudes and longitudes online.
Dump in a location, such as your house, so you will always be
able to find your way home.
We also know that your NeoPixel ring and compass sensor won't
line up perfectly with our design (even our two prototypes didn't
line up exactly). So, we made it easy for you to calibrate your
watch. The first thing you want to do is calibrate your NeoPixel
Search WWH ::




Custom Search