esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 34 forks source link

Waveshare 800x480 7.5 inch e-ink HAT display doesn't work at ESPHome #4378

Closed Maystero14 closed 11 months ago

Maystero14 commented 1 year ago

The problem

I bought a Waveshare 800x480 7.5 inch e-ink HAT display and connected it to an ESP32Devkit-v1 module according to the following schema:

VCC to the 3V3 pin on the board
GND to the GND pin on the board
DIN to the MOSI pin (GPIO14) on the board
SCLK to the SCK pin (GPIO13) on the board
CS to the CS pin (GPIO15) on the board
DC to the DC pin (GPIO27) on the board
RST to the RST pin (GPIO26) on the board
BUSY to the BUSY pin (GPIO25) on the board

In ESPHome (Home Assistant), I created the following script:

The display doesn't show anything. I was using this guide: https://esphome.io/components/display/waveshare_epaper.html#waveshare-e-paper-display What am I doing wrong? Please for help

Which version of ESPHome has the issue?

2023.3.2

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

Home Assistant 2023.3.6

What platform are you using?

ESP32

Board

ESP32Devkit-v1

Component causing the issue

No response

Example YAML snippet

`font:
  - file: "fonts/ComicSans.ttf"
    id: font1
    size: 12

spi:
  clk_pin: GPIO13
  mosi_pin: GPIO14

display:
  - platform: waveshare_epaper
    #id: epaper
    cs_pin: GPIO15
    dc_pin: GPIO27
    busy_pin: GPIO25
    reset_pin: GPIO26
      #model: 7.50in
    model: 7.50inV2
    update_interval: 60s
    #full_update_every: 30
    lambda: |-
      it.print(0, 0, id(font1), "Hello World");
    #  return void();`

Anything in the logs that might be useful for us?

[20:26:05][C][logger:293]: Logger:
[20:26:05][C][logger:294]:   Level: VERY_VERBOSE
[20:26:05][C][logger:295]:   Log Baud Rate: 115200
[20:26:05][C][logger:296]:   Hardware UART: UART0
[20:26:06][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=17635730 (now=17645745)
[20:26:06][C][spi:101]: SPI bus:
[20:26:06][C][spi:102]:   CLK Pin: GPIO13
[20:26:06][C][spi:104]:   MOSI Pin: GPIO14
[20:26:06][C][spi:106]:   Using HW SPI: YES
[20:26:06][C][gpio.output:010]: GPIO Binary Output:
[20:26:06][C][gpio.output:011]:   Pin: GPIO2
[20:26:06][C][light:104]: Light 'LED'
[20:26:06][C][homeassistant.time:010]: Home Assistant Time:
[20:26:06][C][homeassistant.time:011]:   Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[20:26:06][C][waveshare_epaper:1140]: Waveshare E-Paper
[20:26:06][C][waveshare_epaper:1140]:   Rotations: 0 °
[20:26:06][C][waveshare_epaper:1140]:   Dimensions: 800px x 480px
[20:26:06][C][waveshare_epaper:1141]:   Model: 7.5inV2rev2
[20:26:06][C][waveshare_epaper:1142]:   Reset Pin: GPIO26
[20:26:06][C][waveshare_epaper:1143]:   DC Pin: GPIO27
[20:26:06][C][waveshare_epaper:1144]:   Busy Pin: GPIO25
[20:26:06][C][waveshare_epaper:1145]:   Update Interval: 60.0s
[20:26:06][C][captive_portal:088]: Captive Portal:
[20:26:06][C][web_server:151]: Web Server:
[20:26:06][C][web_server:152]:   Address: e-ink.local:80
[20:26:06][C][mdns:108]: mDNS:
[20:26:06][C][mdns:109]:   Hostname: e-ink
[20:26:06][V][mdns:110]:   Services:
[20:26:06][V][mdns:112]:   - _esphomelib, _tcp, 6053
[20:26:06][V][mdns:114]:     TXT: friendly_name = e-ink
[20:26:06][V][mdns:114]:     TXT: version = 2023.3.2
[20:26:06][V][mdns:114]:     TXT: mac = b4e62dbad851
[20:26:06][V][mdns:114]:     TXT: platform = ESP32
[20:26:06][V][mdns:114]:     TXT: board = esp32doit-devkit-v1
[20:26:06][V][mdns:114]:     TXT: network = wifi
[20:26:06][V][mdns:112]:   - _http, _tcp, 80
[20:26:06][C][ota:093]: Over-The-Air Updates:
[20:26:06][C][ota:094]:   Address: e-ink.local:3232
[20:26:06][C][ota:097]:   Using Password.
[20:26:06][C][api:138]: API Server:
[20:26:06][C][api:139]:   Address: e-ink.local:6053
[20:26:06][C][api:141]:   Using noise encryption: YES
[20:26:10][VV][api.service:486]: on_ping_request: PingRequest {}
[20:26:10][VV][api.service:043]: send_ping_response: PingResponse {}
[20:26:15][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=17645730 (now=17655735)
[20:26:25][VV][api.service:486]: on_ping_request: PingRequest {}
[20:26:25][VV][api.service:043]: send_ping_response: PingResponse {}
[20:26:25][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=17655730 (now=17665734)

Additional information

No response

Kumskaka commented 1 year ago

Hi, have you tried the model: 7.50inV2alt. This model works for me.

github-actions[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.