• sales

    +86-0755-88291180

3.7inch e-Paper

Introduction

Note: The raw panel requires a driver board, If you are the first time use this e-Paper, we recommend you to buy the HAT version or buy more one driver hat for easy use, otherwise you need to make the driver board yourself. And this instruction is based on the HAT version.

480x280, 3.7inch E-Ink display HAT for Raspberry Pi, SPI interface

Interfaces

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

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 a 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. Here, SPI0 is in used, and data is transferred by bits, MSB first.

Working protocoal

Pixel & Byte

We define the pixels in a monochrome picture, 0 is black and 1 is white.
White:□,Bit 1
Black:■:Bit 0

  • The dot in the figure is called a pixel. As we know, 1 and 0 are used to define the color, therefore we can use one bit to define the color of one pixel, and 1 byte = 8pixels
  • For example, If we set first 8 pixels to black and the last 8 pixels to white, we show it by codes, they will be 16 bit as below:


For computer, the data is saved in MSB format:

So we can use two bytes for 16 pixels.

  • In addition to bicolor displaying, the 3.7inch e-Paper also supports four grayscale.
To display grey pixels, we need to define data for gray
  • Black: 00b
  • Dark Grey: 10b
  • Light Grey: 01b
  • White: 11b
Pixel12345678
Bit7654321076543210
Data0000101001011111
ColorBlackBlackDark GreyDark GreyLight GreyLight GreyWhiteWhite
Byte0x0A0x5F

The display divides a four-grayscale picture into two pictures. The pixels in the same position of pictures are combined into one pixel.

RegisterWhiteLight GreyDark GreyBlack
0x240x010x000x010x00
0x260x010x010x000x00

With the tables above, you can define the data which can be used to display grayscale pixels in the 3.7inch e-Paper

Pixel12345678
Bit7654321076543210
Data0000101001011111
ColorBlackBlackDark GreyDark GreyLight GreyLight GreyWhiteWhite
Byte0x0A0x5F
Bit in 0x24 register00110011
Bit in 0x26 register00001111
Data sent to 0x24 register0x33
Data sent to 0x26 register0x0F
TAG: Raspberry Pi Arducam 64MP Camera Milk-V Duo Information Pico-DALI2 Expansion Board For ESP32 C6 S3 DALI communication control multiple LED Raspberry Pi Pico 2 RP2350 1.28 inch Round LCD Development Board 240x240 Display Screen QMI8658 6-Axis Raspberry Pi 5 DSI Bookworm 7.5 inch Passive NFC e-Paper V2 BW Display 7.5inch E-ink Screen No Need Battery Wireless Powered Data Transfer For Mobile APP RV1103 Pi5-Pcie-Fish-Boar ESP32 C3 ST7789 Raspberry Pi Thermal imaging camera Ra Servo PWM motor WP5320 WP5335 35/20KG.CM 180° PWM digital servo double ball bearings 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 MPW7 Raspberry Pi 5 PCIe to WIFI7 Adapter Board HAT Pi5 For Google TPU BE200 AX210 AI Raspberry Pi 12.3 inch HDMI LCD Captive TouchScreen Display 1920x720 For Jetson Series/Computer PC Raspberry Pi Real time clock STM32 0.85inch LCD Raspberry Pi 5 Camera X1003 Raspberry Pi 5 PCIe to M.2 NVMe SSD MINI Adapter Board HAT Pi5 2242 2230