ILI9341 + ESP32 Add...
 
Notifications
Clear all

ILI9341 + ESP32 Added to SimHub support.

11 Posts
9 Users
4 Reactions
7,258 Views
(@siralucard)
Active Member
Joined: 3 years ago
Posts: 2
Topic starter  

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.

[img] [/img]

 


   
itsmevr26 and Mcfly2211 reacted
Quote
(@siralucard)
Active Member
Joined: 3 years ago
Posts: 2
Topic starter  

@admin5435 - I would love to hear your thoughts.


   
Mcfly2211 reacted
ReplyQuote
(@admin5435)
Prominent Member Admin
Joined: 7 years ago
Posts: 732
 

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 : 


   
Mcfly2211 reacted
ReplyQuote
(@mcfly2211)
New Member
Joined: 3 years ago
Posts: 1
 

@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? 

Best regards

This post was modified 3 years ago by Mcfly2211

   
ReplyQuote
(@flexgrip)
New Member
Joined: 3 years ago
Posts: 2
 

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 🙂


   
ReplyQuote
(@mbohben)
Active Member
Joined: 3 years ago
Posts: 7
 

@admin5435 any clue to the code that used on the esp32 would helpfull


   
ReplyQuote
(@zcorneli)
New Member
Joined: 2 years ago
Posts: 2
 

@admin5435,

 

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.

 

https://imgur.com/a/814zNj6

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

This post was modified 2 years ago by zcorneli

   
ReplyQuote
 bfgr
(@bfgr)
New Member
Joined: 2 years ago
Posts: 1
 

@zcorneli 

Awersome idea, byu any chance do you have a github repo for this ?


   
ReplyQuote
(@ecrowne)
Active Member
Joined: 2 years ago
Posts: 5
 

Not sure about the posters above, but I got a Github repo with support for the ESP8266 and even WiFi connection to SimHub too:

https://github.com/eCrowneEng/ESP-SimHub

I will check if this works on the ESP32 soon


   
ReplyQuote
(@ecrowne)
Active Member
Joined: 2 years ago
Posts: 5
 

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)


   
ReplyQuote
(@angelcc19)
Active Member
Joined: 3 months ago
Posts: 4
 

@admin5435 what kind of lcd is that, did you use de dahsboard from simhub or use a hmi template like nextion?


   
ReplyQuote
Share: