New boards Wishlist

Waveshare WT32-SC01 ESP32

22MarioZSuggested this wish ·

Hi! Would you consider adding support for the original WT32-SC01 ESP32 touchscreen?

It uses an ESP32-WROVER-B, a 320 × 480 ST7796/ST7796S SPI display and an FT6336U capacitive touchscreen. The display and touch controllers appear similar to those used by the Waveshare ESP32-S3-Touch-LCD-3.5, which is already supported.

I own a WT32-SC01 and would be interested in testing firmware if needed. Is support technically feasible, and is it on your roadmap?

Thanks for this great project!

Hardware testing

We often do not have this board ourselves. Community testing helps establish what actually works. A successful report is evidence for the maintainer to review, not an automatic compatibility claim.

Board details & configuration
Model
WT32-SC01 ESP32 rev. 3.2
Chip, RAM and flash
ESP32-WROVER-B
Display and touch
320 × 480 ST7796/ST7796S SPI display and an FT6336U capacitive touchscreen
Already tried
Didn't try any configuration or other firmware
Configuration status
none

7 owners have volunteered to test.

Sign in to volunteer

Discussion 7

Add a comment
siklosi

This is ESPHOME working code for this board (WT32-SC01 rev.3.3 tested)

esphome:
  name: wt32-sc01-test
  friendly_name: wt32-sc01-test


esp32:
  board: esp32dev
  framework:
    type: esp-idf

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

ota:
  - platform: esphome
    password: !secret ota_password

api:
  encryption:
    key: "9GrD4rU49A6NuGAiGjfzDhX/n2PSFN8B2lviqASLz2U="

logger:

output:
  - platform: ledc
    pin: GPIO23
    id: bl

light:
  - platform: monochromatic
    output: bl
    name: "Screen Backlight"
    id: backlight_light
    restore_mode: ALWAYS_ON


font:
  - file: "gfonts://Roboto"
    id: font_title
    size: 22
  - file: "gfonts://Roboto"
    id: font_text
    size: 16


globals:
  - id: touch_x
    type: int
    restore_value: no
    initial_value: '0'
  - id: touch_y
    type: int
    restore_value: no
    initial_value: '0'
  - id: is_touched
    type: bool
    restore_value: no
    initial_value: 'false'

spi:
  clk_pin: GPIO14
  mosi_pin: GPIO13

i2c:
  sda: GPIO18
  scl: GPIO19
  scan: true
  frequency: 400kHz

touchscreen:
  - platform: ft63x6
    id: my_touchscreen
    interrupt_pin:
      number: GPIO39
      mode:
        input: true
        pullup: false
    on_touch:
      - lambda: |-
          id(touch_x) = touch.x;
          id(touch_y) = touch.y;
          id(is_touched) = true;
    on_release:
      - lambda: |-
          id(is_touched) = false;

display:
  - platform: mipi_spi
    model: ST7796
    cs_pin: GPIO15
    dc_pin: GPIO21
    reset_pin: GPIO22
    dimensions:
      width: 320
      height: 480
    data_rate: 40MHz      
    update_interval: 50ms 
    rotation: 0
    lambda: |-
      Color BLUE(0, 0, 255);
      Color RED(255, 0, 0);
      Color GREEN(0, 255, 0);
      Color GRAY(128, 128, 128);
      Color WHITE(255, 255, 255);
      Color BLACK(0, 0, 0);

      it.rectangle(2, 2, 316, 476, BLUE);
      it.rectangle(4, 4, 312, 472, BLUE);

      it.print(160, 20, id(font_title), WHITE, TextAlign::TOP_CENTER, "ST7796 & FT63X6 TEST");

      if (id(is_touched)) {
        it.filled_circle(id(touch_x), id(touch_y), 15, RED);

        it.filled_rectangle(20, 200, 280, 80, GREEN);
        it.print(160, 215, id(font_title), BLACK, TextAlign::TOP_CENTER, "TOUCH ACTIVE!");
        it.printf(160, 245, id(font_text), BLACK, TextAlign::TOP_CENTER, "X: %d  |  Y: %d", id(touch_x), id(touch_y));
      } else {
        it.rectangle(20, 200, 280, 80, WHITE);
        it.print(160, 225, id(font_text), GRAY, TextAlign::TOP_CENTER, "Touch screen for test...");
      }
22MarioZ

Here is the board code that was updated for ESP32.

# ESP Screens - WT32-SC01 V3.2
# Original ESP32-WROVER-B, ST7796 display and FT6336 capacitive touch.

