ESPNOW for beginners!

  Переглядів 116,120

Programming Electronics Academy

Programming Electronics Academy

День тому

🤩 Check out this Free Arduino Course 👇
bit.ly/get_Arduino_skills
**Get your Free Trial of Altium PCB design Software**
www.altium.com/yt/programming...
**Want to have some fun programming your own electronics?**
bit.ly/3e1izU3
00:00 - Introduction
01:26 - What is ESPNOW?
02:56 - Which hardware
03:42 - Setup Arduino IDE for esp32 and esp8266
04:40 - Smoke test boards
07:15 - THE sketches you should demo for ESPNOW
14:27 - Relaxing music as I slim down the code
16:41 - Key ESPNOW function walk through
32:20 - Cool Project Demo
Set up ESP32 with Arduino IDE:
• ESP32 super simple set...
Get link for Arduino preference board manager from this Espressif webpage:
docs.espressif.com/projects/a...
Unexpected Maker ESP32 Dev Board (Adafruit)
www.adafruit.com/product/4769
ESP32 Thing (SparkFun)
www.sparkfun.com/products/13907
ESPNOW API Reference:
docs.espressif.com/projects/e...
ESPNOW User Guide:
www.espressif.com/sites/defau...
**We designed this circuit board for beginners!**
Kit-On-A-Shield: amzn.to/3lfWClU
FOLLOW US ELSEWHERE
---------------------------------------------------
Facebook: / programmingelectronics...
Twitter: / progelecacademy
Website: www.programmingelectronics.com/
**About Us:**
This Arduino lesson was created by Programming Electronics Academy. We are an online education company seeking to help people learn about electronics and programming through the ubiquitous Arduino development board.
**We have no affiliation whatsoever with Arduino LLC, other than we think they are cool.**

