• 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: Raspberry Pi 5 PCIE to MiniPCIe For wireless network WIFI Card USB Bluetooth SIM7600G H Mini PCIe SIMCom Original 4G LTE Cat-4 Module Global Coverage GNSS Raspberry Pi Compute Module 5 CM5 Cortex A76 BCM2712 With/Without Wi-Fi RAM 2/4/8/16GB eMMC Lite/8/16/32/64GB Milk-V Duo S WIFI Configuration Raspberry Pi 18.5 inch Type C/HDMI/4K Display Screen 3840×2160 Computer PC Phone Xbox/PS4/Switch Raspberry Pi Camera 12MP Sony IMX708 autofocus HDR Module 3 Sensor Assembly Raspberry Pi PICO Keyboard Raspberry Pi 5 UART Raspberry Pi 8 inch DSI LCD Display With 5MP Front Camera MIPI 800&times;480 Capacitive TouchScreen Raspberry Pi 1.44inch LCD display HAT X1300 X1300-A2 Raspberry Pi 5 HDMI to CSI-2 Shield 1080P@60fps & Audio & Video Also Raspberry Pi 3 LCD HAT ESP32 ST7789 development board ADXL354C Dev Board RTL8852BE wireless network card Gigabit dual-band WiFi6 wireless module Standard Bluetooth 5.2 Windows Environment User Guide Raspberry Pi 5/4B easy Adapter Micro HDMI to HDMI 4K All Ports To Pi's USB Side Raspberry Pi Pico GNSS expansion board L76K GPS Beidou (BDS) GLONASS QZSS A-GNSS For RP2040/RP2350 Jetson Orin 5G/4G/3G expansion board GNSS GPS SIM8260G-M2 SIM8262E-M2