Introduction
This small 1.6”LCD display with backlight supports a resolution of 84 * 48 and is compatible with all series of Raspberry Pi. Through the internal programming of Raspberry Pi, the screen can present your Pi board running status at a glance, such as CPU and memory usage, IP address, CPU temperature, etc. The LCD display adopts a 26Pin GPIO compatible design, which makes it compatible with the full series of Raspberry Pi. Inserting the LCD into the Raspberry Pi, the LCD still leads to the occupied pin, which does not affect the secondary use. The LCD screen is equipped with backlight control. When the Raspberry Pi is used as a server application, the operating status of the motherboard can be seen clearly even in a dark environment. Besides, there is a backlight jumper on the back to allow you to control the backlight by program. Through programming, the LCD screen can also be used in experiments to display real-time data, such as ultrasonic distance measurement, temperature and humidity testing, etc.
Specification
- Dimension: 1.6inch
- Resolution: 84×48
- 26Pin GPIO Pin Header Design
- Compatible with All Series of Raspberry Pi
- With Backlight Control
- Weight: 19.6g
Board Overview
After the LCD screen is correctly inserted into the Raspberry Pi, you need to install a driver before it can display normally. It can display information such as CPU usage, CPU temperature, memory space and usage time.
- Install wringPi Library
The CPU Info LCD screen relies on the GPIO port of the Raspberry Pi for data communication, so the wiringPi library file must be installed. Enter the following commands in sequence to install the wringPi library. If you already have the WiringPi library installed, you can skip this step.
1. cd ~
2. git clone git://git.drogon.net/wiringPi
3. cd wiringPi
4. sudo ./build
- Install the Driver
2.1 Copy the driver files to the Raspberry Pi
Install the WinSCP tool on the computer, connect to the Raspberry Pi and upload the cpu_show_v3.zip compressed package to the pi directory of the Raspberry Pi, click here to download.
2.2 Decompressing program
Open the Raspberry Pi terminal and find the cpu_show_v3.zip file that just transferred to the Raspberry Pi before.
Enter the following command to decompress the file.
1. unzip cpu_show_v3.zip
After successful decompression, the following content will be prompted.
2.3 Enter the program folder
1. cd ~/cpu_show_v3/cpu_show
Input the following command to view the files in the current folder.
1. ls
2.4 Compile the program file
Enter the following command in the terminal to compile the program.
1. gcc -o cpushow pcd8544_rpi.c PCD8544.c -L/usr/local/lib -lwiringPi
Check again with the ls command, cpushow has become an executable file. Among them, cc is the compilation command, -o is the compilation parameter, cpushow is the generated program name, pcd8544_rpi.c and PCD8544.c are the source program files in the current directory, -L/usr/local/lib and -lwiringPi are the reference libraries files.
2.5 Run the program
Enter the following command to run the program
1. ./cpushow
The system current CPU temperature value will pop up, and on the CPU Info LCD screen, the following content will be displayed.
Display CPU Usage and Temperature
First, transfer the cpu_show_temp.zip compressed package to the pi directory of the Raspberry Pi, click here to download.
Open the Raspberry Pi terminal and find the cpu_show_temp.zip file which just transferred to the Raspberry Pi before.
Enter the following command to decompress the file.
1. unzip cpu_show_temp.zip
After successful decompression, the following content will be prompted.
Enter the program folder
1. cd ~/cpu_show_temp
Enter the following command to view the files in the current folder
1. ls
Compile the program file.
Enter the following command in the terminal to compile the program.
1. cc -o cpushow_temp pcd8544_rpi.c PCD8544.c -L/usr/local/lib -lwiringPi
Among them, cc is the compilation command, -o is the compilation parameter, cpushow_temp is the generated program name, pcd8544_rpi.c and PCD8544.c are the source program files in the current directory, -L/usr/local/lib and -lwiringPi are the reference libraries files.
Run the program. Enter the following command to run the program
1. ./cpushow_temp
The system current CPU temperature value will pop up, and the following content will be displayed on the CPU Info LCD screen.
Display Boot Time and the Remaining Memory Space
First transfer the cpu_show_uptime.zip compressed package to the pi directory of the Raspberry Pi, click here to download.
Open the terminal of the Raspberry Pi and find the cpu_show_uptime.zip file which just transferred to the Raspberry Pi.
Enter the following command to decompress the file
1. unzip cpu_show_uptime.zip
After successful decompression, the following content will be prompted.
Enter the program folder.
1. cd ~/cpu_show_uptime
Enter the following to view the files in the current folder.
1. ls
Compile the program file. Enter the following command in the terminal to compile the program.
1. cc -o cpushow_uptime pcd8544_rpi.c PCD8544.c -L/usr/local/lib -lwiringPi
Among them, cc is the compilation command, -o is the compilation parameter, cpushow_uptime is the generated program name, pcd8544_rpi.c and PCD8544.c are the source program files in the current directory, -L/usr/local/lib and -lwiringPi are the reference libraries files.
Run the program. Enter the following command to run the program.
1. ./cpushow_uptime
The system Raspberry Pi PCD8544 sysinfo display prompt will pop up, and the following content will be displayed on the CPU Info LCD screen.
The boot time is 219 minutes, and the remaining memory is 614 megabytes.
Customize Display the Raspberry Pi Icon
First transfer the cpu_show_logo.zip compressed package to the pi directory of the Raspberry Pi, click here to download.
Open the terminal of the Raspberry Pi and find the cpu_show_logo.zip file which just transferred to the Raspberry Pi.
Enter the following command to decompress the file.
1. unzip cpu_show_logo.zip
After successful decompression, the following content will be prompted.
Enter the program folder.
1. cd ~/cpu_show_logo
Enter the following to view the files in the current folder.
1. ls
Compile the program file. Enter the following command in the terminal to compile the program.
1. cc -o cpushow_logo pcd8544_rpi.c PCD8544.c -L/usr/local/lib -lwiringPi
Among them, cc is the compilation command, -o is the compilation parameter, cpushow_logo is the generated program name, pcd8544_rpi.c and PCD8544.c are the source program files in the current directory, -L/usr/local/lib and -lwiringPi are the reference libraries files.
Run the program. Enter the following command to run the program.
1. ./cpushow_logo
The system Raspberry Pi PCD8544 sysinfo display prompt will pop up, and the following content will be displayed on the CPU Info LCD screen.
Display Raspberry Pi IP Address
First transfer the cpu_show_logo.zip compressed package to the pi directory of the Raspberry Pi, click here to download.
Open the terminal of the Raspberry Pi and find the cpu_show_ip.zip file which just transferred to the Raspberry Pi.
Enter the following command to decompress the file.
1. unzip cpu_show_ip.zip
After successful decompression, the following content will be prompted.
Enter the program folder.
1. cd ~/cpu_show_ip
Enter the following to view the files in the current folder.
1. ls
Compile the program file. Enter the following command in the terminal to compile the program.
1. cc -o cpushow_ip pcd8544_rpi.c PCD8544.c -L/usr/local/lib -lwiringPi
Among them, cc is the compilation command, -o is the compilation parameter, cpushow_ip is the generated program name, pcd8544_rpi.c and PCD8544.c are the source program files in the current directory, -L/usr/local/lib and -lwiringPi are the reference libraries files.
Run the program. Enter the following command to run the program.
1. ./cpushow_ip
The system current IP address will pop up, and the following content will be displayed on the CPU Info LCD screen.
Connect to Ultrasonic and Display Distance Data
First transfer the cpu_show_distance.zip compressed package to the pi directory of the Raspberry Pi, click here to download.
Open the terminal of the Raspberry Pi and find the cpu_show_distance.zip file which just transferred to the Raspberry Pi.
Enter the following command to decompress the file.
1. unzip cpu_show_distance.zip
After successful decompression, the following content will be prompted.
Enter the program folder.
1. cd ~/cpu_show_distance
Enter the following to view the files in the current folder.
1. ls
Compile the program file. Enter the following command in the terminal to compile the program.
1. cc -o cpushow_distance pcd8544_rpi.c PCD8544.c -L/usr/local/lib -lwiringPi
Among them, cc is the compilation command, -o is the compilation parameter, cpushow_distance is the generated program name, pcd8544_rpi.c and PCD8544.c are the source program files in the current directory, -L/usr/local/lib and -lwiringPi are the reference libraries files.
Run the program. Enter the following command to run the program.
1. ./cpushow_distance
The system will pop up the Raspberry Pi PCD8544 sysinfo display prompt and display the current ultrasonic distance. On the CPU Info LCD screen the following content will be displayed.
The current distance tested by the ultrasound module is 8cm.
Backlight Control
As shown in the picture below, solder the BL_JMP on the back of the display. what should be noticed is that before soldering BL_JMP, please turn the BackLight Switch to OFF, otherwise when GPIO7 outputs high level (3.3V), it will cause a short circuit. The Raspberry Pi and the display screen may be burned out due to excessive short circuit current. If you need to use software to control the backlight effect, be sure to turn the switch to OFF.
First transfer the cpu_show_BL.zip compressed package to the pi directory of the Raspberry Pi, click here to download.
Open the terminal of the Raspberry Pi and find the cpu_show_BL.zip file which just transferred to the Raspberry Pi.
Enter the following command to decompress the file.
1. unzip cpu_show_BL.zip
After successful decompression, the following content will be prompted.
Enter the program folder.
1. cd ~/cpu_show_BL
Enter the following to view the files in the current folder.
1. ls
Compile the program file. Enter the following command in the terminal to compile the program.
1. gcc -o bl bl.c PCD8544.c -lwiringPi
Among them, gcc is the compilation command, -o is the compilation parameter, bl is the generated program name, bl.c and PCD8544.c are the source program files in the current directory, and -L/usr/local/lib and -lwiringPi are the reference libraries file. It can be seen from the above picture that the bl executable file has been generated.
Run the program. Enter the following command to run the program.
1. ./bl
The Raspberry Pi icon is displayed on the CPU Info LCD screen and the indicator light flashes every 0.5 seconds.
FAQ
For any questions, advice or cool ideas to share, please visit the DFRobot Forum.