Raspberry Pi Pico Tutorial: 16x2 LCD I2C Micropython

preview_player
Показать описание
Welcome to the - Learn how to use the Raspberry Pi Pico Tutorial Series:

This video looks at the 16X2 character LCD display using i2c communication and how to use it with the Raspberry Pi Pico.

In the first example we look at how to create custom characters and text and go in detail through the code. The second example looks at the Pico's onboard temperature sensor and how to read the temperature and display it on the screen.

Check out my channel for other videos on the Raspberry Pi Pico, as I will regularly upload tutorials and projects related to the Raspberry Pi Pico.

If you found this tutorial helpful, subscribe to the channel and leave a comment and welcome to the NerdCave.

Code:

Library:

Custom Character creation:

Chapters
0:00 Introduction + Demo
0:37 Components + Schematic
1:27 Example 1 and Code explanation
4:49 Example 2 and Code explanation
5:55 Outro
Рекомендации по теме
Комментарии
Автор

Finally got it going. Thank you. Lots of swearing as normal and the final problem was a small c instead of a capital C. Thank you again now I can have a beer.

damianbutterworth
Автор

completed ✅
nice project 👌 i wasn't even aware of the temp. sensor

Kris-cdqs
Автор

Excellent videos. Thanks for sharing knowledge.

chirots
Автор

Thank you for the video. Following your instructions, for example 1, an error is returned by python:
Traceback (most recent call last):
File "<stdin>", line 12, in <module>
File "pico_i2c_lcd.py", line 22, in __init__
OSError: [Errno 5] EIO
Do you know how to solve it?

wiirox.
Автор

Really nice! How we do it using cmake?

hurainjinnath
Автор

i dont get the address thing when i scan i just get [ ] . and where is all code? I dont see it in the github

fade-away
Автор

[62, 96, 112]

this is my results. any idea which i should use? I tried all 3 individually with no luck. im using the waveshare 1602

tompaquette
Автор

please link to the parts used in the description if not in the video itself

RareformKRozhkov
Автор

Fantastic, can you make a video abouth how use LCD and 4x4 Matrix keypad, thanks

frankjon
Автор

i2c scan gives: (i am using circuit python)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: no module named 'machine'

Neodx
Автор

Traceback (most recent call last):
File "<stdin>", line 12, in <module>
TypeError: function takes 5 positional arguments but 4 were given

what can i do

christianraulbarronbanos
Автор

Hello,
I searched for many hours why scan returned [] on my pico HW. I tried many pin SDA/SCL.
I don't undersand how it work. When I plugin on Pin 0 and 1. scan returned []. And same result until pin 20 ...
When I plugin on pin 39 and 40 code below return 62.
sda=machine.Pin(16)
scl=machine.Pin(17)
i2c=I2C(0, sda=sda, scl=scl,

IS there a matchin between index of pin and index of GPIO ? Pin 39 and 40 == GPIO 16 and 17
sda=machine.Pin(24)
scl=machine.Pin(25)
i2c=I2C(0, sda=sda, scl=scl,

devices = i2c.scan()
Return [8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119].

I'm lost ...

alex
Автор

I need another help it's not turning on the lcd screen I don't know why I put it all the jumper cables where it is

robloxplayer_and_meowshit_
Автор

Do i still need to use resistors for this?

afg
Автор

MPY: soft reboot
Traceback (most recent call last):
File "<stdin>", line 6, in <module>
ImportError: no module named 'pico_i2c_lcd'

amirphilip
Автор

Traceback (most recent call last):
File "<stdin>", line 3, in <module>
File "lcd_api.py", line 8
SyntaxError: invalid syntax

this is the shell i get when i try to run example 1

nickrocco
Автор

For some reason my LCD screen blinks, but there's no text.

jesusponce
Автор

thonny doesnt give me a choice to were i save

sammymiller
Автор

@castellarb3348 I ran into the same issue. I googled the issue and one suggestion was to use a different i2c pinset. There are like 5 of them for i2c on the pico w. When I moved it to the next one down, GP2 and 3, the error changed to bad scl pin. I tried several others with the same result. I changed the pin assignments on line 11 as I went. I finally went back to the original GP0 and 1 pins and it worked. I am not sure why, but it did.

briancooper
Автор

my lcd just blinks the screen and the light ):

AverageBat
join shbcf.ru