This project consists of (a) an Arduino board collecting GPS coordinates and sending them to the web server and (b) a Django application storing and displaying location data.
- Arduino Mega 2560: amazon
- GY-NEO6MV2 GPS module: amazon
- SIM800L EVB GSM module: amazon + micro SIM card with data connection
- Micro SD card module: amazon + micro SD card
- 2A 5V power supply, e.g. a powerbank
| GY-NEO6MV2 pin | Connected to |
|---|---|
| VCC | 5V power supply |
| RX | GND |
| TX | Arduino pin 17 (Serial2 RX pin) |
| GND | GND |
| SIM800L EVB pin | Connected to |
|---|---|
| 5VIN | 5V power supply |
| GND | GND |
| TXD | Arduino pin 19 (Serial1 RX pin) |
| RXD | Arduino pin 18 (Serial1 TX pin) |
| Micro SD pin | Connected to |
|---|---|
| CS | Arduino pin 53 |
| SCK | Arduino pin 52 |
| MOSI | Arduino pin 51 |
| MISO | Arduino pin 50 |
| VCC | Arduino 5V pin |
| GND | GND |
- Install libraries listed in
arduino/libraries.txt: cd arduino/track; cp settings.cpp.template settings.cppand set correct values insettings.cpp
Settings files are located in web/track/settings/.
- Go to the website, create account, log in and create a device
- Copy the generated API key to
api_keyinarduino/track/settings.cpp - Upload
track.inosketch to Arduino - Go to the device page and have a look at the data collected
The whole setup draws around 200 mA on average, out of which 80 mA is drawn by the Arduino board.
- HTTPS
- Timestamps in user timezone
