Difference between revisions of "E-Paper Driver HAT"
Line 48: | Line 48: | ||
=== Interface Config Switch === | === Interface Config Switch === | ||
− | + | {|class="wikitable" | |
+ | |- | ||
+ | ! Switch to 0 !! Switch to 1 | ||
+ | |- | ||
+ | |4-line SPI || 3-line SPI | ||
+ | |} | ||
=== 7.5inch e-Paper Switch Settings === | === 7.5inch e-Paper Switch Settings === |
Revision as of 10:10, 27 September 2017
| ||
Introduction
Universal e-Paper Driver HAT, supports various Waveshare SPI e-Paper raw panels
More |
Interfaces
VCC | 3.3V |
GND | GND |
DIN | SPI MOSI |
CLK | SPI SCK |
CS | SPI chip select (Low active) |
DC | Data/Command control pin (High for data, and low for command) |
RST | External reset pin (Low for reset) |
BUSY | Busy state output pin (Low for busy) |
Switch settings
Display Config Switch
Switch to A | Switch to B |
---|---|
1.54inch e-Paper (B) 2.13inch e-Paper (B) 2.7inch e-Paper 2.7inch e-Paper (B) 2.9inch e-Paper (B) 4.2inch e-Paper 4.2inch e-Paper (B) 7.5inch e-Paper 7.5inch e-Paper (B) |
1.54inch e-Paper 2.13inch e-Paper 2.9inch e-Paper |
Interface Config Switch
Switch to 0 | Switch to 1 |
---|---|
4-line SPI | 3-line SPI |
7.5inch e-Paper Switch Settings
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.
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.
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 (about 6s), and it will flicker for several times during refreshing. Please be patient.
Working with Arduino
Hardware connection
e-Paper | Arduino |
---|---|
3.3V | 3V3 (if the display doesn't work on 3.3V, you can try 5V in most cases.) |
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 is based on HAL, so you can port the demo code to other STM board 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
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)
Support
Support
If you require technical support, please go to the Support page and open a ticket.