General Community

Waveshare **ESP32-S3-Touch-LCD-5B

lecpinc-boop

Board

Waveshare ESP32-S3-Touch-LCD-5B, 1024×600, the revision with the CH422G IO expander (not the newer CH32V003 revision the 7B profile uses). ESP32-S3, octal PSRAM, GT911 touch.

There's no 5B entry in boards.yaml, so I built it on the waveshare5 profile with overrides. It's now running well: display, touch and the HA connection all work.

  • Package ref: screens-v0.4.88, file packages/waveshare5.yaml
  • Built with ESPHome 2026.9.1 (Device Builder in Docker)

Problems I hit (in case they help with a 5B profile)

  1. Vertical lines / no picture: the waveshare5 profile assumes 800×480 glass and the 4.3" porch timings (4/8). On 5B glass that gives only vertical lines. Overriding the panel size and timings (below) fixed it.
  2. ESP_ERR_WIFI_NOT_INIT, Wi-Fi never starts: at 1024×600 the profile's LVGL_BUFFER_SIZE: "12%" lands in internal RAM and leaves too little for Wi-Fi (same issue as #207 on the 7B). Setting it to 25% pushes it to PSRAM and fixed it. I also had to remove CONFIG_ESP32S3_DATA_CACHE_64KB.
  3. !extend my_display in the local overrides file failed with "Source for extension of ID 'my_display' was not found". It only worked when placed in the main screen YAML.

Working overrides (in the main screen YAML)

The timings are the ones that already worked on this panel with a plain rpi_dpi_rgb config.

substitutions:
  PANEL_W: "1024"
  PANEL_H: "600"
  DISPLAY_DPI: "237.4"        # 1187 diagonal px / 5 in
  LVGL_BUFFER_SIZE: "25%"

psram:
  mode: octal
  speed: 120MHz               # 80MHz untested on this build

esp32:
  framework:
    advanced:
      enable_idf_experimental_features: true
    sdkconfig_options:
      CONFIG_IDF_EXPERIMENTAL_FEATURES: "y"
      CONFIG_SPIRAM_SPEED_120M: "y"
      CONFIG_ESP32S3_DATA_CACHE_LINE_64B: "y"
      CONFIG_SPIRAM_FETCH_INSTRUCTIONS: "y"
      CONFIG_SPIRAM_RODATA: "y"
      CONFIG_COMPILER_OPTIMIZATION_PERF: "y"

display:
  - id: !extend my_display
    model: RPI
    color_order: RGB
    pclk_frequency: 16MHz
    pclk_inverted: true
    de_pin: GPIO5
    pclk_pin: GPIO7
    hsync_pin:
      number: GPIO46
      ignore_strapping_warning: true
    vsync_pin:
      number: GPIO3
      ignore_strapping_warning: true
    hsync_pulse_width: 30
    hsync_back_porch: 210
    hsync_front_porch: 210
    vsync_pulse_width: 4
    vsync_back_porch: 23
    vsync_front_porch: 12
    data_pins:
      red: [GPIO1, GPIO2, GPIO42, GPIO41, GPIO40]
      green: [GPIO39, GPIO0, GPIO45, GPIO48, GPIO47, GPIO21]
      blue: [GPIO14, GPIO38, GPIO18, GPIO17, GPIO10]

Touch and backlight work unchanged from the waveshare5 profile (GT911 reset on CH422G line 1, backlight on line 2, panel reset on line 3).

Happy to test a proper waveshare5b profile if you add one. Thanks for Tessera, it's exactly what I was looking for.

Discussion 2

Add a comment
MaxGramser Admin

