Skip to content
Quyen Tran edited this page Mar 2, 2016 · 20 revisions

Install Arduino software (optional)

  1. Download the Arduino Software (IDE) from the website. https://www.arduino.cc/en/Main/Software
  2. Install the Arduino Software (IDE).
  3. Download the "Adafruit GPS Library" from https://learn.adafruit.com/adafruit-ultimate-gps/arduino-wiring.
  4. 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

Setup Hardware

Components

  1. Arduino board
  2. GPRS shield
  3. GPS board
  4. USB cable (printer form factor)
  5. SIM card (regular-sized SIM or use an adapter)

Connect hardware

  1. See https://learn.adafruit.com/adafruit-ultimate-gps/arduino-wiring for wiring instructions.
  2. A wired board for Code for MIA is:
    Connected Arduino board

Download Program Files From Repository

  1. Download the 3 program files from the repository (Only GPS-GPRS is needed - other files are for reference).
  2. GitHub provides a zip file to be downloaded for the repository.
  3. Open the Arduino Sofware (IDE).
  4. 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.
  1. Notice in the "GPS-GPRS" file that there is a "#include <Adafruit_GPS.h>" entry. This references the "Adafruit_GPS" directory we obtained earlier.
  2. (Optional) Specify IP address of server to send data (GET REQUEST).
  3. Compile the program. It should be successful.
  4. Connect the GPS Tracker to the computer.
  5. In the Tools directory, select the correct Port if needed.
  6. Upload the program to the GPS Tracker.

Initial Testing

  1. 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.
  2. The time to obtain the GPS signal can take up to 10 minutes (usually 5 minutes), so wait for it.
  3. The Serial Monitor in the IDE (Tools/Serial Monitor) can be used to view the debug messages of the Arduino board.
    Arduino IDE Serial Monitor
  4. Use the Code for Miami LeafletTransit web app to view new location data sent by the GPS Tracker.
  5. 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.