E-Paper Driver HAT
| ||
Introduction
Features
Based on Raspberry Pi 40pin GPIO interface, E-Paper Driver HAT is suitable for Raspberry Pi series core boards. Jetson Nano lead out SPI control interface, can be connected to Raspberry/Arduino/Nucleo and other onboard level conversion chips on main control boards, compatible with 3.3V and 5V microcontroller interfaces Provide information manual (Raspberry/Jetson Nano/Arduino/STM32 and other sample demo)
Parameter
- Operating voltage: 3.3V/5V
- Communication interface: 3-wire SPI, 4-wire SPI
- Outline dimension: 65mm x 30.2mm
- Fixed hole diameter: 3.0mm
Switch settings
There are two switches on the front panel of Drive HAT: Display Config and Interface Config.
Display Config Switch
The Display Config switch on e-Paper Driver HAT is made for being compatible with various SPI interface e-Paper panels from Waveshare. This switch has A and B sides. For connecting to different e-Paper raw panels, you can set the Display Config switch refer to the table below:
Interface Config Switch
With Interface Config, you can change the SPI interface of e-Paper to 3-lin SPI or 4-line SPI
Switch to 0 | Switch to 1 |
---|---|
4-line SPI | 3-line SPI |
Note: Examples we provide use 4-line SPI by default
Example for 7.5inch e-Paper Switch Settings
Connecting the e-Paper Driver HAT to 7.5inch e-Paper, we must switch the Display Config to B according to the Display Config table above, and set the Interface Config to 0 to make the e-Paper work on 4-line SPI mode.
How to use
Working with Raspberry Pi
Installing libraries required
If you want to connect your E-paper screen to Raspberry Pi, you should install some necessary libraries, or else the Demo below may work improperly. For more information about how to install the Raspberry Pi libraries, please visit the website: Libraries Installation for RPi, where you can find the detailed presentation about the installations of libraries wiringPi, bcm2835 and python.
Hardware connection
Here is the connection between Raspberry Pi 3B and E-paper (BCM).
e-Paper | Raspberry Pi 3B |
---|---|
3.3V | 3.3V |
GND | GND |
DIN | MOSI |
CLK | SCLK |
CS | CE0 |
DC | 25 (BCM) |
RST | 17 (BCM) |
BUSY | 24 (BCM) |
Expected result
1) After the corresponding libraries installed, you can copy the relative programs into your Raspberry Pi, and then enter the corresponding file.
- BCM2835: Execute the command:
make
, to compile the code and generate a fileepd
. Execute the command:sudo ./epd
, the program will run. - WringPi: Execute the command:
make
, to compile the code and generate a fileepd
. Execute the command:sudo ./epd
, the program will run. - Python: Execute the command:
sudo python main.py
2) Image will be displayed on the screen.
- Note:The refresh rate of this module is slow, and it will flicker for several times during refreshing. Please be patient.
Working with Arduino
Hardware connection
e-Paper | Arduino UNO |
---|---|
3.3V | 3V3 |
GND | GND |
DIN | D11 |
CLK | D13 |
CS | D10 |
DC | D9 |
RST | D8 |
BUSY | D7 |
Expected result
- Copy the libraries file of Arduino demo code to the libraries folder which is under the installation directory of Arduino IDE, it usually is C:\users\username\documents\arduino\libraries. You can also designate the location on Arduino IDE--> File -->Preferences -->Sketchbook location
- Upload the project.
- E-paper will display the image.
Note:
- The refresh rate of this module is slow, and it will flicker for several times during refreshing. Please be patient.
Working with the STM32 development board
- Here we use STM32F103ZE development board or NUCLEO-F103RB. (The demo code of 1.54inch/2.13inch/2.9inch e-Paper are based on NUCLEO-F103RB,
Others are based on STM32F103ZE)
- The demo code is based on HAL, so you can port the demo code to other STM boards with STM32CubeMX.
- The demo code can be compiled successfully in Keil v5
Hardware connection
Connecting to the STM32F103ZE:
e-Paper | STM32F103ZE |
---|---|
3.3V | 3V3 |
GND | GND |
DIN | PA7 (MOSI) |
CLK | PA5 (SCK) |
CS | PA4 |
DC | PA2 |
RST | PA1 |
BUSY | PA3 |
Connecting to the NUCLEO-F103RB:
e-Paper | NUCLEO-F103RB |
---|---|
3.3V | 3V3 |
GND | GND |
DIN | PA7 |
CLK | PA5 |
CS | PB6 |
DC | PC7 |
RST | PA9 |
BUSY | PA8 |
Expected result
- Open the project (epd-demo.uvprojx), which is under the MDK-ARM directory.
- Click Build to compile the project.
- Click Download to load the code to your board.
- Reset, the screen will display image.
- Note: The refresh rate of this module is slow, and it will flicker for several times during refreshing. Please be patient.
Resources
Documentation
Related Resources
e-Paper
- 1.54inch e-Paper
- 1.54inch e-Paper (B)
- 2.13inch e-Paper
- 2.13inch e-Paper (B)
- 2.7inch e-Paper
- 2.7inch e-Paper
- 2.9inch e-Paper
- 2.9inch e-Paper (B)
- 4.2inch e-Paper
- 4.2inch e-Paper (B)
- 7.5inch e-Paper
- 7.5inch e-Paper (B)
FAQ
Question about Software
{{{5}}}
{{{5}}}
{{{5}}}
1. First check whether the wiring is correct.
2. Check whether the spi is turned on and whether the parameters are configured correctly (spi baud rate, spi mode and other parameters).
{{{5}}}
{{{5}}}
{{{5}}}
{{{5}}}
Question about Hardware
{{{5}}}
- The rated input voltage of the ink screen is 2.3~3.6V. If it is a 5V system, level conversion is required. In addition, the voltage should not be lower than 2.5V, so as not to affect the display effect of the ink screen.
- Device selection can use the model in the schematic diagram we provide or choose according to the data sheet.
{{{5}}}
{{{5}}}
- Check if SPI communication is normal.
- Confirm whether the BUSY pin is normally initialized to input mode.
- It may be that there is no normal reset, try to shorten the duration of the low level during reset (because the power-off switch is added to the drive circuit, the reset low level is too long, which will cause the drive board to power off and cause the reset to fail).
- If the busy function sends the 0x71 command, you can try to comment it out.
{{{5}}}
- 0.5mm pitch, 24Pin.
{{{5}}}
{{{5}}}
Question about Screen
- 【Working conditions】Temperature range: 0~50°C; Humidity range: 35%~65%RH.
- 【Storage conditions】: Temperature range: below 30°C; Humidity range: below 55%RH; Maximum storage time: 6 months.
- 【Transportation conditions】: Temperature range: -25~70°C; Maximum transportation time: 10 days.
- 【After unpacking】: Temperature range: 20°C±5°C; Humidity range: 50±5%RH; Maximum storage time: Assemble within 72 hours.
{{{5}}}
- refresh mode
- Full refresh: The electronic ink screen will flicker several times during the refresh process (the number of flickers depends on the refresh time), and the flicker is to remove the afterimage to achieve the best display effect.
- Bureau brush: The electronic ink screen has no flickering effect during the refresh process. Users who use the partial brushing function note that after refreshing several times, a full brush operation should be performed to remove the residual image, otherwise the residual image problem will become more and more serious, or even damage the screen (currently only some black and white e-ink screens support partial brushing, please refer to product page description).
- refresh rate
- During use, it is recommended that customers set the refresh interval of the e-ink screen to at least 180 seconds (except for products that support the local brush function).
- During the standby process (that is, after the refresh operation), it is recommended that the customer set the e-ink screen to sleep mode, or power off (the power supply part of the ink screen can be disconnected with an analog switch) to reduce power consumption and prolong the life of the e-ink screen. (If some e-ink screens are powered on for a long time, the screen will be damaged beyond repair.)
- During the use of the three-color e-ink screen, it is recommended that customers update the display screen at least once every 24 hours (if the screen remains the same screen for a long time, the screen burn will be difficult to repair).
- Full refresh: The electronic ink screen will flicker several times during the refresh process (the number of flickers depends on the refresh time), and the flicker is to remove the afterimage to achieve the best display effect.
- Application
- The e-ink screen is recommended for indoor use. If it is used outdoors, it is necessary to avoid direct sunlight on the e-ink screen, and at the same time, take UV protection measures, because charged particles will dry out under strong light for a long time, resulting in loss of activity and failure to refresh. This situation is irreversible. When designing e-ink screen products, customers should pay attention to determining whether the use environment meets the requirements of e-ink screen.
- The e-ink screen is recommended for indoor use. If it is used outdoors, it is necessary to avoid direct sunlight on the e-ink screen, and at the same time, take UV protection measures, because charged particles will dry out under strong light for a long time, resulting in loss of activity and failure to refresh. This situation is irreversible. When designing e-ink screen products, customers should pay attention to determining whether the use environment meets the requirements of e-ink screen.
{{{5}}}
{{{5}}}
{{{5}}}
{{{5}}}
Insufficient or unstable power supply leads to data loss.
The data cable is too long to cause data loss, the extension cable should not exceed 20cm.
{{{5}}}
Different batches of e-paper diaphragms and electrophoretic matrices require different voltage values when driving the display due to materials, manufacturing processes, etc. The waveform of the e-ink screen is reflected in the relationship between grayscale, voltage, and temperature. Generally speaking, after each batch of electrophoresis matrix is generated, there will be a corresponding waveform file in the form of a .wbf file. The film manufacturer will provide the waveform file and electrophoresis matrix to the manufacturer of the electronic paper screen, and then the manufacturer of the electronic paper screen integrates the protection board, substrate, and driver and then provides it to customers; if the waveform file does not correspond to the screen, it is likely that the display cannot be displayed or the display effect is unsatisfactory. Generally, the waveform file has OTP built into the driver IC of the ink screen when leaving the factory, and some programs we provide also call external waveform files to drive the e-ink screen.
{{{5}}}
{{{5}}}
{{{5}}}
{{{5}}}
Support
Support
If you require technical support, please go to the Support page and open a ticket.