[](Product Link)

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

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.

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

Install Driver

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.

Unzip

Enter the following command to decompress the file.

1. unzip cpu_show_v3.zip

After successful decompression, the following content will be prompted.

Unzip succeed

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

View Files

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

Compile File

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

Run Program

The system current CPU temperature value will pop up, and on the CPU Info LCD screen, the following content will be displayed.

Result

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.

Find Files

Enter the following command to decompress the file.

1. unzip cpu_show_temp.zip

After successful decompression, the following content will be prompted.

Unzip Succeed

Enter the program folder

1. cd  ~/cpu_show_temp

Enter the following command to view the files in the current folder

1. ls

View Files

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

Compile Program

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

Run program

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.

Find files

Enter the following command to decompress the file

1. unzip cpu_show_uptime.zip

After successful decompression, the following content will be prompted.

Unzip Succeed

Enter the program folder.

1. cd  ~/cpu_show_uptime

Enter the following to view the files in the current folder.

1. ls

View files

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

Compile Program

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

Run Program

The system Raspberry Pi PCD8544 sysinfo display prompt will pop up, and the following content will be displayed on the CPU Info LCD screen.

Result

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.

Find Files

Enter the following command to decompress the file.

1. unzip cpu_show_logo.zip

After successful decompression, the following content will be prompted.

Unzip Succeed

Enter the program folder.

1. cd  ~/cpu_show_logo

Enter the following to view the files in the current folder.

1. ls

View Files

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

Compile File

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

Run Program

The system Raspberry Pi PCD8544 sysinfo display prompt will pop up, and the following content will be displayed on the CPU Info LCD screen.

Result

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.

Find File

Enter the following command to decompress the file.

1. unzip cpu_show_ip.zip

After successful decompression, the following content will be prompted.

Unzip Succeed

Enter the program folder.

1. cd  ~/cpu_show_ip

Enter the following to view the files in the current folder.

1. ls

View File

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

Compile program

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

Run Program

The system current IP address will pop up, and the following content will be displayed on the CPU Info LCD screen.

Result

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.

Find File

Enter the following command to decompress the file.

1. unzip cpu_show_distance.zip

After successful decompression, the following content will be prompted.

Unzip Succeed

Enter the program folder.

1. cd  ~/cpu_show_distance

Enter the following to view the files in the current folder.

1. ls

View File

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

Compile Program

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

Run Program

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.

Result

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.

Backlight Control

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.

Find File

Enter the following command to decompress the file.

1. unzip cpu_show_BL.zip

After successful decompression, the following content will be prompted.

Unzip Succeed

Enter the program folder.

1. cd  ~/cpu_show_BL

Enter the following to view the files in the current folder.

1. ls

View File

Compile the program file. Enter the following command in the terminal to compile the program.

1. gcc -o bl bl.c PCD8544.c -lwiringPi

Compile File

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

Run Program

The Raspberry Pi icon is displayed on the CPU Info LCD screen and the indicator light flashes every 0.5 seconds.

Result

FAQ

For any questions, advice or cool ideas to share, please visit the DFRobot Forum.

More Documents

DFshopping_car1.png Get 1.6 Inch Display for Raspberry Pi from DFRobot Store or DFRobot Distributor.

Turn to the Top