• sales

    +86-0755-88291180

1.22inch e-Paper User Guide

Features​

  • No backlight required; the last displayed image is retained for a long time after power-off
  • Current is drawn basically only during refresh
  • Complete supporting documentation: driver board schematic, and example programs for Raspberry Pi / Jetson Nano / Arduino / STM32 / ESP32, etc.
  • The following applies to the module version only
    • Reserved SPI communication interface for connecting main boards such as Raspberry Pi / Arduino / STM32 / ESP32
    • On-board level shifter chip compatible with 3.3 V and 5 V logic interfaces


Specifications​

Parameter nameValue
Operating voltageRaw display: 3.3 V; Module: 3.3 V / 5 V
Communication interface3-wire SPI, 4-wire SPI
Outline dimensionsRaw display: 30.60 × 27.60 × 1.00 mm; Module: 32.50 × 29.50 mm
Display area22.91 × 21.00 mm
Dot pitch0.1193 × 0.1193 mm
Resolution192 × 176 pixels
Display colorBlack, white
Grayscale levels4
Partial refresh0.6 s
Full refresh2.4 s
Refresh power consumption<10 mW
Sleep current<1 μA
Viewing angle>170°
Operating temperature0 to 50 ℃
Storage temperature-25 to 70 ℃
  • Refresh time: the refresh time is experimental test data; the actual refresh time varies, and the actual result prevails. A flashing effect occurs during a full refresh, which is normal.
  • Refresh power consumption: the power consumption figures are experimental test data; the actual power consumption varies with the presence of the driver board and the actual usage, and the actual result prevails.
  • Refreshing at low temperatures may cause color shift in the display; let the screen rest in a 25℃ environment for 6 hours before refreshing.

Communication​


  • CSB (CS): slave chip select signal, active low; the chip is enabled when it is low.
  • SCL (SCK/SCLK): serial clock signal.
  • D/C (DC): data/command control signal; a command is written when it is low, and data (Data/parameter) when it is high.
  • SDA (DIN): serial data signal.
  • Timing: CPHA=0, CPOL=0, that is, SPI mode 0.
  • Note: for specific information about SPI communication, search for relevant material online.

Working Principle​

The e-paper used in this product displays images with "microcapsule electrophoretic display" technology. Its basic principle is that charged nanoparticles suspended in a liquid migrate under the action of an electric field. An e-paper display shows patterns by reflecting ambient light and needs no backlight; under ambient light it is clearly visible, with a viewing angle of nearly 180°.

Programming Principle​

The following describes the pixel data arrangement using a black-and-white binary image; for the 4-level grayscale data encoding, refer to the corresponding example program.

  • For a black-and-white binary image, 0 can represent black and 1 can represent white:

    • White: □: corresponds to 1
    • Black: ■: corresponds to 0
  • A dot in a graphic is generally called a pixel, and since the color is either 1 or 0, one bit can represent the color: 1Pixel = 1bit, so one byte contains 8 pixels.

  • Taking 16 pixels as an example, assume the first 8 pixels are black and the last 8 are white; then pixels 1-16 correspond to bits 0 to 15, where 0 means black and 1 means white:


    The black-and-white bitmap examples below are arranged most significant bit first and least significant bit last, with each byte containing 8 bits:


    In this way, only 2 bytes are needed to represent 16 pixels.

Precautions​

NOTE
  1. Do not keep the screen powered for a long time. When the screen is not refreshing, set it to sleep mode or cut off the power. Otherwise, the screen stays at a high voltage for a long time, which damages the film irreparably.
  2. When using an e-paper screen, it is recommended to keep the refresh interval at least 180 s and refresh at least once every 24 hours. If the screen is not used for a long time, refresh it to white before storage. (Refer to the datasheet for the specific storage environment requirements.)
  3. The FPC cable of the screen is fragile, so note: do not bend the cable in the direction perpendicular to the screen, to avoid tearing it; do not bend the cable repeatedly or excessively, to avoid breaking it; do not bend the cable toward the front of the screen, to avoid disconnecting it from the panel. During debugging and development, fix the cable in place before use.
  4. The e-paper screen is fragile; avoid dropping it, knocking it, or pressing it hard.
WARNING
  1. After the screen enters sleep mode, image data sent to it is ignored; only reinitialization restores normal refreshing.
  2. If the image data you produced displays incorrectly on the screen, check whether the image size settings are correct, and try swapping the width and height settings.
  3. The e-paper screen requires an operating voltage of 3.3V; if you purchased the raw display only and your circuit design needs to work in a 5V environment, add level shifting.
TIP

We recommend testing the screen with the example programs we provide on the corresponding development board first.

Dimensions​

Raw Display​


Module​



Working with Raspberry Pi

Hardware Connection​

  • Connect with a 9PIN ribbon cable; refer to the pin mapping table below:
    • Raspberry Pi pin mapping
    e-PaperRaspberry Pi pin mapping
    BCM2835 nameBoard physical pin number
    VCC3.3 V3.3 V
    GNDGNDGND
    DINMOSI19
    CLKSCLK23
    CSCE024
    DC2522
    RST1711
    BUSY2418
    PWR1812

