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

Поделиться
HTML-код
  • Опубликовано: 1 дек 2022
  • 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
  • НаукаНаука

Комментарии • 74

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

  • @billglass5160
    @billglass5160 Месяц назад +1

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

  • @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!

  • @guntherberger493
    @guntherberger493 8 месяцев назад

    Your explanation is fantastic, thanks 1000x from Austria/Europe ! br Günther

  • @abrown2637
    @abrown2637 Месяц назад

    You are awesome for putting this info out there, thanks

  • @-Fritz-
    @-Fritz- 11 месяцев назад

    Exceptionally well done. Thanks.

  • @user-fb4ly6sr3d
    @user-fb4ly6sr3d 6 месяцев назад

    Excellent, thanks for the detailed post

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

  • @j-baz6454
    @j-baz6454 Год назад

    Great Video, Thanks!

  • @psyience3213
    @psyience3213 6 месяцев назад +1

    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.

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

  • @billybbob18
    @billybbob18 8 месяцев назад

    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.

  • @billcheung5326
    @billcheung5326 11 месяцев назад

    Great video with good help! Thanks. Can you advise how you decided with wiring of the pinout? Thanks again!

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

  • @DmytroSaliy
    @DmytroSaliy 5 месяцев назад

    Дякую. Відео дуже допомогло.

  • @alhasan838
    @alhasan838 Год назад

    How can I create an interface with an image matrix

  • @luckylazer3938
    @luckylazer3938 Год назад +1

    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

  • @jinsoku1911
    @jinsoku1911 11 месяцев назад

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

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

  • @mpimomimo640
    @mpimomimo640 4 месяца назад

    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

  • @Ryanous-yw1wj
    @Ryanous-yw1wj День назад

    i worked on my project i try what you did on the vidio, but my display only show white screen, do my esp32 or my display make this thing ?

  • @nathanneisan5697
    @nathanneisan5697 Месяц назад

    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 ?

  • @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 Год назад +2

      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 Год назад +2

      @@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 Год назад +1

      @@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  Год назад +2

      I was going to use it for the sprinkler project but ended up using the lcd screen and an encoder wheel.

  • @santhoshv6284
    @santhoshv6284 Год назад +1

    Isn't VCC 3.3V? Supplying 5V can possibly damage circuits in the display

    • @pbart9821
      @pbart9821 Год назад

      This one has resistors to protect it

  • @jumbo999614
    @jumbo999614 6 дней назад

    Do you tutorial on touch function?

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

  • @teohjingyang3082
    @teohjingyang3082 2 месяца назад

    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.

  •  5 месяцев назад

    Olá tudo bem não consegui fazer funcionar se poderia fazer mais um vídeo recente

  • @user-xe6kg3le1x
    @user-xe6kg3le1x 5 месяцев назад

    hi.
    thank for the movie.
    i do like you. but the display show 80% display.
    can i help me with that?

    • @retrotechandelectronics
      @retrotechandelectronics  5 месяцев назад

      דוגמה עבור צג [320x240], עליך לזכור לבחור מספר 42 ב- 'user.setup.select.h' [240x320].

  • @appdronemap9475
    @appdronemap9475 11 месяцев назад

    tks

  • @Vagubando
    @Vagubando Год назад +1

    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  Год назад +2

      tft.setRotation(1);

    • @Vagubando
      @Vagubando Год назад

      @@retrotechandelectronics Эта команда переворачивает ВЕСЬ экран, а мне надо ТОЛЬКО буквы в тексте.
      This command turns the WHOLE screen, and I ONLY need letters in the text.

  • @tdmckee-mm8wn
    @tdmckee-mm8wn Год назад

    Libary? Where did the “r” go? Library.

  • @GLOWUPP
    @GLOWUPP Год назад +2

    The code plz !!

    • @pramagetable
      @pramagetable 4 месяца назад

      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 4 месяца назад +1

      @@pramagetable bro i graduate 7 months ago 🤣 i needed that for my thesis but it's okay 😅

  • @InvisiblePinkSoylent
    @InvisiblePinkSoylent 8 месяцев назад

    Jenny don't change your number!

  • @Vagubando
    @Vagubando 9 месяцев назад

    Where is the code ?

  • @herrkronen9694
    @herrkronen9694 4 месяца назад

    What was that shitty thing with "python" ?? Do I need python in my computer to use the library ?

  • @dbjindian
    @dbjindian Год назад

    No code no use