ILI9341 + ESP32 Added to SimHub support.
So I searched around and the only response I saw to anyone asking for general TFT support was Wotever saying
"Unfortunately such screens coupled with Arduino were too slow for my taste that's why I won't add them in the future for official simhub support"
While arduino's are slow, I don't feel this is accurate at all. I don't know if you've taken a look at TFT_eSPI library at all, but it runs very quickly and very well. To top that off you can use the arduino API with an ESP32 which is leaps and bounds faster than a ATMEGA328P, with it also being able to communicate over Bluetooth/Wifi. I could easily foresee devices that would be able to connect wirelessly to the PC and communicate with SimHub for telemetry.
These screens are a lot faster than you might think over SPI and are completely doable. So I would love to see them being added as support. As well as the ability to compile for the ESP32 board within SimHubArduinoSetup.exe
Personally I'm working on coding for it, it's just not really my area of expertise. I'm scrounging code from here and there to put something together and I'm making some headway, but it just shows that it's completely possible to do and shouldn't be that difficult to implement for someone that knows what they're doing.
Hi ! I did experiment with esp32 indeed, it's fast with no doubt 😉 But it's a really different platform (compilation, upload etc ...) even if the language used is the same. That's something which will take some time before I will reach something mature for this platform;)
a few experiments I did :
@admin5435 hi 🙂 im totaly new ob simhub.
Im searching a while for a solution how i can get an arduino mega and ili 9341 to Work. I also have an esp32. It would be a Dreams If i can get one of These combination to Work.
Do you know how i have to Edit the Sketchfile?
Yeah can we have even a rough example sketch that you used with the esp32?
A rough outline of just getting basic communication between an esp32 and simhub would open up a world of fun work 🙂
I've been doing some work with the ESP32 and ILI9341 display on a TTGO T4 module (2.4" 320x240 screen, ESP32, IP5306 battery manager chip), and have something that works pretty well over wifi, using a com port to TCP redirector (and a TCP socket on the ESP32).
Is there somewhere I can submit pull requests or similar for the changes to get things working well on the ESP8266 and ESP32s? I've got patches to use NeoPixelBus (ESP32/ESP8266 WS2812 driver utilizing DMA for speed), ILI9341 SPI display (This one requires some memory hacks to get DMA working to drive the display reasonably - Probably ESP32 only?), and some changes to arqserial to handle swapping in a new Stream, to allow using a TCP socket.
- Here's it's reporting as a Nokia GLCD, using the Adafruit GFX library to draw tire and brake temps, ERS charge percentage, lap number, position, gap ahead, gap behind. I've got a separate screen for NewLap, which shows the laptime, delta, and colored sector time bars.
Not sure about the posters above, but I got a Github repo with support for the ESP8266 and even WiFi connection to SimHub too:
I will check if this works on the ESP32 soon
We have this working in both the ESP8266 and ESP32 with different screens and features and over serial and WiFi. As a matter of fact, zcorneli's description of their solution is how I implemented WiFi almost exactly.
We recently added the NeoPixelBus library, to be able to leverage ESP8266 and ESP32's hardware to drive LEDs in a more performant way too (FastLED can do it too, but it's more quirky).
https://discord.gg/pnAXf2p3RS (NOT SIMHUB's, this is for the project above)