• sales

    +86-0755-88291180

Raspberry Pi 4.01inch e-Paper HAT (F) User Guide

This 4.01inch Colorful E-Paper E-Ink Display HAT For Raspberry Pi, 640×400 Pixels, ACeP 7-Color, SPI Interface

Specifications

  • Operating voltage: 3.3V/5V
  • Display color: ACep 7-Color
  • Interface: 3-wire SPI, 4-wire SPI
  • Crey scale: 2
  • Display size: 86.40 × 54.00mm
  • Dot pitch: 0.135 × 0.135mm
  • Resolution: 640 × 400 pixels
  • Viewing angle: >170°
  • Full refresh time: 15s
  • Refresh power: 50mW(typ.)
  • Standby current: <0.01uA(almost none)
  • Outline dimension: 98.50 × 70.00mm

Interfaces

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

SPI timing


This product is an E-paper device adopting the image display technology of Microencapsulated Electrophoretic Display, MED. The initial approach is to create tiny spheres, in which the charged color pigments are suspending in the transparent oil and would move depending on the electronic charge. The E-paper screen display patterns by reflecting the ambient light, so it has no background light requirement. Under ambient light, the E-paper screen still has high visibility with a wide viewing angle of 180 degrees. It is the ideal choice for E-reading. (Note that the e-Paper cannot support updating directly under sunlight)

Communication protocol


Note: Different from the traditional SPI protocol, the data line from the slave to the master is hidden since the device only has display requirement.

  • CS is the slave chip select. When CS is low, the chip is enabled.
  • DC is data/command control pin, when DC = 0, write command, when DC = 1, write data.
  • SCLK is the SPI communication clock.
  • SDIN is the data line from the master to the slave in SPI communication.

SPI communication has data transfer timing, which is combined with CPHA and CPOL.

  1. CPOL determines the level of the serial synchronous clock at idle state. When CPOL = 0, the level is Low. However, CPOL has little effect to the transmission.
  2. CPHA determines data is collected at the first clock edge or at the second clock edge of the serial synchronous clock; when CPHL = 0, data is collected at the first clock edge.
  • There are 4 SPI communication modes. SPI0 is commonly used, in which CPHL = 0, CPOL = 0.

As you can see from the figure above, data transmission starts at the first falling edge of SCLK, and 8 bits of data are transferred in one clock cycle. In here, SPI0 is in used, and data is transferred by bits, MSB first.

Color of e-Paper

An image is made of pixels. The sizes of every pixel defined how many kinds of color are supported by the e-Paper. Monochrome image use one bit for one pixel (0 and 1, black and white), in this case, if we want to display more colors, we should use more bits for every pixel.
We need at least 3bits to display severe color. For easy programming, we and an 0 bit in front of it. In this case, we use 4 bits for every pixel.

ColorBINHEXThe color (reference)
Black0b00000x0
White0b00010x1
Green0b00100x2
Blue0b00110x3
Red0b01000x4
Yellow0b01010x5
Orange0b01100x6

For example, if you want to display four colors, green, yellow, red and orange, it should be like as below:

Pixel1234
Bit0123456789101112131415
Data0010010101000110
Color

Data is saved in MSB formate and 1byte is equal to 8 bits.

Pixel1234
Bit7654331076543210
Data0010010101000110
Color
Byte0x250x46

You can refer to the "Make BMP file for e-Paper" guide and make the image yourself for this module.

TAG: ESP32-S3 Development Board 1.85 inch Round LCD N16R8 DeepSeek AI Voice Chat Robot BOX Magnetic-charging RP2040 Raspberry Pi Pico 2 RP2350/RP2040 W5100S-EVB-Pico W6300-EVB-Pico2 Ethernet Development Board ETH RJ45 Raspberry Pi 4B/5 Industrial UART 2CH RS485 RS232 CAN FD HAT With Case For Installation of guide rails and hanging 0.85inch LCD EPS32S3 1.8inch Round LCD Display WIFI-AIDA64-Secondary-TouchScreen/Wireless-Power/Video-Player LVGL X1300 X1300-A2 Raspberry Pi 5 HDMI to CSI-2 Shield 1080P@60fps & Audio & Video Also USB to SPI Raspberry Pi 5 CR2032 Industrial Modbus RTU RS485 8-ch 30A High Current Relay Module (E) With Digital Input Raspberry Pi display Milk V Duo Raspberry Pi 3.5 inch e-Paper link (G) RYBW 384x184 For Arduino / Jetson Nano / STM32 2.13inch e Paper HAT+ Black-White 250x122 E-Ink For Raspberry Pi /Jetson Nano /Sunrise X3 Pi /Pwnago Arducam 64MP Camera UGV Beast PT AI 4G 5G OpenCV Robot Car MediaPipe For Raspberry Pi4B/5 LCD Screen Driver Board ESP32 P4 Development Board 7-inch LCD Display 1024×600 7inch Touchscreen ESP32-C6 WiFi6 AI Deepseek STM32 programmer 1.54inch OLED Display