How to Use the LCD1602 I2C Display with Raspberry Pi (Python Tutorial with Multi-Threading)

preview_player
Показать описание
This video demonstrates a simple way to use the LCD1602 I2C display with Raspberry Pi.

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

(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
Рекомендации по теме
Комментарии
Автор

Great video! I'm going to use this guide to help make a program which shows me when the next bus to work is coming. So I'll never miss the bus again!

hand
Автор

Very good video. To the point and a great pace, easy to follow. You should have more views!

davidbrace
Автор

Thank you a lot, you made my day ! I am very happy to see the Hello message on my tiny display, this is the first time that my Raspberry gets out of its silicon ;-D Your explanations are clear, precise and concise. Perfect.

tjeanneret
Автор

Recently I bought a kit(it includes programs) and do that, but the program didn't work correctly. After watching your video, I tried to do this and characters could be output. thank you very much!

at-njlm
Автор

Thank you for your video. When I try to download the lcd package, it keeps retrying but in the end it doesn't download. I have i2c enabled. What should I do if I want to use the rip_lcd library?

jordanjung
Автор

I'm concerned that SDA and SCL can only handle 3, 3V signal but the LCD operation is 5V, so it will return the signal back with 5V. Thus, it may damage your raspberry Pi.

HungNguyen-glxt
Автор

My rasp did not detect the address of the LCD. How can I fix this? Thank you for your tutorial.

namphamphuong
Автор

The display is not showing up in i2cdetect -y 1 for some reason

ragingenby
Автор

hello ! how can I choose the column and the line ? thanks for your exemple

maax_hue
Автор

When I start the program it says:
from rpi_lcd import LCD()

^
SyntaxError: invalid syntax
Does anyone know why 😢😢

milanvoska
Автор

But how mai i be able tp change the font size?

flaminggasolineinthedarkne