/TrolaESP32

Home LED_MATRIX bus arrivals

Primary LanguageC++

TrolaESP32

Home bus arrivals on 4*8x8 LED MATRIX display.
IMAGE ALT TEXT HERE

ESP32 for Arduino IDE (C++) to get started

Arduino Libraries used

API used to get trola arrivals

Hardware used

Connections

ESP32 MAX7219 8x8 LED Matrix
VIN VCC
GND GND
GPIO12 DIN
GPIO15 CS
GPIO14 CLK

Adapt for your station

client.println("GET https://www.trola.si/[yourStationNumber]/[yourBusNumberOptional]/ HTTP/1.0");

Use trola.si or use documentation to figure your station number and your http request. Try it out in postman also add params so you get json formatted response.

key Value
Accept application/json

Paste json result in ArduinoJson Assistant and you will get all the data you need to customize the code for your needs. Then you can use this simple example to understand how it works.

Problems with connecting to the ESP32 in Windows 10

In my case the device was connected. I had the latest windows 10 drivers for the esp32 but I could not upload to the esp32. So I downgraded the driver for windows 7/8/8.1 it has the (default) tag, and that fixed the problem for me.