Тёмный

DHT22 with Arduino - Humidity and Temperature Sensor with Touch Screen LCD 

Gadget Reboot
Подписаться 31 тыс.
Просмотров 15 тыс.
50% 1

How to get the DHT22 or DHT11 temperature and humidity sensor working with Arduino using Adafruit libraries.
Starting with a basic serial monitor interface to show how to get the sensor working, a 16x2 LCD is added, then a 3.5 inch touch screen display with on-screen touch buttons.
Sketch & schematic:
github.com/Gad...
Previous videos related to how to use the LCDs:
16x2: • Using DS18B20 with 160...
TFT Touch Screen: • Arduino TFT LCD Touch ...
Adafruit DHT info and libraries
learn.adafruit...
cdn-shop.adafr...
github.com/ada...
Examples on eBay for the Arduino screw shield
www.ebay.com/s...
MCUFriend touch screen similar to mine
mcufriend.com/i...
Patreon: / gadgetreboot
#ElectronicsCreators
Background music from the RU-vid music library:
A Rising Wave by Jeremy Blake
Ridge Racer by DivKid

Опубликовано:

 

7 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@benbaselet2026
@benbaselet2026 5 лет назад
I bought some dht sensors for building an arduino-based automatic ventilation system for the house... the design phase has now lasted for 2-3 years with no end in sight :-)
@GadgetReboot
@GadgetReboot 5 лет назад
Sounds like my basement renovation project that started 12 years ago and the furthest I got was a pile of drywall leaning up against the far wall of the basement, a stack of lumber under the basement stairs, and a cluttered workbench that I always have to move things aside on, in order to open more mail for more modules that may take a long time to (n)ever get used. Good times!
@sanjoykumarsarkar7299
@sanjoykumarsarkar7299 4 года назад
NOTHING TO SAY GREAT GREAT GRAPHICS.ALMOST DONE FOR MY 2.4 MCU DISPLAY.
@kaiomatico
@kaiomatico 4 года назад
Really nice interface you programmed, thank you!
@electronic7979
@electronic7979 5 лет назад
Very good and very helpful project. I like it 👍
@GeorgeJFW
@GeorgeJFW 5 лет назад
Another fantastic project love it!
@GadgetReboot
@GadgetReboot 5 лет назад
Thanks! I have so many other modules to try out from all the mail bags, I don’t know how I will ever get caught up. I think I need to do one gigantic three hour long project video using 500 sensors. Maybe.
@justinchlarson4366
@justinchlarson4366 5 лет назад
Very good video, big help for me.
@m_budda9053
@m_budda9053 2 года назад
Hello, please tell me how to add support for displaying the clock with the day month and year with DS3231 to your program with temperature measurement, I will be grateful for your help.
@riteshsharma3943
@riteshsharma3943 4 года назад
can I use 2.4 inch tft screen with the same code??
@jumbo999614
@jumbo999614 4 года назад
I wish you explain each line code to create this beautiful app. Especially the one on the right at 9:07. How do you draw the meter with a indicator needle?
@GadgetReboot
@GadgetReboot 4 года назад
I found the code for the meter somewhere else, I must have put a reference link in the sketch. I don’t know if the original source explained it but I just plugged it in to my sketch.
@onkark9246
@onkark9246 4 года назад
Hi...Very nice project !!! Currently, I am using MLX90615 sensor for temperature measurement. but the temperature on the Nextion (7 inches) is not changing. Will you please guide me regarding the same ?
@RicardoPenders
@RicardoPenders 4 года назад
Hi Gadget Reboot, I'm trying to use your examples in this video because I really like how you made the meters for the display however I'm having some difficulties getting it right... You need to remove your link in the description from MCUFriend because that link doesn't work anymore, also because of that I got redirected to the Seedstudio or something like that and I installed their stuff to my IDE to test their example code and libraries and I had to remove it all because nothing works, the code didn't even verify or upload to my Arduino UNO so I've been wasting my time trying different things and got nowhere. I did learn that I need to combine some of your code with my own and some Adafruit Libraries needed to be installed using the Library Manager withing the IDE software to ensure that I have the correct and latest versions plus some extra dependencies had to be installed just to get the sensor working, now I have to do some magic for my display because that wasn't easy to figure out either, after hours and hours searching online nothing really compared to my situation, even the manufacturer doesn't have the correct example code and info to get it working. Finally after installing a lot of missing libraries and dependencies I finally got the graphics demo actually working and I see something else than only the white screen, the SD card and resistive touch haven't come to life yet so I need to do more work on that too. Don't you find it frustrating finding the right info online if you have something new you want to test, especially the displays because not one tutorial that I could find online is for the one I have... If you're interested my display is a 2.8 inch resistive touch shield from Velleman, here's the link to the official website - www.velleman.eu/products/view?id=435582 Velleman is a brand that you'd expect to be of better quality and have better documentation, certainly I had to pay more but it's just as frustrating with their products as with the cheap Chinese stuff, maybe I was lucky but all products that I've purchased from China just worked instantly without any issues, both the Arduino UNO and Nano worked out of the box, I didn't have to fool around with the bootloaders those were pre-installed just as the driver I needed to install for the custom chip just worked and best of all are the unbeatable prices. I'll fork your GitHub repository for the DHT22 sensor and I'll make the necessary changes to get it working with my display I hope, maybe you want to add my changes to your own repository when I'm done or maybe we can do some projects together in the future, if you're interested you can find me on GitHub here - github.com/soharddbwarez
@CB-zv4bi
@CB-zv4bi 4 года назад
Can you please tell me, How to interface ams AS7341 sensor with Adafruit 2.8" TFT Display Breakout Board through ARDUINO UNO ? Please Please..................!!!!!!!!!!!!!!!!
@simpletech2016
@simpletech2016 Год назад
What will happen, if you try to read before 2 sec.
@BlondieSL
@BlondieSL 10 месяцев назад
First, there's actually no reason to read it faster. When I first started using these, years ago, I found that constant, fast reading, cause it to get glitchy and even stop responding. That's when I found out about the necessary delay. Now, when I design a project, I will actually use more than 2 seconds, because in reality, there's just no reason to read it that fast. It's not like temp and humidity change that fast. When reading fast, you tend to get a lot of jumping of the numbers. What I mean is, while the temp/humid are not ACTUALLY changing in 2 seconds (fluctuating greatly) the sensor will tend to bounce a bit. So reading every few second, 5 or 10 even, is more than enough. Also, to save processing time, I use 2 IF statements and 2 "previous" variables. prevTemp and prevHumid. I do a read and compare the current read to the prev. reads and if nothing changes, then I don't bother updating the display or any other code. No point if nothing changes. I also use an "averaging" routine to balance off the temperature and humidity.
@TheMortalViruss
@TheMortalViruss 4 года назад
Hey wanted to let you know that you missed a step that is really important for people using different Touch screens wondering why the touch wont work they have to calibrate it with the run TouchScreen_Calibr_native.ino in MCUFRIEND_kbv examples And enter the XP =# , XM =# , YP =# , YM =# ; //Screen size ID=number TS_LEFT =# , TS_RT =# , TS_TOP =# , TS_BOT = # mine looked like this const int XP = 8, XM = A2, YP = A3, YM = 9; //320x480 ID=0x9486 const int TS_LEFT = 126, TS_RT = 912, TS_TOP = 950, TS_BOT = 97; in the example it was this const int XP = 7, XM = A1, YP = A2, YM = 6; //320x480 ID=0x0099 const int TS_LEFT = 903, TS_RT = 163, TS_TOP = 947, TS_BOT = 165; and i was so lost why the touch wasn't working i see in the code it says to run it but someone who's just going to copy and paste won't understand why. love the content!!!!
@vanessaferrandez6083
@vanessaferrandez6083 4 года назад
hi! amazing video and thanks for your explanations! May you splain me how we can do to use same code with 2,8 inch touch screen? ks0257? i ve tried changing some initialicing numbers but any result... thanks anyway!
@GadgetReboot
@GadgetReboot 4 года назад
every different display with different driver chips can require all kinds of trial and error so without having that display there’s no specific suggestion, but here are two resources that might help with research. wiki.keyestudio.com/Ks0257_keyestudio_2.8_Inch_TFT_LCD_Shield www.lcdwiki.com/2.8inch_Arduino_Display
@ArjanvanVught
@ArjanvanVught 5 лет назад
This is an 'annoying' sensor with regards to programming. A good alternative is: "Adafruit Si7021 Temperature & Humidity Sensor Breakout Board" --> github.com/vanvught/rpidmx512/blob/master/lib-bob/src/si7021.c
@GadgetReboot
@GadgetReboot 5 лет назад
I didn’t know that one existed. I’m also waiting for a BME 280 to arrive which should be also easier to work with being I2C
@ArjanvanVught
@ArjanvanVught 5 лет назад
@@GadgetReboot Another one is the HTU21D Temperature & Humidity Sensor I2C
Далее
Measuring Temperature with Arduino - 5 Sensors
29:55
Просмотров 142 тыс.
Automate A Fan: Arduino + Relay + Temperature Sensor
11:58
Cute kitty gadget 💛💕
00:23
Просмотров 15 млн
Первый день школы Катя vs Макс
19:37
Arduino Display Functions - FREE CODE!!!
11:36
Просмотров 49 тыс.
DHT11 vs DHT22 with Arduino
6:44
Просмотров 30 тыс.
E24 Series of Preferred Numbers - Resistor Sorting
5:51
DHT11 and DHT22 Sensor Using with Arduino
7:20
Просмотров 75 тыс.
Hacking a weird TV censoring device
20:59
Просмотров 3,1 млн