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.
  • НаукаНаука

Комментарии • 93

  • @rafaelalvesdasilva6754
    @rafaelalvesdasilva6754 Год назад

    Big hug teacher, health and luck always.

  • @EnjoyMechatronics
    @EnjoyMechatronics  Год назад +6

    ► Project: github.com/Enjoy-Mechatronics/ESP32-DHT-Webserver

  • @codybarker9942
    @codybarker9942 7 месяцев назад +2

    This tutorial was great! I'm planning on adapting it for an in situ soil EC meter.

  • @carlosvaz4392
    @carlosvaz4392 Год назад

    Great work!
    Thanks for sharing

  • @PhG1961
    @PhG1961 8 месяцев назад +8

    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?

  • @Bianchi77
    @Bianchi77 Год назад +1

    Nice info, thanks for sharing :)

  • @Lionel-pc7ln
    @Lionel-pc7ln 3 месяца назад +1

    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.

  • @dinukajkdy3291
    @dinukajkdy3291 10 месяцев назад +3

    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

  • @bosonw4373
    @bosonw4373 3 месяца назад +1

    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.

  • @onecircuit-as
    @onecircuit-as 7 месяцев назад +1

    Lovely work!

  • @PlachtaAndreeaMirela
    @PlachtaAndreeaMirela Месяц назад +1

    Hello! Thank you for this tutorial! What can I do if when entering the ip address nothing opens in the browser?

  • @ericcharland784
    @ericcharland784 Год назад +1

    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

  • @WawanSetiawan-xn3ke
    @WawanSetiawan-xn3ke 10 месяцев назад +1

    Terima kasih ilmunya sukses selalu semoga bermanfaat, salam..

  • @HD_TOON
    @HD_TOON Год назад +4

    Nice video bro 👍

  • @BearFulmer
    @BearFulmer Год назад +3

    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.

  • @humanhurt2384
    @humanhurt2384 4 месяца назад +1

    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?

  • @LordImpaler-xe5qq
    @LordImpaler-xe5qq 11 дней назад +1

    Can I use the nodemcu instead of the esp32 for this project?;

  • @RGPinger
    @RGPinger 6 месяцев назад +1

    ye, use float with 2 decimals, but use only one. Use also float for int number.

  • @ShinesMonkey1
    @ShinesMonkey1 Месяц назад +1

    Nice clean web interface - thanks

  • @Pinko3217
    @Pinko3217 4 месяца назад +2

    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

  • @Fat1413
    @Fat1413 Год назад +2

    it really work thx

  • @zw.Scribe_Media
    @zw.Scribe_Media 9 месяцев назад +1

    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

    • @EnjoyMechatronics
      @EnjoyMechatronics  9 месяцев назад +1

      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

  • @angelarmandoolveragonzalez8124
    @angelarmandoolveragonzalez8124 Год назад +2

    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

  • @benmedka
    @benmedka 6 месяцев назад +1

    Hi, i am not good at HTML😢.
    PLEASE what is the relation between the 2 ino files ?.
    Thank you

  • @nikoskotsilitis1999
    @nikoskotsilitis1999 4 месяца назад +1

    Perfect good job. I would like to connect 15 sensor dht22 for my beehives can i?

  • @roco9393
    @roco9393 20 дней назад +1

    Thanks!

  • @username8191
    @username8191 2 месяца назад +1

    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?

  • @KennethIsrael_aiikendoit
    @KennethIsrael_aiikendoit 28 дней назад

    wow i like this, what is you dimension size of breadboard?

  • @BagadBilla69420
    @BagadBilla69420 4 месяца назад +1

    How can i add a 16x2 lcd display using i2c

  • @ayushjha1110
    @ayushjha1110 Год назад

    Hey If I'm using Nodemcu esp8266 will I have to add other library or the same code will work

    • @EnjoyMechatronics
      @EnjoyMechatronics  Год назад +1

      It's almost the same code, but there is a slight difference that I am gonna explain in the next few videos.

  • @Robert-ki5gy
    @Robert-ki5gy 3 месяца назад +1

    it is possible I assign static IP, please reply

  • @ManhNguyen-bc9qe
    @ManhNguyen-bc9qe Год назад +1

    i can't find the My-Network to conect. What i should do? please help me!

    • @EnjoyMechatronics
      @EnjoyMechatronics  Год назад +2

      You have to connect to your network
      You could use your mobile Hotspot

  • @roco9393
    @roco9393 20 дней назад +1

    Tks bro, I've a question, the DNS name could be saved in the memory flash?

  • @monicagonzalezgaona9488
    @monicagonzalezgaona9488 Год назад +1

    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

    • @EnjoyMechatronics
      @EnjoyMechatronics  Год назад +1

      The webserver library comes with the esp32 package. So, you don't have to install it.

    • @esathidayet7655
      @esathidayet7655 11 месяцев назад

      @@EnjoyMechatronics i take same error. But not coming with esp32 packages. how can i get it

  • @arduinomaquinas
    @arduinomaquinas 11 месяцев назад +1

    Show great !

  • @MarcosML.
    @MarcosML. 4 месяца назад +5

    Hello, I have a problem, the temperature and humidity value is -1.0, WHY???.

  • @joseDiaz21
    @joseDiaz21 3 месяца назад +1

    Hi, Can I use more than one sensor with a single ESP32?

  • @lephungkhang8695
    @lephungkhang8695 Год назад +1

    good❤❤

  • @AdityaSharma-ug3ip
    @AdityaSharma-ug3ip 7 месяцев назад +1

    What changes to be made to make it send data to a server by calling a url

    • @EnjoyMechatronics
      @EnjoyMechatronics  7 месяцев назад +1

      It depends on the server, so read the documentation.

  • @he_good7264
    @he_good7264 8 месяцев назад +1

    I have 4 pins in my sensor, what will be the connections?

    • @benmedka
      @benmedka 6 месяцев назад

      First vcc, snd data, forth gnd

  • @nowamaniivannkubito9860
    @nowamaniivannkubito9860 Год назад +1

    how basically can i use that knowledge with sensors

    • @EnjoyMechatronics
      @EnjoyMechatronics  Год назад +1

      I have created two functions that return sensor readings:
      readDHThumidity
      readDHTTemperature
      So you can modify their code to return other sensor data.

  • @TheOldKid
    @TheOldKid Год назад +2

    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

    • @comic-typ5919
      @comic-typ5919 6 месяцев назад

      simply Go for the markings

  • @AAlejandra_Saav
    @AAlejandra_Saav 4 месяца назад +1

    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?

    • @TaylenIsInsane
      @TaylenIsInsane 4 месяца назад

      i am also having the same problem, it just shows "......." and continues forever. i have not found the solution yet

    • @Vishnu-yp6bz
      @Vishnu-yp6bz 2 месяца назад

      @@TaylenIsInsane SAME HERE , I WAS SO EXCITED TO DO THE PROJECT BUT ONLY "------------" IS COMING. SOMEBODY PLEASE HELP US

  • @beysik6871
    @beysik6871 Год назад +1

    Where can I find the code?

    • @EnjoyMechatronics
      @EnjoyMechatronics  Год назад +3

      github.com/Enjoy-Mechatronics/ESP32-DHT-Webserver/blob/main/ESP32-DHT-Webserver.ino

  • @gilbertmphande4519
    @gilbertmphande4519 5 месяцев назад

    great work! can this code work with the esp8266?

  • @vitovalentinoprasetyoputro4552
    @vitovalentinoprasetyoputro4552 Год назад +1

    Where i can get the code?

  • @lendilendi8789
    @lendilendi8789 6 месяцев назад +1

    Failed uploading: uploading error: exit status 2 help

    • @jorgeadriano2225
      @jorgeadriano2225 5 месяцев назад

      Hello, I had the same problem, you need to disconnect all the pins that receive information (like the dht sensor), and try again

  • @user-tc9hp9bj8l
    @user-tc9hp9bj8l Год назад +2

    dontwork

  • @hugocarloshuizaquinto3619
    @hugocarloshuizaquinto3619 7 месяцев назад +1

    hay codigo hay like

  • @radhoinealoui8804
    @radhoinealoui8804 8 месяцев назад +1

    Plz can y send me the program

  • @bayudharmaprayoga3436
    @bayudharmaprayoga3436 7 месяцев назад +1

    Bro code its wrong

  • @user-kc4xc8si1g
    @user-kc4xc8si1g 5 месяцев назад

    send me the code

  • @mrelo007
    @mrelo007 2 месяца назад

    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