How to test 7.5" e-Paper Display with Raspberry Pi

Display Applications using Raspberry Pi for industrial automation
June 30, 2021 by
How to test 7.5" e-Paper Display with Raspberry Pi
Boot & Work Corp. S.L., Fernandez Queralt Martinez


1. Introduction

2. Related Links

3. Requirements

4. Connections

5. Tutorial

    · Enable SPI interface

    · Install BCM2835 Libraries

    · Install Wiring Pi Libraries

    · Install Python Libraries

    · Install Git

    · Download demo examples

    · C examples

    · Python examples

6. Learn more


Electronic ink, electronic paper or e-Paper is a technology that allows you to create flat screens, as thin as 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 post, we will learn how to use it using a Raspberry Pi for industrial monitoring!

Related Links

How to

Connect Raspberry PLC to Wi-Fi


Raspberry PLC

Family products


How to

Program Raspberry PLC Interrupt inputs with Python


Basics about

Raspberry Pi PLC Analog Outputs


Touchberry Pi

Family products


How to

Find your perfect industrial Programmable Logic Controller




                                                First of all, connect your 7.5inch e-Paper Display to your industrial Raspberry Pi, as shown in the picture below.

                                                Connections between 7.5inch e-Paper Display and Raspberry Pi


                                                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 through 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.

                                                sudo raspi-config

                                                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.

                                                sudo reboot

                                                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.

                                                cd bcm2835-1.60/

                                                7. Run the configured script.

                                                sudo ./configure

                                                8. Compile and install.

                                                sudo make
                                                sudo make check
                                                sudo make install

                                                For more details, please refer to this page .

                                                Install Wiring Pi Libraries

                                                9. Install Wiring pi Libraries.

                                                sudo apt-get install wiringpi

                                                10. Go to the /tmp directory.

                                                cd /tmp

                                                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.

                                                gpio -v

                                                Install Python Libraries


                                                • In the case of Python 2
                                                  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

                                                • In the case of Python 3
                                                  sudo apt-get update

                                                Install Git

                                                15. To clone a repository, you will need the git installed. Install it running the following command:
                                                sudo apt-get install git -y

                                                Download demo examples

                                                16. Clone demo codes by the following command:
                                                sudo git clone

                                                17. Go to the folder of C examples.
                                                cd e-Paper/RaspberryPi_&JetsonNano
                                                cd c

                                                C examples

                                                18. Go to the main.c file and modify it.
                                                sudo nano examples/main.c

                                                19. Uncomment the line related to your screen, in our case: EPD_7in5_test();

                                                C examples - EPD_7in5_test(); - How to test 7.5" E-Paper Display with Raspberry Pi

                                                20. Compile codes from the /home/pi/e-Paper/RaspberryPi_JetsonNano/c directory by running these commands:
                                                sudo make clean
                                                sudo make

                                                21. Run your example by executing the EPD file just created after compiling.
                                                sudo ./epd

                                                Python examples

                                                22. Go to the Python directory where you will find the examples, and list the files to find yours.

                                                cd /home/pi/e-Paper/RaspberryPi_JetsonNano/python
                                                23. Find your screen version and run the example!
                                                sudo python

                                                If you got to here, that means that you managed to print the demo pictures on your screen!


                                                Learn More

                                                ​Search in our Blog

                                                How to test 7.5" e-Paper Display with Raspberry Pi
                                                Boot & Work Corp. S.L., Fernandez Queralt Martinez June 30, 2021
                                                Share this post

                                                Looking for your ideal Programmable Logic Controller?

                                                Take a look at this product comparison with other industrial controllers Arduino-based. 

                                                We are comparing inputs, outputs, communications and other features with the ones of the relevant brands.

                                                Industrial PLC comparison >>>