Thanks for this write-up, it's very useful. On your three points:

  1. The panel. Your values are right. ESPHome even has a model for this board, WAVESHARE-5-1024X600: the 4.3's pins and expander lines at 1024x600 with its own timings (16 MHz, hsync 30/145/170, vsync 2/23/12). A 5B board file would start from that model.
  2. Wi-Fi. The same as #207 on the 7B: at 1024x600, 12 % rounds to an eighth of the screen, which still fits in internal RAM and leaves Wi-Fi too little. A quarter lands in PSRAM, and 25 % is what the 7B uses now. The other changes shouldn't be needed. No Tessera package sets CONFIG_ESP32S3_DATA_CACHE_64KB, so that line came from your own YAML. CONFIG_ESP32S3_DATA_CACHE_LINE_64B and running from PSRAM are already set for every S3 RGB board, and they all run PSRAM at 80 MHz; 120 MHz is an experimental option in ESP-IDF. Could you try once with PSRAM at 80 MHz and without the extra sdkconfig lines? Then we know how the board does as everyone else would get it.
  3. !extend in the Override YAML. That does work: ESPHome merges all packages first and resolves !extend afterwards. I checked your overrides that way against screens-v0.4.88 with ESPHome 2026.9.1, and it validates. The exact error you got is what ESPHome says when it checks <name>.local.yaml on its own, without the screen's YAML around it. ESPHome Device Builder lists that file as a device of its own, so Validate or Install on that entry gives exactly this error. Was that the entry you used? If not, could you paste the packages: block of your screen's YAML?

Your DPI is right too: 1186.8 diagonal pixels over 5 inches is 237.4.

Sephiat88

· Edited

I used the same settings as lecpinc-boop for the ESP32-S3-Touch-LCD-5B. For the PSRAM, I set the frequency directly to 80 MHz. I omitted the framework portion, but in its place, I made the backlight switchable. The display works fine for me this way.

substitutions:
  DEVICE_NAME: "bueroscreen"
  DEVICE_FRIENDLY_NAME: "BueroScreen"
  LANGUAGE: "de"
  GITHUB_REF: "screens-v0.4.93"
  PANEL_W: "1024"
  PANEL_H: "600"
  DISPLAY_DPI: "237.4"
  LVGL_BUFFER_SIZE: "25%"
  BACKLIGHT_DIMMABLE: "false"
  
psram:
  mode: octal
  speed: 80MHz

display:
  - id: !extend my_display
    model: RPI
    color_order: RGB
    pclk_frequency: 16MHz
    pclk_inverted: true
    de_pin: GPIO5
    pclk_pin: GPIO7
    hsync_pin:
      number: GPIO46
      ignore_strapping_warning: true
    vsync_pin:
      number: GPIO3
      ignore_strapping_warning: true
    hsync_pulse_width: 30
    hsync_back_porch: 210
    hsync_front_porch: 210
    vsync_pulse_width: 4
    vsync_back_porch: 23
    vsync_front_porch: 12
    data_pins:
      red: [GPIO1, GPIO2, GPIO42, GPIO41, GPIO40]
      green: [GPIO39, GPIO0, GPIO45, GPIO48, GPIO47, GPIO21]
      blue: [GPIO14, GPIO38, GPIO18, GPIO17, GPIO10]

esphome:
  name: "bueroscreen"
  friendly_name: "BueroScreen"

packages:
  display:
    url: https://github.com/MaxGramser/homeassistant_espscreen
    ref: screens-v0.4.93
    files: [packages/waveshare5.yaml]
    refresh: 0s
  tessera_plugins: !include bueroscreen.plugins.yaml

globals:
  - id: buero_backlight_state_flag
    type: bool
    restore_value: false
    initial_value: 'true'

output:
  - id: !remove gpio_backlight_pwm

  - platform: template
    id: gpio_backlight_pwm
    type: float
    write_action:
      - lambda: |-
          id(backlight_line).set_state(
            id(buero_backlight_state_flag)
          );

switch:
  - platform: template
    id: buero_backlight_control
    name: "Displaybeleuchtung"
    icon: mdi:monitor
    lambda: |-
      return id(buero_backlight_state_flag);

    turn_on_action:
      - lambda: |-
          id(buero_backlight_state_flag) = true;
          id(backlight_line).set_state(true);

    turn_off_action:
      - lambda: |-
          id(buero_backlight_state_flag) = false;
          id(backlight_line).set_state(false);
          
api:
  encryption:
    key: "xxxxxxxxxxxxxx="
ota:
  - platform: esphome
    encryption:
wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  power_save_mode: none
  ap:
    ssid: "Tessera BueroScreen"
    password: "xxxxxxxxxxxxxx"
captive_portal:

Add your thoughts, a screenshot or a useful link.

Markdown & basic HTML
Paste or drop images · URLs on their own line become previews0 / 10,000
Create your account to join in

We need a verified email address to reach you about your contribution. Your address stays private.

Continue with GitHub

Your draft stays in this tab. Return here after verification.