ESP32: ESP-NOW Web Server Sensor Dashboard (ESP-NOW + Wi-Fi)

Ғылым және технология

For complete project details (schematics + source code), visit ► RandomNerdTutorials.com/esp32...
In this project you'll learn how to host an ESP32 web server and use ESP-NOW communication protocol at the same time. You can have several ESP32 boards sending sensor readings via ESP-NOW to one ESP32 receiver that displays all readings on a web server. The boards will be programmed using Arduino IDE.
Getting Started with ESP-NOW (ESP32 with Arduino IDE): RandomNerdTutorials.com/esp-n...
ESP-NOW Two-Way Communication Between ESP32 Boards: RandomNerdTutorials.com/esp-n...
ESP-NOW with ESP32: Send Data to Multiple Boards (one-to-many): RandomNerdTutorials.com/esp-n...
ESP-NOW with ESP32: Receive Data from Multiple Boards (many-to-one): RandomNerdTutorials.com/esp-n...
Like my page on Facebook:
/ randomnerdtutorials
Follow me on twitter:
/ ruisantosdotme
Subscribe for more projects like this!
bit.ly/subscribeRNT
#ESP32 #IoT #Arduino

Пікірлер: 73

  • @RuiSantosdotme
    @RuiSantosdotme4 жыл бұрын

    You can find the complete project details (schematics + source code) on my blog ► RandomNerdTutorials.com/esp32-esp-now-wi-fi-web-server/

  • @guillermodanielarias9828

    @guillermodanielarias9828

    4 жыл бұрын

    Hi Rui, I'm having a problem with setting the AP channel. If I connect WiFi with the STATION, the AP channel changes to the channel from the station.

  • @rampage_xdit

    @rampage_xdit

    3 жыл бұрын

    Hi roy thank you inadvance for your good project . May you tell me hiw I can take photo by esp32 cam with pir sensor and send photo by sim800L and save that to server or cloud and send link that by sms to my phone? Thanks alot

  • @kamrannt

    @kamrannt

    2 жыл бұрын

    Can we add one esp8266 as one of the sender bot(client)?

  • @gaithouri

    @gaithouri

    2 жыл бұрын

    you are eeepiiiccc

  • @hrudaytummala1544

    @hrudaytummala1544

    Жыл бұрын

    Sir, can u please send the code for IR sensor esp now communication

  • @alcanceweb
    @alcanceweb4 жыл бұрын

    Wonderful! That bit of updating sensor values without the need to refresh the whole page is very interesting, though. Thank you.

  • @rklauco
    @rklauco3 жыл бұрын

    Thanks, this seems to be the best video depicting EPS NOW with parallel wifi connection :)

  • @michealoflaherty1265
    @michealoflaherty12654 жыл бұрын

    This is exactly what I have been looking to do. Thanks a million.

  • @YigalBZ
    @YigalBZ3 жыл бұрын

    Great video, clear and focused.

  • @TomSchubert
    @TomSchubert4 жыл бұрын

    This is perfect, I've been racking my brain for the last 3 days to get ESPnow and a web server/ wifi working at the same time. I'll dive into the code this afternoon. Thank you

  • @guillermodanielarias9828

    @guillermodanielarias9828

    4 жыл бұрын

    Hi Tom, have you tried this code?

  • @TomSchubert

    @TomSchubert

    4 жыл бұрын

    @@guillermodanielarias9828 I definitely have, it didn't work in my unique situation as I needed Wi-Fi plus ESP now sending. I ended up running a master which connects to Wi-Fi and received ESP now and then communicates over serial to the first slave which directly sends out ESP now

  • @viniciusnoyoutube
    @viniciusnoyoutube4 жыл бұрын

    Excellent project. Great work.

  • @FKSolutions_Eng
    @FKSolutions_Eng3 жыл бұрын

    Parabéns pelo canal e pelo conteúdo, muito bem comentado e explicado. Parabéns mesmo.

  • @ei23de
    @ei23de4 жыл бұрын

    Very nice! ESP-NOW is great! It's super fast and efficient. I built some sensors and a doorbell with it too. Did you manage to combine ESP32 and ESP8266 via ESPNOW together?

  • @felixperez9996
    @felixperez9996 Жыл бұрын

    Simply perfect :) i have a question... if we, for example, from the server, what "turn on" a light in one of the clients... What we have to do?

  • @mikesprojects2917
    @mikesprojects29172 жыл бұрын

    Hi Rui, many thanks from Canada for all the great tutorials! Wondering how difficult it would be to use ESP8266 01S for remote sensors? It seems such a waste of processor and footprint to use only one or two I/O pins. Any guidance would be greatly appreciated!

  • @jeffmcclain
    @jeffmcclain4 жыл бұрын

    Seems like you could make the connection to the receiver assign back a number for that MAC that it uses to set it's broadcasts and not have to have custom 1,2,3,4... int assignments hard coded in. This would allow the same code to be used for each sensor ESP32 and dynamically connect/assign number when connected. I'm going to work on this (granted, you'll have to be peer not just Rx or Tx).

  • @jackywoo4975
    @jackywoo49754 жыл бұрын

    Thanks for great video Rui. Any chance of espnow, wifi, mqtt combine with d1 mini video? It would be very popular for home automation.

  • @reni_christian
    @reni_christian4 жыл бұрын

    Mind blowing

  • @electronicswithzee2565
    @electronicswithzee25654 жыл бұрын

    Excellent ... Excellent ....Excellent ....!!!

  • @RuiSantosdotme

    @RuiSantosdotme

    4 жыл бұрын

    Thanks!

  • @sudarsanchokkara9808
    @sudarsanchokkara98084 жыл бұрын

    Very nice project. Dash board looking very nice. I have learned more projects from you. Thank you rui sir.

  • @TOMTOM-nh3nl
    @TOMTOM-nh3nl2 жыл бұрын

    Thank You

  • @Corgitronics
    @Corgitronics4 жыл бұрын

    Thank you for following up with another update on ESP-NOW. It's on my list of things to work on soon. BTW, what video editing tools/software do you use? That would be interesting, as the quality of your videos is excellent! I really would like to know what you use for screen capture and for the diagrams.

  • @jenishthumar1904
    @jenishthumar19044 жыл бұрын

    Can you make video on how to set internal RTC of esp using Arduino ide. And accuracy of that RTC in normal condition.

  • @prathambumb5593
    @prathambumb55934 жыл бұрын

    Excellent 👍

  • @RuiSantosdotme

    @RuiSantosdotme

    4 жыл бұрын

    Thank you!

  • @ramilmamba3700
    @ramilmamba37002 жыл бұрын

    Спасибо большое разобраться не мог помогли спасибо🙂😉

  • @0raibi
    @0raibi2 жыл бұрын

    Do you think this method can work for realtime applications like let's say moving motors via a joystick or turning a rotary knob to determine the motor position using espnow and this server client method?

  • @kamilzdunczyk2245
    @kamilzdunczyk22453 жыл бұрын

    do you plan to do something similar but with the ability to read data from anywhere? Not only reading the data while connected to the local network

  • @kamalkamel7559
    @kamalkamel75594 жыл бұрын

    nice, thank you rui

  • @RuiSantosdotme

    @RuiSantosdotme

    4 жыл бұрын

    You're welcome!

  • @gerdabotha5917
    @gerdabotha59174 жыл бұрын

    Very nice video. I would also like to do this on a cloud-based server so that I can access my data from anywhere in the world. Hope you can make a video on that as well

  • @aboyousifiotsmartsolutions1036

    @aboyousifiotsmartsolutions1036

    4 жыл бұрын

    I think it will easy just you need to modify the Reciver code to add your server and, port number and Resource path API, then you can send http POST request to your server that containing sensors values.

  • @Wokoman1
    @Wokoman13 жыл бұрын

    I can't get it working, I'm combining 2 ESP01 as sender and an esp32 as receiver/server. Both ESP01's are recognized and can communicate with the 32 up untill it is connected to the wifi. Then suddenly the communication stops and both are no longer available. Would you still have the old code somewhere available so I can try that? In this video you clearly mention both espnow and wifi network need to be on different channels, while on the site (and the new script) you state the opposite so it's a bit confusing. I suspect my mesh wifi to fail with the new scripts.

  • @moses5407
    @moses5407 Жыл бұрын

    How tight is the data synchronization from multiple sending sensors?

  • @jaiswalharsh_
    @jaiswalharsh_3 жыл бұрын

    Can the ESP32 senders directly send packets to a web server without the receiver in the middle?

  • @maskman4821
    @maskman48214 жыл бұрын

    How do we access ESP-NOW from anywhere in the world ? What kind of service do we need ? I found "husarnet", seems pretty awesome !!!

  • @moses5407
    @moses5407 Жыл бұрын

    Still wondering about time sync of the data from the multiple sensors

  • @MonicaYap
    @MonicaYap4 жыл бұрын

    Hi! This is a great project! By the way, how did you make that esp-now dashboard? Do you have a tutorial for that?

  • @ArtemisKitty

    @ArtemisKitty

    4 жыл бұрын

    Yeah, that looks SO much better than anything I come up with for my control interfaces/projects, haha. I’d also love to know what that is, if you don’t mind sharing. :-)

  • @kraskagm
    @kraskagm4 жыл бұрын

    Hello! I am trying to run webservers on multiple esp32 devices. I'm planning that each device can run as a master device. And in every device I can pair 2 esp32 devices entering the MAC addresses in the webserver user interface. So when it's paired then regardless on which webserver am i, I can control both or three devices. On the webserver I have a field where I can enter the MAC address. I wonder is it possible to pair devices like so? I haven't implemented the communication code yet and looking solutions which might be the easiest to implement. Right now what i have is a single device working in a webserver access point mode with a user interface for one device. I implemented the add on buttons and sliders but they aren't yet connected to the other esp32 devices and no data is in the background.

  • @freshine
    @freshine3 жыл бұрын

    hi! how i can add a button in web interface to control an aotput on sender esp32?

  • @ismzaxxon
    @ismzaxxon Жыл бұрын

    Can this be setup as a software access point and not require connection to an access point? I have tried with no luck so far

  • @muthucumarans5831
    @muthucumarans58314 жыл бұрын

    It is able to display value in mit app inventor

  • @mikemurphy1896
    @mikemurphy18962 жыл бұрын

    Great. Do you have this in python 3 ?

  • @lucagraupner4184
    @lucagraupner4184 Жыл бұрын

    Are you doing it also with esp idf in vsc?

  • @elektronikakreatif8515
    @elektronikakreatif8515 Жыл бұрын

    Yess GOOD...

  • @richardkuhne5054
    @richardkuhne50544 жыл бұрын

    Amazing, i‘m still looking for some Micro python or Circuit python projects that use ESP-now. If anyone found something please let me know.

  • @MONISHAGOWRI
    @MONISHAGOWRI Жыл бұрын

    I want to work with mpu6050 with two esp board can u help me out of it?

  • @nvn93
    @nvn932 жыл бұрын

    Where can I download esp_now library?

  • @Xander054
    @Xander0543 ай бұрын

    I’ve been pulling my hair out trying to connect my ESP receiver to WiFi and still receive packets. Is it as simple as fixing the AP channel?

  • @RatnaPriya-fn5ud
    @RatnaPriya-fn5ud6 ай бұрын

    Did you Change the code the link for source code has different code Please help me I am working on this

  • @shashikantabiswal7911
    @shashikantabiswal79112 жыл бұрын

    Poket data. “delivery failed" Output

  • @ashokkhurana7149
    @ashokkhurana71494 жыл бұрын

    A nice project . can it be implemented on ESP8266 . If yes make a video to explain. thanks

  • @underwoodblog

    @underwoodblog

    4 жыл бұрын

    Came here to ask the same question!

  • @ArtemisKitty

    @ArtemisKitty

    4 жыл бұрын

    Yes, it can. ESP-NOW is compatible with both, and cross-communicates between them with no problems. I’d stick with the ESP32 for the web server (from experience using both to do that for other projects) but as far as the sensors go? No need. Honestly you might even want to UNDERclock it a little bit to save more power. Even 20Mhz is way more than sufficient for a basic sensor. I myself plan to use those old 8266 boards for something useful that I still have, so this is perfect! (I’m upgrading the office LED lights by switching the existing NodeMCU boards for ESP32 M5 Atom modules because they’re tiny. I also have a few temp/humidity/etc sensors, but I’m pretty sure they’re AM2302 mostly, MAYBE 1 DHT11? Shouldn’t matter though. Hopefully. I’ll update once the new shipment arrives! Any day now!) Next step: Change all the LED shelf lights to have a 2nd mesh network between them using ESP-NOW, so that even if/when the WiFi is down, I don’t have to connect individually to them in ad-hoc mode one by one. I want to use the temp sensors/humidity sensors to integrate with the air on and a fan on the porch, along with adding functions as I think of them. (Still researching the best “human presence sensor” option for the porch and bathroom lights that won’t turn off when you sit still, lol.)

  • @agrnair5738
    @agrnair57382 жыл бұрын

    I wish to do this project with esp8266 what changes I have to make any video related to that you made

  • @charleslyell3748

    @charleslyell3748

    Жыл бұрын

    kzread.info/dash/bejne/kZl8x5mPmbvfiZs.html

  • @kevinrow4157
    @kevinrow41574 жыл бұрын

    Can it work on esp8266 and ultrasonic sensors??

  • @YigalBZ

    @YigalBZ

    3 жыл бұрын

    Of course it can. It is easy like with any other sensor. Working well for me.

  • @jettaglnegro
    @jettaglnegro5 ай бұрын

    Tendras estos videos en español?

  • @arfendkhalifa
    @arfendkhalifa4 жыл бұрын

    the receiver mac address will be changed or not?

  • @YigalBZ

    @YigalBZ

    3 жыл бұрын

    The mac address is fixed, by hardware. Note that IP may change,

  • @srrandall88
    @srrandall884 жыл бұрын

    Is there a way to ask Google home what the temperature of a room is using this project...?? Specifically I want to read temperature of my pool aloud when i ask it Question:"ok Google, what is the pool temperature? " Answer: "The pool temperature is currently 27.5 degrees celcius"

  • @underwoodblog

    @underwoodblog

    4 жыл бұрын

    Maby if you send the data to IFTTT and connect this to ok google?

  • @kraskagm

    @kraskagm

    4 жыл бұрын

    I think when ESP32 is working as a weberver then probably google home can access the MAC address and read in from the webserver.

  • @JamesWattMusic
    @JamesWattMusic9 ай бұрын

    I dont think the esp32 works like this with both wifi and esp now at same time. I have tried everything but the second I turn on WiFi.begin() on the receiver board, and at the same time as ESP-NOW, the data isnt received. If I comment out, WiFi.begin(), the ESP32 starts receiving ESP-NOW data again. All on channel 6 of my wifi. So I have no idea how to publish the ESP-NOW data onto a webpage, only shows up in serial.

  • @epiendless1128
    @epiendless1128 Жыл бұрын

    I found an apparent bug in the transmitter code. It worked well for a week or two, but then started to complain "Peer interface is invalid". Fault seems to be an inadequately initialised structure. Following advice elsewhere I changed esp_now_peer_info_t peerInfo; to esp_now_peer_info_t peerInfo = {}; That seems to have fixed it.

Келесі