Тёмный

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

Retro Tech & Electronics
Подписаться 34 тыс.
Просмотров 53 тыс.
50% 1

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

Наука

Опубликовано:

 

1 дек 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 75   
@maxmuster9819
@maxmuster9819 7 месяцев назад
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.
@retrotechandelectronics
@retrotechandelectronics 7 месяцев назад
That’s a lot of current for an esp32 regulator
@billglass5160
@billglass5160 Месяц назад
This video deserves a 5-star rating. I have been trying to function an ESP32 program using the Adafruit_GFX.h, Adafruit_ILI9341.h, and XP2046.h librarys with little success. (The librarys seem to be targeted for the Teensy microcontroller). The Adafruit graphicstest.ino was running at turtle-speed and I had no success for the 320x240 tft display touch function. I then used the tft_espi library to find a working touch function and an extremely fast graphicstest. Very minor modifications to my program were necessary. Very valuable information in this video!!!!!
@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.
@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.
@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?
@NicholasRadina
@NicholasRadina Год назад
Thank you!! I was stuck until I found your help. Cheers!
@retrotechandelectronics
@retrotechandelectronics Год назад
Glad to help
@NicholasRadina
@NicholasRadina Год назад
Curious if you know what of the LCD pins to GPIO pin designations are able to be changed to other GPIO pins. Thanks for any help!
@sakisv4138
@sakisv4138 8 месяцев назад
Bingo, it worked at once, thanks again man you saved a lot of time!
@retrotechandelectronics
@retrotechandelectronics 8 месяцев назад
Glad to help
@abrown2637
@abrown2637 2 месяца назад
You are awesome for putting this info out there, thanks
@retrotechandelectronics
@retrotechandelectronics Месяц назад
Youre welcome
@guntherberger493
@guntherberger493 8 месяцев назад
Your explanation is fantastic, thanks 1000x from Austria/Europe ! br Günther
@retrotechandelectronics
@retrotechandelectronics 8 месяцев назад
Glad it was helpful!
@psyience3213
@psyience3213 6 месяцев назад
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.
@-Fritz-
@-Fritz- Год назад
Exceptionally well done. Thanks.
@retrotechandelectronics
@retrotechandelectronics Год назад
Glad you enjoyed it!
@mpimomimo640
@mpimomimo640 5 месяцев назад
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
@alhasan838
@alhasan838 Год назад
How can I create an interface with an image matrix
@nathanneisan5697
@nathanneisan5697 2 месяца назад
nice vids thanks, btw could you help me, mine was having only 3/4 of the screen 1/4 blank i dont know why, when i change the rotation from 1 to 3 it change from left to right what should i do ?
@lohikarhu734
@lohikarhu734 2 месяца назад
I just wondered if you have the project software Listed? Haven't had time to watch the whole video (quite ill, at the moment), sorry if you point to it in the video...
@user-fb4ly6sr3d
@user-fb4ly6sr3d 6 месяцев назад
Excellent, thanks for the detailed post
@retrotechandelectronics
@retrotechandelectronics 6 месяцев назад
Glad it was helpful!
@billcheung5326
@billcheung5326 Год назад
Great video with good help! Thanks. Can you advise how you decided with wiring of the pinout? Thanks again!
@retrotechandelectronics
@retrotechandelectronics 11 месяцев назад
I read the documentation in TFT_espi
@j-baz6454
@j-baz6454 Год назад
Great Video, Thanks!
@retrotechandelectronics
@retrotechandelectronics Год назад
Glad you enjoyed it!
@jumbo999614
@jumbo999614 22 дня назад
Do you tutorial on touch function?
@billybbob18
@billybbob18 9 месяцев назад
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.
@retrotechandelectronics
@retrotechandelectronics 8 месяцев назад
At much greater power consumption..
@jinsoku1911
@jinsoku1911 Год назад
​@retrotechandelectronics when you show the star field a capacitor suddenly shows up on the breadboard. What was that for?
@retrotechandelectronics
@retrotechandelectronics 11 месяцев назад
Cap is added on certan esp32 boards to help with brownout condition that may occur across ground and vin. not part of actual project.
@jorgezambrano6993
@jorgezambrano6993 7 месяцев назад
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. 1. #include . 2. #define TOUCH_CS 5 // Chip select pin (T_CS) of touch screen. tal cual quedan abilitado. en cuanto a la pantalla si genera las imagenes correctamente. pero al incluir el programa para la KEYPAD no funcina el touch en el monitor serie solo muestra: 13:42:44.963 -> 8�����1��V(���1�р�. el cableado esta tal cual el video
@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
@retrotechandelectronics
@retrotechandelectronics Год назад
some of your gpio maybe reserved, verify each and adjust accordingly
@santhoshv6284
@santhoshv6284 Год назад
Isn't VCC 3.3V? Supplying 5V can possibly damage circuits in the display
@pbart9821
@pbart9821 Год назад
This one has resistors to protect it
@teohjingyang3082
@teohjingyang3082 3 месяца назад
What if my tft display is a 3.5" 480x320? Are the steps the same? especially those in User_Select_.h files
@retrotechandelectronics
@retrotechandelectronics 2 месяца назад
You would need to select the line in the config for the appropriate display.
6 месяцев назад
Olá tudo bem não consegui fazer funcionar se poderia fazer mais um vídeo recente
@siewkiawTan
@siewkiawTan 6 дней назад
Hello...i like your video ... i try on a ESP32 WROOM, but e ILI9341 only able to show half screen....i try all TFT_eSPI example all display half screen... do you know how to resolved this?
@siewkiawTan
@siewkiawTan 5 дней назад
hello... can u help?
@user-xe6kg3le1x
@user-xe6kg3le1x 6 месяцев назад
hi. thank for the movie. i do like you. but the display show 80% display. can i help me with that?
@retrotechandelectronics
@retrotechandelectronics 6 месяцев назад
דוגמה עבור צג [320x240], עליך לזכור לבחור מספר 42 ב- 'user.setup.select.h' [240x320].
@DmytroSaliy
@DmytroSaliy 6 месяцев назад
Дякую. Відео дуже допомогло.
@retrotechandelectronics
@retrotechandelectronics 6 месяцев назад
Glad it helped.
@Vagubando
@Vagubando Год назад
I have letters inverted vertically on such a display. I have tried many libraries, but there is no result. Advise me where to dig ?????
@retrotechandelectronics
@retrotechandelectronics Год назад
tft.setRotation(1);
@Vagubando
@Vagubando Год назад
@@retrotechandelectronics Эта команда переворачивает ВЕСЬ экран, а мне надо ТОЛЬКО буквы в тексте. This command turns the WHOLE screen, and I ONLY need letters in the text.
@JCWren
@JCWren Год назад
Good video, be interested to see what you end up using the touchpad for. One of THE most irritating things about the Arduino/PlatformIO environment is the unnecessary recompilations. 2nd to that is suppressing useful warnings in the name of "ease of use".
@tookitogo
@tookitogo Год назад
The looniest thing is the Arduino IDE 2.0’s way of implementing code auto-completion and error detection: it’s constantly recompiling in the background. So it’s always lagging behind, and it basically can’t keep up with me. (And I am hardly some programming whiz.) I’ve moved completely to PlatformIO.
@JCWren
@JCWren Год назад
@@tookitogo I haven't looked at 2.0 yet, and it looks like I won't bother to. 2.0 is built on Eclipse, which I've never cared for (buried configuration options, difficult to move projects between machines, etc). I'm a command line kinda guy, and PlatformIO suits me much better. I'll stick with what keeps me productive.
@tookitogo
@tookitogo Год назад
@@JCWren Do you use PlatformIO within Visual Studio Code like most people, or do you run the pure CLI version? (Just curious.)
@JCWren
@JCWren Год назад
@@tookitogo Pure CLI. I use vim for it's cross-platform portability. Copy my .vimrc file from a Linux, Windows, or Mac machine, and it behaves the same everywhere.
@retrotechandelectronics
@retrotechandelectronics Год назад
I was going to use it for the sprinkler project but ended up using the lcd screen and an encoder wheel.
@tdmckee-mm8wn
@tdmckee-mm8wn Год назад
Libary? Where did the “r” go? Library.
@retrotechandelectronics
@retrotechandelectronics Год назад
.
@herrkronen9694
@herrkronen9694 4 месяца назад
What was that shitty thing with "python" ?? Do I need python in my computer to use the library ?
@appdronemap9475
@appdronemap9475 Год назад
tks
@retrotechandelectronics
@retrotechandelectronics Год назад
Yw
@GLOWUPP
@GLOWUPP Год назад
The code plz !!
@pramagetable
@pramagetable 5 месяцев назад
The code is available when you choose files>examples>tft-espi> and you choose the program you want it opens up and you just have to compile it to make it run😊
@GLOWUPP
@GLOWUPP 5 месяцев назад
@@pramagetable bro i graduate 7 months ago 🤣 i needed that for my thesis but it's okay 😅
@Vagubando
@Vagubando 9 месяцев назад
Where is the code ?
@retrotechandelectronics
@retrotechandelectronics 8 месяцев назад
In the examples section of tft_espi
@InvisiblePinkSoylent
@InvisiblePinkSoylent 8 месяцев назад
Jenny don't change your number!
@retrotechandelectronics
@retrotechandelectronics 8 месяцев назад
She wont.
@dbjindian
@dbjindian Год назад
No code no use
@retrotechandelectronics
@retrotechandelectronics Год назад
I’m not sure what that means. Is that a motto?
@dbjindian
@dbjindian Год назад
@@retrotechandelectronics yes
Далее
Cheap and Easy to Use ESP32 Screen!
8:21
Просмотров 126 тыс.
CHEAP DIY BOOST GAUGE
43:58
Просмотров 124 тыс.
iPhone 16 - 20+ КРУТЫХ ИЗМЕНЕНИЙ
5:20