packages:
  build: !include ../hardware/esp-idf.yaml
  look: !include ../looks/standard.yaml
  touch: !include ../features/capacitive-touch.yaml
  backlight: !include ../features/backlight.yaml
  self_test: !include ../features/self-test.yaml

substitutions:
  BOARD_ID: "wt32sc01"
  DEVICE_NAME: "wt32-sc01-v32"
  DEVICE_FRIENDLY_NAME: "WT32-SC01 V3.2"

  PANEL_W: "320"
  PANEL_H: "480"
  DISPLAY_DPI: "165.000"

  ROTATION_LANDSCAPE: "90"

  GRID_COLS: "2"
  GRID_ROWS: "2"
  GRID_COLS_PORTRAIT: "1"
  GRID_ROWS_PORTRAIT: "3"

  SCREEN_MAX_TILES: "128"
  SCREEN_MAX_PAGES: "24"
  SCREEN_MAX_BAR_ITEMS: "12"
  LVGL_BUFFER_SIZE: "12%"

  BACKLIGHT_FREQUENCY: "20000Hz"

# Original ESP32-WROVER-B
esp32:
  board: esp-wrover-kit
  variant: esp32
  flash_size: 4MB
  cpu_frequency: 240MHz

# WROVER-B uses quad PSRAM, not octal PSRAM.
psram:
  mode: quad
  speed: 40MHz

# Display SPI bus
spi:
  id: lcd
  clk_pin: GPIO14
  mosi_pin: GPIO13

# Touch controller I2C bus
i2c:
  id: touch_bus
  sda: GPIO18
  scl: GPIO19
  scan: true
  frequency: 400kHz

# WT32-SC01 has no TCA9554 display GPIO expander.
# Display CS and reset are connected directly to ESP32 GPIOs.

output:
  - platform: ledc
    pin: GPIO23
    id: gpio_backlight_pwm
    frequency: ${BACKLIGHT_FREQUENCY}

# Capacitive touchscreen
touchscreen:
  - platform: ft63x6
    id: ts_touch
    i2c_id: touch_bus
    display: my_display
    update_interval: 20ms

# ST7796/ST7796S SPI display
display:
  - platform: mipi_spi
    id: my_display
    model: ST7796
    spi_id: lcd
    dimensions:
      width: 320
      height: 480
    color_order: bgr
    invert_colors: false
    dc_pin: GPIO21
    cs_pin: GPIO15
    reset_pin: GPIO22
    spi_mode: 1
    data_rate: 20MHz
    update_interval: never
    auto_clear_enabled: false
rhannink

· Edited

I have added the board (WT32-SC01 not the plus!) to this project. Difficulty was getting good font rendering with the limited memory but OpenAI an I together succeeded ;-)

The code is not yet in the official repository, but you can try it out at:

github.comhttps://github.com/rhannink/homeassistant_espscreen/tree/feat/wt32-sc01

Using the following YAML file:

substitutions:
  DEVICE_NAME: tessera-wt32-sc01
  DEVICE_FRIENDLY_NAME: "Tessera WT32-SC01"
  GITHUB_REF: "feat/wt32-sc01"
  LANGUAGE: "nl"

esphome:
  name: ${DEVICE_NAME}
  friendly_name: ${DEVICE_FRIENDLY_NAME}

packages:
  tessera:
    url: https://github.com/rhannink/homeassistant_espscreen
    ref: feat/wt32-sc01
    files:
      - packages/wt32sc01.yaml
    refresh: 0s

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  power_save_mode: none

api:
  encryption:
    key: !secret encryption_key

ota:
  - platform: esphome
    password: !secret wifi_password
    allow_partition_access: true
MaxGramser Admin

Today's release, Tessera 0.4.91, adds the WT32-SC01 Plus (ESP32-S3, 480 x 320), experimental. The original WT32-SC01 with the ESP32-WROVER-B is a different board and is not in it, so this wish stays open.

rhannink

Ok,

Thanks Max, keep up the incredible work. I have already around 5 screens configured with Tessera. The WT32-SC01 are working for me right now. It needed some work to get everything in the 4Mb flash with good quality fonts, but OpenAI managed ;-) I can understand why it is difficult to support the non plus version.

Gr. Remco

notherealmarco

· Edited

I just opened a PR for this board: https://github.com/MaxGramser/homeassistant_espscreen/pull/389

It requires as simple fix that should be merged first: https://github.com/MaxGramser/homeassistant_espscreen/pull/388

snelweg

wow, thank you! Got my display working now. Any chance of upgrading Tessera from 0.57.0?

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.