Huge thanks to our sponsor Altium! -> Get a FREE trial of Altium PCB design software here -> www.altium.com/yt/programmingelectronicsacademy
@ayaansworkshop2 жыл бұрын
please can you do a GitHub Link of the "Boiled Down" code for Master and Slave code?
@programmingelectronics2 жыл бұрын
@@ayaansworkshop I think this is what you are looking for? github.com/espressif/arduino-esp32/tree/master/libraries/ESP32/examples/ESPNow/Basic I hope it helps!
@drpibb75262 жыл бұрын
@@programmingelectronics Can we get the code after you removed all the extemporaneous functions? I am getting an error when compiling after following your example. Thank you.
@edmundisaac2164 Жыл бұрын
@@programmingelectronics i think he is looking for your own code which you promised to drop the link for in dscription
@AzharKhan-cy5kt9 ай бұрын
dude i need that last code you showed of master and slave that small one github says "file not found"
@TheJimtanker2 жыл бұрын
This is exactly what I've been needing for a project that I've been struggling with. There are other tutorials online but none as concise as this one. You've really struck a home run on this one! Thanks!
@programmingelectronics2 жыл бұрын
Great to hear! Thanks so much for watching Jim!
@antextra3002 жыл бұрын
By far the best teacher of all things Arduino!! This video helped me so much!! Most other videos do not explain esp NOW in a way that I could piece apart and use. But you did! Thank you so much!
@programmingelectronics2 жыл бұрын
Glad it helped!
@sennabullet10 ай бұрын
Superb. By far the most comprehensive and most easy to understand explanation of the ESP Now protocol on KZbin. I am incredibly grateful for your effort to make this video and share your knowledge.
@programmingelectronics10 ай бұрын
Glad it was helpful!
@genewinchester9322 жыл бұрын
This is an awesome explanation of something that I have struggled with. I agree it opens a lot of doors for remote control and sensor data transport. Not having it on my network, or having to rent online "cloud" space makes this a winner. Thanks for making it easy to understand!
@programmingelectronics2 жыл бұрын
I am so glad it helped! Thanks for the note and for watching!
@mt-qc2qh Жыл бұрын
I have many devices on my wifi and when we recently switched to Hotwire they use the Eero mesh network. In order to keep my many devices, I implemented the Espnow protocol to offload many wifi sensors. I had to implement a "hub" to provide the fixed channel for Espnow, since the mesh freely hops channels. Since switching I have about 30 Espnow devices alongside the 100 or so wifi based devices. Your explanation is great and should get anyone excited about the possibilities.
@programmingelectronics Жыл бұрын
Whoa!!! You've got quite a setup - very impressive! Thanks so much for watching.
@paulsharpe37942 жыл бұрын
I'm going to try this out tomorrow I have had an idea for a bit and this gives me the basics to get it done thanks
@programmingelectronics2 жыл бұрын
Great! Best of luck through the process.
@claudiomoles2 жыл бұрын
Excellent, best ever detailed explanation of ESPNOW. I am currently using it in my projects, and new projects like model railroad control with ESP8266-12F that I created a board to fit inside an HO locomotive with PWM driver for the motor. I do agree with you how come this ESPNOW is so under-used. It is a great tool and you do not have to mess up with TCP or sockets protocols, you do not need to be online nor in a network router structure point to point communication, fast and reliable. Thank you for your video.
@programmingelectronics2 жыл бұрын
Thanks so much for the note Claudio! Sounds like you have an neat setup using ESPNOW with the 8266 (I have only tried it with the ESP32 so far.)
@claudiomoles2 жыл бұрын
@@programmingelectronics I am going to try the scan feature in ESP8266. that will be top to add new slaves.
@programmingelectronics2 жыл бұрын
@@claudiomoles I thought that was pretty slick as well. I really think that basic example sketch that comes with the library is pretty solid.
@gazzacroy2 жыл бұрын
man what a brill video. i've been using esp now for just over a year and never totally understood how it works.. man this really help me to understand more.. brilliant.. :)
@programmingelectronics2 жыл бұрын
Great to hear! Thanks so much for watching. I hope to have some more videos on ESPNOW coming out.
@mr.bianchirider81262 жыл бұрын
Great video. I use ESPNow to send BME 280 data from my solar weather station to a receiver located inside my house. The receiver then sends the data to Blynk. The connection/awake time for the solar weather station using ESPNow is less than using WiFi. A definite plus when powered by a battery.
@programmingelectronics2 жыл бұрын
That’s a really neat application! I’d love to play around with battery extension using deep sleep some time.
@mr.bianchirider81262 жыл бұрын
@@bob-ny6kn The weather data is stored on Blynk.
@aritramukherjee2 жыл бұрын
neat and especially the battery part 👌. For longer distance lora boards are also awesome 🙂
@morpheon_xyz2 жыл бұрын
This is exactly the kind of information needed to kickstart some badass projects that require wireless transmission between 2 boards. Definitely planning on using this information in a few projects as this will be an amazing way to control things over a short distance without having to use any form of internet or additional modules to make it work. By the way, that's one badass project you've got there. It's simplistic, yet really cool and functional as well. Sparking some awesome ideas by showing the basic concept of possible uses for this wireless communication feature built into the ESP boards
@programmingelectronics2 жыл бұрын
Thanks Morpheon! I hope to have more content on the ESPNOW stuff. Also, I'm glad you liked that project - it was a blast to make. I have some more in mind I'd like to try and develop.
@morpheon_xyz2 жыл бұрын
@@programmingelectronics I'm looking forward to seeing more of your videos regarding the ESP32 and ESPNOW. Also, would be a killer to see some other projects you'll be working on, I enjoy seeing what others do and make, as it sometimes can inspire others by showing off the possibilities of these boards, so you had a perfect use case right here, and I love that! Keep up your tutorials, they're handy reference points for projects too tho, thanks
@u2bist Жыл бұрын
DUUUUDE! This is the best, clearest ESP-NOW intro video I've seen, exclamation point! Your explanations are super easy to understand, and taking the time for code cleanup to clarify the examples was awesome. And yes I totally agree ESP-NOW is a very underused platform more people should take advantage of, which is my goal. I can't believe I haven't been aware of your channel until now. SUBSCRIBED and looking forward to checking out more - Cheers!
@programmingelectronics Жыл бұрын
Thanks so much Doug!
@englandrasmussen3111 Жыл бұрын
Thank you. Very very helpful. So many creative projects are curating in my head right now. I remember taking c and not understanding pointers very well. I’m glad you walked through that portion.
@programmingelectronics Жыл бұрын
Great to hear! A lot of fun can be had!
@danblankenship57442 жыл бұрын
Thanks for the great video, my head is swimming as new ideas are being developed. This will definitely play into the design of my project for controlling fans and heaters in my car. Now I can control them remotely from inside my house or worksite to better conserve my battery's usage. This battery-operated module has heating and cooling features dependent upon the season. If I want to go somewhere early in the morning, I can remotely activate a heater and fan to clear my windshield from fog and dew. I think I might add a camera later to see if the fog is cleared (no white reflection) to turn off the heated fan and save battery power. If I notice that the temperature is starting to rise outside and I know I'm going to be driving it soon, I want to activate the cooling function. I have a thermometer in the car that is used to control an exhaust fan installed in one of the windows. I have a small solar panel mounted on the sunroof to help charge the battery. What kind of range is typical for this communication? I see this could also be changed from a Master/Transmitter with Slave/Receiver operation to a two-way communication system. That opens the door to adding an alarm system in case someone likes my car too.
@programmingelectronics2 жыл бұрын
Range looks pretty impressive from what I’ve seen online in some field tests around 500ft depending on obstacles
@morpheon_xyz2 жыл бұрын
Ahh, I see someone else is also thinking of using it in their car 😋 definitely going to be using mine in the car for multiple features. I'm currently working on a customized ligting feature as I'm planning on adding DRLs to my MK1 Velociti, especially for more visibility, and some other features for show as well. Also planning on adding a camera to the mix, although that I'll probably run off a Sim module so I can use it anytime as my car sometimes need to stay at work, so the ESP32 will definitely be great for alarm features as well. Also being able to control the lights etc from my phone instead of just the 2nd ESP32 would also be an awesome addition, for when someone else likes my car too. The possibilities have shot up with these boards, and I'm glad to see that others are also looking into modding their vehicles with these systems (even if it's minor mods). You could possibly even create your own vehicle tracking system if you add a GPS module and configure it to send you a message or notification with location if the vehicle has been started without an authorization key / button / RFID tag or something. As mentioned, the possibilities are much greater now with these boards. Anyways, all the best to you with your endeavours on your project
@steverileyretired2 жыл бұрын
Great Video, I just got 3 ESP32 and made your simple program and it works great
@programmingelectronics2 жыл бұрын
Great to hear! They really are fun.
@Sri_Harsha_Electronics_Guthik3 ай бұрын
described the troubleshooting required for boot issues well. They are more common than ppl think!
@programmingelectronics3 ай бұрын
Glad it helped!
@chrismolloy1312 жыл бұрын
Used it for a remote thermometer. Easy peasy!
@programmingelectronics2 жыл бұрын
Nice!
@kiloutoo Жыл бұрын
I just found out about ESP32-Now protocol very recently and watching your video tells me this layout of communication is totally underestimated. You can hardly beat it to exchange a few bytes. It get rids of the WIFI or Bluetooth overhead and make the data exchange so easy. This IoT protocol seems to been made for my purpose. Thank you for this very clear explanation ! You've got a new subscriber :)
@programmingelectronics Жыл бұрын
Great to hear M!
@corsairsmitty96913 ай бұрын
Thank you for doing this. I found it very helpful. I do see the potential.
@DaveDickens6 ай бұрын
This is an amazing tutorial, thank you! The way you stripped down the example code, just magic! Cheers Dave
@klif_n2 жыл бұрын
This has been very helpful in getting me started with ESPNOW! Thanks.
@programmingelectronics2 жыл бұрын
Great to hear! I hope you have fun with it!
@OmegaB3N3 ай бұрын
Thank very much for the vid. Currently trying to project an e-drum kit using midi from the drum module the trigger leds on the drums and I’m hoping the esp now will allow me to set up a chip network to transmit the data to each drum. Wish me luck! 😂
@Indoseraya7 ай бұрын
This video really help me to understand ESP32... great
@programmingelectronics6 ай бұрын
Awesome!
@kleiner1593 ай бұрын
Very nicely done !!! great breakdown and explanations !
@programmingelectronics3 ай бұрын
Thanks so much for that! Best of luck in your endeavors with ESP-NOW!
@kleiner1593 ай бұрын
@@programmingelectronics I can get EspNow to transmit and receive. and I can get input from a digital Caliper and display the measurement in the serial monitor. But for the life of me when I add these together.. Nothing.... I want to transmit the measurement from 1 esp32 to another. Seems like the interrupt gets broken. /* got it... I've got to be more careful when copy/pasting */
@trainwreck3839 Жыл бұрын
Thank you so much for this! Easy to understand and follow!
@programmingelectronics Жыл бұрын
Glad it was helpful!
@jumadhaheri2 жыл бұрын
This time is good for remote control like the vehicle you made 👌
@programmingelectronics2 жыл бұрын
Agreed!
@michaelberry9508 ай бұрын
Pretty good video, gave me some ideas. Suggestion: put in comments like "// Register callback function", leave out ones like "chill"
@programmingelectronics8 ай бұрын
Thanks for this!
@familyplans37887 ай бұрын
Just wanted to add to the algorithm for you and to say a big thanks for your videos
@programmingelectronics7 ай бұрын
Thank you!!!
@walthermatthau9537 Жыл бұрын
Excellent explanations!!!!
@programmingelectronics Жыл бұрын
Great! I hope it was helpful!
@OsmanyFerrerBorges-cv6hw Жыл бұрын
Can an esp32 node be connected to both esp-now and regular wifi networks?
@lepetitponey2 ай бұрын
Thank you for this nice explanatory video. About the receiver code, you say "you don't wan't to do operations with the received data in the receive callback". Why that ? Why would it be better in the loop ?
@programmingelectronics2 ай бұрын
Great question! The call back function interrupts the rest of the code, and generally, you don't want an interrupt taking up a bunch of compute time, or else it can throw off everything else in you loop.
@Rick_Cavallaro Жыл бұрын
This is incredibly well done! Thanks!
@TagFul192 ай бұрын
Well done video, subscribed
@programmingelectronics2 ай бұрын
Awesome, thank you!
@RiddledReality3 ай бұрын
This has helped me greatly!! I appreciate all the hard work you put into your videos. I’ve got my project working because of how easy you make things. I’m currently using a nextion display, but wanting to downsize to a touchscreen with a built in esp32. It’s a 1.69” display by wave share. I can get them to connect as master and slave but the screen won’t show the number I have sent from the master: esp32 dev kit1. Any idea of where I could be going wrong?
@jeremysnopek54422 жыл бұрын
Great video, thanks!
@programmingelectronics2 жыл бұрын
Thanks Jeremy!
@patrickmclaughlin60132 жыл бұрын
Thank You. Very helpful.
@programmingelectronics2 жыл бұрын
Great! Thanks for the note!
@damaskjeremiah83062 ай бұрын
Another great tutorial
@guiller23712 жыл бұрын
This is awesome, a wireless circuit that connects like a WiFi without WiFi and that doesn't accept large multimedia files.
@programmingelectronics2 жыл бұрын
I'm sensing sarcasm, but my detector could be off.
@raymondmichael4987 Жыл бұрын
I find this video very well structured, thanks buddy. One thing though, Transmitter can scan to find the receiver MAC in the channel, how can a receiver know the MAC of a transmitter in case of many transmitters and we want to know them (where data come from) 😊 This esp-now seems loaded
@amrijuliadi72579 ай бұрын
you rockkkk...💥
@programmingelectronics9 ай бұрын
Thanks!
@jon_raymond2 жыл бұрын
Great intro video to the underutilized ESPNOW. Would really like to see a video about the Neopixel project you showed at the end of the video!
@programmingelectronics2 жыл бұрын
Thank Jon! OK, I'll see what I can put together for that project. All the ESP code is pretty much the same.
@olafschermann1592 Жыл бұрын
Thank you for sharing
@programmingelectronics Жыл бұрын
Thanks for watching Olaf!
@michaelkennedy48427 ай бұрын
Thanks for your work. This video helps. (I will have to watch it a few times though!)🥴
@programmingelectronics7 ай бұрын
Glad it was helpful!
@StevePotter2 жыл бұрын
Thank you, that was beautifully explained and demonstrated. I am using ESP-NOW for a wireless CNC pendant and I agree, this is a very under-used and powerful feature of ESP32 (and '8266). One question I have, which I could not find on Espressif's docs, is how exactly ESP-NOW deals with failed transmissions (no response from receiver). I would like details of how many retries, does it change power level, effect on transmission speed, effect on range, and can I control any of these things myself? Like, can I just tell it not to bother doing any retries, so I can move on to the next data packet as quickly as possible?
@programmingelectronics2 жыл бұрын
These are great question Steve - thanks so much for bringing them up! As I explore the protocol more, hopefully I can help shine some light on these (or anyone else reading, please feel free to chime in!)
@madhukeshnp Жыл бұрын
Great video. On to the point. Clear explanation. Well done. Can you make a tutorial on ESP-WIFI-MESH on arduino ide? Thank you.
@programmingelectronics Жыл бұрын
Thanks! I'll see what i can do on ESP-WiFi-Mesh!
@madhukeshnp Жыл бұрын
@@programmingelectronics Thank you for the reply. I never expected a quick response. Thank you for considering my request.
@hudsonreynolds43498 ай бұрын
Wow cool demo with the LEDs at the end. Did you have a delay at all for that code or just let it run as fast as it could? it looked pretty instantaneous!
@UK0072066L2 жыл бұрын
Loved it
@programmingelectronics2 жыл бұрын
Awesome! I am really enjoying ESP-Now, I just finished a "bigger" project using it, and I hope to post about it soon.
@venkateshgovindaiah5826 Жыл бұрын
NIce video . In the transmitter sketch (@ 27:41) your are checking for indexOf("RX"). what if there are more than one Receivers on the network? Transmitter device will connect to the first available Slave. I know this is not production code, but just pointing out.
@midhunchandran19832 жыл бұрын
great sir
@programmingelectronics2 жыл бұрын
Thanks!
@335_TrishankuSatpathy-xo7dh9 ай бұрын
@programmingelectronics Can I get the code after you removed all the extemporaneous functions? . Thank you.
@programmingelectronics7 ай бұрын
Here it is: github.com/programming-electronics-academy/espnow-minimum Sorry for the delay on that...
@ChrisWard7410 ай бұрын
So you didn't mention the AP Password, how is the sender connecting and sending without knowing the password? Also the range seems like it would be very limited here based on the transmit/receive power of the ESP32 and if you wanted more range you would want to look at something like LoRa
@programmingelectronics10 ай бұрын
Good questions Chris! With ESPNOW, the boards are not connecting to a WiFi access point. ESP-NOW is a kind of connectionless Wi-Fi communication protocol that is defined by Espressif. You're right about the distance. There are some demos online showing some impressive line of sight ranges, but you're absolutely right about using LoRa for more range.
@ChrisWard7410 ай бұрын
@@programmingelectronics Yes I know they are not connecting to a traditional AP but you are setting up onc the device (receiver ) as an AP for the sending device to connect to.
@qzorn4440 Жыл бұрын
I enjoy using the esp32 and RemoteXY with the GPIO pins to control devices. I wish someone would make some videos on the Orange PI5 GPIO PWM pins to control some pan-tilt servo motors for projects like a servo remote control car or a robot arm. The RPi4 examples do not run turn-key on the OPi5 and the errors are difficult to fix. 😎 Anyway thanks for the great esp32 video.
@AmirEspy3 ай бұрын
Hi . I'm trying to make a reliable 6 key remote for a giant crane. I have 2 identical 30pins esp32 dev modules. Can I do all 6 pins easy? Cause I don't have coding knowledge and I would probably ask chat gpt for it . I just want it to turn on when button pressed and off when released without delay. Is there going to be any problems?
@PranayKumar-f1s10 ай бұрын
This Video is worth enough to Subscribe 😇.
@programmingelectronics10 ай бұрын
Thanks! I hope you find our other videos helpful as well!
@sumit2k2 жыл бұрын
I love your videos. Please make a video on ESNOW_LR (Long Range protocol) for extra long range.
@programmingelectronics2 жыл бұрын
Thanks for the recommendation Sumit!
@RND-USAАй бұрын
Hi this is such a thorough video, I really appreciate it! I ‘m wanting to make a 12v battery monitor using the most energy efficient ESP technology (which I think would need to utilize ESP32’s deep sleep capabilities to turn the device on at intervals to take readings and then go back to sleep right after) . I haven’t used ESPNow yet, but I thought that I read somewhere that it uses less power than wifi communication. Do you know if that is true? After watching this great video I did become a little confused that it seems that ESPNOW still uses WIFI ssids? Or is the ssid you used in this video an espnow ssid? Thanks again for making this!
@squilly19746 ай бұрын
Great video many thanks for taking the time to put it together and share! Unfortunatly, when I compile I get the following error for my RX code, TX code works like a treat: error: invalid conversion from 'void (*)(const uint8_t*, const uint8_t*, int)' {aka 'void (*)(const unsigned char*, const unsigned char*, int)'} to 'esp_now_recv_cb_t' {aka 'void (*)(const esp_now_recv_info*, const unsigned char*, int)'} [-fpermissive] 11 | esp_now_register_recv_cb(OnDataRecv); As the code is very basic and I have copied the OnDataRecv exactly, I am not sure what the error is. Do you have any suggestions what may resolve this compiler error. Many thanks!
@thenextproblem80012 жыл бұрын
Thanks mate! İs there a way to reduce range of espnow? Like if its in 1meter range do stuff else do nothing. Or nothing received if the transmitter out of 20 meters etc
@programmingelectronics2 жыл бұрын
Neat question! I know you can get the current RSSI (Received Signal Strength in dBm) from one device to another, but that not really a measure of distance.
@thenextproblem80012 жыл бұрын
@@programmingelectronics i have search the internet for days. But without rssi i couldn't find any way to reduce it
@marktrezz2 жыл бұрын
How about a partial Faraday cage around one so it has to be about 1 meter or less to work.. once out of range.. signal will drop and do nothing.
@thenextproblem80012 жыл бұрын
@@marktrezz yeah solving it like this for now but it's not practical always. I'd like to know if there is a better way
@MikeBramm2 жыл бұрын
If it has some sort of PING functionality, you could try using that then measure with the response time. You would have to determine if the response time from 1 meter is 1/20 the time from 20 meters. There may be some additional delay in there due to processing speed, but it may be possible. The ESP device might not be fast enough to give you the resolution you're looking for, but definitely worth a try.
@jesusmorenogonzalez70933 ай бұрын
hola, mi arduino ID no reconoce las librerías, que puedo hacer para solucionar el problema
@scubaken89 Жыл бұрын
Thanks for the tutorial, I have ESP32 board and loaded sketches to it, but I don't have the ESP32 library listed for the ESPNow examples and cant find where to get it.
@Videogame95599 ай бұрын
HI I'm trying to wire up joystick to the esp32 wroom to esp32 wroom car control any help I've add mac address to joystick trasmiter. It's not working.
@anithasshenoy66629 ай бұрын
further I can't find the two libraries as shown by you ; esp8266 by esp8266 community & esp32 by Espressif systems on my manage libraries list . I am using windows 7.
@MaxGoddur2 жыл бұрын
Please! Please! How about a sketch for the 5V 28BYJ-48 stepper motor and the ULN2003 stepper motor driver.
@programmingelectronics2 жыл бұрын
Thanks for the recommendation! I'll see what we can come up with.
@technicalgaming70562 жыл бұрын
Sir can esp is used to give signal of sensors and the receiver esp can be connected to Arduino ?
@programmingelectronics2 жыл бұрын
Great question! Yes, it could for sure. It worth noting that the rx ESP is a full fledged microcontroller that might be able to replace the Arduino in whole depending on the application. Also do note the esp operates at 3.3v, so depending on the rx Arduino you might need to level shift the signal.
@technicalgaming70562 жыл бұрын
@@programmingelectronics Thanks sir 😊
@programmingelectronics2 жыл бұрын
@@technicalgaming7056 Thanks for watching - best of luck on your project!
@ameemkhan9767Ай бұрын
Hey they may seem like a dumb question but how can I set up a loop where my slave is waiting for a signal from the master before doing anything?
@mobagamma20968 ай бұрын
How do I get the ESP-files in the Examples?
@programmingelectronics7 ай бұрын
If you open the Arduino IDE... 1. Select an ESP32 based board (this populate the appropriate examples) 2. and goto File > Examples > ESP32 and you should see a big list. Best of luck!
@GuilhermeGomes2 Жыл бұрын
nice!! how is energy consumption like, for a esp-now device that is constantly "listening"?
@technicalgaming70562 жыл бұрын
Sir can I enter my Arduino loop code under the void loop (slave) to work? Or we have to write the another code for that void loop? I want to process the entire working wirelessly that's why i am using ESP 32.
@programmingelectronics2 жыл бұрын
Yes, you can add more Arduino code right into the loop() function.
@technicalgaming70562 жыл бұрын
@@programmingelectronics ok sir . I have one more query is there any other module which is smaller then the ESP 32 which can send the information of sensor wirelessly to the another ESP and process it to give back the instruction to that module for doing some action. Basically i want to know is there any alternative of ESP.
@programmingelectronics2 жыл бұрын
@@technicalgaming7056 have you looked at a bare bones esp8266?
@technicalgaming70562 жыл бұрын
@@programmingelectronics no, but i will okay 👍
@technicalgaming70562 жыл бұрын
Thank you sir ☺️
@MrBBea42 жыл бұрын
@3:15.. ESPN...that was funny!
@programmingelectronics2 жыл бұрын
Glad you liked the humor!
@sarimkhan23062 жыл бұрын
I would love to see how you did neopixel project
@programmingelectronics2 жыл бұрын
Thanks! I just finished up some code on that project and hope to get a video out about it...
@thakibkorede2 жыл бұрын
Can you do a two way communication with this?
@programmingelectronics2 жыл бұрын
Yes you can, it can be no-directional. I’ll see what I can do to put another video together about that.
@Equalizer-ZA Жыл бұрын
How would link buttons on a sim racing steering wheel with esp32s ?
@Er-rayman99 Жыл бұрын
please can i have Boiled Down" code for Master and Slave code? i didnt t find it
@programmingelectronics7 ай бұрын
Here it is: github.com/programming-electronics-academy/espnow-minimum Sorry for the delay on that...
@muskanjhawar33837 ай бұрын
Can I setup 2 esps with esp now protocol for full duplex system
@Rain-yh1sg2 жыл бұрын
Hello, I want to ask a question. The esp-now is through like a Frame packet transmission to other devices? How should capture esp-now Frame or Packet like we capture TCP/IP packet? Thank you.
@felixt.4672 жыл бұрын
Good job doing the pairing. The only problem I see is if you want 2 way communication you don't get the other mac address. Do you have an idea regarding that?
@programmingelectronics2 жыл бұрын
I think it can be modified so the receiver saves the MAC address of the sender, and adds it as a peer? I need to look into 2 way communication more and see how that is normally done.
@9dm.nadamarattaqyafizein362 Жыл бұрын
can someone help me, when i see the preferences my arduino IDE aren't showing link or something like that and when i check to board manager i wouldn't find esp 8266 please help me
@dineshkrishnasamy16282 жыл бұрын
hi thanks for your valuable information. And I like to learn arduino library. do you have any solutions please
@programmingelectronics2 жыл бұрын
Thanks for this recommendation! I'll see what we can come up with for creating your own libray
@ericbommer22802 жыл бұрын
Thanks very much for the tutorial. I have a question, I have been trying to use a ESP8266 as the Master/Sender module and I see no data on the Slave/Receiver Module. I followed your video and was able to get the ESP8266 to work as a Slave/Receiver with a ESP32 as the Slave/Sender. I have updated the example from ESP32 ESP Now Master for the ESP8266 and was able to create matching function in all but the WIFI Error base address, I'm not able to find anything similar for the ESP8266. I disabled all the code that relates to this. The Master/send serial output says it transmitting data fine, but when I look on the Slave/Receive monitor window for for the data sent. I did program an ESP32 for Master/Send to verify it works, and it did. Bother serial monitors send the expected results when I use the ESP32. Thanks for any help.
@programmingelectronics2 жыл бұрын
Hi Eric - great questions! -Just to make sure I follow... Are you saying that when using the ESP Now protocol you cannot get your esp8266 to act as the Master/TX and an esp32 act as a Slave(RX)? Am I following you correctly?
@ericbommer22802 жыл бұрын
@@programmingelectronics yep that is exactly what I'm trying to do. I just found a link to a video that does this. I'm going to try it tomorrow. I'll let you know what happens.
@programmingelectronics2 жыл бұрын
@@ericbommer2280 Awesome - good luck!
@jimsnodgrass8454 Жыл бұрын
Great Explanation of the key ESP NOW concepts.. I have a question tho.. have you found a way to extend the ESP NOW's range by lowering the bit rate of the WiFi signal, but from within the Arduino IDE 1.8.x or 2.1x? I haven't been able to do this without generating IDE compiler errors, but understand that there is a way to config the WiFi for the 1Mbit 802.11n slower rate if using the ESP IDF, and that will dramatically increases the signal's range at the expense of losing the default 54MBit data rate set by the Arduino IDE. If you know of a way to extend the range while using the standard PC card Antenna, I'd really like to hear about it. Thanks Again , jimS
@jimpowell9205 Жыл бұрын
Any idea of the Master/Slave WiFi range? Are there accessories to ‘focus’ the WiFi beam?
@markramsell45411 ай бұрын
Can I assume the range is 30' to 100' depending on obstructions?
@shrill_kill99299 ай бұрын
Does esp now support Arduino UNO ESP8266 Serial wifi Expansion Board Module?
@naufalarie2763 Жыл бұрын
Its a great video about ESPNow And i have question about my project. When i following this video, and i started upload the example of espnow to wemos d1 mini (esp8266), i got some error. And the error say ": no such file or directory". But, when i uploading to NodeMCU ESP32, it work. What do you think about this problem?
@damaskjeremiah83062 ай бұрын
Anything about esp32-s3 4.3inch
@Rousecakes9 ай бұрын
How do you use ESP NOW and Arduino OTA at the same time?
@f47h3r2 жыл бұрын
Thank you for this! What the average delay between devices ?
@MaxGoddur2 жыл бұрын
Very fundamental mind exploding step you failed to flag and that is when you connect your device to your computer and it fails to connect or show up you will need to download the drivers for the device in question. There are a couple one is the CH340 USB to serial controller the other is the CP210x USB to UART. With out these installed on the Windows machines the connection will pretty much fail. Not sure about the Mac and would be nice to know if the Mac requires similar drivers.
@programmingelectronics2 жыл бұрын
so true - drivers can drive you mad!
@OsamekaMmadike-xz2xj2 ай бұрын
How can I get your traing program
@programmingelectronics2 ай бұрын
Thanks for asking! You can check out our program here: www.programmingelectronics.com/pricing/
@wkjagt10 ай бұрын
This is really well explained. Thank you for that! I was wondering, is there a way to have bidirectional communication between two ESP boards? Even if you need to specifically set the mode to either transmit or receive, I wonder if it would be feasible to somehow switch between both modes at a certain interval, so each board is receiver half the time, and transmitter the other half.
@programmingelectronics10 ай бұрын
Neat idea! I think that could be possible.
@TJenga Жыл бұрын
How can I add more than one function to the string. I got my code sending a battery voltage value back from the slave esp but I want to send a command from the master to turn on an led using a button as a toggle or 4 leds on 4 pins. Eventually I’ll make a menu with an oled display but I can get more than 1 led to work or just the voltage value to be received.
@nadzlee9163 Жыл бұрын
hi, how can I get the code? and the code after you slim down it?
@programmingelectronics7 ай бұрын
Here it is: github.com/programming-electronics-academy/espnow-minimum Sorry for the delay on that...
@TechnoAutomation Жыл бұрын
Running espnow on esp32 with continuous data transfer heating esp board. Are there any specific requirements to throttle up data sending rate for optimum heating??
@apostolosn5536 Жыл бұрын
I see a weird behavior in the master sketch. When the master connect to slave1 it reports in the serial monitor that the mac address of the slave that it is connected too is C8F09EF17221 but actaully the slave mac address is C8F09EF17220 (as reported by the MAC address finder sketch). Why is this happening ? The communication between the two devices is OK.
@programmingelectronics Жыл бұрын
hmmmm. That is weird. I'm not sure what would be going on.
@335_TrishankuSatpathy-xo7dh9 ай бұрын
@programmingelectronics please share the code after you removed all the extemporaneous functions.
@programmingelectronics7 ай бұрын
Here it is: github.com/programming-electronics-academy/espnow-minimum Sorry for the delay on that...
@HelloHelloXD2 жыл бұрын
Can you make a video how to connect multiple relays to Arduino with a ULN2803 or any Transistor array? BTW great video as usual :)
@programmingelectronics2 жыл бұрын
Thanks for the recommendation!
@ttac2011 Жыл бұрын
I want to use this om visual studio code and its debug toolserver
@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.
@epicmach13325 ай бұрын
Hey man, I got a propably rather stupid question: How can I change the Value of the Data. For example if I would want the data to be the Reading of the analog read funktion. How would I do that? Cause I tried in the Masters code to set uint8_t data = analogRead(A0); but that did not work.
@programmingelectronics5 ай бұрын
Not a dumb question at all. You could try changing the data-type of the data variable from... uint8_t data = 0; to uint16_t data = 0;
@epicmach13325 ай бұрын
@@programmingelectronics Thanks man I'll try to do that🙂👍🏻
@JH-zo5gk Жыл бұрын
so if the receiver was off when the master was powered since the scanforslave is in the start loop then the master wouldnt see the slave? even if slave was powered up later?
@erichertsens10 ай бұрын
Awesome explanation, One question, can you have several slaves send data to the same master?