I am enjoying the ESP32 course (mainly revision but that never hurts). I was hoping to see a page on connecting a TFT and preferably with touch functionality as I have failed to find a library that works for the ESP32 that works as yet. Does anybody know a link to a resource? I have got it displaying all the usual test graphics- its the touch response I cannot get working. Thanks in advance
Have you considered using the Nextion display with the ESP32? It works with simple serial commands, so you can always use the ESP32 or any microcontroller…
Some of those TFT libraries aren’t compatible with the ESP32, so that’s why you can’t find tutorials on that subject…
Many thanks for the heads up on the state of play with the TFT libraries. I had more or less guessed the libraries were not there yet. I was hoping theywere and I had missed them. I have taken your advice and ordered (a much more expensive) Nextion UART HMI display. Now I want a tutorial on that 🙂
I have found your tutorial for the Uno
which is great. Do you have the adjustments to the NexConfig.h file to suit the ESP32 to hand?
I am sure I could work it out but it would be a good update of the tutorial anyway…
Thanks in advance, Steve
At the moment I don’t have any tutorials on that subject (ESP32 with Nextion), but I’ll definitely write a tutorial about it in the upcoming weeks. In the meanwhile, I recommend watching this YouTube video: https://www.youtube.com/watch?v=FSRx8h8iBnk
- At 5:48, you can find the NextConfig.h file that he uses;
- At 11:46, you can find how to connect it GPIO 17 <-> RX and GPIO 16 <-> TX.
If you have any problems just let me know. Which Nextion display did you order and what’s the size?
Rui, I will watch those videos for sure, thanks for the info.
I ordered a 2.4″ model from eBay (its not enhanced although actually a RTC would be nice as it would save a module…I might buy another later but they are not cheap!)
I am building a bicycle power meter (also speed, cadence, distance, temperature,altitude, heartrate) so this is the ideal size. Paired with one ESP32 at the monitor and another down on the cranks where the strain gauges *wheatstone bridge + amplifier) sit- they can communicate via BlueTooth LE. I am struggling to communicate with a cheap wireless 4.0GHZ heartrate belt but I haven’t read your bluetooth pages yet 🙂
Yes, the video that I’ve mentioned should work with that display and I’ll definitely try to write a tutorial about the ESP32 with Nextion in a few weeks, but right now I already have other projects lined up. Let me know if you have more questions about BLE in the future.
Please help me on how to make the touch function is successfully implemented. I am right now try out to integrate IL9341 TFT for ESP32 but is seems fail. The display and printing function is work but not touch function. It works but at half of the LCD screen. Half of it if we touch them they are not working.
Please share if you are able to run it successfully.
I’ve never experimented with those displays.
However, for what we heard from our readers those displays are very sensitive, specially if they are chinese. They come broken many times, that can be the issue.
It can also be a calibration problem.
I don’t have any experience with those displays. Do you get any errors on the serial monitor?