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

แชร์
ฝัง
  • เผยแพร่เมื่อ 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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 66

  • @maxmuster9819
    @maxmuster9819 4 หลายเดือนก่อน

    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.

  • @-Fritz-
    @-Fritz- 9 หลายเดือนก่อน

    Exceptionally well done. Thanks.

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

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

  • @sakisv4138
    @sakisv4138 5 หลายเดือนก่อน

    Bingo, it worked at once, thanks again man you saved a lot of time!

  • @guntherberger493
    @guntherberger493 5 หลายเดือนก่อน

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

  • @markuspfaff5504
    @markuspfaff5504 11 หลายเดือนก่อน

    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.

  • @psyience3213
    @psyience3213 3 หลายเดือนก่อน

    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.

  • @user-fb4ly6sr3d
    @user-fb4ly6sr3d 3 หลายเดือนก่อน

    Excellent, thanks for the detailed post

  • @billcheung5326
    @billcheung5326 9 หลายเดือนก่อน

    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?

  • @j-baz6454
    @j-baz6454 ปีที่แล้ว

    Great Video, Thanks!

  • @alhasan838
    @alhasan838 ปีที่แล้ว

    How can I create an interface with an image matrix

  • @billybbob18
    @billybbob18 6 หลายเดือนก่อน

    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.

  • @mpimomimo640
    @mpimomimo640 2 หลายเดือนก่อน

    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 9 หลายเดือนก่อน

    ​@retrotechandelectronics when you show the star field a capacitor suddenly shows up on the breadboard. What was that for?

    • @retrotechandelectronics
      @retrotechandelectronics  8 หลายเดือนก่อน

      Cap is added on certan esp32 boards to help with brownout condition that may occur across ground and vin. not part of actual project.

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

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

  • @jorgezambrano6993
    @jorgezambrano6993 4 หลายเดือนก่อน

    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

  • @PIAUISOLAR
    @PIAUISOLAR 3 หลายเดือนก่อน

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

  • @teohjingyang3082
    @teohjingyang3082 32 นาทีที่ผ่านมา

    What if my tft display is a 3.5" 480x320? Are the steps the same? especially those in User_Select_.h files

  • @DmytroSaliy
    @DmytroSaliy 3 หลายเดือนก่อน

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

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

  • @user-xe6kg3le1x
    @user-xe6kg3le1x 3 หลายเดือนก่อน

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

    • @retrotechandelectronics
      @retrotechandelectronics  3 หลายเดือนก่อน

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

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

  • @appdronemap9475
    @appdronemap9475 9 หลายเดือนก่อน

    tks

  • @tdmckee-mm8wn
    @tdmckee-mm8wn ปีที่แล้ว

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

  • @GLOWUPP
    @GLOWUPP ปีที่แล้ว +2

    The code plz !!

    • @pramagetable
      @pramagetable 2 หลายเดือนก่อน

      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 2 หลายเดือนก่อน +1

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

  • @InvisiblePinkSoylent
    @InvisiblePinkSoylent 5 หลายเดือนก่อน

    Jenny don't change your number!

  • @herrkronen9694
    @herrkronen9694 หลายเดือนก่อน

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

  • @Vagubando
    @Vagubando 6 หลายเดือนก่อน

    Where is the code ?

  • @dbjindian
    @dbjindian ปีที่แล้ว

    No code no use