ESP32 DHT Web Server Project

Поделиться
HTML-код
  • Опубликовано: 25 ноя 2024

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

  • @bosonw4373
    @bosonw4373 8 месяцев назад +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.

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

    Big hug teacher, health and luck always.

  • @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 3 месяца назад

      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 3 месяца назад

      @@soniccinos Ah, that makes sense!

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

      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.
      \
      \

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

  • @holodiscus
    @holodiscus 11 месяцев назад +3

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

  • @kebman
    @kebman 2 месяца назад +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!

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

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

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

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

  • @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 8 месяцев назад +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.

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

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

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

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

      simply Go for the markings

  • @CodeBlank-y5h
    @CodeBlank-y5h 4 месяца назад +1

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

  • @Pinko3217
    @Pinko3217 9 месяцев назад +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

  • @humanhurt2384
    @humanhurt2384 9 месяцев назад +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?

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

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

  • @ShinesMonkey1
    @ShinesMonkey1 6 месяцев назад +2

    Nice clean web interface - thanks

  • @MarcosML.
    @MarcosML. 9 месяцев назад +7

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

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

  • @LordImpaler-xe5qq
    @LordImpaler-xe5qq 5 месяцев назад +1

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

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

    Nice video bro 👍

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

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

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

  • @PlachtaAndreeaMirela
    @PlachtaAndreeaMirela 6 месяцев назад +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 2 месяца назад

      try to adjust baud in serial monitor

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

    • @Arduino-h1p
      @Arduino-h1p 10 месяцев назад

      y IAYAN8 YURNVA8RUVO

  • @username8191
    @username8191 7 месяцев назад +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?

  • @onecircuit-as
    @onecircuit-as Год назад +1

    Lovely work!

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

    Terima kasih ilmunya sukses selalu semoga bermanfaat, salam..

  • @abuilmanzm8079
    @abuilmanzm8079 29 дней назад +1

    bagus, anda baik sekali telah berbagi, terima kasih banyak

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

    Nice info, thanks for sharing :)

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

    Great work!
    Thanks for sharing

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

    How can i add a 16x2 lcd display using i2c

  • @AAlejandra_Saav
    @AAlejandra_Saav 9 месяцев назад +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 9 месяцев назад +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 7 месяцев назад +1

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

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

      i have the same problem

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

      @@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 2 месяца назад

      @@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);

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

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

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

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

    it is possible I assign static IP, please reply

  • @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 Год назад

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

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

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

    • @thefrugalphotographer
      @thefrugalphotographer 4 месяца назад +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 3 месяца назад

      do you have the code ? i need 😢

    • @dvdowns
      @dvdowns 3 месяца назад

      @@Zainab_king_ali it's on the top comment

  • @roco9393
    @roco9393 5 месяцев назад +1

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

  • @AdityaSharma-ug3ip
    @AdityaSharma-ug3ip Год назад +1

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

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

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

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

      First vcc, snd data, forth gnd

  • @gayelab11
    @gayelab11 4 месяца назад +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 :/

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

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

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

    Is there a way to power with batterys

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

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

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

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

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

  • @muraryk.s4010
    @muraryk.s4010 4 месяца назад +1

    working nicely

  • @paulopc77
    @paulopc77 22 дня назад +1

    very very good!

  • @madhavdivya
    @madhavdivya 4 месяца назад +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 3 месяца назад

      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 2 месяца назад

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

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

    it really work thx

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

    Failed uploading: uploading error: exit status 2 help

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

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

  • @roco9393
    @roco9393 5 месяцев назад +2

    Thanks!

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

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

    Show great !

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

    Plz can y send me the program

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

    great work! can this code work with the esp8266?

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

    👍

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

    good❤❤

  • @AyushSingh-t4f
    @AyushSingh-t4f 2 месяца назад +4

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

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

    Bro code its wrong

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

    Bro I need code bro

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

    hay codigo hay like

  • @Arduino-h1p
    @Arduino-h1p 10 месяцев назад

    send me the code

    • @Arduino-h1p
      @Arduino-h1p 10 месяцев назад

      IS A HFDNYU JNRDUBUYJJ

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

    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

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

    Where i can get the code?