Closed morph027 closed 4 years ago
Model 2.13in-ttgo
got introduced in https://github.com/esphome/esphome/pull/730 by @thomasklingbeil ... tried with 2.13in
, still nothing.
There are different versions of the ePaper display used on the TTGO boards. I haven’t found a way to distinguish between them yet.
However, I have already added another display type; just need to push those changes to github.
Can you please give this version a try: https://github.com/esphome/esphome/pull/928 (https://github.com/thomasklingbeil/esphome/tree/ttgo-epaper-b73)?
Wow, thank you :tada:
I also needed this PR to make it build: https://github.com/esphome/esphome/pull/923
Should i update docs for your PR?
Should i update docs for your PR?
Thanks for the offer! I have already created a PR for the docs repo.
Hi, i am using this TTGO T5 v2.3 2.13, but i can't flash successfully the module with the ESPHOME bin. I tried flashing back the original bin and it worked fine. I tried with different boards but i have not had success. How are u flashing the TTGO T5?
thanks
I'm using the git branch from @thomasklingbeil (inside a virtualenv)
python3 -m virtualenv -p /usr/bin/python3 /tmp/venv
pip install -U git+https://github.com/thomasklingbeil/esphome@ttgo-epaper-b73`
curl -L https://raw.githubusercontent.com/esphome/esphome/da2afdf508a02646ba4d7ccd6bb57b01e7902c8b/esphome/util.py > /tmp/venv/lib/python3.6/site-packages/esphome/util.py
. /tmp/venv/bin/activate
@morph027 how do you upload an image?
Thanks all, this had me stumped.
Hi I am using the same TTGO T5 v2.3 2.13 as @morph027 and the git branch from @thomasklingbeil. The display is not working, everything else does. Original firmware work well
esphome:
name: epaper_1
platform: ESP32
board: esp32dev
wifi:
ssid: 'virus!'
password: '***'
manual_ip:
static_ip: 192.168.1.62
gateway: 192.168.1.254
subnet: 255.255.255.0
#api:
logger:
ota:
binary_sensor:
- platform: gpio
pin:
number: GPIO39
mode: INPUT_PULLUP
name: "eink_sw1"
id: eink_sw1
filters:
- delayed_on: 5ms
- invert:
on_click:
min_length: 50ms
max_length: 350ms
then:
- if:
condition:
- light.is_off:
id: eink_led
then:
- light.turn_on:
id: eink_led
brightness: 80%
else:
- light.turn_off: eink_led
output:
- platform: ledc
pin: GPIO19
id: gpio_19
light:
- platform: monochromatic
output: gpio_19
name: "eink_led"
id: eink_led
spi:
clk_pin: GPIO18
mosi_pin: GPIO23
font:
- file: 'Roboto-Regular.ttf'
id: roboto
display:
- platform: waveshare_epaper
dc_pin: GPIO17
cs_pin: GPIO5
busy_pin: GPIO4
reset_pin: GPIO16
rotation: 180°
model: 2.13in-ttgo
update_interval: 10s
id: my_display
lambda: |-
it.print(0, 0, id(roboto), "Hello World!");
Log:
Using 'COM4' as serial port.
Showing logs:
[19:36:30]ets Jun 8 2016 00:22:57
[19:36:30]
[19:36:30]rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[19:36:30]configsip: 0, SPIWP:0xee
[19:36:30]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[19:36:30]mode:DIO, clock div:2
[19:36:30]load:0x3fff0018,len:4
[19:36:30]load:0x3fff001c,len:1044
[19:36:30]load:0x40078000,len:8896
[19:36:30]load:0x40080400,len:5828
[19:36:30]entry 0x400806ac
[19:36:30][I][logger:156]: Log initialized
[19:36:30][C][ota:364]: There have been 1 suspected unsuccessful boot attempts.
[19:36:30][I][app:028]: Running through setup()...
[19:36:30][C][spi:020]: Setting up SPI bus...
[19:36:30][C][wifi:033]: Setting up WiFi...
[19:36:31][D][wifi:304]: Starting scan...
[19:36:32][D][wifi:319]: Found networks:
[19:36:32][I][wifi:365]: - 'virus!' (B0:6E:BF:7C:EF:C0) ▂▄▆█
[19:36:32][D][wifi:366]: Channel: 9
[19:36:32][D][wifi:367]: RSSI: -64 dB
[19:36:32][D][wifi:369]: - 'dlink' (00:24:01:CA:BF:46) ▂▄▆█
[19:36:32][I][wifi:193]: WiFi Connecting to 'virus!'...
[19:36:33][I][wifi:423]: WiFi Connected!
[19:36:33][C][wifi:283]: SSID: 'virus!'
[19:36:33][C][wifi:284]: IP Address: 192.168.1.62
[19:36:33][C][wifi:286]: BSSID: B0:6E:BF:7C:EF:C0
[19:36:33][C][wifi:287]: Hostname: 'eink_1'
[19:36:33][C][wifi:291]: Signal strength: -65 dB ▂▄▆█
[19:36:33][C][wifi:295]: Channel: 9
[19:36:33][C][wifi:296]: Subnet: 255.255.255.0
[19:36:33][C][wifi:297]: Gateway: 192.168.1.1
[19:36:33][C][wifi:298]: DNS1: 0.0.0.0
[19:36:33][C][wifi:299]: DNS2: 0.0.0.0
[19:36:33][C][ota:029]: Over-The-Air Updates:
[19:36:33][C][ota:030]: Address: 192.168.1.62:3232
[19:36:33][C][sntp:017]: Setting up SNTP...
[19:36:33][I][app:058]: setup() finished successfully!
[19:36:33][I][app:101]: ESPHome version 1.15.0-dev compiled on Jan 19 2020, 16:14:11
[19:36:33][C][wifi:415]: WiFi:
[19:36:33][C][wifi:283]: SSID: 'virus!'
[19:36:33][C][wifi:284]: IP Address: 192.168.1.62
[19:36:33][C][wifi:286]: BSSID: B0:6E:BF:7C:EF:C0
[19:36:33][C][wifi:287]: Hostname: 'eink_1'
[19:36:33][C][wifi:291]: Signal strength: -62 dB ▂▄▆█
[19:36:33][C][wifi:295]: Channel: 9
[19:36:33][C][wifi:296]: Subnet: 255.255.255.0
[19:36:33][C][wifi:297]: Gateway: 192.168.1.1
[19:36:33][C][wifi:298]: DNS1: 0.0.0.0
[19:36:33][C][wifi:299]: DNS2: 0.0.0.0
[19:36:33][C][spi:079]: SPI bus:
[19:36:33][C][spi:080]: CLK Pin: GPIO18 (Mode: OUTPUT)
[19:36:33][C][spi:082]: MOSI Pin: GPIO23 (Mode: OUTPUT)
[19:36:33][C][spi:083]: Using HW SPI: YES
[19:36:33][C][logger:175]: Logger:
[19:36:33][C][logger:176]: Level: DEBUG
[19:36:33][C][logger:177]: Log Baud Rate: 115200
[19:36:33][C][logger:178]: Hardware UART: UART0
[19:36:33][C][waveshare_epaper:183]: Waveshare E-Paper
[19:36:33][C][waveshare_epaper:183]: Rotations: 0 °
[19:36:33][C][waveshare_epaper:183]: Dimensions: 128px x 250px
[19:36:33][C][waveshare_epaper:192]: Model: 2.13in (TTGO)
[19:36:33][C][waveshare_epaper:201]: Full Update Every: 30
[19:36:33][C][waveshare_epaper:202]: Reset Pin: GPIO16 (Mode: OUTPUT)
[19:36:33][C][waveshare_epaper:203]: DC Pin: GPIO17 (Mode: OUTPUT)
[19:36:33][C][waveshare_epaper:204]: Busy Pin: GPIO4 (Mode: INPUT)
[19:36:33][C][waveshare_epaper:205]: Update Interval: 10.0s
[19:36:33][C][ota:029]: Over-The-Air Updates:
[19:36:33][C][ota:030]: Address: 192.168.1.62:3232
[19:36:33][C][sntp:043]: SNTP Time:
[19:36:33][C][sntp:044]: Server 1: '0.pool.ntp.org'
[19:36:33][C][sntp:045]: Server 2: '1.pool.ntp.org'
[19:36:33][C][sntp:046]: Server 3: '2.pool.ntp.org'
[19:36:33][C][sntp:047]: Timezone: 'CET-1CEST-2,M3.5.0/2,M10.4.0/3'`
Hi I am using the same TTGO T5 v2.3 2.13 as @morph027 and the git branch from @thomasklingbeil. The display is not working, everything else does. Original firmware work well
Have you tried using 2.13in-ttgo-b73
as the model?
Thank you!, that worked.
I'm now having issues with my screen not clearing and getting tons of weird and nasty persistent artifacts. I'm using the same configuration and pins as those above.
I'm now having issues with my screen not clearing and getting tons of weird and nasty persistent artifacts. I'm using the same configuration and pins as those above.
Does it work properly with the firmware that was on it initially? Which exact display type is selected there?
Other idea: Are you maybe using partial updates? The default is to only do a full update every 30 times. Try setting full_update_every
to 2
and let's see what happens.
Thanks @thomasklingbeil. Somehow I missed 'full' so it had never done that. It is still holding on to some artifacts, I'm having it cycle between black and blank every minute with full updates and an update interval for the next 9h hoping for them to clear.
2 consecutive simple updates should clear the artifacts.
I'm not sure if I'm missing something, but I'm somehow not seeing those boards as options.
When I specify 2.13in-ttgo
it tells me that board doesn't exist, despite the fact that it should:
esphome: [source entry_display.yaml:2]
name: entry_display
platform: ESP32
Could not find board '2.13in-ttgo'.
The only ttgo boards listed are:
ttgo-lora32-v1, ttgo-t-beam, ttgo-t-watch, ttgo-t1,
Use esp32dev
as board type and 2.13in-ttgo
as the display type.
Aha, gotcha.
Thanks - now to see if I can get it to actually take a flash (but thats a different issue).
On Mon, Feb 10, 2020 at 10:53 PM Thomas Klingbeil notifications@github.com wrote:
Use esp32dev as board type and 2.13in-ttgo as the display type.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/esphome/issues/issues/954?email_source=notifications&email_token=AAOXCTFN3RCMCNCF6ANO7T3RCJDNJA5CNFSM4KAAZ3T2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELLMCLI#issuecomment-584499501, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOXCTCBEPTFJXSA7FOYFK3RCJDNJANCNFSM4KAAZ3TQ .
-- -- Matt
Have you tried using
2.13in-ttgo-b73
as the model?
How do I do this? Is it already in the esphome Dev or esphome beta installation? Or do I have to manualy overwrite the files you have modified in my installation?
And is there a way to indentify on my Device if b73 is to be used?
@ Morph027 : Thanks but i tried same command in my Terminal window of ssh addon in Hassio - does not work Python3 seems to be a unknown command
Hi @Heiner1967 , i will share step by step what worked for me (ubuntu server 18 LTS):
Login, then:
mkdir ttgot5
cd ttgot5
git clone https://github.com/thomasklingbeil/esphome.git
cd esphome
git checkout ttgo-epaper-b73
pip3 install -e .
sudo docker build -t esphome-dev -f docker/Dockerfile .
"esphome-dev" is the name of your container for this custom esphome. You can change the name but you cannot repeat names.
then, you need to run the container. As this is a custom esphome, you need to disable any esphome instance running, so go to your hassio and disable esphome. Then, this:
sudo docker run --rm -v "${PWD}":/config --net=host -it esphome-dev
good luck
Hi, firs not work for me, I have no Ubuntu, I use hassio on a PI. I only can install either esphome or the dev or the beta version of it. Nowhere b73 is yet included, how much longer I need to wait to find this solution? Or better moving away from Hassio?
Hi, I got it. I installed the esphome Dev version in Hassio and chnaged the configurationline inside to: esphome_version: 'thomasklingbeil:ttgo-epaper-b73' Now I could compile based on your Version, and it works. Yipeeh
Many Thanks for your development, I hope it comes soon into the next official Version of ESPHome
Operating environment/Installation (Hass.io/Docker/pip/etc.):
Python virtualenv pip installation 1.14.3
ESP (ESP32/ESP8266, Board/Sonoff):
TTGO T5 V2.3 ESP32
Display cable labeled with
HINK-E0213A22
which should beGDEH0213B72
(see https://docs.zephyrproject.org/latest/boards/shields/waveshare_epaper/doc/index.html)Affected component:
https://esphome.io/components/display/waveshare_epaper.html
Description of problem:
Display does not updating or showing anything (found similar but not the same: https://github.com/esphome/issues/issues/233)
Problem-relevant YAML-configuration entries:
Logs (if applicable):
Additional information and things you've tried:
Flashing
T5_V2.3_2.13_GDEH0213B72B.bin
(https://github.com/lewisxhe/TTGO-EPaper-Series/tree/master/bin) example program shows the hardware is working.