Using a 2.8in SPI LCD Touchscreen ILI9341 with an ESP32 on the new Arduino IDE 2

  Переглядів 44,684

Retro Tech & Electronics

Retro Tech & Electronics

Рік тому

Today well be interfacing the 2.8 inch SPI LCD Touchscreen with the ILI9341 chipset to an ESP32 using the new Arduino IDE 2.X Taking advantage of both display and touchscreen features, though well skip the SD card as its just an addon to the board not directly connected to these systems. I have a separate video for SD card interfacing. Out setup will not be powered through the ESP32 so I'm setting up an HW-131, a well known cheap DC power supply for this task.
HiLetgo ILI9341 2.8" SPI TFT LCD Display Touch Panel 240X320 with PCB 5V/3.3V STM32
amzn.to/3LtJIh8
First Ill actually be installing the new IDE version 2.0 because I dont actually have it. Though its much more streamlined than the 1.x series of Arduino IDE. It also allows for a per project board configuration which is quite an improvement over the old version. I make sure that TDT_ESPI library is installed; in my case it is, but the latest should be installed.
Following library installation, some library configurations will be made in support of out device. In particular, setup 42 will be addressed in a few files. Once these changes are made the physical wiring will be made between the two devices as demonstrated in the video. Note I did make a mistake in the wiring, it did work but wasn't ideal and caught an interesting quirk.
In the Arduino IDE I first attempt an easy example under 320x240 to ensure correct operation and wiring of the device, finding quickly a python issue on my system, easily corrected. The next attempt shows the example working correctly. Following this a touchscreen example is loaded for testing, which proves to also work correctly, completing this demonstration.
#esp32 #arduinoide #arduino

КОМЕНТАРІ: 65
@-Fritz-
@-Fritz-
Exceptionally well done. Thanks.
@maxmuster9819
@maxmuster9819
Well done. Thanks. I use the 3.3V from the ESP32 for the power supply of the display (v1.2), and it works without any issues.
@NicholasRadina
@NicholasRadina Рік тому
Thank you!! I was stuck until I found your help. Cheers!
@billfield8300
@billfield8300
Good demonstration and explanation. You mentioned that the device uses quite a bit of power.. Do you have a value for that? Do you know how much current it draws? That would be helpful for me. I have a datasheet but it is quite lacking in electrical information. Thanks.
@markuspfaff5504
@markuspfaff5504
good and interesting video, thank you. Is there a way in the parameters that the displayed text on the button can be centered vertically? At the moment it looks like the text is slightly vertically shifted upwards.
@sakisv4138
@sakisv4138
Bingo, it worked at once, thanks again man you saved a lot of time!
@guntherberger493
@guntherberger493
Your explanation is fantastic, thanks 1000x from Austria/Europe ! br Günther
@user-fb4ly6sr3d
@user-fb4ly6sr3d
Excellent, thanks for the detailed post
@billcheung5326
@billcheung5326
Great video with good help! Thanks. Can you advise how you decided with wiring of the pinout? Thanks again!
@psyience3213
@psyience3213
I recently bought the "UNO R3 2.8 Inches TFT Touch Screen with SD Card Socket" and one major problem was that the header files took up over 50% of the program memory. That left just less than 16k bytes, and I wanted to program up 4 or 5 simple games for it so it REALLY was not a lot of memory left. Sure it's got an sd card slot which is cool for adding sprites and stuff but there isn't a simple way around the lack of program space left over.
@mrblack3020
@mrblack3020 Рік тому
I have a blank white screen when i connect my t_clk to pin 18. The screen works with it not pluged in but then i have no touch screen any ideas?
@billybbob18
@billybbob18
You can get a 40mhz clock on that display by modding a few lines in the TFT _eSPI library. That combination can give you crazy frame rates.
@alhasan838
@alhasan838 Рік тому
How can I create an interface with an image matrix
@j-baz6454
@j-baz6454 Рік тому
Great Video, Thanks!
@mpimomimo640
@mpimomimo640
Please assist i Have a esp32 DA Module with 38 pins and a TFT 240mmx320mm touchscreen , i followed the respective steps on your video, and my screen is just white
@jinsoku1911
@jinsoku1911
​@retrotechandelectronics when you show the star field a capacitor suddenly shows up on the breadboard. What was that for?
@luckylazer3938
@luckylazer3938 Рік тому
I’m kinda stuck on a white screen. I followed every step along the way but no luck. I am using a custom pcb with a WROOM-32E
@santhoshv6284
@santhoshv6284 Рік тому
Isn't VCC 3.3V? Supplying 5V can possibly damage circuits in the display
@DmytroSaliy
@DmytroSaliy
Дякую. Відео дуже допомогло.
@jorgezambrano6993
@jorgezambrano6993
Hola.. te cuento, tengo la pantalla tft 2.8 y el esp32. pero no logro que funcione el touch. he realizado todo tal cual lo muestras en tu video.
Артем Пивоваров х Klavdia Petrivna - Барабан
03:16
Artem Pivovarov
Переглядів 1,7 млн
Підставка для яєць
00:37
Afinka
Переглядів 63 тис.
Using a 2.8in SPI LCD Touchscreen ILI9341 with an ESP32 on Platformio
13:18
Retro Tech & Electronics
Переглядів 8 тис.
3.5" TFT Color TOUCH Display-DRIVER ILI9488 for NodeMcu ESP32
8:06
Saravanan AL
Переглядів 23 тис.
Cheap and Easy to Use ESP32 Screen!
8:21
Brian Lough
Переглядів 97 тис.
Arduino-friendly 240x320 LCD Display Tutorial (ILI9341)
21:05
Davy Wybiral
Переглядів 80 тис.
ILI9341 SD card or other problems with ESP32? Try this.
4:45
XTronical
Переглядів 12 тис.
Simple ILI9341 LCD Display With ESP32 Dev Module Step By Step
10:11
ShotokuTech
Переглядів 39 тис.
Артем Пивоваров х Klavdia Petrivna - Барабан
03:16
Artem Pivovarov
Переглядів 1,7 млн