User Guide

Last revision 2026/01/24

This comprehensive user guide offers step-by-step instructions for setting up and programming a 1.6 Inch LCD Display using a Raspberry Pi. It includes hardware and software preparation, wiring diagrams, and detailed instructions for displaying CPU temperature, memory space, boot time, IP address, and customizing the Raspberry Pi icon. Each section provides the necessary commands to compile and execute the programs, ensuring a seamless integration and operation with the Raspberry Pi. Ideal for both beginners and experienced users looking to enhance their Raspberry Pi setup.

Hardware Preparation

  • DFR0832 1.6 Inch LCD Display, SKU:DFR0832, Quantity:1, Purchase Link: https://www.dfrobot.com/product-2273.html
  • Raspberry Pi (2B/3B/3B+/4B or other series), Quantity:1, Purchase Link: (Please choose according to your needs)

Software Preparation

  • WinSCP tool (for transferring files), Download Link: (Please download from the official website)
  • Raspberry Pi OS (with terminal access)
  • WiringPi Library (already installed in previous steps)

Wiring Diagram

Insert the LCD screen correctly into the 26Pin GPIO header of the Raspberry Pi.

Other Preparation Work

refer to Getting Started

  • Run the program

Enter the following command to run the program

command: ./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.

command1: unzip cpu_show_temp.zip

After successful decompression, the following content will be prompted.

Unzip Succeed

Enter the program folder

command2: cd ~/cpu_show_temp

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

command3: ls

View Files

Compile the program file.

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

command3: 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

command3: ./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

command1: unzip cpu_show_uptime.zip

After successful decompression, the following content will be prompted.

Unzip Succeed

Enter the program folder.

command2: cd ~/cpu_show_uptime

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

command3: ls

View files

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

command4: 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.

command5: ./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.

command1: unzip cpu_show_logo.zip

After successful decompression, the following content will be prompted.

Unzip Succeed

Enter the program folder.

command2: cd ~/cpu_show_logo

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

command3: ls

View Files

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

command4: 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.

command5: ./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.

command1: unzip cpu_show_ip.zip

After successful decompression, the following content will be prompted.

Unzip Succeed

Enter the program folder.

command2: cd ~/cpu_show_ip

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

command3: ls

View File

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

command4: 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.

command5: ./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

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.

command1: unzip cpu_show_BL.zip

After successful decompression, the following content will be prompted.

Unzip Succeed

Enter the program folder.

command2: cd ~/cpu_show_BL

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

command3: ls

View File

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

command4: 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.

command5: ./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

Was this article helpful?

TOP