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

  Переглядів 80,032

Rui Santos

Rui Santos

День тому

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

КОМЕНТАРІ: 72
@RuiSantosdotme
@RuiSantosdotme 3 роки тому
You can find the complete project details (schematics + source code) on my blog ► RandomNerdTutorials.com/esp32-esp-now-wi-fi-web-server/
@guillermodanielarias9828
@guillermodanielarias9828 3 роки тому
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 2 роки тому
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
@alcanceweb 3 роки тому
Wonderful! That bit of updating sensor values without the need to refresh the whole page is very interesting, though. Thank you.
@rklauco
@rklauco 2 роки тому
Thanks, this seems to be the best video depicting EPS NOW with parallel wifi connection :)
@michealoflaherty1265
@michealoflaherty1265 3 роки тому
This is exactly what I have been looking to do. Thanks a million.
@YigalBZ
@YigalBZ 3 роки тому
Great video, clear and focused.
@TomSchubert
@TomSchubert 3 роки тому
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 3 роки тому
Hi Tom, have you tried this code?
@TomSchubert
@TomSchubert 3 роки тому
@@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
@viniciusnoyoutube 3 роки тому
Excellent project. Great work.
@mikesprojects2917
@mikesprojects2917 2 роки тому
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!
@ei23de
@ei23de 3 роки тому
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?
@FKSolutions_Eng
@FKSolutions_Eng 3 роки тому
Parabéns pelo canal e pelo conteúdo, muito bem comentado e explicado. Parabéns mesmo.
@kamilzdunczyk2245
@kamilzdunczyk2245 3 роки тому
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
@jackywoo4975
@jackywoo4975 3 роки тому
Thanks for great video Rui. Any chance of espnow, wifi, mqtt combine with d1 mini video? It would be very popular for home automation.
@jenishthumar1904
@jenishthumar1904 3 роки тому
Can you make video on how to set internal RTC of esp using Arduino ide. And accuracy of that RTC in normal condition.
@electronicswithzee2565
@electronicswithzee2565 3 роки тому
Excellent ... Excellent ....Excellent ....!!!
@RuiSantosdotme
@RuiSantosdotme 3 роки тому
Thanks!
@jeffmcclain
@jeffmcclain 3 роки тому
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).
@0raibi
@0raibi Рік тому
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?
@prathambumb5593
@prathambumb5593 3 роки тому
Excellent 👍
@RuiSantosdotme
@RuiSantosdotme 3 роки тому
Thank you!
@MonicaYap
@MonicaYap 3 роки тому
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 3 роки тому
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. :-)
@reni_christian
@reni_christian 3 роки тому
Mind blowing
@kamalkamel7559
@kamalkamel7559 3 роки тому
nice, thank you rui
@RuiSantosdotme
@RuiSantosdotme 3 роки тому
You're welcome!
@mikemurphy1896
@mikemurphy1896 2 роки тому
Great. Do you have this in python 3 ?
@lucagraupner4184
@lucagraupner4184 Рік тому
Are you doing it also with esp idf in vsc?
@Wokoman1
@Wokoman1 3 роки тому
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.
@maskman4821
@maskman4821 3 роки тому
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 Рік тому
How tight is the data synchronization from multiple sending sensors?
@sudarsanchokkara9808
@sudarsanchokkara9808 3 роки тому
Very nice project. Dash board looking very nice. I have learned more projects from you. Thank you rui sir.
@TOMTOM-nh3nl
@TOMTOM-nh3nl 2 роки тому
Thank You
@jaiswalharsh_
@jaiswalharsh_ 3 роки тому
Can the ESP32 senders directly send packets to a web server without the receiver in the middle?
@moses5407
@moses5407 Рік тому
Still wondering about time sync of the data from the multiple sensors
@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
@kraskagm
@kraskagm 3 роки тому
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
@freshine 3 роки тому
hi! how i can add a button in web interface to control an aotput on sender esp32?
@gerdabotha5917
@gerdabotha5917 3 роки тому
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 3 роки тому
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.
@ramilmamba3700
@ramilmamba3700 2 роки тому
Спасибо большое разобраться не мог помогли спасибо🙂😉
@muthucumarans5831
@muthucumarans5831 3 роки тому
It is able to display value in mit app inventor
@Corgitronics
@Corgitronics 3 роки тому
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.
@ashokkhurana7149
@ashokkhurana7149 3 роки тому
A nice project . can it be implemented on ESP8266 . If yes make a video to explain. thanks
@underwoodblog
@underwoodblog 3 роки тому
Came here to ask the same question!
@ArtemisKitty
@ArtemisKitty 3 роки тому
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.)
@MONISHAGOWRI
@MONISHAGOWRI 9 місяців тому
I want to work with mpu6050 with two esp board can u help me out of it?
@richardkuhne5054
@richardkuhne5054 3 роки тому
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.
@nvn93
@nvn93 2 роки тому
Where can I download esp_now library?
@RatnaPriya-fn5ud
@RatnaPriya-fn5ud 3 місяці тому
Did you Change the code the link for source code has different code Please help me I am working on this
@JamesWattMusic
@JamesWattMusic 6 місяців тому
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.
@elektronikakreatif8515
@elektronikakreatif8515 Рік тому
Yess GOOD...
@jettaglnegro
@jettaglnegro 2 місяці тому
Tendras estos videos en español?
@agrnair5738
@agrnair5738 2 роки тому
I wish to do this project with esp8266 what changes I have to make any video related to that you made
@charleslyell3748
@charleslyell3748 9 місяців тому
ukposts.info/have/v-deo/l5V5mW2NoI6qumw.html
@kevinrow4157
@kevinrow4157 3 роки тому
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.
@shashikantabiswal7911
@shashikantabiswal7911 2 роки тому
Poket data. “delivery failed" Output
@arfendkhalifa
@arfendkhalifa 3 роки тому
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
@srrandall88 3 роки тому
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 3 роки тому
Maby if you send the data to IFTTT and connect this to ok google?
@kraskagm
@kraskagm 3 роки тому
I think when ESP32 is working as a weberver then probably google home can access the MAC address and read in from the webserver.
@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.
ESP-NOW - Peer to Peer ESP32 Network
43:02
DroneBot Workshop
Переглядів 323 тис.
ESP32 Web page creating and updating
32:11
Kris Kasprzak
Переглядів 129 тис.
She couldn't Believe This! (Mind blowing)😱 #shorts
00:24
ESP-Now Range Test: Real-World Results for ESP32 Devices!
8:01
atomic14
Переглядів 100 тис.
Why Did I Pick Wi-Fi over ESPNow?
4:53
MrDIY
Переглядів 16 тис.
How I Started in Electronics (& how you shouldn't)
7:05
The AM Tech
Переглядів 577 тис.
ESP32 - How to create your First ESP IDF project (From Scratch)
13:11
ESP32-to-ESP32 Simplex Communication via ESP-NOW
6:31
Anas Kuzechie
Переглядів 46 тис.
This is SO Much Better! Getting Started with ESPHome 2021
29:42
Everything Smart Home
Переглядів 317 тис.
Vortex Cannon vs Drone
20:44
Mark Rober
Переглядів 9 млн
All New Atlas | Boston Dynamics
0:40
Boston Dynamics
Переглядів 4,7 млн
Это УНИЖЕНИЕ: Самсунг сделал ступеньки из АЙФОНОВ
0:14
Собиратель новостей
Переглядів 7 млн