After some troubleshooting, I have some tips that may help. Firstly, with the help of telepicture's question and jayinstro's reply, I realized that I had to change SDA and SCL's pin 6 and 7 in the library, to pin 2 and 3 (GPIO Pins!)--that is physical pins 4 and 5. I reconnected my lcd accordingly and the program worked :) Secondly, if one happens to buy a 3.3V LCD that I bought on its own, you need to connect the LCD's VCC to PHYSICAL pin 36 or "3V3(OUT)", or you might find that the potentiometer on the back doesn't bring out your text. Thanks again Paul for these magnificent tutorials!
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.
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!
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!
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.. 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
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.
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😒
@@jay.instro.2361 thanks! I sometimes have a bit of "tunnel vision" when troubleshooting.. I had to change 6 and 7 at the beginning of the library, destined for SDA and SCL, to pin 2 and 3, respectively. I literally only replaced 6 with 2 and 7 with 3, attached the SDA and SCL pins physically to GPIO 2 and 3 and I was sorted with the "exception" error. The comment helped me a LOT.
here is the homework. I had more troubles with the sensor, had to put more pauses to allow it to read. but it works. th-cam.com/video/HGM5he9IFiA/w-d-xo.html
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.
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!!!!!!! th-cam.com/video/HFHn2CQjljk/w-d-xo.html
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: th-cam.com/video/7E0WsSnAhpc/w-d-xo.html
Pre Homework discussion of home to get degree symbol on lcd th-cam.com/video/_rMTi2Cc-Dc/w-d-xo.html Homework 22 submitted th-cam.com/video/QhyVFHPWzrs/w-d-xo.html Of course I had to throw in my big digits version. Thanks Paul for all you do.
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?
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??
studio.th-cam.com/users/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.
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!
After some troubleshooting, I have some tips that may help. Firstly, with the help of telepicture's question and jayinstro's reply, I realized that I had to change SDA and SCL's pin 6 and 7 in the library, to pin 2 and 3 (GPIO Pins!)--that is physical pins 4 and 5. I reconnected my lcd accordingly and the program worked :)
Secondly, if one happens to buy a 3.3V LCD that I bought on its own, you need to connect the LCD's VCC to PHYSICAL pin 36 or "3V3(OUT)", or you might find that the potentiometer on the back doesn't bring out your text.
Thanks again Paul for these magnificent tutorials!
Brilliant I can now install libraries thanks Paul amazing lessons I am learning alot !
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.
Thanks for the library Paul.
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!
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.
the besst technology channel on youtube
Thanks Paul! I appreciate the great work that you put into producing a great presentation, I am pressing on to catch up!
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?
Woo Hoo. My Raspberry Pi Pico W LCD Display lesson. 😎 Thank you.
Enjoy!
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.
Always charming.. Thank you sir.
Hi Sir, i need to ask, does other IIC models for LCD1602 also work or it only needs to be (HW-061)
Thank you Paul!
What if my I2C address is different? I don't know where to change it in library. My address is 0x20
Paul, any chance you'll be covering the pi pico PIO assembly programming?
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
@@jay.instro.2361 thanks! I sometimes have a bit of "tunnel vision" when troubleshooting.. I had to change 6 and 7 at the beginning of the library, destined for SDA and SCL, to pin 2 and 3, respectively. I literally only replaced 6 with 2 and 7 with 3, attached the SDA and SCL pins physically to GPIO 2 and 3 and I was sorted with the "exception" error. The comment helped me a LOT.
here is the homework. I had more troubles with the sensor, had to put more pauses to allow it to read. but it works. th-cam.com/video/HGM5he9IFiA/w-d-xo.html
LEGEND!
Can we have one on OLED display please!
Thanks Paul for the awesome videos.
Yes, upcoming lesson will be using OLED. Love them!
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.
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!!!!!!!
th-cam.com/video/HFHn2CQjljk/w-d-xo.html
LEGEND!
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: th-cam.com/video/7E0WsSnAhpc/w-d-xo.html
LEGEND!
Did it, but not happy with LCD flickering. th-cam.com/video/m_FUuPrH2xc/w-d-xo.html
LEGEND!
Pre Homework discussion of home to get degree symbol on lcd th-cam.com/video/_rMTi2Cc-Dc/w-d-xo.html
Homework 22 submitted th-cam.com/video/QhyVFHPWzrs/w-d-xo.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
Here is my homework for this lesson. th-cam.com/video/4SeroPrqiFc/w-d-xo.html
LEGEND!
Couldnt get the ° sign to work on the display, the rest worked th-cam.com/video/EOknn07egPM/w-d-xo.html
aaaah...😎 found it in a comment....chr(223) worked
My homework solution link: th-cam.com/video/MxQ0tgFBytA/w-d-xo.html This was a fun one. Thanks Paul.
Homework - th-cam.com/video/xSGKH9jkJ88/w-d-xo.html Thanks again for the great easy to follow lessons.
LEGEND!
"Promo SM" 🙃
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??
studio.th-cam.com/users/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.