Using an Arduino with Python LESSON 7: Measuring Temperature and Humidity With the DHT11

preview_player
Показать описание
In this video we create a show how to wire up the DHT11 and how to measure Temperature and Humidity. We show how to make the measurements, and your homework will be to pass the data to Vpython, and create visuals to display temperature and humidity. In this class, we will be using an Elegoo Super Starter Kit, available below (affiliate link):

With this kit, we will will both be working on the same hardware which will make your life and my life easier.

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:

#Python
#Tutorial
#Arduino

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

Great lesson. I did not have a DHT11 but had a DHT22 which worked fine with the statement #define DHTTYPE DHT22

joestanco
Автор

I'm pretty antsy to get into lessons on operating a pan/tilt on arduino from python. Given the knowledge I've gained so far, I've successfully created a program where I am able to adjust the pan/tilt by entering a position in the command line in python. Today, I'll try and set up trackbars to manually adjust the pan/tilt positions. If successful, I should be able to start implementing into object tracking. So far, I have yet to find a suitable YouTube tutorial on how to operate a pan/tilt on arduino from python. Lots of demonstrations where people have done it, but no one showing how to do it. But I almost got it figured out with your teachings so far.

wayneswan
Автор

Hi Paul, I also like to keep my colors organized and the proper color. I purchased small spools of solid core wire which I cut to length and strip. I have been playing with the DHT11 on an ESP8266 board. My goal is to create a web server that I can see while we are on vacation. Have you ever used Platform IO in Visual Studio? Pretty cool stuff!
On a side note. The safe is open! I needed to hire a safe technician to break into it. He drilled two holes in the door. The first one was to put a scope into the tumbler area. He found the tumblers weren't moving. The next hole was to cut the bar that prevented the handle from turning. It was very disappointing that he had to make those holes and now the safe is not usable. The holes can be plugged and the bar welded. The tumbler fell onto the floor when he opened the door. Two small screws that hold the entire thing in there fell out. The tumbler is fine. I just need to reinstall it. We did find a bunch of old coins inside. I'm not sure if they have any value yet. It's at least a couple hundred bucks face value. Some of them are from the the 1920's so I need to start researching coins. I still plan to produce a video when I have some free time. My wife had knee replacement surgery and that has been my main focus. It's very exhausting caring for another person. I also have a greater appreciation for everything she does around the house. Wow! I've digressed!

warrenscorner
Автор

I did not know anything about programming or arduino. Then I watched a few of Paul’s videos. Two weeks later, I designed an interactive system for my car that tells me if I forgot to disable parking brake, vehicle speed, weather, etc

techquirks
Автор

I gave myself a homework assignment that was too difficult. I had to fall behind in the lessons a bit but I'm ALMOST finished. I wanted to use the Raspberry Pi Pico for my voltometer, without buying extra pieces(use what I already have). I'll post progress on the homework at my own pace from here on out. Just a friendly update. Thanks again Paul.

pylogik
Автор

Hi Paul. Another great lesson, and one that I really had a lot of fun with.

I have posted my solution in 2 parts, Part A for the Arduino side of the things, and Part B for the Python side.


My Arduino sketch has some "poor man" multitasking with "millis()" and the Python code is now functional and classy!

ianneill
Автор

This is really very nice to make! Thank you the lesson Paul!

rorderuiter
Автор

Thanks Paul, but bit confused, when we were doing tge stepper motor we just included the library with <>, but here we have to install a library and use "". Could you please explain this, thabk you?

SW
Автор

Instead of making the meter elaborate, I made a simple minimalist meter style and focused on creating a reusable 'meter' class. It easily creates a meter object and uses an 'update' method to turn the sensor data into an axis to update the meter needle.

colepdx
Автор

Hi Paul
It has nothing todo with this lesson but i have a question about matplotlib.
i have it installed on python 3.9.9 with vpython with the command pip install matplotlib
but it doesn't work
why it is not work, and with what command can i uninstall it again?
Grtz Frans

fransvanenschot
Автор

The biggest head scratcher I'm running into here is "how do we know which side (python or arduino) to write which part of coding? The best I can figure, is to treat it light a switch and power circuit, where arduino is the power circuit, and python is the switch. Turn the light on in python, which activates the electrical circuit in arduino. Would this be accurate depiction of how to know where to write which part of code?

wayneswan
Автор

Thanks again: I feel quite bodacious - another very informative tutorial.

alfredcalleja
Автор

Thanks this was very nice to watch. What do you think about Russia vs Ukraine?

Nick-xzqq
Автор

Thanks Paul! I am legend (lower Case) I was able to extract Arduino Data into Python but since I am not VPython alumni,
I will have to wait to see your graphics solution. : (

edSabio
Автор

Can't yet work out how to separate three pieces of data coming into python, from the arduino.

neilausten
Автор

Found 6 of your Arduino series from a friend in my department, watched them this week. I really enjoyed them and am planning to watch all of your Youtube videos if i could source enough data Bandwidth for internet connection. and then share your videos like gospel through out my computer Engineering department. Oh! and your new name is <"OldYoung teacher with the vibes"> thanks for making all your videos in advance.

erasmuseobeth
Автор

Hey Paul, huge fan of your most of your series. Thanks for the great content. My Dht11 is giving me back nanDegrees? Tried to find some documentation online but cant seem to find a solution. Any help from you or the community would be much appreciated.

tommymemed
Автор

Oh no paul, sorry, i forgot to watch this live. Ill of course do it with the replay

limegreentechnologies
Автор

Thanks paul for these vids, u inspired me and my friend, u ignited a fire for both of us

magnumopus
Автор

A little late this time but I enjoyed your lesson 7. Thanks.

Sikuq
visit shbcf.ru