ESP32 DHT Web Server Project

Поділитися
Вставка
  • Опубліковано 23 січ 2025

КОМЕНТАРІ • 135

  • @EnjoyMechatronics
    @EnjoyMechatronics  2 роки тому +7

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

  • @roco9393
    @roco9393 7 місяців тому +2

    Thanks!

  • @holodiscus
    @holodiscus Рік тому +4

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

  • @rafaelalvesdasilva6754
    @rafaelalvesdasilva6754 Рік тому +1

    Big hug teacher, health and luck always.

  • @bosonw4373
    @bosonw4373 10 місяців тому +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.

  • @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.

  • @engenhariadagambiarra
    @engenhariadagambiarra 3 місяці тому +1

    Thanks a lot!!! It works perfectly with DOIT ESP32 DEVKIT V1, thanks!!!

  • @PhG1961
    @PhG1961 Рік тому +10

    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?

    • @soniccinos
      @soniccinos 5 місяців тому +1

      I did that using a static webpage with some javascript to call the fetch() function every x seconds. On the ESP32 I created a new route to only send the data in json format using the ArduinoJson lib (it's awesome!).

    • @PhG1961
      @PhG1961 5 місяців тому

      @@soniccinos Ah, that makes sense!

    • @BradHitchcock
      @BradHitchcock 4 місяці тому

      i just changed how often the whole page gets updated, seemed easier that way. 4 seconds seems too often for most people so i made it 30 sec.
      \
      \

  • @ShinesMonkey1
    @ShinesMonkey1 8 місяців тому +2

    Nice clean web interface - thanks

  • @kebman
    @kebman 4 місяці тому +1

    Haha to me DHT stands for Distributed Hash Table. I made a proof-of-concept dynamically allocated DHT server in Rust for a distributed E2E messaging system. I wager it would be fairly hard to censor given a P2P E2E system with a public key encryption protocol such as x25519 and then some stream cipher such as ChaCha20 for security. Written in Rust for that extra oomph of memory safety to keep things extra tied down. I mean, imagine such a resilient system!

  • @icarus_28
    @icarus_28 Рік тому +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

  • @Lionel-pc7ln
    @Lionel-pc7ln 10 місяців тому +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.

  • @humanhurt2384
    @humanhurt2384 11 місяців тому +2

    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?

  • @akhil_j14
    @akhil_j14 2 роки тому +4

    Nice video bro 👍

  • @onecircuit-as
    @onecircuit-as Рік тому +1

    Lovely work!

  • @RGPinger
    @RGPinger Рік тому +1

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

  • @jayjerremy
    @jayjerremy 4 місяці тому +1

    Could you do one that uses A9G to send data to a remote web page using GPRS?

  • @AAlejandra_Saav
    @AAlejandra_Saav 11 місяців тому +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 11 місяців тому +1

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

    • @Vishnu-yp6bz
      @Vishnu-yp6bz 9 місяців тому +1

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

    • @clumpimpi
      @clumpimpi 4 місяці тому +1

      i have the same problem

    • @AAlejandra_Saav
      @AAlejandra_Saav 4 місяці тому

      @@TaylenIsInsane I fixed it like this:
      use:
      //----------------------------------WIFI connection to use with fixed ip
      IPAddress ip(192,168, 1.28); //Use the one you want to give it
      IPAddress gateway(192, 168, 0, 1); // Use the one your WLAN has
      IPAddress subnet(255,255,255,0); // Use the one your WLAN has
      WiFi.config(ip, gateway, subnet);

    • @AAlejandra_Saav
      @AAlejandra_Saav 4 місяці тому

      @@clumpimpi I fixed it like this:
      use:
      //----------------------------------WIFI connection to use with fixed ip
      IPAddress ip(192,168, 1.28); //Use the one you want to give it
      IPAddress gateway(192, 168, 0, 1); // Use the one your WLAN has
      IPAddress subnet(255,255,255,0); // Use the one your WLAN has
      WiFi.config(ip, gateway, subnet);

  • @tarasdyriv1380
    @tarasdyriv1380 19 днів тому +1

    Hello Sir, i have a problem - "Website not reachble" what can I do?

  • @LordImpaler-xe5qq
    @LordImpaler-xe5qq 7 місяців тому +1

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

  • @nessibeabdullah1713
    @nessibeabdullah1713 Місяць тому

    I want🥹🥹 the code for the backend and frontend of the web application and how to make the relationship between them with the arduino ide code?

  • @MarcosML.
    @MarcosML. 11 місяців тому +7

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

  • @benmedka
    @benmedka Рік тому +1

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

  • @username8191
    @username8191 9 місяців тому +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?

  • @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

  • @CodeBlank-y5h
    @CodeBlank-y5h 6 місяців тому +1

    Can you please make a guide on how to can design the website of the webserver

  • @carlosvaz4392
    @carlosvaz4392 Рік тому

    Great work!
    Thanks for sharing

  • @RixtronixLAB
    @RixtronixLAB Рік тому +1

    Nice info, thanks for sharing :)

  • @Pinko3217
    @Pinko3217 11 місяців тому +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

  • @gayelab11
    @gayelab11 6 місяців тому +1

    hello, thank you for this video. but is it possible to get the ip address independently from the laptop, in other words, can i do this project without the need to power the esp32 from my laptop? help pls :/

  • @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 Рік тому +1

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

  • @PlachtaAndreeaMirela
    @PlachtaAndreeaMirela 8 місяців тому +1

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

    • @AyushSingh-t4f
      @AyushSingh-t4f 4 місяці тому

      try to adjust baud in serial monitor

  • @thefrugalphotographer
    @thefrugalphotographer 6 місяців тому +1

    I just tried this as my very fist ESP32 project and the screen is stuck on "Hard resetting via RTS pin".

    • @thefrugalphotographer
      @thefrugalphotographer 6 місяців тому +1

      And it just worked properly the 6th attempt with no real reason why - oh well, at least it's working now, thanks for the video :)

    • @Zainab_king_ali
      @Zainab_king_ali 5 місяців тому

      do you have the code ? i need 😢

    • @dvdowns
      @dvdowns 5 місяців тому

      @@Zainab_king_ali it's on the top comment

  • @BagadBilla69420
    @BagadBilla69420 10 місяців тому +1

    How can i add a 16x2 lcd display using i2c

  • @TheOldKid
    @TheOldKid Рік тому +4

    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

  • @AdityaSharma-ug3ip
    @AdityaSharma-ug3ip Рік тому +1

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

  • @Fat1413
    @Fat1413 2 роки тому +2

    it really work thx

  • @roco9393
    @roco9393 7 місяців тому +1

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

  • @angelarmandoolveragonzalez8124

    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

  • @joseDiaz21
    @joseDiaz21 9 місяців тому +1

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

  • @muraryk.s4010
    @muraryk.s4010 5 місяців тому +1

    working nicely

  • @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

  • @Robert-ki5gy
    @Robert-ki5gy 10 місяців тому +1

    it is possible I assign static IP, please reply

  • @RockOfAgesMedia
    @RockOfAgesMedia Рік тому +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  Рік тому +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

  • @he_good7264
    @he_good7264 Рік тому +1

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

    • @benmedka
      @benmedka Рік тому

      First vcc, snd data, forth gnd

  • @WawanSetiawan_82
    @WawanSetiawan_82 Рік тому +1

    Terima kasih ilmunya sukses selalu semoga bermanfaat, salam..

  • @nikoskotsilitis1999
    @nikoskotsilitis1999 10 місяців тому +1

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

  • @Carzy_games
    @Carzy_games 3 місяці тому +1

    Is there a way to power with batterys

  • @oscarmiano2611
    @oscarmiano2611 3 дні тому +1

    Hi its not creating an IP address...not sure whats wrong

    • @EnjoyMechatronics
      @EnjoyMechatronics  3 дні тому +1

      Can you double-check your network settings and make sure the ESP32 is connected to your WiFi network?

  • @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.

  • @abuilmanzm8079
    @abuilmanzm8079 2 місяці тому +1

    bagus, anda baik sekali telah berbagi, terima kasih banyak

  • @paulopcbs
    @paulopcbs 2 місяці тому +1

    very very good!

  • @madhavdivya
    @madhavdivya 6 місяців тому +1

    If the esp32 is permanently connected to my home WiFi, and I know the IP address of the esp32, why can't I access it from my office WiFi using my mobile phone?

    • @Googleuser-bt4oq
      @Googleuser-bt4oq 5 місяців тому

      Because it's connected to the local network of your home WIFI, not to the internet. So you have to be at the same network to access it

    • @jayjerremy
      @jayjerremy 4 місяці тому

      You could port forward the IP on your Router to allow remote access

  • @KennethIsrael_aiikendoit
    @KennethIsrael_aiikendoit 7 місяців тому

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

  • @lendilendi8789
    @lendilendi8789 Рік тому +1

    Failed uploading: uploading error: exit status 2 help

    • @jorgeadriano2225
      @jorgeadriano2225 Рік тому

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

  • @oscarmiano2611
    @oscarmiano2611 3 дні тому +1

    Please advise...Thank you.

  • @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

  • @lephungkhang8695
    @lephungkhang8695 Рік тому +1

    good❤❤

  • @ceg42
    @ceg42 4 місяці тому +1

    If you're going to mention "Sensor from the last video", at least link it....

  • @arduinomaquinas
    @arduinomaquinas Рік тому +1

    Show great !

  • @radhoinealoui8804
    @radhoinealoui8804 Рік тому +1

    Plz can y send me the program

  • @AyushSingh-t4f
    @AyushSingh-t4f 4 місяці тому +5

    bro please can you give your code in comment because i dont work that much in github please reply with code

    • @RahulS-ux6kf
      @RahulS-ux6kf 13 днів тому

      Bhai agar usne code nhi diya na to thik hi kiya 😂😂😂....
      Aaj ke dino me is profession ka koi matlab nhi agar GitHub ya Dusre VCS ko operate karna nhi ata hai .... Sari coding Sari DSA fail woh nhi aata to ... kyu ki use sikhna kuch 2 3 din ka kaam hai aur 7 days with practice.. itna bhi effort nhi lagaoge to nhi chalega 😅

  • @gilbertmphande4519
    @gilbertmphande4519 11 місяців тому

    great work! can this code work with the esp8266?

  • @bayudharmaprayoga3436
    @bayudharmaprayoga3436 Рік тому +1

    Bro code its wrong

  • @chappidieswarvardhan1802
    @chappidieswarvardhan1802 4 місяці тому

    Bro I need code bro

  • @vladostojanov4941
    @vladostojanov4941 6 місяців тому +1

    👍

  • @Arduino-h1p
    @Arduino-h1p Рік тому

    send me the code

  • @hugocarloshuizaquinto3619
    @hugocarloshuizaquinto3619 Рік тому +1

    hay codigo hay like

  • @abdulbasitkarim863
    @abdulbasitkarim863 Місяць тому

    wow mDNS

  • @mrelo007
    @mrelo007 9 місяців тому

    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

  • @robertdouche1432
    @robertdouche1432 12 днів тому +1

    Works great on LAN but not Wan. Must reconfigure and open a port in your router. 192.168.5.108 is not a Wan URL (Uniform Resource Locator). For remote viewing you will need an IP address or Domain Name and FTP ( File Transfer Protocol).

  • @vitovalentinoprasetyoputro4552

    Where i can get the code?