This is the source code for a simple GPS tracker built using
- an Arduino,
- the SD card shield from seeedstudio, and
- the Ultimate GPS module from Adafruit.
It uses the following libraries
- SD & SPI library from the Arduino IDE distribution
- Adafruit GPS library
We use Make to build the project, thanks to the Arduino-Makefile
project.
Pins used:
- CS: 4 (not sure what this is)
- In: 11
- Out: 12
- Clock: 13
Understand how to connect the board in a circuit with the Arduino (https://learn.adafruit.com/adafruit-ultimate-gps)
- Send instructions: PIN?
- Read/log data: PIN?
- How do we know when we have a GPS fix?
- Solder button battery (CR1220) backup
- Design a simple circuit based on above understanding.
Example program can be found in the test branch.
Example echo-ing program from the Adafruit library can be found on
the test branch.
- SD+GPS: how to combine the logic in the setup()+loop() scheme?
- On power loss, revert to logging to GPS chip (under button battery power backup). When power is back, retrieve logs, and resume logging as before.