04 Easy IoT project w/ Arduino IoT Cloud - ESP32 | DHT11 Humidity & Temperature | Relay & DC Motor
ฝัง
- เผยแพร่เมื่อ 8 พ.ค. 2024
- In this video, Joed Goh teaches you how to build your first IoT project using Arduino IoT Cloud with ESP32 thing. You'll learn how to read and visualize temperature and humidity data from a DHT11 / DHT22 sensor and control a DC motor / AC electric fan using an SPDT Relay. You'll also learn how to conduct your own experiment on how to control the brightness of an LED using a Dimmed Light widget in the Arduino IoT cloud web and mobile dashboard.
IoT Cloud Variables - Documentation: docs.arduino.cc/arduino-cloud...
Table of Contents:
00:00 Introduction
01:03 Materials
01:36 Circuit Connection
02:04 DC Motor
04:35 SPDT Relay
08:34 DHT11 Temp & Humidity Sensor
10:16 Arduino Create Agent
11:12 Arduino Account
11:42 Creating a Thing & cloud variable
14:38 Configure ESP32 as 3rd party IoT Device
17:06 Auto-generated Sketch
19:55 Creating Dashboard
22:05 Controlling a DC motor via cloud switch
24:42 Reading Temperature and Humidity data
27:45 Arduino Web Editor (Full)
33:12 Circuit and Programming Challenge
35:15 BONUS Clip - Controlling an AC Electric Fan
Related Playlists:
Embedded Systems using Arduino Uno
• Embedded Systems using...
Android App Development in Kotlin
• Android App Developmen...
Artificial Intelligence and Machine Learning Foundations
• Artificial Intelligenc...
Designing Database Solutions with Microsoft SQL Server 2019
• Designing Database Sol...
Data Structures and Algorithms using C#
• Data Structures and Al...
That was one of the best tutorial that I've seen. Well presented, without errors, nothing hide, so many details, congratulations my friend!! Please don't stop your work here!!!
Thank you! 🙂
Hii sir
Thanks a lot for such a beautiful lesson
Education is life.......
Very clear and Extra ordinary tutorial ! Thank you !
Thank you
amazing work, its very helpful for me , thank you very much !
The best tutoriel i've ever seen!
Thank you!
Your tutorial is very clear!
Thank you!
Thanks for such a detailed tutorial.
Thanks and Welcome!
Well Done. I enjoyed your video very much. Everything is nicely explained. Congratulations !!
Thank you!!
Great video thank you. I can’t get the arduino connect to see my ESP32. Any idea?
Very nice explanation. Thank you.
Glad it was helpful! Thank you
Great vídeo. Thank you for that.
Thank you!
Thanks for the great video
You're welcome. Thanks!
Thank you
great teching sir..resfect thank very much
Thank you!
Hay man good job, I appreciate what you are doing, can you please write for us the cod for brightness led, I tried alot to do it but I fell😢
Nice
Hi Sir i have question
how can i control relay manualy and using automation?
for example, control relay to turn on/off fan using webserver and using TTP223 touch sensor, i tried and it doesnt work together i can only use 1 of that for control relay
I love this channel! It is clear and the purpose is true, education is life
Thank you for the support 😃
thank you very much buddy
Welcome!
tanks for video
Thanks!
Can you please make video on Arduino cloud iot and x9c104 digital potentiometer
Thanks. How to choose esp wroom 32 (30 pins) for IoT projects ?
It does not exist on the board options.Which board I need to choose from the list ?
I am trying to use MAP of arduino iot cloud
But it's showing latitude 0 and longitude 0
As they are initial values
What changes in code are expected for proper location ?
Thank you...
If i use 12 volt battery supply how much value of resistor that i have to use and also i use 12 v dc motor and 0.3 A
Hi, the instruction and sketch is clear on your channel. Could you provide the code for dimmer light, thanks
Pls email me. joedgoh@gmail.com
can i use Arduino UNO and ESP8266 instead of ESP32 ?
@joedgoh
Its amazing video brother.. I need to know that if we wanna add soil moisture sensor along with the same project and set the specific range so the motor should start automatically. Is it possible to do? and how can we achieve this. If you add it in the same project then it will be a great help and I will really appreciate. Thank you
in this project what about data ...everytime we turn it ON or OFF ...is there any place the data save
What is the range for connecting esp32 via wifi ?
Hi Very good video. I was not very clear why you connected the ESP32 ground to the external 5 V supply gound. Please explain the logic. can the motor work with this ground connection. Thanks
It is just so happen that my motor and my relay are both 5VDC, so I used the same external 5V supply. For the relay module to work, it requires 5V, but it must be of common ground to the rest of the circuit. If in case you have a motor that operates on a much higher voltage (ex. 12v, 24v, etc), use a seprate supply to it and DO NOT connect its ground to your circuit. It should be separated and only connect it to the output side of your relay.
can you make a Iot cloud with esp32, capacitive soil moisture, dht22
Plz make Ac fan and Ac light dimming feature😢
" Executing command: exit status 2
Upload started "
Why this error is showing?
great project, well presented, I am a newbie at this and I was able to get this working first time. I have tried but failed to implement the esp deep sleep code as I want to run the project on batteries (just the temperature side) any thoughts would be great. Thanks Alan
can I do the same project with Solar panel and battery instead of the power supply as a smart home energy management system?
Of course, you can. Thanks!
Hello Sir, can you please provide circuit diagram for this project please? @@joedgoh
Hello , Nice explanation !!, A quick question . The 5V DC Relay is controlled by a ESP32 3.3 V Pin voltage. Is this oK . Thanks
Controlled by 3.3V but powered by 5V DC adaptor. Thanks
Thanks @@joedgoh
Welcome
Hello great video!
But I am wondering, if it is possible to make real time charts showing actual values and alao historical data, also presented by charts and available online anywhere.
Example project: weather station, electricity metter.
Yes, there is a widget for that. However, for the free account, only 1 day data retention. You need to upgrade for historical data.
Sir can you please provide the code for the same, i did email you.
I tried to turn on the LED but I could not. How can I know that the ESP32 is actually connected to the WiFi.
Please watch this previous lesson to learn about ESP32 Wi-Fi. Thanks!
th-cam.com/video/rw_1E-2Dwrs/w-d-xo.html
I could fix it thank you!
Hello sir, Thank you for the lessons, I tried the same code but mine is not working, what do i do sir....
Can u please share the code
Pls email me. Thanks!
@@joedgoh I did email sir
i tried the same method but im unable to switch on and off the led. when i connect my esp32 to wifi the relay automatically turn on the led without me toggling the on/off switch
Set the default value as 0 or low
Thanks a lot teacher,good work..do you hsve an e mail to contact with you?
Can we use Arduino Mega for this project instead of ESP arduino?
joedgoh@gmail.com
ESP32 is different from Arduino microcontrollers. You can use Arduino mega but the built-in wifi is ESP8266.
@@joedgoh thanks a lot sir, i will send you later an email about my project planning to do.
sir pwedi po ba ako makahingi ng tulong? pano po kaya gamitin yung float var? para po sana sa PRM monitoring na illink sa Gauge.. bale ang concept po na naiisip namin PWM signal ang essend para ma recognise at makasend data dun sa gauge. kaso di po namin alam pano gamitin ang gauge nung IOT para maka read ng PWM signal po,. badly need your help sir para sa thesis ko po sir , kinulang po ksi sa data sa thesis po ito po kulang namin. sana sir ma tulungan mo po ako
if I want to use one dashboard that can be controlled by many let's say 5 people ...if person A turn on the LED the next day Person C turn On the same LED...how do I make it ...if I have to share a password with others but how do I know that person C turn it on ...
can I use esp8266 instead esp32 cam?
It depends on what purpose. ESP2 cam has a specialized purpose highlighting the integrated camera while esp 8266 doesn't have.
do you have a block diagram for that?
For what?
Thanks Sir
@@joedgoh of the entire connection
can I use esp8622 instead of esp32?
You can use esp8266
How do i do this with a 12v pump?
The same principle I used in my example. Instead of external 5v, use an external 12v supply
No Associated Device Found. Can you please help me sir?
I have same problem
Hello sir how are you how can I contact with you please
It is in my About tab. Thanks
@@joedgoh I did not find a way to communicate in information about the channel
@@joedgoh Hello, I want to Arduino course, can you help me
joedgoh@gmail.com
mine is not working, it is offline. the esp i am using is esp32-WROOM-32. what specification do I need to select sir?
Make sure that the device id and security key are correct. Also, make sure that your esp32 can connect to the internet properly (correct wifi credentials) troubleshoot these areas.
@@joedgoh sir okay na po, na solve ko na din po ang issue. thank you very much sa very imformative nyo pong pag tuturo
@@joedgoh Sir I had sent you an email, since I would like to learn more from this topic, if you dont mind Sir.
Yes.. you are always welcome
hello, how did you fix it? im having the same kind of problem. same model rin po ng esp32. what model did you picked in iot cloud? tried the esp32-wroom-da module & esp32 dev module same offline :
Hello sir, beginner here. I did all your steps right before uploading sketch. ufortunately, it can find any device associated with it. so it fails to upload the code. My model of esp32 is wroom-32. I selected that but it still dont work. Please help
Did you select the same board I am using in my video? esp32 dev module?
Yes I did sir. Thank you for replying. I already figured out why. Why computer doesn't recognize the esp32 so I have to install the drivers to it. I just love this work, troubleshooting problems until you make it work is the best feeling. Ive met many more issues but fortunately, I found way out. Like when I added an i2c lcd to it to show the values of temp and humid. I also configured few of the codeds that make it automatic to turn on the fan whenever a threshold of temp is reached. Again thank you, and hopefully, I can accomplish my project using esp32. Keep doing a great job sir!!!
That's great. Good to know! 🙂
@@joedgoh Hello sir, Can you actually automatically turn on the motor and LED switch if the temperature and humidity level reaches a threshold? for ex. if temp >= 32, the fan turns on, and turns off when it gets lower than that? thank you!
Of course, a simple if condition in your Arduino code can do that.