百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
T

TTGO-T-Beam-Car-Tracker

> 编程语言
开源

TTGO-T-Beam Arduino 汽车追踪器 - ESP32 + LoRa + GPS + GSM (可选)

195 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

TTGO-T-Beam Arduino 汽车追踪器 - ESP32 + LoRa + GPS + GSM (可选)

This project is no longer maintenaned.

Car GPS tracker with TTGO-T-Beam

ESP32 + GPS + LoRa + GSM (optional)

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.

1. Backend setup

  1. If you don't already have it, set up The Things Network account
  2. Create new Application in TTN Applications Console
  3. Add a new device for your new TTN application and select ABP Activation Method
  4. Insert Network Session Key, App Session Key and Device Address to file config.h in Arduino project
  5. Upload sketch to your board, you can program the T-Beam using the Arduino ESP32 board Heltec_WIFI_LoRa_32
  6. In your TTN application, in section Payload formats select Cayenne LPP
  7. In Integrations section, select Cayenne
  8. Fill Process ID (choose any name you prefer), select Default Access Key and click on Add integration
  9. Log in to myDevices Cayenne, on the top click on + and enter project name
  10. Click on Add new -> Device/Widget -> LoRa -> The Things Network -> Cayenne LPP
  11. Choose your Name and fill out DevEUI (copy Device EUI from TTN Console). Then select Activation Mode -> Already Registered, Tracking -> This device moves. Click Add device.
  12. If your tracker already sent any data to TTN, you'll see bunch of data fields. You can drag them to your Cayenne project.
  13. Install the Cayenne mobile app to your Android/iPhone.

That's it

Cayenne Screenshot

This is how it will look like when data is received by TTN and Cayenne.

Cayenne data fields

  • After these steps, you will see these data fields in Cayenne Dashboard:

Note: In GPS field, there is also GPS altitude information available.

Optional fields, you can choose to send them in the program:

  • Analog Input (5): Battery voltage (in volts)
  • Analog Input (6): If tracker is moving, this field is GPS speed, in km/h
  • Analog Input (7): Number of satellites, that the GPS module currently 'sees'
  • Analog Input (8): Approximate tracker's altitude calculated from barometric air pressure

2. Wiring

⚠️ 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.

3. Libraries needed

  • ESP32 Core for Arduino (installation with Boards Manager)
  • TinyGPS++
  • CayenneLPP
  • BME280-I2C-ESP32
    • Delete / uninstall original Adafruit BME280 library after installing this, otherwise it will cause conflicts!
  • Arduino-LMIC

Update config.h

If you haven't already, update with your own TTN keys - ABP authentication

TTN Keys

These are the keys you will need from the TTN console (marked yellow).

Hardware

  • TTGO-T-Beam

    • ESP32 + GPS + LoRa
  • A6 GSM/GPRS module (work in progress, not yet implemented!)

    • For places without LoRaWAN coverage - sends a link to Google Maps position via an SMS
  • BME/BMP280 module

    • For temperature, humidity, and atmospheric pressure reporting
    • Fully implemented and working with the sketch

Reference

TTGO-T-Beam Specifications

…

TTGO T-Beam Pin Map

First prototype

TODO

  • A6 GSM module is not yet implemented
    • I'll be adding this "backup" comms feature someday
  • Add serial terminal console via WiFi AP
    • To watch output & debug messages (Websockets?)

Further improvement

You are welcome to contribute to this project in any way. (Submit an issue, bug report, fork and improve...) Suggestions & feedback is much appreciated.

Credits

  • Thanks to DeuxVis for his Lora-TTNMapper-T-Beam which came as an inspiration for this project
  • Huge thanks goes to my beloved wife for helping me to buy us a new car I love you Evka.❤️

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C++batterycarcayennecayennelpp

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言