2.4"-Display and ESP32, help needed please

Hy everyone :slight_smile:

Is here somebody, who can help me step-by-step to connect a 2.4" TFT Display to an ESP32 DevKit C V4…?

I have found many examples in the www, but not one is working… so i want to start at zero …

Greetz
Günni

It might be useful to indicate which TFT display, exactly…

Ah, sorry… my fault…

This is the display:
http://www.lcdwiki.com/2.4inch_Arduino_Display

Looks like ILI9xxx TFT LCD Series — ESPHome
Did you try it?

Yes, but i have to set up a spi-bus, and i don’t know how to identify the right pins on the display for CLK, MOSI, MISO…

the 3 pins for the ili9xxx (CS, DC, Reset) are easy…
CS → LCD_CS
DC → LCD_RS
Reset → LCD_RST

but which pin on the display is mosi, which is miso and which is the clk…?

Heh?

I read that site many times… but that pins are for the sd-card… or not…? i’m confused…

Yes. That’s the only reason to use SPI, afaict. Why do you think otherwise?

Sorry, i’m a noob… :-/
I read and tried many options, but not one was working…

I pinned now the display and flash the code:

captive_portal:
    
spi:
  clk_pin: GPIO18
  mosi_pin: GPIO23
  miso_pin: GPIO19

display:
  - platform: ili9xxx
    model: TFT 2.4
    cs_pin: 14
    dc_pin: 27
    reset_pin: 33
    lambda: |-
      it.fill(COLOR_BLACK);
      it.print(0, 0, id(my_font), id(my_red), TextAlign::TOP_LEFT, "Hello World!");

color:
  - id: my_red
    red: 100%
    green: 3%
    blue: 5%

font:
  - file: 'fonts/arial.ttf'
    id: my_font
    size: 36
    glyphs:
       ['&', '@', '!', ',', '.', '?', '"', '%', '(', ')', '+', '-', '_', ':', '°', '0',
        '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E',
        'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S',
        'T', 'U', 'V', 'W', 'X', 'Y', 'Z', ' ', 'a', 'b', 'c', 'd', 'e', 'f',
        'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't',
        'u', 'v', 'w', 'x', 'y', 'z','å', 'Ä', 'ä', 'Ö', 'ö', 'Ü', 'ü', '/']

but… nothing… just a white screen…
Just pinned the pins like above… LCD_D0 - LCD_D7 are not pinned yet…

The display interface is listed as 8-bit parallel so all the LCD_D0 to D7 lines would needed connected. This is different than SPI or i2c for the screen interface. I didn’t find anything where esphome supported parallel interfaces for display components.

Ok, the site with the wiring diagram i have found too and tried the wiring many times, but if i understand right, i have to define the LCD_D0 - LCD_D7 Pins in esphome, and thats not possible (yet), right ?
That means, i can’t use the display… right ?

Whats about this Display ?
https://www.amazon.de/AptoFun-Touchdisplay-Auflösung-Interface-Mega2560/dp/B0C5428PD2/ref=sr_1_3?keywords=aptofun+3.2"&qid=1684475945&sr=8-3

Will this work with ESPHome ?

edit: i found this:

but i do not understand, what to do…

Yes that will work, but you will need an ESP with a large amount of PSRAM. A WROVER based Devkit for instance. A standard ESP32 won’t work.

Why not use an ILI9341 SPI display? That will work with all ESP32s:

https://www.amazon.com/Hosyond-Display-320x240-Compatible-Development/dp/B0B1M9S9V6/ref=sr_1_4?crid=22M1IO7SQDG5H&keywords=ili9341%2B3.2&qid=1684487281&sprefix=ili9341%2Caps%2C290&sr=8-4&th=1

OK, i have a ESP32 devkit-C V4 from AZDelivery… is that good enough for the display i linked?
And where is the difference between the display you linked and mine?
I want to learn :blush:

There 8 different varieties of ESP32 DEVKIT V4. If yours has WROVER stamped on the chip cover it will be fine. If it says WROOM then no, at least not with ESPHome.

The ILI9488 (the one you linked) has a display resolution of 320x480, the ILI9341 I linked has a resolution of 320x240. Thus the one you linked requires 2 times the memory to work which when using with ESPHome, which the WROOM based DEVKITs don’t have.

Thanks for your time and the explanation :slight_smile:

My ESP32 has WROOM stamped on the chip… so i bought now a display with 320x240…

Greetz
Günni

1 Like