КОМЕНТАРІ: 211
@programmingelectronics
@programmingelectronics Рік тому
Huge thanks to our sponsor Altium! -> Get a FREE trial of Altium PCB design software here -> www.altium.com/yt/programmingelectronicsacademy
@ayaansworkshop
@ayaansworkshop Рік тому
please can you do a GitHub Link of the "Boiled Down" code for Master and Slave code?
@programmingelectronics
@programmingelectronics Рік тому
@@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!
@drpibb7526
@drpibb7526 Рік тому
@@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
@edmundisaac2164 Рік тому
@@programmingelectronics i think he is looking for your own code which you promised to drop the link for in dscription
@t.n.1056
@t.n.1056 7 місяців тому
Wow... wow... wow 😳 😳 😳
@TheJimtanker
@TheJimtanker Рік тому
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!
@programmingelectronics
@programmingelectronics Рік тому
Great to hear! Thanks so much for watching Jim!
@antextra300
@antextra300 Рік тому
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!
@programmingelectronics
@programmingelectronics Рік тому
Glad it helped!
@paulsharpe3794
@paulsharpe3794 Рік тому
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
@programmingelectronics
@programmingelectronics Рік тому
Great! Best of luck through the process.
@u2bist
@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
@programmingelectronics Рік тому
Thanks so much Doug!
@englandrasmussen3111
@englandrasmussen3111 8 місяців тому
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
@programmingelectronics 8 місяців тому
Great to hear! A lot of fun can be had!
@genewinchester932
@genewinchester932 Рік тому
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!
@programmingelectronics
@programmingelectronics Рік тому
I am so glad it helped! Thanks for the note and for watching!
@sennabullet
@sennabullet 2 місяці тому
Superb. By far the most comprehensive and most easy to understand explanation of the ESP Now protocol on UKposts. I am incredibly grateful for your effort to make this video and share your knowledge.
@programmingelectronics
@programmingelectronics 2 місяці тому
Glad it was helpful!
@gazzacroy
@gazzacroy Рік тому
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.. :)
@programmingelectronics
@programmingelectronics Рік тому
Great to hear! Thanks so much for watching. I hope to have some more videos on ESPNOW coming out.
@klif_n
@klif_n Рік тому
This has been very helpful in getting me started with ESPNOW! Thanks.
@programmingelectronics
@programmingelectronics Рік тому
Great to hear! I hope you have fun with it!
@Rick_Cavallaro
@Rick_Cavallaro Рік тому
This is incredibly well done! Thanks!
@steverileyretired
@steverileyretired Рік тому
Great Video, I just got 3 ESP32 and made your simple program and it works great
@programmingelectronics
@programmingelectronics Рік тому
Great to hear! They really are fun.
@trainwreck3839
@trainwreck3839 Рік тому
Thank you so much for this! Easy to understand and follow!
@programmingelectronics
@programmingelectronics Рік тому
Glad it was helpful!
@morpheon_xyz
@morpheon_xyz Рік тому
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
@programmingelectronics
@programmingelectronics Рік тому
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_xyz
@morpheon_xyz Рік тому
@@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
@mr.bianchirider8126
@mr.bianchirider8126 Рік тому
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.
@programmingelectronics
@programmingelectronics Рік тому
That’s a really neat application! I’d love to play around with battery extension using deep sleep some time.
@mr.bianchirider8126
@mr.bianchirider8126 Рік тому
@@bob-ny6kn The weather data is stored on Blynk.
@aritramukherjee
@aritramukherjee Рік тому
neat and especially the battery part 👌. For longer distance lora boards are also awesome 🙂
@walthermatthau9537
@walthermatthau9537 8 місяців тому
Excellent explanations!!!!
@programmingelectronics
@programmingelectronics 8 місяців тому
Great! I hope it was helpful!
@fggolding
@fggolding 8 місяців тому
Excelent video, it could not be better.
@programmingelectronics
@programmingelectronics 8 місяців тому
Thank you very much for watching!
@chrismolloy131
@chrismolloy131 Рік тому
Used it for a remote thermometer. Easy peasy!
@programmingelectronics
@programmingelectronics Рік тому
Nice!
@jon_raymond
@jon_raymond Рік тому
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!
@programmingelectronics
@programmingelectronics Рік тому
Thank Jon! OK, I'll see what I can put together for that project. All the ESP code is pretty much the same.
@patrickmclaughlin6013
@patrickmclaughlin6013 Рік тому
Thank You. Very helpful.
@programmingelectronics
@programmingelectronics Рік тому
Great! Thanks for the note!
@claudiomoles
@claudiomoles Рік тому
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.
@programmingelectronics
@programmingelectronics Рік тому
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.)
@claudiomoles
@claudiomoles Рік тому
@@programmingelectronics I am going to try the scan feature in ESP8266. that will be top to add new slaves.
@programmingelectronics
@programmingelectronics Рік тому
@@claudiomoles I thought that was pretty slick as well. I really think that basic example sketch that comes with the library is pretty solid.
@jumadhaheri
@jumadhaheri Рік тому
This time is good for remote control like the vehicle you made 👌
@programmingelectronics
@programmingelectronics Рік тому
Agreed!
@olafschermann1592
@olafschermann1592 Рік тому
Thank you for sharing
@programmingelectronics
@programmingelectronics Рік тому
Thanks for watching Olaf!
@mt-qc2qh
@mt-qc2qh 8 місяців тому
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
@programmingelectronics 8 місяців тому
Whoa!!! You've got quite a setup - very impressive! Thanks so much for watching.
@jeremysnopek5442
@jeremysnopek5442 Рік тому
Great video, thanks!
@programmingelectronics
@programmingelectronics Рік тому
Thanks Jeremy!
@danblankenship5744
@danblankenship5744 Рік тому
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.
@programmingelectronics
@programmingelectronics Рік тому
Range looks pretty impressive from what I’ve seen online in some field tests around 500ft depending on obstacles
@morpheon_xyz
@morpheon_xyz Рік тому
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
@t.n.1056
@t.n.1056 7 місяців тому
No words 😳😳😳😳 just: thank you 👍👍
@programmingelectronics
@programmingelectronics 7 місяців тому
Glad you like it!
@vladimirpotapov7050
@vladimirpotapov7050 Рік тому
Thank you a lot!
@programmingelectronics
@programmingelectronics Рік тому
Thanks for watching Vladimir!
@michaelberry950
@michaelberry950 8 днів тому
Pretty good video, gave me some ideas. Suggestion: put in comments like "// Register callback function", leave out ones like "chill"
@programmingelectronics
@programmingelectronics 6 днів тому
Thanks for this!
@UK0072066L
@UK0072066L Рік тому
Loved it
@programmingelectronics
@programmingelectronics Рік тому
Awesome! I am really enjoying ESP-Now, I just finished a "bigger" project using it, and I hope to post about it soon.
@raymondmichael4987
@raymondmichael4987 5 місяців тому
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
@sumit2k
@sumit2k Рік тому
I love your videos. Please make a video on ESNOW_LR (Long Range protocol) for extra long range.
@programmingelectronics
@programmingelectronics Рік тому
Thanks for the recommendation Sumit!
@amrijuliadi7257
@amrijuliadi7257 Місяць тому
you rockkkk...💥
@programmingelectronics
@programmingelectronics Місяць тому
Thanks!
@venkateshgovindaiah5826
@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.
@qzorn4440
@qzorn4440 10 місяців тому
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.
@f47h3r
@f47h3r Рік тому
Thank you for this! What the average delay between devices ?
@hudsonreynolds4349
@hudsonreynolds4349 День тому
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!
@MrBBea4
@MrBBea4 Рік тому
@3:15.. ESPN...that was funny!
@programmingelectronics
@programmingelectronics Рік тому
Glad you liked the humor!
@madhukeshnp
@madhukeshnp 5 місяців тому
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
@programmingelectronics 5 місяців тому
Thanks! I'll see what i can do on ESP-WiFi-Mesh!
@madhukeshnp
@madhukeshnp 5 місяців тому
@@programmingelectronics Thank you for the reply. I never expected a quick response. Thank you for considering my request.
@midhunchandran1983
@midhunchandran1983 Рік тому
great sir
@programmingelectronics
@programmingelectronics Рік тому
Thanks!
@user-fh5xr6yi9b
@user-fh5xr6yi9b 2 місяці тому
This Video is worth enough to Subscribe 😇.
@programmingelectronics
@programmingelectronics 2 місяці тому
Thanks! I hope you find our other videos helpful as well!
@scubaken89
@scubaken89 6 місяців тому
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.
@kiloutoo
@kiloutoo 11 місяців тому
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
@programmingelectronics 11 місяців тому
Great to hear M!
@TechnoAutomation
@TechnoAutomation 9 місяців тому
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??
@jimsnodgrass8454
@jimsnodgrass8454 11 місяців тому
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
@TJenga
@TJenga 8 місяців тому
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.
@jimpowell9205
@jimpowell9205 Рік тому
Any idea of the Master/Slave WiFi range? Are there accessories to ‘focus’ the WiFi beam?
@GuilhermeGomes2
@GuilhermeGomes2 5 місяців тому
nice!! how is energy consumption like, for a esp-now device that is constantly "listening"?
@Rain-yh1sg
@Rain-yh1sg Рік тому
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.
@StevePotter
@StevePotter Рік тому
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?
@programmingelectronics
@programmingelectronics Рік тому
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!)
@wkjagt
@wkjagt 2 місяці тому
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.
@programmingelectronics
@programmingelectronics 2 місяці тому
Neat idea! I think that could be possible.
@guiller2371
@guiller2371 Рік тому
This is awesome, a wireless circuit that connects like a WiFi without WiFi and that doesn't accept large multimedia files.
@programmingelectronics
@programmingelectronics Рік тому
I'm sensing sarcasm, but my detector could be off.
@ttac2011
@ttac2011 8 місяців тому
I want to use this om visual studio code and its debug toolserver
@naufalarie2763
@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?
@sarimkhan2306
@sarimkhan2306 Рік тому
I would love to see how you did neopixel project
@programmingelectronics
@programmingelectronics Рік тому
Thanks! I just finished up some code on that project and hope to get a video out about it...
@erichertsens
@erichertsens 2 місяці тому
Awesome explanation, One question, can you have several slaves send data to the same master?
@felixt.467
@felixt.467 Рік тому
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?
@programmingelectronics
@programmingelectronics Рік тому
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.
@HelloHelloXD
@HelloHelloXD Рік тому
Can you make a video how to connect multiple relays to Arduino with a ULN2803 or any Transistor array? BTW great video as usual :)
@programmingelectronics
@programmingelectronics Рік тому
Thanks for the recommendation!
@nadzlee9163
@nadzlee9163 8 місяців тому
hi, how can I get the code? and the code after you slim down it?
@anithasshenoy6662
@anithasshenoy6662 Місяць тому
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.
@MaxGoddur
@MaxGoddur Рік тому
Please! Please! How about a sketch for the 5V 28BYJ-48 stepper motor and the ULN2003 stepper motor driver.
@programmingelectronics
@programmingelectronics Рік тому
Thanks for the recommendation! I'll see what we can come up with.
@335_TrishankuSatpathy-xo7dh
@335_TrishankuSatpathy-xo7dh Місяць тому
@programmingelectronics Can I get the code after you removed all the extemporaneous functions? . Thank you.
@OsmanyFerrerBorges-cv6hw
@OsmanyFerrerBorges-cv6hw 4 місяці тому
Can an esp32 node be connected to both esp-now and regular wifi networks?
@JH-zo5gk
@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?
@compubyte2010
@compubyte2010 Рік тому
okay, because the PICO and PICO W are about.. is there a version of this that will work with it? I think they have a bit more power (dual core) and ram..? But. they defiantly are much CHEAPER.. $4 and $6 .. depending on if you get it with wifi or not
@dineshkrishnasamy1628
@dineshkrishnasamy1628 Рік тому
hi thanks for your valuable information. And I like to learn arduino library. do you have any solutions please
@programmingelectronics
@programmingelectronics Рік тому
Thanks for this recommendation! I'll see what we can come up with for creating your own libray
@donnytrisandi8862
@donnytrisandi8862 11 місяців тому
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.
@Rousecakes
@Rousecakes Місяць тому
How do you use ESP NOW and Arduino OTA at the same time?
@LucidFX.
@LucidFX. Рік тому
I am very new to this but I have a project for home security. I have 1 master and 6 slaves. I want to read 2 pins and states, based on state I need to send info to 6 esp32s 2 must move servo to position 1 @ 135degrees and other 4 position 1 is 90 degrees. And other pin high send position 2 to all @ 0 degrees. I can't find any tutorials like that
@thenextproblem8001
@thenextproblem8001 Рік тому
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
@programmingelectronics
@programmingelectronics Рік тому
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.
@thenextproblem8001
@thenextproblem8001 Рік тому
@@programmingelectronics i have search the internet for days. But without rssi i couldn't find any way to reduce it
@marktrezz
@marktrezz Рік тому
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.
@thenextproblem8001
@thenextproblem8001 Рік тому
@@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
@MikeBramm
@MikeBramm Рік тому
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.
@thakibkorede
@thakibkorede Рік тому
Can you do a two way communication with this?
@programmingelectronics
@programmingelectronics Рік тому
Yes you can, it can be no-directional. I’ll see what I can do to put another video together about that.
@Equalizer-ZA
@Equalizer-ZA Рік тому
How would link buttons on a sim racing steering wheel with esp32s ?
@ChrisWard74
@ChrisWard74 2 місяці тому
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
@programmingelectronics
@programmingelectronics 2 місяці тому
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.
@ChrisWard74
@ChrisWard74 Місяць тому
@@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.
@Videogame9559
@Videogame9559 28 днів тому
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.
@zahidfaheem3233
@zahidfaheem3233 Рік тому
Hello and thanks a lot for this very useful video. I just have one question: The *data parameter in esp_now_send(const uint8_t *peer_addr, const uint8_t *data, size_t len) is of type const uint8_t, so platformio gives error when data is a string. Could you please give some insight on how to send a string? Thanks in advance.
@programmingelectronics
@programmingelectronics Рік тому
Great question!!! OK, if you cast data as a (uint8_t *), then I think you should be able to pass your string reference. I pass a struct in this example: github.com/ProgrammingElectronicsAcademy/espnow/blob/main/esp-now-one-to-many/tx-one-to-many/tx-one-to-many.ino line 312 (the send) and 107 (the data) I hope this helps some!
@zahidfaheem3233
@zahidfaheem3233 Рік тому
@@programmingelectronics Thank youu!! 😀
@programmingelectronics
@programmingelectronics Рік тому
@@zahidfaheem3233 I hope it helps!
@markramsell454
@markramsell454 3 місяці тому
Can I assume the range is 30' to 100' depending on obstructions?
@shrill_kill9929
@shrill_kill9929 Місяць тому
Does esp now support Arduino UNO ESP8266 Serial wifi Expansion Board Module?
@technicalgaming7056
@technicalgaming7056 Рік тому
Sir can esp is used to give signal of sensors and the receiver esp can be connected to Arduino ?
@programmingelectronics
@programmingelectronics Рік тому
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.
@technicalgaming7056
@technicalgaming7056 Рік тому
@@programmingelectronics Thanks sir 😊
@programmingelectronics
@programmingelectronics Рік тому
@@technicalgaming7056 Thanks for watching - best of luck on your project!
@blehprojects5776
@blehprojects5776 9 місяців тому
Ugh you mention several times that you can hard code the receiver MAC address but I wish you’d have shown exactly how! Helpful video nonetheless
@335_TrishankuSatpathy-xo7dh
@335_TrishankuSatpathy-xo7dh Місяць тому
@programmingelectronics please share the code after you removed all the extemporaneous functions.
@9dm.nadamarattaqyafizein362
@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
@ericbommer2280
@ericbommer2280 Рік тому
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.
@programmingelectronics
@programmingelectronics Рік тому
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?
@ericbommer2280
@ericbommer2280 Рік тому
@@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.
@programmingelectronics
@programmingelectronics Рік тому
@@ericbommer2280 Awesome - good luck!
@404-UsernameNotFound
@404-UsernameNotFound Рік тому
3:13 I'm still trying to find these on ESPN 😉😂🤣
@programmingelectronics
@programmingelectronics Рік тому
Maybe they sold out :)
@Er-rayman99
@Er-rayman99 10 місяців тому
please can i have Boiled Down" code for Master and Slave code? i didnt t find it
@MaxGoddur
@MaxGoddur Рік тому
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.
@programmingelectronics
@programmingelectronics Рік тому
so true - drivers can drive you mad!
@justsomedude2962
@justsomedude2962 Рік тому
Owl wrestling? Can't seem to find that with my cable provider.
@programmingelectronics
@programmingelectronics Рік тому
:)
@solehbudi1626
@solehbudi1626 Рік тому
I have a job , a make project hand robotic. How connect esp to esp with bluetooth 🙏
@technicalgaming7056
@technicalgaming7056 Рік тому
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.
@programmingelectronics
@programmingelectronics Рік тому
Yes, you can add more Arduino code right into the loop() function.
@technicalgaming7056
@technicalgaming7056 Рік тому
@@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.
@programmingelectronics
@programmingelectronics Рік тому
@@technicalgaming7056 have you looked at a bare bones esp8266?
@technicalgaming7056
@technicalgaming7056 Рік тому
@@programmingelectronics no, but i will okay 👍
@technicalgaming7056
@technicalgaming7056 Рік тому
Thank you sir ☺️
@big_guy9604
@big_guy9604 Рік тому
What is the transmit distance between these two devices?
@programmingelectronics
@programmingelectronics Рік тому
Great question! A bunch of folks have done "field measurements", maybe I can do a meta study of those results and publish what I find here. It really depends on obstructions from what I gather, but as far 220 meters I have read.
@petar.
@petar. Рік тому
Great video, can you possiply send me the code you wrote for fastled(neopixel)? Thanks in advance!
@programmingelectronics
@programmingelectronics Рік тому
I'll see if I can post that Fast LED code in an upcoming lesson.
@petar.
@petar. Рік тому
@@programmingelectronics thanks , i would appreciate it!
@solidfuel0
@solidfuel0 Рік тому
Espnow is buggy and doesn't work when sending messages from esp8266 to esp32 s3 if the s3 is connected to wifi . Anyone can help me with a work around?
@gohan3243
@gohan3243 Рік тому
Hi what the los max range between espnow devices thx
@programmingelectronics
@programmingelectronics Рік тому
Great question Go Han! Short answer, I don't know. There are a lot of different folks online who have done measurements, perhaps I will try to put together some data from those. Sorry I could not be of more help!
@BlondieSL
@BlondieSL Рік тому
So being new to ESP32 and coming from Arduino, I found something just now that was very disappointing. For me, the whole point of going to ESP32 was the need for more memory. So in learning and focusing on networking (WiFi) I was very disappointed when I discovered that one single function: *WiFi.mode(WIFI_STA_AP)* just sucks up memory like crazy! Without it, my test sketch took 19%, but with it enabled, it jumped to a massive 51% !!! As I learn about WiFi on the board, I'll see if I really NEED that, but so far, it appears that I do if I want to implement my project as desired. I would like (prefer) to have all my remote stations (6 to 8 of them) to communicated back and forth with each other (possibly) and with 2 or more "receivers." Learning mode ENGAGED! LOL
@MaxGoddur
@MaxGoddur Рік тому
You know have not found a basic explanation for what an API is and now it works with these devices?
@apostolosn5536
@apostolosn5536 10 місяців тому
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
@programmingelectronics 10 місяців тому
hmmmm. That is weird. I'm not sure what would be going on.
@collinb5524
@collinb5524 Рік тому
How many packets (of 250 bytes) is it capable of sending a second
@programmingelectronics
@programmingelectronics Рік тому
Great question! I can't back this up with the documentation, but based on reading some field tests online, I think it takes about 4ms to send and receive. so maybe 250 times per second depending on conditions.
@collinb5524
@collinb5524 Рік тому
@@programmingelectronics thanks so much for answering my question!
@jumbo999614
@jumbo999614 Рік тому
So this is better than using NRF24L01?
@programmingelectronics
@programmingelectronics Рік тому
Great question! I have not used the NRF24L01, so I can't speak much to it.
@kevinmerrell9952
@kevinmerrell9952 Рік тому
Ha! Texting for ESP!
@programmingelectronics
@programmingelectronics Рік тому
That's kind of what it feels like :)
@CraftAero
@CraftAero Рік тому
5:25 Yeah, you try using that USB-B cable you're gonna have a bad day.
@sergetheijspartner2005
@sergetheijspartner2005 Рік тому
So if my motion sensors could give an XYZ-code of the burglar in my room, My armed Roomba's can actually shoot the burglar?
@programmingelectronics
@programmingelectronics Рік тому
Yes. Though I think any programmatic action that does harm to other sentient beings should have a human in the loop.
@TubeClift
@TubeClift Рік тому
Hmmm, debugging this Roomba application sounds exciting !!!!
@JohnJohn-gy2st
@JohnJohn-gy2st 10 місяців тому
Hello
ESPNOW mix with #ESP32 and #ESP8266
25:37
Programming Electronics Academy
Переглядів 32 тис.
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Переглядів 503 тис.
ВЫШИБАЛЫ - Сатир, Янчик, Джарахов, Миша, Антон Форсаж
1:09:04
Підставка для яєць
00:37
Afinka
Переглядів 61 тис.
🐩🐕
00:25
Янчик
Переглядів 1,9 млн
ESP32 Guide 2024 | Choosing and Using an ESP32 Board
41:06
DroneBot Workshop
Переглядів 196 тис.
13 Brilliant IoT Projects!!! (2024 Edition)
10:25
ToP Projects Compilation
Переглядів 63 тис.
ESP-Now Range Test: Real-World Results for ESP32 Devices!
8:01
atomic14
Переглядів 101 тис.
WLED & ESP32: The Dynamic Duo of DIY LED Projects
26:24
Makers Mashup
Переглядів 182 тис.
Why Some Designs Are Impossible to Improve: Quintessence
33:03
Design Theory
Переглядів 51 тис.
Arduino MASTERCLASS | Full Programming Workshop in 90 Minutes!
1:25:31
Programming Electronics Academy
Переглядів 2,2 млн
15 Brilliant ESP32 Projects that are Worth-trying!!!
11:12
ToP Projects Compilation
Переглядів 159 тис.
PlatformIO: All you need to know in 10 Minutes!
10:56
J's e-shack
Переглядів 277 тис.
У Nokia 3310 появился конкурент
0:36
AndroHack
Переглядів 1,8 млн
Интел подвинься, ARM уже в ПК!
14:06
PRO Hi-Tech
Переглядів 136 тис.
СЛОМАЛСЯ ПК ЗА 2000$🤬
0:59
Корнеич
Переглядів 1,2 млн