Google Chat: zj734465502@gmail.com
+86-0755-88291180
sales01@spotpear.com
dragon_manager@163.com
services01@spotpear.com
manager01@spotpear.com
WhatsApp:13246739196
Size | 4.2inch |
Driver Board Size | 103.0mm × 78.5mm |
Display Size | 84.8mm × 63.6mm |
Outline Dimensions (raw display) | 91.00mm × 77.00mm × 1.00mm |
Operating Voltage | 3.3V / 5V (IO level voltage should be the same as the supply voltage) |
Communication Interface | SPI |
Dot Pitch | 0.212mm × 0.212mm |
Resolution | 400 × 300 |
Display Color | Black, White, Red, Yellow |
Grayscale | 2 |
Refresh Time | 21s |
Refresh Power | <30 mW(typ.) |
Sleep Current | < 0.01uA (close to 0) |
Operating Temperature | 0 ~ 40 ℃ |
Storage Temperature | -25 ~ 70 ℃ |
CSB (CS): Slave chip selection signal, low active. When CS is low level, the chip is enabled.
SCL (SCK/SCLK): Serial clock signal.
D/C (DC): Data/Command control signal, writes commands at a low level; writes data/parameter at a high level.
SDA (DIN): Serial data signal.
Timing sequence: CPHL=0, CPOL=0 (that is, SPI mode 0).
This product is an e-Paper device adopting the image display technology of Microencapsulated Electrophoretic Display, MED. The basic principle is that the charged nanoparticles suspended in the liquid are subjected to the electric field to produce migration. 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 almost 180 degrees. It is the ideal choice for e-reading.
For four-color e-Paper ink screen, we can refer to grayscale images with four tones for understanding, though there are still some differences.
To save memory space, the ink screen compresses the pixels:
Black: corresponds to 00b
White: corresponds to 01b
Yellow: corresponds to 10b
Red: corresponds to 11b
Let's take 4 pixels as an example:
pixel | 1 | 2 | 3 | 4 | ||||
bit | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
Stored data | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 |
Color | Black | White | Yellow | Red | ||||
byte | 0x1B |
Writing data 0x1B to register 0x10 sets four pixels on the ink screen to black, white, yellow, and red colors respectively
Picture production and conversion of multi-color e-Paper
Software required: Adobe PhotoShop CC, Paint
Preparation: Download Color table to your PC, and extract it to get the following files, we need to use N-color.act or 4-color.act, 6-color.act.
1. Create a new Photoshop project, set the width and height according to the actual resolution of the e-Papre screen, and use RGB color in the color mode. If the screen resolution used is 800*480, change the width to 800 pixels and the height to 480 pixels.
2. Prepare the corresponding materials, copy them into the project, and adjust parameters such as size and contrast (similar to the steps involved in general Photoshop image processing).
3. Select File - Store in the format used for the web and device.
4. Select Load Color table as shown below. Load the Color table provided in the Preparation section.
5. For seven-color pictures, load N-color.act, then click Save to save as a gif file. It is then converted to BMP format for use on this module.
For four-color pictures, load 4-color.act, then click Save to save as a gif file. It is then converted to BMP format for use on this module.
For six-color pictures, load 6-color.act, then click Save to save as a gif file. It is then converted to BMP format for use on this module.
6. Open the GIF file with Paint, save it as a 24-bit BMP picture.
7. At this point, the picture has been made, and it can be used in the TF card of the Raspberry Pi or e-Paper Shield module, or converted into an array for other embedded devices according to the next section.
Note: This application is provided for your convenience and is open source, and our company does not provide technical support for it
If your computer is win10/win11 and you do not have VS (Microsoft Visual Studio) or other Microsoft development tools installed, you may encounter error prompts: "ucrtbased.dll" and "vcruntime 140d.dll".
This means that these two components are missing from your computer, and the solution is as follows:
1. Install VS (Microsoft Visual Studio) or other Microsoft development tools (Visual C++ Redistributable, etc.).
2. Use the two component files provided by us
Put these two files in the directory C:\Windows\System32 and restart your computer
Please refer to the pin corresponding table below:
e-Paper | Raspberry Pi | |
BCM2835 encoding | Board physical pin number | |
VCC | 3.3V | 3.3V |
GND | GND | GND |
DIN | MOSI | 19 |
CLK | SCLK | 23 |
CS | CE0 | 24 |
DC | 25 | 22 |
RST | 17 | 11 |
BUSY | 24 | 18 |
sudo raspi-config Select Interfacing Options -> SPI -> Yes to enable the SPI interface
sudo reboot
#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 information, please refer to the source code: https://github.com/gpiozero/lg
#Open the Raspberry Pi terminal and run the following commands: sudo apt-get update sudo apt install gpiod libgpiod-dev
#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 information, please refer to the official website: http://www.airspayce.com/mikem/bcm2835/
#Open the Raspberry Pi terminal and run the following commands: sudo apt-get install wiringpi #For Raspberry Pi systems after May 2019 (those earlier may not require execution), an upgrade may be necessary: wget https://project-downloads.drogon.net/wiringpi-latest.deb sudo dpkg -i wiringpi-latest.deb gpio -v # Run gpio -v and version 2.52 will appear. If it does not appear, there is an installation error. #Bullseye branch system uses the following command: git clone https://github.com/WiringPi/WiringPi cd WiringPi ./build gpio -v # Run gpio -v and version 2.60 will appear. If it does not appear, there is an installation error.
wget https://files.waveshare.com/wiki/4.2inch%20e-Paper%20Module%20(G)/4in2_e-Paper_G.zip unzip 4in2_e-Paper_G.zip -d 4in2_e-Paper_G cd 4in2_e-Paper_G/RaspberryPi_JetsonNano/
sudo apt-get install p7zip-full 7z x 4in2_e-Paper_G.zip -O./4in2_e-Paper_G cd 4in2_e-Paper_G/RaspberryPi_JetsonNano/
Currently, accessing GitHub is not very smooth. It is recommended to use the above method to download from our official website.
git clone https://github.com/waveshare/e-Paper.git cd e-Paper/E-paper_Separate_Program/4in2_e-Paper_G/RaspberryPi_JetsonNano/
# It is now in 4in2_e-Paper_G/RaspberryPi_JetsonNano cd c sudo make clean sudo make -j4
sudo ./epd
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
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
sudo apt-get update # python3 sudo apt install python3-gpiozero # python2 sudo apt install python-gpiozero
wget https://files.waveshare.com/wiki/4.2inch%20e-Paper%20Module%20(G)/4in2_e-Paper_G.zip unzip 4in2_e-Paper_G.zip -d 4in2_e-Paper_G cd 4in2_e-Paper_G/RaspberryPi_JetsonNano/
sudo apt-get install p7zip-full 7z x 4in2_e-Paper_G.zip -O./4in2_e-Paper_G cd 4in2_e-Paper_G/RaspberryPi_JetsonNano/
Currently, accessing GitHub is not very smooth. It is recommended to use the above method to download from our official website.
git clone https://github.com/waveshare/e-Paper.git cd e-Paper/E-paper_Separate_Program/4in2_e-Paper_G/RaspberryPi_JetsonNano/
# Make sure it is in 4in2_e-Paper_G/RaspberryPi_JetsonNano/ cd python/examples/ python3 epd_4in2g_test.py
Use an 8PIN cable to connect, please refer to the pin corresponding table below:
e-Paper | Arduino UNO | Mega2560 |
VCC | 5V | 5V |
GND | GND | GND |
DIN | D11 | D51 |
CLK | D13 | D52 |
CS | D10 | D10 |
DC | D9 | D9 |
RST | D8 | D8 |
BUSY | D7 | D7 |
Arduino IDE Windows Installation Tutorial
Use an 8PIN cable to connect, please refer to the pin corresponding table below:
e-Paper | Jetson Nano Developer Kit | |
BCM2835 encoding | Board physical pin number | |
VCC | 3.3V | 3.3V |
GND | GND | GND |
DIN | 10(SPI0_MOSI) | 19 |
CLK | 11(SPI0_SCK | 23 |
CS | 8(SPI0_CS0) | 24 |
DC | 25 | 22 |
RST | 17 | 11 |
BUSY | 24 | 18 |
wget https://files.waveshare.com/wiki/4.2inch%20e-Paper%20Module%20(G)/4in2_e-Paper_G.zip unzip 4in2_e-Paper_G.zip -d 4in2_e-Paper_G cd 4in2_e-Paper_G/RaspberryPi_JetsonNano/
sudo apt-get install p7zip-full 7z x 4in2_e-Paper_G.zip -O./4in2_e-Paper_G cd 4in2_e-Paper_G/RaspberryPi_JetsonNano/
Currently, accessing GitHub is not very smooth. It is recommended to use the above method to download from our official website.
git clone https://github.com/waveshare/e-Paper.git cd e-Paper/E-paper_Separate_Program/4in2_e-Paper_G/RaspberryPi_JetsonNano/
# It is now in 4in2_e-Paper_G/RaspberryPi_JetsonNano cd c sudo make clean sudo make JETSON -j4
sudo ./epd
sudo apt-get update sudo apt-get install python3-numpy sudo apt-get install python3-pip sudo pip3 install Jetson.GPIO
wget https://files.waveshare.com/wiki/4.2inch%20e-Paper%20Module%20(G)/4in2_e-Paper_G.zip unzip 4in2_e-Paper_G.zip -d 4in2_e-Paper_G cd 4in2_e-Paper_G/RaspberryPi_JetsonNano/
sudo apt-get install p7zip-full 7z x 4in2_e-Paper_G.zip -O./4in2_e-Paper_G cd 4in2_e-Paper_G/RaspberryPi_JetsonNano/
Currently, accessing GitHub is not very smooth. It is recommended to use the above method to download from our official website.
git clone https://github.com/waveshare/e-Paper.git cd e-Paper/E-paper_Separate_Program/4in2_e-Paper_G/RaspberryPi_JetsonNano/
# Make sure it is in 4in2_e-Paper_G/RaspberryPi_JetsonNano/ cd python/examples/ python3 epd_4in2g_test.py
Use an 8PIN cable to connect, please refer to the pin corresponding table below:
e-Paper | Sunrise X3 Pi | |
BCM encoding | Board physical pin number | |
VCC | 3.3V | 3.3V |
GND | GND | GND |
DIN | MOSI | 19 |
CLK | SCLK | 23 |
CS | CE0 | 24 |
DC | 25 | 22 |
RST | 17 | 11 |
BUSY | 24 | 18 |
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 Hobot.GPIO sudo pip install spidev
wget https://files.waveshare.com/wiki/4.2inch%20e-Paper%20Module%20(G)/4in2_e-Paper_G.zip unzip 4in2_e-Paper_G.zip -d 4in2_e-Paper_G cd 4in2_e-Paper_G/RaspberryPi_JetsonNano/
sudo apt-get install p7zip-full 7z x 4in2_e-Paper_G.zip -O./4in2_e-Paper_G cd 4in2_e-Paper_G/RaspberryPi_JetsonNano/
Currently, accessing GitHub is not very smooth. It is recommended to use the above method to download from our official website.
git clone https://github.com/waveshare/e-Paper.git cd e-Paper/E-paper_Separate_Program/4in2_e-Paper_G/RaspberryPi_JetsonNano/
# Make sure it is in 4in2_e-Paper_G/RaspberryPi_JetsonNano/ cd python/examples/ python3 epd_4in2g_test.py
Use an 8PIN cable to connect, please refer to the pin corresponding table below:
e-Paper | STM32 |
VCC | 3.3V |
GND | GND |
DIN | PA7 |
CLK | PA5 |
CS | PA4 |
DC | PA2 |
RST | PA1 |
BUSY | PA3 |
For more details, please click on the url below to view
https://www.waveshare.com/wiki/E-Paper_ESP32_Driver_Board
For more details, please click on the url below to view
https://www.waveshare.com/wiki/E-Paper_ESP8266_Driver_Board
It provides a full set of documents, procedures, data manuals, etc.
Monday-Friday (9:30-6:30) Saturday (9:30-5:30)
Email: services01@spotpear.com