Today, we'll be looking at how to use the LinkIt ONE development board to interface with some other modules. The module we'll be looking at in this tutorial is the Adafruit Ultimate GPS Breakout Board. ( http://www.adafruit.com/products/746 )
These boards are very powerful, with on-board logging capabilities, and 66 channels. We'll be using some of the basic functions to determine your location by triangulating from 3 or more satellites.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Materials Needed
Step 2: Wiring
The wiring required for this project is fairly simple:
1. Connect VIN on the GPS to 5V power.
2. Connect GND on the GPS to a ground pin on the LinkIt ONE.
3. Connect TX and RX (Transmitting and Receiving) to RX and TX. Pay close attention. A RX pin should lead to a TX pin, and a TX pin should lead to an RX pin. This is because a board must receive what the other transmits, and transmit into a receiving pin on the other board.
Step 3: Programming
After installing the Adafruit GPS library, open up an example called "parsing". Load this example onto the LinkIt ONE Board. After this, open up a serial monitor by clicking on the icon in the upper right-hand corner of the Arduino IDE.
In this pop-up window, you should be able to see a few lines of seemingly garbled text begin to appear. Don't worry! This is just the GPS board initializing. Following this, there should be some text denoting your position and the time at your position. This may not appear at first, as it takes some time for a satellite lock to be established.
It is highly recommended that you go outdoors when operating the GPS module, since a lock can't be obtained without a direct line of sight to the sky.
Step 4: Conclusion
There you have it! You have now successfully pinged off of three-plus satellites to get your position. The example program included in this tutorial parsed out all of the information for easy reading. Try experimenting around with the other examples, or try writing your own code! Be sure to share what you find, and don't hesitate to ask any questions!