In this project, we will use GPIO pins to send text to 1602 LCD screen.
If you don’t know what is GPIO layout, check our tutorial How to read Raspberry Pi i/o pin diagram (GPIO pin graph)
|1 pc||Raspberry Pi 2/3/zero|
|1 pc||8GB MicroSD memory card preinstalled Raspbian OS.|
|1 pc||1602 LCD screen|
|1 pc||GPIO breakout kit(optional)|
Raspbian should be upgraded to latest version in order to support RPI.GPIO module
Please run following commands in shell:
Raspberry Pi and 1602 LCD pin connection
|LCD Pin||Description||Pi Function||RasPi Pin|
|03||Contrast||To Potentiometer middle pin|
Caution: Unlike Arduino board 5V input voltage, Raspberry GPIO pin accept only 3 Volt. Wrong voltage input might damage the Pi board. Please be very careful!
Write python code
You have two ways to write python code:
download http://osoyoo.com/driver/pi_lcd.py and copy/paste it to raspberry pi
You can also download above python file from our server by typing following shell command:
sudo wget –no-check-certificate http://osoyoo.com/driver/pi_lcd.py
Finally, run following command in shell window:
sudo python pi_lcd.py
Adjust the Potentiometer to make LCD text displaying clearly. You will see following text string rolling in LCD screen:
LCD work with
Read Tutorial @
Authorized Amazon Store
|Buy from US||Buy from UK||Buy from DE||Buy from IT||Buy from FR||Buy from ES||Buy from JP|
–> DSI Connector，Plug and Play,No Driver Needed.
–> Capacitive Touch Screen ,Finger Touch,800×480 high resolution,better touch response,faster response time
–> 5 inch display monitor with high resolution picture and large viewing screen.
–> Free drive support Raspberry ,Ubuntu MATE,Kali,RetroPie,OpenElec,OSMC,Arch system and so on.
–> Support all raspberry board except PI zero(PI A,PI B need use I2C on gpio).
1x 5 inches DSI Touch LCD Screen for Raspberry Pi
1x DSI Ribbon Cable
1x Philips screwdriver
1x User manual
The 5″ LCD display is an LCD display which connects to the Raspberry Pi through the DSI connector.
It is capacitive touch LCD screen.
It is compatible with Raspberry Pi 3B+, 3B, and 2B.
Equipped with reserved fixing holes for control boards – suitable for Raspberry Pi 3 model B+,3 model B, and 2 model B.
It doesn’t need install driver, and you can plug and play.
The Physical resolution of LCD display is 800*480.
No need additional power.
Creative for DIY
As OSOYOO 5″ DSI touch screen connect with Raspberry Pi via DSI ribbon cable, makers can extend the raspberry pi GPIOs for DIY projects.
What’s more, no need driver and supported multiple Linux operation systems, makers can create more ideas.