ESP32 DHT Web Server Project
HTML-код
- Опубликовано: 15 дек 2022
- This Project is an ESP32 web server with the DHT11 or DHT22 sensor that displays temperature and humidity. The web server updates the readings automatically without the need to refresh the web page.
► Get your first ESP32 board today and start exploring the world of IoT:
👉 amzn.to/3AjPwTV
👉 amzn.to/3oCu2Pz
--------------------------------------------------------------------
► Project: github.com/Enjoy-Mechatronics...
● Introduction to ESP32: • Introduction to ESP32 ...
● ESP32 Wifi: • Connect ESP32 to WiFi ...
● Playlist Link: bit.ly/3TdXiq5
--------------------------------------------------------------------
✅ My current Productivity Setup 👇:
● Gaming Headset: amzn.to/3HyXgp2
● Gaming Mouse: amzn.to/3ni4Ygp
● Best Webcam: amzn.to/44pVUqw
● Keyboard: amzn.to/3ALXB3M
● GPU: amzn.to/42mylNt
● CPU: amzn.to/44lOBjs
--------------------------------------------------------------------
FOLLOW ME:
● TikTok :
/ enjoy_mechatronics
♥ Never Click This! bit.ly/3jvI8g6
● Facebook: / enjoymechatronics
--------------------------------------------------------------------
► All content by Enjoy Mechatronics is 100% free. I believe that education should be freely available to everyone. - Наука
Big hug teacher, health and luck always.
► Project: github.com/Enjoy-Mechatronics/ESP32-DHT-Webserver
podria explicar como realizo el codigo http porfa
This tutorial was great! I'm planning on adapting it for an in situ soil EC meter.
Perfect!
Great work!
Thanks for sharing
No worries 👍
Interesting video. However, you're refreshing the webpage every 4 seconds. The way I see it, it is the whole webpage that gets refreshed. If there are (many) more values, which so of them don't change, it is not the best idea to refresh everything. Could you explain how you would only transfer the data of those values instead of the whole page?
Nice info, thanks for sharing :)
No problem!
Works great, is there anyway I can add the localtime to the webpage? I have tried with Const and Float commands, but just can't work it out.
bro can we attach two sensors like dht11 and mq 135 to the esp32 board and get the data onto a server .and lastly into a mobile phone app . i plan to develop this app . please help
That's great. Unfortunately, the option to react to the values with a button is still missing. As in the previous ON OFF project, which was created as an ESP32 access point and cannot be combined well with this. Something like this here, but with buttons would be great.
Lovely work!
Many thanks!
Hello! Thank you for this tutorial! What can I do if when entering the ip address nothing opens in the browser?
Hello all iam working to add 2 relays with this program so i can control my heating in my cotage could you help me figure out how to add this fonction !
thx for your help
Terima kasih ilmunya sukses selalu semoga bermanfaat, salam..
Nice video bro 👍
Glad you liked it
I am looking for a video that shows how the information is transferred to the web from the esp32, like how the variables get transferred most specifically, so I could make a less fancy website but more variables, how the read variables go from the sensor readings and then how they are manipulated by the htlm/css/java im not sure how it changes names.
Where I can get the code?
I am using BMP280, is the code same or must search again? btw the code that you use is from Arduino examples or must create manually?
Can I use the nodemcu instead of the esp32 for this project?;
ye, use float with 2 decimals, but use only one. Use also float for int number.
Nice clean web interface - thanks
Glad you like it!
ciao intanto ti faccio i miei complimenti perchè spieghi "molto molto bene" per me che sono ignorante nel settore, maneggio un pò di arduino giusto semplici progetti, in questi giorni mi sto avvicinando alla esp32 per un progetto con sonda Dallas che ho già realizzato con la Mega.
Se mi posso permettere la mia domanda è , si può utilizzare la WI-FI insieme al Bluetoouth per visualizzare la temperatura su un'altra esp32 dove ho collegato un LCD?
grazie
it really work thx
No problem
Good day to you Sir, thank you so much for taking your time to show all the steps that you went through to make the project a success; I have personally been helped greatly. I just wanted to hear from you if that website on which the values are shown, is customizable; as in you can add other things like charts, buttons etc for more comprehensive analysis of the values. Or i'd need to design a separate web-something for that to be possible. Thank you
You are very welcome
Yeah, you could customize it and create a better interface by changing the html code inside the sketch, but you need to learn how to use html and css
Hello, I really like your videos and they have helped me a lot. I have learned a lot with your videos. But could you make one using an ultrasonic sensor, an ESP8266 and some distance away that triggers an alarm and pops up an alert or something please. it would help me a lot
y IAYAN8 YURNVA8RUVO
Hi, i am not good at HTML😢.
PLEASE what is the relation between the 2 ino files ?.
Thank you
Perfect good job. I would like to connect 15 sensor dht22 for my beehives can i?
Thanks!
No worries ☺️
Brother I have this project to present monday so I hope you see my comment and help me.
I want to edit the web page to include other stuff is it possible?and how can i do it?
wow i like this, what is you dimension size of breadboard?
How can i add a 16x2 lcd display using i2c
Hey If I'm using Nodemcu esp8266 will I have to add other library or the same code will work
It's almost the same code, but there is a slight difference that I am gonna explain in the next few videos.
it is possible I assign static IP, please reply
i can't find the My-Network to conect. What i should do? please help me!
You have to connect to your network
You could use your mobile Hotspot
Tks bro, I've a question, the DNS name could be saved in the memory flash?
I believe so
when i try to do it it says fatal error: WebServer.h: No such file or directory, i already downloaded the library for Wifi and WiFiClient but i cant find where to download the library for WebServer
The webserver library comes with the esp32 package. So, you don't have to install it.
@@EnjoyMechatronics i take same error. But not coming with esp32 packages. how can i get it
Show great !
Thanks!
Hello, I have a problem, the temperature and humidity value is -1.0, WHY???.
same for me
Sameee
Hi, Can I use more than one sensor with a single ESP32?
Definitely 💯
good❤❤
Thanks 😊
What changes to be made to make it send data to a server by calling a url
It depends on the server, so read the documentation.
I have 4 pins in my sensor, what will be the connections?
First vcc, snd data, forth gnd
how basically can i use that knowledge with sensors
I have created two functions that return sensor readings:
readDHThumidity
readDHTTemperature
So you can modify their code to return other sensor data.
Pretty sad how unorganized the microcontroller world is. You'd think sensors with the name dht11 would all be pinned out the same. The one I have is vcc on left, gnd on right and data in middle. At least that's what the markings are
simply Go for the markings
If the router tells me that it is connected but the IP address does not appear on the serial monitor, but the MAC of the device appears linked, I am connecting the ESP 32 with a WLAN 1100 (PHOENIX CONTAC) in the web administrator (of the wlan) It tells me that the ESP 32 is in the connected devices and it gives the MAC, but in the serial monitor it only shows points, that is, it stays in the while and does not show me the IP address, what could I do?
To connect the WLAN with a tablet or a mobile phone, I must configure the IP to be static, enter the data and it connects, how can I do it on the ESP 32? That is to say, it would be to put the data on its own IP address, WLAN IP, "prefix length" dns 1, dns 2, how can I assign (program) these values to esp 32? What strategy do you recommend?
i am also having the same problem, it just shows "......." and continues forever. i have not found the solution yet
@@TaylenIsInsane SAME HERE , I WAS SO EXCITED TO DO THE PROJECT BUT ONLY "------------" IS COMING. SOMEBODY PLEASE HELP US
Where can I find the code?
github.com/Enjoy-Mechatronics/ESP32-DHT-Webserver/blob/main/ESP32-DHT-Webserver.ino
great work! can this code work with the esp8266?
Yes it will
Where i can get the code?
github.com/Enjoy-Mechatronics/ESP32-DHT-Webserver
Failed uploading: uploading error: exit status 2 help
Hello, I had the same problem, you need to disconnect all the pins that receive information (like the dht sensor), and try again
dontwork
hay codigo hay like
Plz can y send me the program
github.com/Enjoy-Mechatronics/ESP32-DHT-Webserver
@@EnjoyMechatronics شكرا اخي
Bro code its wrong
No, it works
send me the code
IS A HFDNYU JNRDUBUYJJ
HELLO i want to make something similar but i want to add some thing to show state of a variable 0 or 1 , can i contact you privately to help me?
also i noticed you are from tunisia im from algeria