• sales

    +86-0755-88291180

e-Paper Driver HAT

Introduction

Universal e-Paper Driver HAT, supports various Waveshare SPI interface e-Paper raw panels

Interfaces

VCC3.3V
GNDGND
DINSPI MOSI pin
CLKSPI SCK pin
CSSPI chip select (low active)
DCData/Command control pin (high for data, and low for command)
RSTExternal reset pin (low active)
BUSYBusy state output pin (low active)


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-Ink raw 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:

Switch to BSwitch to A

1.54inch e-Paper (B)

1.54inch e-Paper

2.13inch e-Paper (B)

2.13inch e-Paper

2.7inch e-Paper

2.9inch 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



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 0Switch to 1
4-line SPI3-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-PaperRaspberry Pi 3B
3.3V3.3V
GNDGND
DINMOSI
CLKSCLK
CSCE0
DC25 (BCM)
RST17 (BCM)
BUSY24 (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 file epd. Execute the command: sudo ./epd, the program will run.
  • WringPi: Execute the command: make, to compile the code and generate a file epd. 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-PaperArduino UNO
3.3V3V3
GNDGND
DIND11
CLKD13
CSD10
DCD9
RSTD8
BUSYD7

Expected result

  1. 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
  2. Upload the project.
  3. 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-PaperSTM32F103ZE
3.3V3V3
GNDGND
DINPA7 (MOSI)
CLKPA5 (SCK)
CSPA4
DCPA2
RSTPA1
BUSYPA3

Connecting to the NUCLEO-F103RB:

e-PaperNUCLEO-F103RB
3.3V3V3
GNDGND
DINPA7
CLKPA5
CSPB6
DCPC7
RSTPA9
BUSYPA8

Expected result

  1. Open the project (epd-demo.uvprojx), which is under the MDK-ARM directory.
  2. Click Build to compile the project.
  3. 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.


  • e-Paper HAT Codes description

  • e-Paper HAT Hardware/software setup
  • TAG: Sipeed Lichee Tang Nano 20K FPGA RISCV Open-Source Retro-Game Linux MINI Development Board GW2AR-18 i7-1165G7 Raspberry Pi 5 PCIe USB HUB 3.2 Gen1 HAT+ High Speed Pi5 ESP32 IR Thermal Imaging Camera Arduino 1.54inch OLED R7FA4 Plus A Board Based on R7FA4M1AB3CFM Compatible with Arduino UNO For R4 Minima Raspberry Pi 5 PWM Fan Jetson Nano ESP32 S3 Development Board 1.85 inch Round LCD Display 360×360 QMI8658 Sensor / MIC / SD /MP3 Audio /Battery Port LVGL/HMI For Arduino Raspberry Pi 5 RTC Box Industrial Isolation USB TO RS232/485/422/TTL FT232RNL Serial UART Converter Raspberry Pi5 PCIe TO M.2 MINI Support Gen2 and Gen3 SSD Compatible 2230 2242 Industrial Modbus RTU 8 ch Relay Module Raspberry Pi 10.1 inch DSI MIPI LCD TouchScreen Display 10.1inch 720x1280 For Luckfox Lyra RK3506/ESP32-P4/Luckfox Omni3576 Raspberry Pi Pico RP2040 1.69 inch TouchScreen Round LCD Display With QMI8658/Buzzer/RTC For Arduino X1010 Raspberry Pi 5 PCIe FFC Connector to Standard PCIe x4 Slot Expansion Board RS422 to CAN ESP32 P4 Development Board WIFI6 4 inch LCD Round Display 4inch TouchScreen 720×720 Dual Microphones Raspberry Pi 2-Channel Isolated CAN Bus Expansion HAT Dual Chips Solution Built-In Multi Protections ESP32 MLX90640