DIY Digital Thermometer | Temperature & Humidity Display | Step-by-step Arduino Project
Вставка
- Опубліковано 22 лис 2020
- Hello, friends! In this video, I show you how to make my version of the Digital Thermometer, this device displays temperature in °C and displays the humidity percentage. After using my homemade device around for a little while, I realized how accurate it actually is, and I recommend you Arduino-DIYers to at least try making this project on a breadboard.
👕 Grab my exclusive Merch here! - max-imagination-merch.printif...
----------------------------------------------------------------------
👉 Visit my online Storefront: sites.google.com/view/maximag...
----------------------------------------------------------------------
☕ Buy me a coffee: www.buymeacoffee.com/MaxImagi...
----------------------------------------------------------------------
Instagram: @max.imagination - max.imagina...
Instructables page: www.instructables.com/member/...
----------------------------------------------------------------------
Disclaimer: Amazon purchase links below are affiliate links. It doesn't cost you extra to buy through those and I just get a tiny commission. Thank you!
Code: drive.google.com/file/d/1oEqa...
Circuit Diagram: drive.google.com/file/d/1Gkm7...
DHT11 sensor library: www.arduino.cc/reference/en/l...
Materials/components needed for this project:
Project on the breadboard;
(x1) Arduino Uno (I used the Elegoo UNO R3) - amzn.to/3UJCebE
(x1) Breadboard - amzn.to/3tCs00M
(x1) 16x2 16 pin LCD screen - amzn.to/3hMgu0q
(x1) DHT11 - amzn.to/3tB49yI
(x1) 9V battery with connector - amzn.to/3TFEq2D Connector - amzn.to/3AmtVKV
(x2) 18650 3.7V Li-Ion cells - amzn.to/3zp86JQ
(x1) 10K Potentiometer - amzn.to/3AkgECD
Male to male jumper wires + Female to male Dupont wires - amzn.to/3GDaoKf
Additional materials needed if you're to make the final version;
(x1) Box (housing) of your choice - amzn.to/3X8j1C7
(x2) Rechargeable 3.7V 18650 Li-Ion battery - amzn.to/3Od1TqH
(x1) Perforated board (or blank PCB) - amzn.to/3hOTCNy
(x1) Pair of male and female JST connectors - amzn.to/3gb9ZDP
(x1) On/off switch - amzn.to/3V3nyUu
Electrical wire - amzn.to/3US7Ewi
🪛🔧🔨 Tools and extra supplies I use:
➡️ Soldering Iron Kit - amzn.to/3X6L5Wq
➡️ Hot Glue Gun - amzn.to/3E6trJG
➡️ Drill Machine - amzn.to/3EDe0u8
➡️ Box cutter/Utility knife - amzn.to/3hP9MGI
➡️ X-acto Hobby Knife - amzn.to/3XbL7ML
➡️ Cutting Matt (Green) - amzn.to/3gil71A
➡️ Needle-nose Pliers - amzn.to/3ECTKc3
➡️ Wire Cutters for Electronics - amzn.to/3ECut1B
➡️ Wire-stripping tool (Automatic) - amzn.to/3hQsMVD
➡️ Screwdriver kit - amzn.to/3V6vgNX
➡️ Heat-shrink Tube Kit - amzn.to/3AksTPE
➡️ Jumper Wire Kit - amzn.to/3UGhMZq
➡️ Breadboard for Prototyping - amzn.to/3GlF4ze
➡️ Perf Boards, Pin headers, and Connectors Kit - amzn.to/3AkySUw
➡️ Superglue - amzn.to/3EE6uis
➡️ Duct Tape - amzn.to/3g5mTU0
➡️ Double-sided Tape - amzn.to/3Edta82
➡️ Kapton Tape (for battery leads) - amzn.to/3X58bNl
Check out the Arduino-based Elegoo Super starter kit: amzn.to/3TJUy3b
Thanks for watching! If you liked this project, please support by giving this video a like, share, and subscribe to my UA-cam channel with the notification bell turned on. Have a nice day!
---------------------------------------------------------------------------------------------------
✅ Follow me on Instagram: max.imagination
/ max.imagination
---------------------------------------------------------------------------------------------------
Music credit:
OCTILARY - CHILL TRAP BEAT | No Copyright Trap
• OCTILARY - CHILL TRAP ...
/ bnbbeats
OCTILARY
/ @octilary
/ octilary
#arduinoproject #arduinothermometer #arduinouno - Наука та технологія
Hey everyone! The comment section has finally been re-enabled over the whole channel after 2 years by UA-cam themselves who shut it down in the first place. Glad to be in touch with my viewers again! :)
Bro I don’t understand the ground rail and positive part, what did u put there
Hey I made the prototype but, the lcd isn’t displaying an actual temp, it’s says humi and temp but it’s just displaying 0
Hi, hmm, that's weird...
Check that you have the right libraries downloaded in the Arduino IDE, also make sure that the pins you select in the code match up with the actual wiring config in your hardware.
Hiiii! I installed the library, and trying to use your code to run it, but it has an error code, shows 'dht' does not name a type, do you know maybe where can be wrong?
Hi there. This may be occurring due to not having included the library in your code. To do so, navigate to Sketch > Include Library > Add . ZIP Library. At the top of the drop down list, select the option to "Add .
Hope this resolves the error in your code.
Cheers, Max.
@@MaxImagination Thanks for your reply! I did included the library in my code, but it still shows:
fatal error: dht.h: No such file or directory
#include // Include DHTlib Library- Download from Description.
^~~~~~~
compilation terminated.
Multiple libraries were found for "LiquidCrystal.h"
Do you have any idea about what might be doing wrong with this?
And in the Serial Monitor, the sensor keeps getting errors, such as room Temp that is larger than 300C, and humidity larger than 100%
Glad to help. Did you check if you've installed the latest version of the DHT11 library? May I know, where did you install it from?
i am aving an issu when i try to add the library and upload it says: #include adafruit_sensor.h no such file
Hi. This means you have not downloaded that library file from your Arduino IDE's library manager.
hey man
my programm says that these three:
int readData = DHT.read11(outPin);
float t = DHT.temperature;
float h = DHT.humidity;
have this problem: Compilation error: expected primary-expression before '.' token
Hi there. Errors usually stem from libraries not being up to date. Please update the DHT11 library.
Hey the links to the zip library files are missing, help? This is a great project!
Hello! Sorry for the late reply...
You should be able search up the LiquidCrystal library in your Arduino IDE's library manager. :)
Thanks for watching!
@@MaxImagination Hi! I was referencing the DHTlib Library. Sorry for not specifying!
Hello!
I'm running the code right now, everything is working except for the fact that humidity isn't visible
Hi there!
Is your sensor connected properly? Is your display working? Please describe your project in more detail.
Hi! I've installed the required libraries and followed the circuit diagram down to the wire, but the code won't compile for some reason. I got this as an error message, could you help me sort it out? I need this thermometer for my garden and I don't wanna purchase a thermometer.
Arduino: 1.8.19 (Windows 10), Board: "Arduino Uno"
thermometer:7:1: error: 'dht' does not name a type
dht DHT; // Create a DHT object
^~~
C:\Users\hp\Documents\Arduino\thermometer\thermometer.ino: In function 'void loop()':
thermometer:14:21: error: expected primary-expression before '.' token
int readData = DHT.read11(outPin);
^
thermometer:16:16: error: expected primary-expression before '.' token
float t = DHT.temperature;
^
thermometer:17:16: error: expected primary-expression before '.' token
float h = DHT.humidity;
^
exit status 1
'dht' does not name a type
Hi there. Libraries tent to be finicky things when it comes to compiling codes. Have you checked that you successfully installed the latest version of the DHT11 library?
@@MaxImagination Yeah ! It's got the latest version of the DHT11 library installed :((
And how can I change it to Fahrenheit
Hi again, to change the Celsius reading into Fahrenheit, do the following (in the code)
Change this:
Serial.print(t);
Serial.println(" *C");
to this:
Serial.print((int)round(1.8*t+32));
Serial.println(" *F");
Hope that helps!
Max
Bro I am from India 🇮🇳 did you love India
India, great! Glad to have you here watching...
I made this prototype and all i got was a blank screen. help
Hi, sorry for the late reply! I somehow managed to miss your comment. :(
First, did you double-check your wiring? Specifically what connects the LCD display to the arduino?
Sometimes what causes information to not get diplayed at all could very well just be a couple of wires that got accidentally swapped around. Please check that
@@MaxImagination ok I will check
there is no Dhtib library zip file in the description
Hi there. Sorry about that! Here's a link to download the DHT11 library, be sure to obtain the latest version to match your IDE: www.arduino.cc/reference/en/libraries/dht-sensor-library/
@@MaxImagination It only shows -99999 for both humidity and temperature
Can you right down the names of them plz
As mentioned in the video, the parts list can be found in the video description with purchase links. Cheers.
the code is not working
Hi. For me to help you, please elaborate the problem with your code. At least post an error message, thanks.
My prototype is just displaying 0’s
Hi, sorry for the late reply!
First of all, did you double-check your wiring? (Specifically what connects the LCD display to the arduino).
Sometimes what causes information to not get diplayed at all could very well just be a couple of wires that got accidentally swapped around. Please check that.