Enabling the SPI Interface​

  • Open the Raspberry Pi terminal and enter the following command to open the configuration interface:

    sudo raspi-config

    Select Interfacing Options -> SPI -> Yes to enable the SPI interface


  • Restart the Raspberry Pi:

    sudo reboot
  • Check /boot/config.txt; dtparam=spi=on can be seen to have been written


  • To make sure SPI is not occupied, it is recommended to temporarily disable other driver overlays. You can use ls /dev/spi* to check the SPI occupation; if the terminal outputs /dev/spidev0.0 and /dev/spidev0.1, SPI is in the normal state


Running the C Example​

  • Install the lg library

    #Open the Raspberry Pi terminal and run the following commands:
    wget https://github.com/joan2937/lg/archive/master.zip
    unzip master.zip
    cd lg-master
    make
    sudo make install
    # For more, refer to the source: https://github.com/gpiozero/lg
    Install the gpiod library (optional)
    #Open the Raspberry Pi terminal and run the following commands:
    sudo apt-get update
    sudo apt install gpiod libgpiod-dev
    Install BCM2835 (optional)
    #Open the Raspberry Pi terminal and run the following commands:
    wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.71.tar.gz
    tar zxvf bcm2835-1.71.tar.gz
    cd bcm2835-1.71/
    sudo ./configure && sudo make && sudo make check && sudo make install
    # For more, refer to the official website: http://www.airspayce.com/mikem/bcm2835/
    Install wiringPi (optional)
    #Open the Raspberry Pi terminal and run the following commands:
    sudo apt-get install wiringpi
    # For Raspberry Pi systems released after May 2019 (not needed on earlier ones), an upgrade may be required:
    # project-downloads.drogon.net has stopped serving; install it with the GitHub method below
    # wget https://project-downloads.drogon.net/wiringpi-latest.deb
    # sudo dpkg -i wiringpi-latest.deb
    gpio -v
    # Running gpio -v shows version 2.52; if it does not appear, the installation failed.

    #For Bullseye branch systems, use the following commands:
    git clone https://github.com/WiringPi/WiringPi
    cd WiringPi
    ./build
    gpio -v
    # Running gpio -v shows version 2.60; if it does not appear, the installation failed.
  • Clone the example repository from GitHub and enter the shared example directory. If the repository is already cloned, skip only the git clone command.

    git clone https://github.com/waveshareteam/1.22inch_e-Paper.git
    cd 1.22inch_e-Paper/example/RaspberryPi_JetsonNano/
  • Compile the program (note: -j4 compiles with 4 threads; the number can be changed as needed;)

    # The current location is 1.22inch_e-Paper/example/RaspberryPi_JetsonNano
    cd c
    sudo make clean
    sudo make -j4
  • Run the program

    sudo ./epd

Running the Python Example​

  • Install the libraries

    sudo apt-get update
    sudo apt-get install python3-pip
    sudo apt-get install python3-pil
    sudo apt-get install python3-numpy
    sudo pip3 install spidev
    Install the libraries (python2)
    sudo apt-get update
    sudo apt-get install python-pip
    sudo apt-get install python-pil
    sudo apt-get install python-numpy
    sudo pip install spidev
    Install the gpiozero library (installed by default; if not, install it with the following commands)
    sudo apt-get update
    # python3
    sudo apt install python3-gpiozero
    # python2
    sudo apt install python-gpiozero
  • Clone the example repository from GitHub and enter the shared example directory. If the repository is already cloned, skip only the git clone command.

    git clone https://github.com/waveshareteam/1.22inch_e-Paper.git
    cd 1.22inch_e-Paper/example/RaspberryPi_JetsonNano/
  • Run the program

    # Make sure the current location is 1.22inch_e-Paper/example/RaspberryPi_JetsonNano/
    cd python/examples/
    python3 epd_1in22_test.py


Working with Arduino

Hardware Connection​

Connect with a 9PIN ribbon cable, wiring according to the pin mapping table below:

e-PaperArduino UNOMega2560
VCC3.3 V3.3 V
GNDGNDGND
DIND11D51
CLKD13D52
CSD10D10
DCD9D9
RSTD8D8
BUSYD7D7
PWRD6D6

Installing the IDE​

Arduino IDE Windows installation tutorial

Running the Program​

  • Download the program from 1.22inch_e-Paper example programs, extract it, and enter the 1.22inch_e-Paper directory; the contents are shown below.


  • Open the test program: 1.22inch_e-Paper\example\Arduino_R4\Arduino_R4.ino


  • Select the corresponding "Board" and "Port" in the Arduino IDE "Tools" menu.


  • Finally, click Upload; a successful upload looks like this (Arduino 1.8.13)



Working with Jetson Nano

