This video demonstrates a simple way to use the LCD1602 I2C display with Raspberry Pi.
I demonstrate the device using a simple Python library and show how to add such display to my Ultrasonic Sensor project ( • How to Use the HC-SR04 Ultrasonic Sen... ).
0:00 Intro
1:00 Physical Connections
2:10 How to Enable I2C on Raspberry Pi
3:33 How to Adjust the Contrast
3:54 How to Detect and Address the Display
4:19 The rpi_lcd Python Library
5:28 Test Program
6:24 The Backlight
6:45 The Ultrasonic Sensor Project Revisited
Full code: https://github.com/mheidenreich/LCDDemo/
(Note: code posted may contain small updates and/or bug fixes not shown in the video)
Disclaimer:
"Raspberry Pi" and the distinct logo are a trademark of the Raspberry Pi Foundation.
Music: Steps by Anno Domini Beats, YouTube Music Library