• 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 display Milk V Wiki MP2.5GD Raspberry Pi 5 PCIe to Dual 2.5G Double Ethernet HAT Pi5 RTL8125 ESP32-S3 AI 3.97-inch e-Paper Ink Screen 3.97inch Display AIoT Development Board Deepseek Milk V Raspberry Pi Zero 2W Dual Ethernet Expansion Board USB Hub Expansion RJ45 Pi 5 PCIe to M.2 Raspberry Pi UGV Rover ROS2 PT AI OpenCV Robot Car MediaPipe Raspberry Pi Pico 2 RP2350 2.8 inch LCD Capacitive TouchScreen Development Board 240x320 Display QMI8658 6-Axis /PCM5101 Audio /SD /RTC /Battery Port ESP32 C3 Electronic EYE 0.71 inch Round Double LCD Display Dual Screen For Arduino Raspberry Pi ESP32 Pico STM32 2.66inch e-Paper e-link Module 360x184 4-Color Red Yellow Black White For Arduino Raspberry Pi STM32 Jetson Tutorial Information Wiki Program Code User Guide SpotPear 1.83inch LCD TouchScreen Display 240&amp;amp;amp;times;280 NV3030B Arduino Raspberry Pi ESP32S3 Pico STM32 Raspberry Pi Pico 2 RP2350 bit board Size &amp;amp; Port high Compatible With BBC Micro:bit Lichee-Tang-Primer-20K-FPGA-Unboxing Magnetic Encoder Servo Motor 35KG.CM 24V 360&amp;deg; RS485 High Precision And Large Torque RSBL35-24-HS ESP32 S3 R8 MP3 Board 2.8inch LCD TouchScreen Display Speaker/SD-Card/Battery/QMI8658-6-Axis-Sensor TVBOX Kit Luckfox Pico Ultra And 4inch LCD RGB Captive TouchScreen Display Raspberry Pi 7 inch CAPLCD 1280x800 Capacitive TouchScreen HDMI/Type C Display Monitor For Computer mini PC