Page 6 of 6
Re: Drivers for Waveshare 2.13inch E-Ink display
Posted: Fri May 18, 2018 8:47 am
by devnull
Thanks for all of the help & suggestions, yes I use a TFT or OLED for permanent powered devices, but I am new to these screens and really trying to find out their capabilities and limitations and letting others know what I find so that they don't have to re-invent the wheel.
Both the applications I have in mind would be deployed on the other side of the world with no human intervention and running for over a year actually I am adding the display capability to existing designs which are already deployed and running.
Re: Drivers for Waveshare 2.13inch E-Ink display
Posted: Sat Feb 16, 2019 11:29 am
by AlbSan
Hi to all,
I'm trying to connect an ESP32 module (HelTec WIFI KIT-32) with WaveShare 296x128 2.9inch two color.
Using mcuser drivers for Waveshare e-paper, I receive this code error :
MPY: soft reboot
Traceback (most recent call last):
File "main.py", line 33, in <module>
File "epaper2in9.py", line 148, in clear_frame_memory
TypeError: can't convert bytes to int
MicroPython v1.10-98-g4daee3170 on 2019-02-14; ESP32 module with ESP32
main.py is the same of
test.py , I changed only the SPI initialization to adapt it to my board.
Main.py line 33:
epaper2in9.py line 148:
what's wrong?
Thanks
Alberto
Re: Drivers for Waveshare 2.13inch E-Ink display
Posted: Sat Feb 16, 2019 12:00 pm
by Roberthh
The sample code is wrong. Using
in test.py might work. Alternatively changing epaper2in9.py
Re: Drivers for Waveshare 2.13inch E-Ink display
Posted: Sat Feb 16, 2019 12:16 pm
by AlbSan
Roberthh wrote: ↑Sat Feb 16, 2019 12:00 pm
The sample code is wrong. Using
in test.py might work.
Thanks a lot!
I don't see anything on the display
but the code works now!
Re: Drivers for Waveshare 2.13inch E-Ink display
Posted: Sun Feb 17, 2019 4:32 am
by AlbSan
Ok, I made progress! Now SPI communication works fine.
This is the configuration that works fine with my devices,
HelTec WIFI KIT-32 and
WaveShare 296x128 2.9inch two color:
Code: Select all
import machine
import epaper2in9
from machine import SPI, Pin
spi = SPI(-1, baudrate=80000000, polarity=0, phase=0, bits=8, firstbit=0, sck=machine.Pin(18), mosi=machine.Pin(23), miso=machine.Pin(19))
cs = machine.Pin(2)
dc = machine.Pin(13)
rst = machine.Pin(14, machine.Pin.OUT)
busy = machine.Pin(27, machine.Pin.OUT)
e = epaper2in9.EPD(spi, cs, dc, rst, busy)
e.init()
w = 128
h = 296
x = 0
y = 0
Thanks for your help!
Re: Drivers for Waveshare 2.13inch E-Ink display
Posted: Sun Nov 24, 2019 2:28 pm
by Werner_G
Hi, is there anybody who can post the physical wiring of the Waveshare -Display? When looking to the datasheet, there are so many Voltages to connect.
Re: Drivers for Waveshare 2.13inch E-Ink display
Posted: Sat Apr 03, 2021 7:51 am
by oyster
does
https://github.com/mcauser/micropython-waveshare-epaper work only for epaper connected to waveshare's driver board?
is there document on how to make a driver circuit?
BTW, it seems that the discusses on this forum focus on software. Is there any forum which dedicates to circuit?
thanks
Re: Drivers for Waveshare 2.13inch E-Ink display
Posted: Sat Apr 03, 2021 3:19 pm
by pythoncoder
A good source for schematics is Adafruit: they do various ePaper displays and publish full details of hardware. In practice you need a controller chip with accompanying passive components. There is normally little point in developing your own solution as this really amounts to copying a reference design. But it might make sense to accommodate space constraints.