• 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: Jetson Nano 5G module Developer Kit Milk-V Duo S User Guide Total Raspberry Pi Pico 2 RP2350 2.8 inch LCD Capacitive TouchScreen Development Board 240x320 Display QMI8658 6-Axis /PCM5101 Audio /SD /RTC /Battery Port Raspberry Pi 5 Raspberry Pi 5 CR2032 Luckfox NanoKVM-Lite D-Robotics RDK X3 MD Carrier Board For RDK X3 Module Horizon Sunrise Pi ARM Cortex-A53 5Tops 7.5 inch Passive NFC e-Paper BW Display 7.5inch E-ink Screen No Need Battery Wireless Powered Data Transfer ESP32-S3 1.69inch LCD Display With QST Attitude Gyro Sensor QMI8658C For Arduino Python EchoEar ESP32 S3 AI Development Board with 1.85-inch LCD Display Cute Cat Pet Chatting Robot N32R16 RV1106 E-Ink RS422 to CAN UPS HAT D ESP32-S3 Industrial-Grade IOT RS485 CAN Communicator WiFi Bluetooth Raspberry Pi Pico 2 RP2350 industrial 6-ch Relay RS485 isolation protection Industrial Modbus POE ETH RJ45 To 8-Ch Relay B RTU/Modbus TCP-Ethernet For IOT Raspberry Pi RP2040 LoRa