-
Notifications
You must be signed in to change notification settings - Fork 9
Installation
Quyen Tran edited this page Mar 2, 2016
·
20 revisions
- Download the Arduino Software (IDE) from the website. https://www.arduino.cc/en/Main/Software
- Install the Arduino Software (IDE).
- Download the "Adafruit GPS Library" from https://learn.adafruit.com/adafruit-ultimate-gps/arduino-wiring.
- Extract the files to the "libraries/Adafruit_GPS" directory in the Arduino Software (IDE) installation location.
For example: C:\Program Files (x86)\Arduino\libraries\Adafruit_GPS
- Arduino board
- GPRS shield
- GPS board
- USB cable (printer form factor)
- SIM card (regular-sized SIM or use an adapter)
- See https://learn.adafruit.com/adafruit-ultimate-gps/arduino-wiring for wiring instructions.
- A wired board for Code for MIA is:
- Download the 3 program files from the repository (Only GPS-GPRS is needed - other files are for reference).
- GitHub provides a zip file to be downloaded for the repository.
- Open the Arduino Sofware (IDE).
- Load the "GPS-GPRS" file
- Although the files may work when placed in the same directory, it is advised to put the file in a separate directory if the IDE cannot load the file.
- Notice in the "GPS-GPRS" file that there is a "#include <Adafruit_GPS.h>" entry. This references the "Adafruit_GPS" directory we obtained earlier.
- (Optional) Specify IP address of server to send data (GET REQUEST).
- Compile the program. It should be successful.
- Connect the GPS Tracker to the computer.
- In the Tools directory, select the correct Port if needed.
- Upload the program to the GPS Tracker.
- Once plugged into a power supply, the GPS Tracker automatically attempts to obtain a GPS signal and send the data through the cellular connection with the SIM card.
- The time to obtain the GPS signal can take up to 10 minutes (usually 5 minutes), so wait for it.
- The Serial Monitor in the IDE (Tools/Serial Monitor) can be used to view the debug messages of the Arduino board.
- Use the Code for Miami LeafletTransit web app to view new location data sent by the GPS Tracker.
- As a caution, the pins on the GSM and Arduino boards may be loose. Make sure the GPS board has power and pins are connected as part of debugging any issue.