Espnow is great, I use it for my greenhouse sensors as they don't get WiFi. The hardest part I found was getting the data to my MQTT server while still listening for espnow data. I settled storing 10 readings, restart with WiFi squirt the data and repeat. I'd be very happy if you could do a follow up video showing a better way than I managed
@Adam-tk4fm4 жыл бұрын
That's a pretty clever way of doing it if there's no way for both protocols to run at the same time
@onboard34414 жыл бұрын
How many esp now videos have I watched now... think you are the only one that actually says how to send data.. thanks. :)
@RuiSantosdotme4 жыл бұрын
You're welcome. I'm glad it was helpful!
@onboard34414 жыл бұрын
@@RuiSantosdotme with this video I managed yesterday to connect a m5stickc with env hat to an esp32 sending all temp, acc, gyro, humidity and heading flawlessly. Works brilliantly. Thanks again.
@wimalmanage3 жыл бұрын
Thanks a lot Rui. Happy to see a person like you. Your site is very interesting. I learned lot from you. Wish you all the best.
@Corgitronics4 жыл бұрын
Great timing! I was just going to look into that for a project I'm hoping to start soon. Looking forward to the next video on this.
@RuiSantosdotme4 жыл бұрын
More projects on this subject coming soon
@kimoymilo37004 жыл бұрын
Amazing videos Rui, do you have a video about bluetooh low energy using esp32?
@KevCoLabs10 ай бұрын
Thank you for explaining this concisely and providing the code in your demo so we can experiment with it. Very much appreciated.
@tinkmarshino4 жыл бұрын
very interesting I just stumbled on to your site by accident but I am rather glad I did.. I have been wanting to play around with my esp boards but just haven't really had the time to investigate them much.. I just popped onto your site and found that this is the place to come.. so I have subed up and will be pursuing your sites and gleaning all of your teaching very soon.. thanks for sharing what you have learned.. carry on..
@bobbydowngrades4 жыл бұрын
Bluetooth does the same thing. SPP profile is both fast and reliable. You can setup a larger network with Bluetooth EDR and the speed of transmission is instant for a distance of say 30 meters through multiple walls. Not sure why so many new wireless types are being made when we have had Bluetooth 2.1 for so long. But fair play for making a video to show people and help publicise ESP.
@DSSlocksmiths2 жыл бұрын
Because you can't have 20 devices all talking via Bluetooth to one device, and to all the others, at the same time.
@UserName-cb6jz9 ай бұрын
@@DSSlocksmithsPlus, the distance is larger with ESP NOW.
@WistrelChianti3 жыл бұрын
Thanks! Very clear overview and explanation and nice test results. Out of interest, does ESPNOW work as an addition to wifi and bluetooth? Could all 3 protocols/radios be active at once? So for example, could I send control commands to an ESP32 via bluetooth, receive telemetry via wifi, and have it communicate with other ESP32's via ESPNOW all at the same time?
@FilmFactry4 жыл бұрын
Absolutely excellent. So, I haven't looked at the code yet. So, the incoming data, sensor data, on the receiver is just a variable? Can't wait to try this.
@IOAN2ER6 сағат бұрын
Can i make one esp32 with a display receiving video feed from another esp32 camera via EspNow? Or via wifi or bluetooth?
@omnianti04 жыл бұрын
mate you get a 12% hunidity diference betwwen the ten centineter of your desktop
@udoschmelmer85234 жыл бұрын
mate its called humidity
@TRCCtv3 жыл бұрын
11.13
@krishnatiwari80282 жыл бұрын
Great video, but it could be much helpful if you showed connections of wire and the things to buy in description
@woolfy02 Жыл бұрын
That is still beyond what my brain can handle but its interesting! What brand ESP32 boards do you recommend?
@muratturel4 жыл бұрын
Thanks for all your videos that have NO crazy shity music on the background.
@TJenga Жыл бұрын
I was trying to change the code to add about 4 push buttons to change 4 leds when pressed in addition to the sensor readings. Would you consider making a video over that?
@Ed196014 жыл бұрын
Interesting. I will see if i can combine it with regular wifi and if i can make it work on an esp8266
@pipercolt19634 жыл бұрын
Curious if you got both Wi-Fi and esp now working Simultaneously
@jettaglnegro Жыл бұрын
En español no tienes videos de este protocolo espnow... se puede esp32 con una esp8266
@cometmace2 жыл бұрын
Exactly the information I need for my project. Thank you.
@raymondmichael49872 жыл бұрын
Two years latter, do you have a part two for this?
@aleksandarzivkovic17922 ай бұрын
Is it possible to use and esp 01(8266) to send data to an esp32 using ESP now?
@ziomalZparafii2 жыл бұрын
What a huge difference on humidity from both sensors.
@JKUAV Жыл бұрын
Hi a query, is ESPNOW a full duplex or half duplex communication
@middelbh4 жыл бұрын
Thanks a lot for your explanation! I just had a problem sending a string with a space between two words: all seems to go OK, ( sending and receiving) but the string is not received in the variable... what could be the cause?
@donnytrisandi8862 Жыл бұрын
thank you for making the video, but I ran into a problem when I managed to make sure the recipient's MAC address was correct but the sender's serial monitor kept telling me that delivery failed. i can confirm the distance between ESP32 is very close. please help me, I'm dizzy.
@deeksharahanoo50923 жыл бұрын
This is a great project. I am actually trying to make communication between two esp32 with different message to be sent. I have seen your detail tutorial, just wondering about power supply thing for the working
@FPChris3 жыл бұрын
So you have to put the mac address of the OTHER board into the .ino?
@claudiobosco716 Жыл бұрын
Hi, i've a little problem... i'm not able to find the library esp_now.h !!! Can you help me ? Many thanks.
@viniciusnoyoutube2 жыл бұрын
Please, make a example of a remote control using ESP-Now.
@saqibjaved19002 жыл бұрын
Hi rui, can you plz make a video for controlling a servo motor over espnow based on soil moisture sensor reading from another esp board. Im stuck with this project. Everythingvworked fine but servo did not worked. Thanks
@pkilo28114 жыл бұрын
Great video..Can you implement ESP-NOW with Micropython?
@projecthivemind32394 жыл бұрын
This is why I subscribe!
@jozefgoral68122 жыл бұрын
What is max possible bit rate, between devices ? Is it possible to speed up bit rate in p2p connection ?
@saajidthakur60272 жыл бұрын
Thanks for your guidance Sir. How can install library to Arduino IDE by json link. I didn't found and explanation regarding this topic
@michaelbishton94394 жыл бұрын
I am looking forward to an example of many-to-many devices. ESP_NOW seems like it only supports explicit data distribution; a known variable to a known (MAC address) device. What about a process like MQTT that distributes all information across any/all subscribers? How does ESP_NOW handle transmission collisions or message timing? Many thanks.
@RuiSantosdotme4 жыл бұрын
Hi! Unfortunately ESP-NOW doesn't support some of those features and in my opinion MQTT will be more reliable. If you set this MAC Address: uint8_t broadcastAddress[] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}; Your ESP-NOW sender will broadcast your message (data) to all nearby ESP-NOW devices that can receive the same data structure.
@michaelbishton94394 жыл бұрын
@@RuiSantosdotme You response, in conjunction with what Jay Nottelling said below, I was wondering... Can ESP-NOW and WiFi run simultaneously? If so, the ESPs can create proper MQTT strings that are passed out to all ESP-NOW devices that read the string into a variable and consume parts of the string as appropriate. The EXP32 running WiFi can bridge the MQTT string to the internet. You form the data one time as an MQTT message and use it across both communications methods. I'm sure I'm missing something...
@hansdegroot6523 жыл бұрын
Hi. Wil wifi still work when using esp now?
@justinanderson97473 жыл бұрын
Does this have to come from github? I have a “simple esp now connection.h” in IDE but no espnow.
@daninwy26813 жыл бұрын
clone the github repo for esp8266 rtos. It's in the examples directory when you clone it.
@jesuscardona51844 жыл бұрын
Excellent. Which is the difference between LORA and this protocol?.
@jpcme20024 жыл бұрын
Ob Rui pelo teu excelente trabalho!
@RuiSantosdotme4 жыл бұрын
Espero que tenha sido útil. Abraço, Rui
@3dFirefly2 жыл бұрын
can ESP-NOW work on ESP-01?
@jairoalbertoreyes3 жыл бұрын
Nice video, I'm making a project where I need to communicate multiple esp to one, and then send this data via Bluetooth to a cellphone. Is this protocol compatible with Bluetooth? Thanks
@mtraven232 жыл бұрын
just learning about board to board communication....I think this can be done via bluetooth too...is the only advantage of wireless to have great range, or are there other reason? I ask because my project will have mutli boards just a few feet apart.
@valendorn4 жыл бұрын
I'm trying to find a project for a board ESP32 but I can’t find anything I need to do a radio control on the sticks of the joystick, can you help?
@user-mu1tc2ls6e4 жыл бұрын
hello i have problem solving difference between code for ESP32 and ESP8266. also where can i found sample code for two way multiple boards ( 5 boards)
@alejandrocaceres43792 жыл бұрын
Gran video por cierto lo hice en esp idf y la verdad no varian mucho las funciones
@hedleyfurio4 жыл бұрын
Thanks - clear and concise . Wonder why the pressure values are different with sensors at same altitude 😀
@RuiSantosdotme4 жыл бұрын
The humidity values are actual quite different, but that's why you should test multiple sensors to see which one gives you the most accurate readings
@hedleyfurio4 жыл бұрын
Rui Santos thanks for reply . I use these sensors my airplane so guess for product each sensor has to be individually calibrated and then software offset inserted before shipping .
@eddymaue12914 жыл бұрын
with regard to the BMP280 I tested on 10 units and I noted minus 1% of errors. The test was done in a closed environment. however I was not interested in atmospheric pressure .. I should have ... on my next order I will pour ce qui est du BMP280 j'ai fait le test sur 10 unités et j,ai noté moins 1% d'erreurs. Le test a été fait dans un environnement clos. cependant je ne me suis pas intéressé à la pression atmosphérique.. J'aurais du ... à ma prochaine commande je le ferai
@abbddullah11 ай бұрын
Impressive my friend ... 🙃
@abdulraheemm57973 жыл бұрын
Is this function possible with esp8266 ????
@electricalcoder30253 жыл бұрын
when i tried practical communication of two esp boards using espnow i get only 15-20metre maximum range not a completely open area ,almost 2-3 walls were there between the two boards. I still dont understand how people claim to have range of above 200metres oin blogs and videos .Do you experience the same Santos?
@DSSlocksmiths2 жыл бұрын
With foil backed plasterboard you'll get even less than that. But the clue is the walls. They stop radio waves.
@silentknife243 жыл бұрын
Dear Rui Santos I am trying to send flex sensor value which i am receiving serially from arduino uno i am able to read the serial values on ESP Master and able to read the values on ESP Client but they don't get updated over time everytime i have to press RESET button on master ESP to update to date values on Client side Please let me know if you can help it's urgent Best regards
@Abbici4 жыл бұрын
Good evening. This library is very very good... But two questions: 1) is possible one device can be bridge too? 2) I have throuble to transmission a structure message: If I use this example... after some time all data are stable except one: String type... myData.d. Why? @}-,-'--------- Gianfranco
@bm8308104 жыл бұрын
Can ESP Now work alongside traditional WIFI, for example each slave do its initialization and MAC address exchange via wifi and then switch to ESP now, for this the masters wifi should be always enabled
@RuiSantosdotme4 жыл бұрын
I think it should work, but I haven't tried it yet.
@eddymaue12914 жыл бұрын
this is doable ... The problem with Arduino is that everything is declared as global (public). It becomes simple if you wrap classes in different modes of communications. So what becomes public is the declaration of objects and in each of these objects you fill in the attributes specific to each mode of communication (espNow, Web, client, server and others). By using an interruption based on the clock in mili-seconds you scan your client, retrieve information and redistribute yourself according to your good wishes to whom it may concern . the only limit I know is the one you imposed on yourself cela est faisable ... Le probleme avec Arduino c'est que tout est déclaré comme global(publique) . Cela devient simple si vous encapsulé dans des classes les différents modes de communications. Alors ce qui devient publique c'est la déclaration d'objets et dans chacun de ces objets vous renseignez les attributs propre à chaque mode de communication (espNow, Web,client,server et autres). En utilisant une interruption basé sur l'horloge en mili-secondes vous scruter vos clients , récupérer l'information et vous redristibuer selon vos bons plaisires à qui de droit la seul limite que je connaisse c'est celle que vous vous imposé
@bm8308104 жыл бұрын
@@eddymaue1291 thanks for the response, how can you multiplex both ESP now and WIFI on the same 2.4GHz radio, don't WIFI need to be always available?
@princebanini3 жыл бұрын
Is esp now MQTT?
@jairogarcia1499 Жыл бұрын
Hello, Rui, I have a quistion for you. I've implemented a one way communication with ESPNOW; I did it, but In one of my cases I've a problem. In normal cases, I have an output which have been activated only for 10ms and no problem, but one of them must be activated BUT no recive any new order in that 15s... as you "close" the communication reception events that you have it only that 15s.. Is there any way, that once you recive an order, start to work on your action, stop listening communication event for a while and them, when you finish, sart again to listen events? thanks
@gg-gn3re4 жыл бұрын
Does esp now allow you to lower transmission rates so you can get several km/miles like you can with other protocols?
@zhoucrance20903 жыл бұрын
Woow i was looking for this video for long time you are a live saver. Can i calculate distance between two those two and when it reaches 2 meters then beeps an alarm. Reply please i working on my final school project. Thank you!!
@ismzaxxon3 жыл бұрын
No effective distance measurement is available on ESP_now
@viniciusnoyoutube4 жыл бұрын
Could you make a exemple where it is possible to alter the values of the variable through the webpage?
@RuiSantosdotme4 жыл бұрын
Take a look at this guide: randomnerdtutorials.com/esp32-esp8266-thermostat-web-server/ Or this one: randomnerdtutorials.com/esp32-esp8266-input-data-html-form/
@longngo24184 жыл бұрын
Hi, Rui, how long the many ESP 8266 communicate together in ESP-NOW protocol ?Thanks for useful video
@werachaisrisupinanont33534 жыл бұрын
I really want like this ...thanks a lot
@gazzacroy3 жыл бұрын
cool stuff fella really good video thanks fella :)
@melbryant42694 жыл бұрын
hello! i want to know if it is possible to use an encryption algorithm or something if i want to secure the data that transmit between those two nodes???
@jairoalbertoreyes3 жыл бұрын
Hi, I have the same question, did you you find something related?
@vaibhavbhapkar87802 жыл бұрын
thank you so much amazing video
@partouelectric23533 жыл бұрын
Hi, Rui Thanks for your great video Your video is very close to my application. Is it possible to use it for audio streaming? I don't need high-quality audio Regards, Kazem
@InterneteCoisas4 жыл бұрын
Hello Rui, As always, very interesting content. Greetings!
@RuiSantosdotme4 жыл бұрын
Thanks!
@shakerileiwat43414 жыл бұрын
@Rui Santos you are a great , I love it ♥♥♥
@RuiSantosdotme4 жыл бұрын
Thanks!
@TheOleHermit4 жыл бұрын
Thanks for the ESP-NOW video. This looks like just what I need. But, I'm currently coding w/Python & microPython using MQTT. Can ESP-NOW be configured from within Python and replace MQTT? Okay, I'll RTFM. But, thanks for the pointer.😎
@winters.innovative.solutions4 жыл бұрын
Rui, Great video!!! Can you make a super simple video/program, that has two esp32's controlling each others led's with a simple button on each device. And maybe how to expand it to 3 or 4 devices. Thank you very much.
@isov43452 ай бұрын
awesome..
@piconano3 жыл бұрын
Enjoyed your video very much. I wonder if I can use 4 ESP32 boards to make 2-way intercom 200 feet apart in a wooded area? I want to use the I2S along side ESP-NOW to accomplish this. Am I dreaming? PS: I can design and build Op Amp amplifiers and active filters to use in this project.
@forgiven_lightofficial37322 жыл бұрын
Would I be able to use an lcd screen? How would I program that I'm totally new
@forgiven_lightofficial37322 жыл бұрын
And can I run program with a menu controlling the other boards im gonna have 3 boards all with wifi related testing tools. Is it legal to run through other scripts and pick and pull portions?
@WaschyNumber14 жыл бұрын
Very cool video 👍
@RuiSantosdotme4 жыл бұрын
Thanks!
@ATS37884 жыл бұрын
Cool, That was what I'm looking for.
@RuiSantosdotme4 жыл бұрын
I'm glad it was helpful!
@ATS37884 жыл бұрын
@@RuiSantosdotme Actually you are a great guy doing wonderful Project. I'm just jealous
@kumarjha17293 жыл бұрын
Dear Sir, You have done great work. Still I have one doubt regarding Multiple transmitters and single receiver that>>>>>> I am getting the data from all transmitters with their ID. But want to achieve data sequentially. How to obtain data coming from 3 transmitter sequentially? Thanks.
@DSSlocksmiths2 жыл бұрын
If you've got 3 sets of data just sort them and interpret them as different variables? Add a timestamp to the message at the sending end, perhaps? Or request the messages from the controller in the sequence you want? I don't understand the problem?
@PeetHobby Жыл бұрын
This seems to turn an eps32 into an nrf24, with a simplified protocol on 2.4 GHz.
@HedSiDee Жыл бұрын
thanks !!
@uweri_38514 жыл бұрын
awesome stuff. I'll try it soon. I get in trouble with amount of all my internet device connection in the MASH enviroment. These can be a solution. Combine a group of ESP devices in a group. But in these scenario I need one ESP in the group that can communicate with multiple ESP devices and a raspberry pi MQTT server at same time. Do you believe these is possible ?
@robk59694 жыл бұрын
maybe try uart between master esp and the pi?
@machgt2 жыл бұрын
Question. With the bi-directional communication, can I send one struct message from board A to board B and send a different struct message from board B to board A? Or do they have to both be formatted the same?
@machgt2 жыл бұрын
Nevermind, I just got it working with 2 different struct's :)
@bismahendra3 жыл бұрын
How to send receive data between 2 board ESP32 over BLE?
@bismahendra3 жыл бұрын
please make the tutorial
@avejst4 жыл бұрын
Looking great Tanks for sharing
@RuiSantosdotme4 жыл бұрын
Thanks for your feedback, I'm, glad it was helpful!
@YigalBZ2 жыл бұрын
Is there a way for the master to ask "who is out there" and get messages from all slaves near by? This is for the case the master is waking up, without prior knowledge of the MAC addresses of the sales.
@Ownedyou4 жыл бұрын
Love it!
@certified-forklifter4 жыл бұрын
thank, very interesting
@namernum56924 жыл бұрын
How about communication with computer
@nagueshverlekar18344 жыл бұрын
Hi sir, is there any external antenna connected to make it 220 meters?? When I tried I lost the signal at 50 metres.
@MucitPilot3 жыл бұрын
he says "we used onboard antennas" in the video which means they did not use any external ones.
@filipejsbrandao4 жыл бұрын
Will esp-now work on ESP8266?
@creativemind85734 ай бұрын
Yes
@jamescullins27094 жыл бұрын
I tried to use this code on the ESP8266 Wemos D1 R1 but it would not compile. I changed the #include #include The above did not work I changed to the ESP32 D1 R1 below and it did compile. #include #include How do I make it work on the ESP8266? Thanks my friend.
@RuiSantosdotme4 жыл бұрын
Please use the code for the right board. ESP32 with ESP-NOW Protocol ► RandomNerdTutorials.com/esp-now-esp32-arduino-ide/ ESP8266 NodeMCU board ESP-NOW ► RandomNerdTutorials.com/esp-now-esp8266-nodemcu-arduino-ide/ You might also need to modify some of the code (not only the libraries imported)
@tracuettaxila4 жыл бұрын
Thank you so much
@RuiSantosdotme4 жыл бұрын
You're welcome! Thanks for watching
@tracuettaxila4 жыл бұрын
@@RuiSantosdotme actually I was waiting for it from a long time 😊
@DocMicha4 жыл бұрын
Very nice project, I know understand esp-now a bit more. Does this also work on the esp8266??
@chrisleech15654 жыл бұрын
not possible
@RuiSantosdotme4 жыл бұрын
The ESP-NOW protocol should work with the EPS82666, but we haven't tried this code on those boards (some of functions are probably slightly different)
@DocMicha4 жыл бұрын
@@RuiSantosdotme Thank You
@eddymaue12914 жыл бұрын
@@DocMichayes it works for the esp8266 and you can mix
@DocMicha4 жыл бұрын
@@eddymaue1291 Thanks, mixing was the 2nd question!!
@AlexeyFyodorov804 жыл бұрын
Thanks a lot!
@jipede4 жыл бұрын
Very great
@RuiSantosdotme4 жыл бұрын
Thanks!
@TOMTOM-nh3nl4 жыл бұрын
Thank You
@RuiSantosdotme4 жыл бұрын
You're welcome!
@powil4ss4 жыл бұрын
How exactly is this "safe"?
@ismzaxxon3 жыл бұрын
Encryption option available in Library
@saurabhshukla4354 жыл бұрын
if one slave how many master is connected ,and range of maximun slave and master;
@eddymaue12914 жыл бұрын
32
@sblantipodi4 жыл бұрын
can we have both ESP NOW and Wifi running simultaneously? I want to have an esp acting like a slave, receive the message from esp now, and then send it into an MQTT queue via wifi, is this possible?
@stevegables33033 жыл бұрын
.
@AdrianSchwizgebel4 жыл бұрын
Wow that's very interesting! Do you know if ESP-NOW and a regular WiFi connection to a router can be done simultaneously?
@lukaszpodgorski4 жыл бұрын
What od somebody set Mac and there are two devices with same address?
@mikeshaw98734 жыл бұрын
MAC Addresses should be unique.
@mohammadetek97724 жыл бұрын
Can we make mesh network from esp 32?
@DSSlocksmiths2 жыл бұрын
That's literally what this protocol is for.
@yasirali91904 жыл бұрын
can we have same mac address for number of esp32 slaves
@louxamd58192 жыл бұрын
Just need a gps and a script to pair them in a line to extend it past the limits
@silentknife243 жыл бұрын
Dear Rui Thanks for your great tutorial I'm trying to run this code on ESP8266boards and end up with the following error esp_now.h: No such file or directory while if i try to compile the same code by selecting ESP32 board I'm not getting this error Can you please help me out on this Regards
@silentknife243 жыл бұрын
SOLVED
@kaushalambasana73842 жыл бұрын
@@silentknife24 how, i am getting same error
@silentknife242 жыл бұрын
@@kaushalambasana7384 Hi kaushal it’s been long time i solved this but i still have the code and would be glad to share n help you out