Raspberry Pi Pico W LESSON 23: Temperature and Humidity Sensor with LCD Display

preview_player
Показать описание
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:

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.

In this introductory video, I will show you how to use the lcd1602 LCD Display with the dht11 temperature sensor and the Raspberry Pi Pico W. We will create a simple project for measuring temperature and humidity, and then displaying results on the LCD display. Then we will toggle between degrees C and degrees F using the pushbutton. We will implement the project using micropython. Enjoy!

#raspberrypipicoW
#lcd1602
#micropython
Рекомендации по теме
Комментарии
Автор

Paul with a little checking on the internet, '\xDF is the hex version of chr(223), I had to know.

jameslewellen
Автор

These lessons brings a smile to my learning. 🤩 Thank you.

qzorn
Автор

I AM LEGEND! It appears that the humidity lcd.write statement will not be executed when the Fahrenheit temperature is displayed. In my version the humidity lcd.write statement is written on every pass through the loop. This is a good lesson in combining multiple devices with the Pico W. Many thanks to my all-time favorite teacher for all of your time and effort in preparing these lessons.

cbrombaugh
Автор

Thank you Paul for another great lesson ...just as an added FYI .. I was also able to use "\337" to get the degrees symbol as shown in the code below.

if tempUnitC == True:
lcd.write(0, 0, " TempC is " + str(tempC) + "\337 ")
lcd.write(0, 1, " Humidity is " + str(hum) + "%")

if tempUnitC == False:
lcd.write(0, 0, " TempF is " + str(tempF) + "\337 ")
lcd.write(0, 1, " Humidity is " + str(hum) + "%")

justmc
Автор

Thanks Paul you rock! Now I have to figure out why mine does not toggle. But thats the best part!

stephenlightkep
Автор

Thanks Paul! Another great and informative lesson. Almost caught up.

Ed-fvrl
Автор

Excellent video. Excellent style of presentation!!!

greenfoodpower
Автор

GREAT LESSON AND WILL LOOKING FORWARD TO NEXT LESSON!

larryplatzek
Автор

I like the \xDF for the degree symbol, I used chr(223). Their probably the same in the guts of the library. Nice video.

jameslewellen
Автор

I used an external potentiometer for LCD (i've damaged its own potentiometer), so it's a little bit unstable.

PhysicsAssignmentHelp
Автор

I am almost legend. I couldn't get the ° symbol on the LCD.

brucemilyko
Автор

Though I respect Paul a lot, I gotta point out that it is against the programming specification to Not put a space before and after an operator.
For example, temp=sensor... is not a good practice.
temp = sensor... is the best style.

Bob-zgzf