Google Chat: zj734465502@gmail.com
+86-0755-88291180
sales01@spotpear.com
dragon_manager@163.com
services01@spotpear.com
manager01@spotpear.com
WhatsApp:13246739196
Since the ink screen only needs to be displayed, the data cable (MISO) sent from the machine and received by the host is hidden here.
[Remarks] For specific information about SPI, you can search for information online.
This product is an E-paper device adopting the image display technology of Microencapsulated Electrophoretic Display. The basic principle is that charged nanoparticles suspended in a liquid migrate under the action of an electric field. 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.
We define the pixels in a monochrome picture, 0 is black and 1 is white.
White:□: Bit 1
Black:■: Bit 0
For computer, the data is saved in MSB format:
So we can use two bytes for 16 pixels.
Number correspondence table (without decimal point):
0: 0 x bf, 0 x 1f
1: 0 x 1f (position 1), 0 x 00, 0 x 1f (other positions)
2: 0 x fd, 0 x 17
3: 0 x f5, 0 x 1f
4: 0 x 47, 0 x 1f
5: 0 x f7, 0 x 1d
6: 0 x ff, 0 x 1d
7: 0 x 21, 0 x 1f
8: 0 x ff, 0 x 1f
9: 0 x f7, 0 x 1f
The decimal point and % are the 5th place in the 4th, 8th, and 10th positions respectively.
The 13th position can display Celsius (0 x 05) and Fahrenheit (0 x 06), the 0th position is the bottom line, the 1st position is the middle line, the 2nd position is other displays, the 3rd position shows the Bluetooth logo, and the 4th position Bit shows the power identification, number 14 is useless.
Provides BCM2835, WiringPi, IO, RPI (Python) libraries and demos.
If the e-Paper you have is the HAT version which has 40pin GPIO, you can directly attach the e-Paper HAT on Raspberry Pi, otherwise, you can connect your e-Paper to Raspberry Pi by an 8pins cable provided.
To connect the e-Paper, you can follow the table below:
e-Paper | Raspberry Pi | |
BCM2835 | Board | |
VCC | 3.3V | 3.3V |
GND | GND | GND |
SDA | SDA.1 | 3 |
SCL | SCL.1 | 5 |
RST | 4 | 7 |
BUSY | 17 | 11 |
sudo raspi-config
sudo reboot
Open the terminal of Raspberry Pi and run the following commands to install corresponding libraries:
#Open the Raspberry Pi terminal and run the following command 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 command sudo apt-get install wiringpi #For Raspberry Pi systems after May 2019 (earlier than before, you may not need to execute), you may need to upgrade: 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, the installation is wrong #Bullseye branch system use 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, it means that there is an installation error
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 RPi.GPIO sudo pip install spidev
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 RPi.GPIO sudo pip3 install spidev
Open the terminal of Raspberry Pi and execute:
sudo apt-get install p7zip-full wget https://www.waveshare.com/w/upload/f/f6/E-Paper-Segment-Code.zip 7z x E-Paper-Segment-Code.zip -O./e-Paper cd e-Paper/RaspberryPi/
Please execute the following commands under RaspberryPi_JetsonNano, otherwise the directory will not be indexed;
cd c sudo nano examples/main.c
If you are using 1.9inch Segment e-paper, please remove the "//" in front of the "EPD_1IN9_test()" function, then press Ctrl+c, press Y and Enter to save and exit, as shown in the figure: (The picture may be updated Not in time, the specific demo shall prevail.)
You can view test programs for all screen sizes, sorted by size:
1.9 inches:
EPD_1in9_test(): corresponds to the 1.9inch Segment e-paper test program;
Return to the c directory and run the following command make clean make sudo ./main
cd python ls -al
You can view test programs for all screen sizes, sorted by size:
1.9 inches:
The 1inch9_E-paper directory corresponds to the 1.9inch Segment e-paper test program;
# python2 cd 1in9_E-paper sudo python main.py # python3 cd 1in9_E-paper sudo python3 main.py
The program provided is based on STM32F103RBT6, so you should connect it according to the pins of STM32F103RBT6. If you want to port the program, you must connect it based on the actual pins.
e-Paper | STM32 |
VCC | 3.3V |
GND | GND |
SDA | PB9/D14 |
SCL | PB8/D15 |
RST | PA9/D8 |
BUSY | PA8/D7 |
Take our XNUCLEO-F103RB as an example, the connection is as follows:
The demos are developed based on the HAL library. Download the program, find the STM32 program file directory, and open epd-demo.uvprojx in the STM32\STM32-F103ZET6\MDK-ARM directory to see the program.
Open main. c and you can see all the test programs. Remove the comment in front of the test program of the corresponding screen, and then recompile and download.
You can view test programs for all screen sizes, sorted by size:
1.9 inches:
EPD_1in9_test(): Corresponds to 1.9inch Segment e-paper test program
All demos have been tested in Arduino uno. If you use Arduino in different models, you need to check the connection of the pins.
e-Paper | Arduino UNO | Mega2560 |
Vcc | 5V | 5V |
GND | GND | GND |
SDA | SDA | SDA |
SCL | SCL | SCL |
RST | D8 | D8 |
BUSY | D7 | D7 |
Please download E-paper-segment-code and unzip it. Arduino program is in "~/Arduino/…"
Please open the corresponding program according to the EPD model.
You can view test programs for all screen sizes, sorted by size:
1.9 inches:
EPD_1in9: Corresponds to 1.9inch segment e-paper test program;
For example, 1.54inch e-Paper Module. Open the epd1in54 folder and run the epd1in54.ino file.
Open the program, and select the development board model Arduino UNO.
Choose the corresponding COM.
Then click to compile and download.