Raspberry Pi Pico W LESSON 22: Using an LCD Display with the Pico W
HTML-код
- Опубликовано: 2 окт 2024
- You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:
/ paulmcwhorter
In this class we will be using the Sunfounder Raspberry Pi Pico W Keppler Kit. It will make things a lot easier if we are working on identical hardware. the link below is to amazon, and is for the identical hardware I will be using in this entire class.
amzn.to/3ubMRs1
In this introductory video, I will show you how to use the lcd1602 LCD Display with the Raspberry Pi Pico W. I will show you how to load the library onto your pico, and then how to display text on the LCD. We will implement the project using micropython. Enjoy!
[Disclosure of Material Connection: I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com. ]
#raspberrypipicoW
#lcd1602
#micropython
Just got myself that kit, and I gotta say you get a TON of stuff for the price, and the quality seems pretty darn good! Luckily I found this playlist because I am a total noob at this, but you make it seem so easy. I have been able to follow along with most videos. I was able to create an LCD that displays the Temp and Humdity readings from the sensor! Love the videos, thanks again!!
Also, there is a nice extension for VSCode that connects to the Pico. You still have to load Micropython on it first, but instead of using Thonny, which is kinda clunky on my system, I can use VSCode!
Thank you Paul!
here is the homework. I had more troubles with the sensor, had to put more pauses to allow it to read. but it works. ruclips.net/video/HGM5he9IFiA/видео.html
LEGEND!
I did this homework before I went on holiday. Something that might help some of you guys is that you can save the lcd1602 library onto the pico itself (in the lib folder) instead of in the same place as your program.
Thanks Charlotte, I forgot that micropython looks in the lib folder. That will keep things cleaner in the file directory.
thanks.. I had to place it on the PICO before it would find it. I played with the different path settings on the windows machine, it got worse before it got better. So living with placing this on the PICO
Wait a minute where is the lib folder? I assume it is on the pi pico w. And how is this done?
Paul, any chance you'll be covering the pi pico PIO assembly programming?
I have an electronics backgouund. Trying to teach my kids STEM. This is excellent! 2 thumbs up! Paul is nailing it on all levels!
Awesome! Thank you!
Hi Sir, i need to ask, does other IIC models for LCD1602 also work or it only needs to be (HW-061)
What if my I2C address is different? I don't know where to change it in library. My address is 0x20
Thanks for the library Paul.
Kepler kit was delivered today. Breadboard, Pico W in, hooked up display, charger module, and got the battery on charge. LCD scrolling jokes from a web api. Nice.
Thanks, Paul. And pass one on to SunFounder. Have good, make well.
Traceback (most recent call last):
File "", line 3, in
File "lcd1602.py", line 10, in __init__
File "lcd1602.py", line 26, in scanAddress
Exception: No LCD found😒
Same here, I had the wrong pins, I connected to the labelled pins SDA and SCL, instead of pins 6/7
Thank you for an amazing lesson! This homework was a bit of struggle for me this time, because I don't have an LCD display with I2C interface. I did a small research and found a way to complete the homework with few additional steps and functions. Here is my homework assignment: ruclips.net/video/7E0WsSnAhpc/видео.html
LEGEND!
HELP getiting eror messages missing libraries??? File "", line 1, in
File "lcd1602.py", line 2, in
File "/lib/smbus2/__init__.py", line 23, in
File "/lib/smbus2/smbus2.py", line 25, in idonloaded the smbus2 no results??
Did it, but not happy with LCD flickering. ruclips.net/video/m_FUuPrH2xc/видео.html
LEGEND!
Couldnt get the ° sign to work on the display, the rest worked ruclips.net/video/EOknn07egPM/видео.html
aaaah...😎 found it in a comment....chr(223) worked
Here is my homework for this lesson. ruclips.net/video/4SeroPrqiFc/видео.html
LEGEND!
Homework - ruclips.net/video/xSGKH9jkJ88/видео.html Thanks again for the great easy to follow lessons.
LEGEND!
My homework solution link: ruclips.net/video/MxQ0tgFBytA/видео.html This was a fun one. Thanks Paul.
Always charming.. Thank you sir.
Hey, Paul! Here is my solution to last week's homework assignment. I have not viewed your solution yet. That pesky degree character on the lcd screen requires a different code, requiring a bit more of my time, but it was a great exercise. Anybody who had an annoying flashing lcd screen: Just change where you place the lcd.clear() command. Thanks, Paul!!!!!! You are the best!!!!!!!
ruclips.net/video/HFHn2CQjljk/видео.html
LEGEND!
I can not get the backlight working on the lcd :( the little red light on the back lights but nothing on the screen. I did play with the potentiometer on the back. No errors when I run the code it appears to work. No obvious solutions on the interwebs anyone have this issue? I hope I dont have a bad display.
Scott, Sounds like like you might have a bad one. My I2C backpack has 2 pins on the other end that is supposed to be a jumper to disable the backlight but my backlight stays on either on or off. I have another 4 line display and removing the jumper turns off the LED.
I ran into problems getting to save the library on the pico so I finally switched out picos. Now after reading some comments I will try work with the lib thing. Thanks Paul you rock!
Paul, the homework was straightforward. No issues.
Thanks Paul! I appreciate the great work that you put into producing a great presentation, I am pressing on to catch up!
the besst technology channel on youtube
Woo Hoo. My Raspberry Pi Pico W LCD Display lesson. 😎 Thank you.
Enjoy!
Can we have one on OLED display please!
Thanks Paul for the awesome videos.
Yes, upcoming lesson will be using OLED. Love them!
I AM LEGEND! Although I don't like having to hold the button long so long. The "extra spaces" version looks great but the lcd.clear() version has annoying blinking. Thanks Paul for helping us escape from the PC and monitor.
I really like the Pico W. Two subjects that I hope you cover in the future are wireless (both WiFi and [new] Bluetooth) and asynchronous programs. I want to control my Pico W from my phone.
LEGEND!
@cbrombaugh
I found that you can reduce the annoying blinking by only updating the display when you absolutely have to.
Pre Homework discussion of home to get degree symbol on lcd ruclips.net/video/_rMTi2Cc-Dc/видео.html
Homework 22 submitted ruclips.net/video/QhyVFHPWzrs/видео.html
Of course I had to throw in my big digits version. Thanks Paul for all you do.
LEGEND!
Paul is the best teacher but you are the best student. 🫡
AAAGGG. I am having problems even before I get started. I thought you could help me figure this one out.
- I saved the lcd1602.py on to the pi. Then ran import lcd1602:
- I then ran this program:
from lcd1602 import LCD
import utime as time
lcd=LCD()
while True:
myName=input('What is Your Name? ')
lcd.clear()
greeting1='Hello '+myName
greeting2='Welcome to My Pi'
lcd.write(0,0,greeting1)
lcd.write(0,1,greeting2)
- I then get this error message:
Traceback (most recent call last):
File "", line 3, in
File "lcd1602.py", line 10, in __init__
File "lcd1602.py", line 26, in scanAddress
Exception: No LCD found
- what am i missing?
I'm getting the same issue, did you find a solution?@@ke7uia
"Promo SM" 🙃
studio.ruclips.net/user/videocwIg4RSFzqM/edit
I don't think the 1602 likes the chr(176) so I dropped it. It was showing as a minus sign. I did look at code from a post here and chr(223) works.