TTGO-T-Beam Arduino Car Tracker - ESP32 + LoRa + GPS + GSM (optional)
TTGO-T-Beam Arduino Car Tracker - ESP32 + LoRa + GPS + GSM (optional)
This project is no longer maintenaned.
This is an Arduino project for the TTGO T-Beam ESP32 development board, which has LoRa chip onboard. Cayenne backend provides very nice web visualization, and also provides free Android/iPhone apps, where you can watch your car's position and indoor climate. This project uses Cayenne Low Power Payload packet format to transfer GPS coordinates and some car's indoor climate data. It has adaptive packet rate, meaning that when the car moves, tracker starts to 'burst' sending packets to update the trajectory as precise as possible. The myDevices Cayenne for LoRa connection is made through The Things Network LoRaWAN cloud.
You can find docs about Cayenne Low Power Payload (LPP) here.
I'll try to describe whole project setup as best I can.
config.h in Arduino projectHeltec_WIFI_LoRa_32Cayenne LPPCayenne+ and enter project nameThis is how it will look like when data is received by TTN and Cayenne.
Note: In GPS field, there is also GPS altitude information available.
Optional fields, you can choose to send them in the program:
⚠️ You need to connect the T-Beam LoRa DIO1 pin marked as Lora1 to the pin 33 - So that the ESP32 can read that output from the Lora module.
Optionally you can also connect the Lora2 output to GPIO 32, but this is not needed here.
Connect the BME/BMP280 module's SDA line to pin 21 and SCL to pin 22 on the TTGO.
If you want a more reliable data line (if the wires are long for some reason), you can add pull-up resistors on SDA and SCL lines.
Any value from 2.2k to 10k should be OK.
VCC of the module to 3V3 and GND to GND of course.
config.hIf you haven't already, update with your own TTN keys - ABP authentication
These are the keys you will need from the TTN console (marked yellow).
TTGO-T-Beam
A6 GSM/GPRS module (work in progress, not yet implemented!)
BME/BMP280 module
…You are welcome to contribute to this project in any way. (Submit an issue, bug report, fork and improve...) Suggestions & feedback is much appreciated.
No open issues yet, or sync has not completed.