Display problem: MaTouch ESP32-S3 7” Parallel TFT with Touch

I try to use this device but have problem with the screen.
Device: https://wiki.makerfabs.com/MaTouch_ESP32_S3_7_Paralle_%20TFT_with_Touch.html

I have try that: https://deploy-preview-4030–esphome.netlify.app/components/display/rpi_dpi_rgb.html#makerfabs-4-3-800x480-display
The result:


Here is my yaml:

display:
  - platform: rpi_dpi_rgb
    #update_interval: never
    #auto_clear_enabled: false
    #auto_clear_enabled: true
    id: rpi_display
    color_order: RGB
    rotation: 0
    dimensions:
      width: 800
      height: 480
    de_pin: 40
    hsync_pin: 39
    vsync_pin: 41
    pclk_pin: 42

    #pclk_frequency: 16MHz #16000000.0
    #pclk_inverted: true
    #invert_colors: false

    #hsync_pulse_width: 30
    #hsync_back_porch: 16
    #hsync_front_porch: 210
    #vsync_pulse_width: 13
    #vsync_back_porch: 10
    #vsync_front_porch: 22

    #hsync_pulse_width: 48
    #hsync_back_porch: 128
    #hsync_front_porch: 40
    #vsync_pulse_width: 3
    #vsync_back_porch: 45
    #vsync_front_porch: 13

    data_pins:
      red:
        - 45        #r1
        - 48        #r2
        - 47        #r3
        - 21        #r4
        - 14        #r5
      green:
        - 5         #g0
        - 6         #g1
        - 7         #g2
        - 15        #g3
        - 16        #g4
        - 4         #g5
      blue:
        - 8         #b1
        - 3         #b2
        - 46        #b3
        - 9         #b4
        - 1         #b5
    show_test_card: true

There some comments, they are all the tests I’ve done.
Have you got an idea to solve the problem?

You point to the docs for non released version of esphome. What version of esphome are you actually using?

this one: installed_version: 2024.7.3

So the question remains, why are you pointing to pre-release docs?

Because I found this link by web searching and do not look to the version of the documentation in the url.
Official url for current release: https://esphome.io/components/display/rpi_dpi_rgb#makerfabs-4-3-800x480-display

Which doesn’t mention a 7 inch screen. Maybe it is due in a future version?

In fact, the other preview link is for an older version of ESPhome (6/19/2024) and does not contain 7 inch too.

Video of the problem
Display problem with MaTouch ESP32-S3 7” Parallel TFT with Touch - YouTube

And the yaml for the ESPS3:

esphome:
  name: test
  friendly_name: Test

  platformio_options:
    build_flags: 
      -DBOARD_HAS_PSRAM
      -UARDUINO_USB_CDC_ON_BOOT
      -DCONFIG_SPIRAM_CACHE_WORKAROUND
    board_build.arduino.memory_type: qio_opi
    board_build.flash_mode: dio
    #board_upload.maximum_ram_size: 524288

esp32:
  board: esp32s3box
  flash_size: 16MB
  partitions: "/config/esphome/custom_16MB.csv"
  framework:
    type: esp-idf
    version: recommended
    sdkconfig_options:
      COMPILER_OPTIMIZATION_SIZE: y
      CONFIG_ESP32_S3_BOX_BOARD: "y"
    advanced:
      ignore_efuse_mac_crc: false

I’ll say again, the docs you were telling on were a preview of a documentation pull request , this one

It is the preview of docs for the 7" elecrow screen.

As it is a preview, so presumably the code to support this device isn’t in esphome yet, but in any event it doesn’t even seem to be your 7 inch screen.

I can’t find any suggestion that your device is supported, either in existing code, or proposed code in the PRs.

If you think it is supported, could you please identify the esp code, or docs.

I had a flickering problem with my Sunton ESP32-S3-8048S070 7" screen. Take a look at the section noted “# Required to achieve sufficient PSRAM bandwidth” that is what I needed to add to get it working.

1 Like

Thanks a lot @andrew_NH !!!
It is now working great!
This is what I had to yaml:

    sdkconfig_options:
      COMPILER_OPTIMIZATION_SIZE: y
      CONFIG_ESP32_S3_BOX_BOARD: y
      CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240: y
      CONFIG_ESP32S3_DATA_CACHE_64KB: y
      CONFIG_SPIRAM_FETCH_INSTRUCTIONS: y
      CONFIG_SPIRAM_RODATA: y

You made me happy :slight_smile:

1 Like

What do you think of this screen? What is the quality of the LCD? I am using the Sunton ESP32-S3-8048S070 which is $10 cheaper but I always like to try out a new screen.

Also it seems like there is a 1024px version of this screen. That would make it the highest resolution ESP32 screen available. Have you tried that one?

The screen is a little bit slow (with esphome driver) but the display quality is really good.
Here is what I’m coding for now.


I have also seen the 1024px version but not got it. Now that the 800px is working, I think I will take the bigger resolution to play with it.

Hi great work, i tried to add your work to my MaTouch ESP32S3 7" 1024x600 panel. Touch is working but the display only renders a small line at the left side. Do you know what the problem could be?
https://github.com/magverhoeven/esphome-configs

I solved this issue by adding:

	pclk_frequency: 16000000
	hsync_front_porch: 40
	hsync_pulse_width: 48
	hsync_back_porch: 128
	vsync_front_porch: 13
	vsync_pulse_width: 3
	vsync_back_porch: 45
1 Like

How’s this screen working out for you, I’m tempted by the higher resolution.