Hardware Connection​

  • If you choose to connect with a 9PIN ribbon cable, refer to the pin mapping table below:

    Jetson nano pin mapping

    e-PaperJetson Nano Developer Kit
    BCM2835 nameBoard physical pin number
    VCC3.3 V3.3 V
    GNDGNDGND
    DIN10(SPI0_MOSI)19
    CLK11(SPI0_SCK)23
    CS8(SPI0_CS0)24
    DC2522
    RST1711
    BUSY2418
    PWR1812

Running the C Example​

  • Clone the example repository from GitHub and enter the shared example directory. If the repository is already cloned, skip only the git clone command.

    git clone https://github.com/waveshareteam/1.22inch_e-Paper.git
    cd 1.22inch_e-Paper/example/RaspberryPi_JetsonNano/
  • Compile the program (note: -j4 compiles with 4 threads; the number can be changed as needed;)

    # The current location is 1.22inch_e-Paper/example/RaspberryPi_JetsonNano
    cd c
    sudo make clean
    sudo make JETSON -j4
  • Run the program

    sudo ./epd

Running the Python Example​

  • Install the libraries

    sudo apt-get update
    sudo apt-get install python3-numpy
    sudo apt-get install python3-pip python3-pil
    sudo pip3 install Jetson.GPIO spidev
  • Clone the example repository from GitHub and enter the shared example directory. If the repository is already cloned, skip only the git clone command.

    git clone https://github.com/waveshareteam/1.22inch_e-Paper.git
    cd 1.22inch_e-Paper/example/RaspberryPi_JetsonNano/
  • Run the program

    # Make sure the current location is 1.22inch_e-Paper/example/RaspberryPi_JetsonNano/
    cd python/examples/
    python3 epd_1in22_test.py


Working with STM32

Hardware Connection​

Connect with a 9PIN ribbon cable; refer to the pin mapping table below:

STM32 pin mapping

e-PaperSTM32
VCC3.3 V
GNDGND
DINPA7
CLKPA5
CSPA4
DCPA2
RSTPA1
BUSYPA3
PWRPA6

Running the Program​

  • Download the program from 1.22inch_e-Paper example programs, extract it, and enter the 1.22inch_e-Paper directory.


  • Open 1.22inch_e-Paper\example\STM32-F103ZET6\MDK-ARM\epd-demo.uvprojx with Keil.

  • Open the Keil build toolbar (usually already open)


  • Click Build.


  • Make sure a suitable programmer is connected, then click Download (LOAD) to program the MCU

Working with ESP32

Hardware Connection​

ESP32 pin mapping

e-PaperESP32ESP32-S3
VCC3.3 V3.3 V
GNDGNDGND
DINIO14IO11
CLKIO13IO12
CSIO15IO10
DCIO27IO13
RSTIO26IO14
BUSYIO25IO4
PWRIO33IO5

Environment Setup​

Online installation requires access to the corresponding software source.

Running the Program​

  • Download the program from 1.22inch_e-Paper example programs, extract it, and enter the 1.22inch_e-Paper directory.


  • Open the test program: 1.22inch_e-Paper\example\ESP32\ESP32.ino or 1.22inch_e-Paper\example\ESP32-S3\ESP32-S3.ino



  • Select the corresponding "Board" and "Port" in the Arduino IDE "Tools" menu.


  • If the ESP32-S3 board you use has PSRAM, enable the corresponding PSRAM option in the board settings.


  • Finally, click Upload; a successful upload looks like this (Arduino 2.2.1)



Resources and Documents

1. Example Programs​

2. Hardware Resources​

3. Technical Manuals​

  • To be updated

4. Software Tools​

5. Other Resources​

Support

Monday-Friday (9:30-6:30) Saturday (9:30-5:30)

Email: services01@spotpear.com

TAG: RS485 Bus ADXL354C Development Board ESP32-S3 QMI8658A Image-Modulation-Tutorial User Guide RS485 TO ETH (B) Connect Alibaba Cloud And EMQX ESP32 ST7789 Raspberry Pi Pico 2 RP2350 0.85 inch LCD Display mini Development Board 0.85inch Screen RGB LED/SD Slot /QMI8658 Gyroscope Sensor R7FA4 PLUS B Development Board Based on R7FA4M1AB3CFM Compatible with Arduino UNO For R4 WiFi Arduino MLX90640 FT232RNL USB TO TTL Industrial UART (C) User Guide PC USB Monitor Screen Spotpear X1202 Raspberry Pi 5 UPS Board Uninterruptible Power Supply For 18650-Li-Battery (NOT includ) 4-Ports ESP32-S3 Development Board 4 inch LCD TouchScreen Display 480x480 RS485 /SHT20 /Relay For Arduino LVGL 86 TVbox ESP32-P4 Smart 86 TV Box Development Board 4 inch 720x720 Display TouchScreen RS485 Relay Camera RJ45 ETH Desktop Trinket Onboard ESP32-C6 Development Board ESP32 S3 4.3inch LCD (B) 800x480 Captive TouchScreen Display Board LVGL with Sensor CAN I2C RS485 ESP32 2 inch Capacitive TouchScreen LCD Display ST7789 CST816D 240x320 For Arduino/Raspberry Pi/Pico SpotPear