Browse our Blog. You will find multiple applications, solutions, code examples. Navigate using the tag cloud or search using specific criteria
How to test 7.5" e-Paper Display with Raspberry Pi
Display Applications using Raspberry Pi for industrial automation
2. Related Links
· Enable SPI interface
· Install BCM2835 Libraries
· Install Wiring Pi Libraries
· Install Python Libraries
· Install Git
· Download demo examples
· C examples
· Python examples
Electronic ink, electronic paper or e-Paper is a technology that allows you to create flat screens, as thin as a paper, and with a flexibility that allows them to be rolled up. These screens represent information, usually in black and white and have recently been used to display moving images.
In this blog, we will learn how to use it using a Raspberry Pi!
7.5inch e-Paper Display
Waveshare e-Paper Adapter
Raspberry Pi 4 Model B
USB-C type cable as power supply
Either Ethernet cable or micro HDMI cable to connect to a monitor
First of all, connect your 7.5inch e-Paper Display to your Raspberry Pi, as shown in the picture below.
Enable SPI interface
The 5.83inch e-Paper HAT works with SPI bus, so the first step we are going to do is to enable the SPI.
1. Power up your Raspberry Pi and connect though SSH or HDMI to your Raspberry Pi. Then, go to raspi-config, which is a configuration tool in Raspbian that enables you to configure various settings of your Raspbian installation, such as the keyboard layout, the timezone, the password for the pi user, the SSH access, etc.
2. Enable SPI interface by going to:
Interfacing Options > SPI > Yes
3. Make sure your SPI is not being used by other devices, and reboot your Raspberry Pi to apply changes.
Install BCM2835 Libraries
4. Get the sources from the server.
5. Extract the files.
tar zxvf bcm2835-1.60.tar.gz
6. Move to the BCM2585 directory.
7. Run the configured script.
8. Compile and install.
sudo makesudo make checksudo make install
For more details, please refer to http://www.airspayce.com/mikem/bcm2835/
Install Wiring Pi Libraries
9. Install Wiring pi Libraries
sudo apt-get install wiringpi
10. Go to the /tmp directory
11. Get the sources
12. Unpack the sources
sudo dpkg -i wiringpi-latest.deb
13. Print the version of GPIO to know if you installed correctly
Install Python Libraries
In case of Python 2
sudo apt-get updatesudo apt-get install python-pipsudo apt-get install python-pilsudo apt-get install python-numpysudo pip install RPi.GPIOsudo pip install spidev
In case of Python 3
sudo apt-get updatesudo apt-get install python3-pipsudo apt-get install python3-pilsudo apt-get install python3-numpysudo pip3 install RPi.GPIOsudo pip3 install spidev
sudo apt-get install git -y
Download demo examples
sudo git clone https://github.com/waveshare/e-Paper
cd e-Paper/RaspberryPi_&JetsonNanocd c
sudo nano examples/main.c
19. Uncomment the line related to your screen, in our case: EPD_7in5_test();
sudo make cleansudo make
21. Run your example by executing the epd file just created after compiling.
23. Find your screen version and run the example!
sudo python epd_XXX_test.py
If you got to here, that means that you managed to print the demo pictures in your screen!