GPS Receiver - davidmckechnie/IoTChallenge2015 GitHub Wiki

GPS Receiver

The GPS Receiver is one of the more complicated devices to wire up. It uses serial communication (like the modem shield) and you'll have to make sure you don't use the same pins for both. It can also use an ENABLE pin, which is recommended, so you can shut the GPS receiver down when not in use (saving battery).

The sample code (GPS.ino) expects this wiring: GPS wiring

This code also uses the SleepyDog library, which you should check out. It puts the Arduino main processor into a sleep state and wakes it up again using an interrupt, also saving battery. Even if you aren't using GPS, you'll want to use this strategy (or similar) to make sure the processor is shut down as often as possible.

This sketch also relies on the TinyGPS library, which is not part of the Arduino standard set. You can find instructions on importing a library here.

You might struggle to get a GPS fix indoors, too. If you need to track your device, you will have to factor this in, and transmit the "last known" position or similar if a GPS fix is unavailable.