Тёмный

ESPNOW for beginners!  

Programming Electronics Academy
Подписаться 234 тыс.
Просмотров 147 тыс.
50% 1

Опубликовано:

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 248   
@programmingelectronics
@programmingelectronics 2 года назад
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
@AzharKhan-cy5kt
@AzharKhan-cy5kt 6 месяцев назад
dude i need that last code you showed of master and slave that small one github says "file not found"
@Sri_Harsha_Electronics_Guthik
@Sri_Harsha_Electronics_Guthik 22 дня назад
described the troubleshooting required for boot issues well. They are more common than ppl think!
@programmingelectronics
@programmingelectronics 21 день назад
Glad it helped!
@TheJimtanker
@TheJimtanker 2 года назад
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 2 года назад
Great to hear! Thanks so much for watching Jim!
@paulsharpe3794
@paulsharpe3794 2 года назад
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 2 года назад
Great! Best of luck through the process.
@sennabullet
@sennabullet 7 месяцев назад
Superb. By far the most comprehensive and most easy to understand explanation of the ESP Now protocol on RU-vid. I am incredibly grateful for your effort to make this video and share your knowledge.
@programmingelectronics
@programmingelectronics 7 месяцев назад
Glad it was helpful!
@antextra300
@antextra300 2 года назад
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 2 года назад
Glad it helped!
@mr.bianchirider8126
@mr.bianchirider8126 2 года назад
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 2 года назад
That’s a really neat application! I’d love to play around with battery extension using deep sleep some time.
@mr.bianchirider8126
@mr.bianchirider8126 2 года назад
@@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 🙂
@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!
@mt-qc2qh
@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
@programmingelectronics Год назад
Whoa!!! You've got quite a setup - very impressive! Thanks so much for watching.
@chrismolloy131
@chrismolloy131 2 года назад
Used it for a remote thermometer. Easy peasy!
@programmingelectronics
@programmingelectronics 2 года назад
Nice!
@kleiner159
@kleiner159 Месяц назад
Very nicely done !!! great breakdown and explanations !
@programmingelectronics
@programmingelectronics Месяц назад
Thanks so much for that! Best of luck in your endeavors with ESP-NOW!
@kleiner159
@kleiner159 Месяц назад
@@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 */
@gazzacroy
@gazzacroy 2 года назад
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 2 года назад
Great to hear! Thanks so much for watching. I hope to have some more videos on ESPNOW coming out.
@claudiomoles
@claudiomoles 2 года назад
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 2 года назад
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 2 года назад
@@programmingelectronics I am going to try the scan feature in ESP8266. that will be top to add new slaves.
@programmingelectronics
@programmingelectronics 2 года назад
@@claudiomoles I thought that was pretty slick as well. I really think that basic example sketch that comes with the library is pretty solid.
@englandrasmussen3111
@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
@programmingelectronics Год назад
Great to hear! A lot of fun can be had!
@morpheon_xyz
@morpheon_xyz 2 года назад
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 2 года назад
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 2 года назад
@@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
@steverileyretired
@steverileyretired 2 года назад
Great Video, I just got 3 ESP32 and made your simple program and it works great
@programmingelectronics
@programmingelectronics 2 года назад
Great to hear! They really are fun.
@DaveDickens
@DaveDickens 3 месяца назад
This is an amazing tutorial, thank you! The way you stripped down the example code, just magic! Cheers Dave
@OmegaB3N
@OmegaB3N 12 дней назад
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! 😂
@corsairsmitty9691
@corsairsmitty9691 27 дней назад
Thank you for doing this. I found it very helpful. I do see the potential.
@danblankenship5744
@danblankenship5744 2 года назад
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 2 года назад
Range looks pretty impressive from what I’ve seen online in some field tests around 500ft depending on obstacles
@morpheon_xyz
@morpheon_xyz 2 года назад
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
@Indoseraya
@Indoseraya 4 месяца назад
This video really help me to understand ESP32... great
@programmingelectronics
@programmingelectronics 3 месяца назад
Awesome!
@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!
@jumadhaheri
@jumadhaheri 2 года назад
This time is good for remote control like the vehicle you made 👌
@programmingelectronics
@programmingelectronics 2 года назад
Agreed!
@klif_n
@klif_n 2 года назад
This has been very helpful in getting me started with ESPNOW! Thanks.
@programmingelectronics
@programmingelectronics 2 года назад
Great to hear! I hope you have fun with it!
@familyplans3788
@familyplans3788 4 месяца назад
Just wanted to add to the algorithm for you and to say a big thanks for your videos
@programmingelectronics
@programmingelectronics 4 месяца назад
Thank you!!!
@trainwreck3839
@trainwreck3839 Год назад
Thank you so much for this! Easy to understand and follow!
@programmingelectronics
@programmingelectronics Год назад
Glad it was helpful!
@michaelberry950
@michaelberry950 5 месяцев назад
Pretty good video, gave me some ideas. Suggestion: put in comments like "// Register callback function", leave out ones like "chill"
@programmingelectronics
@programmingelectronics 5 месяцев назад
Thanks for this!
@kiloutoo
@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
@programmingelectronics Год назад
Great to hear M!
@michaelkennedy4842
@michaelkennedy4842 5 месяцев назад
Thanks for your work. This video helps. (I will have to watch it a few times though!)🥴
@programmingelectronics
@programmingelectronics 5 месяцев назад
Glad it was helpful!
@PranayKumar-f1s
@PranayKumar-f1s 7 месяцев назад
This Video is worth enough to Subscribe 😇.
@programmingelectronics
@programmingelectronics 7 месяцев назад
Thanks! I hope you find our other videos helpful as well!
@Rick_Cavallaro
@Rick_Cavallaro Год назад
This is incredibly well done! Thanks!
@raymondmichael4987
@raymondmichael4987 11 месяцев назад
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
@jon_raymond
@jon_raymond 2 года назад
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 2 года назад
Thank Jon! OK, I'll see what I can put together for that project. All the ESP code is pretty much the same.
@walthermatthau9537
@walthermatthau9537 Год назад
Excellent explanations!!!!
@programmingelectronics
@programmingelectronics Год назад
Great! I hope it was helpful!
@MrBBea4
@MrBBea4 2 года назад
@3:15.. ESPN...that was funny!
@programmingelectronics
@programmingelectronics 2 года назад
Glad you liked the humor!
@patrickmclaughlin6013
@patrickmclaughlin6013 2 года назад
Thank You. Very helpful.
@programmingelectronics
@programmingelectronics 2 года назад
Great! Thanks for the note!
@sumit2k
@sumit2k 2 года назад
I love your videos. Please make a video on ESNOW_LR (Long Range protocol) for extra long range.
@programmingelectronics
@programmingelectronics 2 года назад
Thanks for the recommendation Sumit!
@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.
@qzorn4440
@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.
@madhukeshnp
@madhukeshnp 10 месяцев назад
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 10 месяцев назад
Thanks! I'll see what i can do on ESP-WiFi-Mesh!
@madhukeshnp
@madhukeshnp 10 месяцев назад
@@programmingelectronics Thank you for the reply. I never expected a quick response. Thank you for considering my request.
@olafschermann1592
@olafschermann1592 Год назад
Thank you for sharing
@programmingelectronics
@programmingelectronics Год назад
Thanks for watching Olaf!
@jeremysnopek5442
@jeremysnopek5442 2 года назад
Great video, thanks!
@programmingelectronics
@programmingelectronics 2 года назад
Thanks Jeremy!
@amrijuliadi7257
@amrijuliadi7257 7 месяцев назад
you rockkkk...💥
@programmingelectronics
@programmingelectronics 7 месяцев назад
Thanks!
@hudsonreynolds4349
@hudsonreynolds4349 5 месяцев назад
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!
@midhunchandran1983
@midhunchandran1983 Год назад
great sir
@programmingelectronics
@programmingelectronics Год назад
Thanks!
@sarimkhan2306
@sarimkhan2306 2 года назад
I would love to see how you did neopixel project
@programmingelectronics
@programmingelectronics 2 года назад
Thanks! I just finished up some code on that project and hope to get a video out about it...
@StevePotter
@StevePotter 2 года назад
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 2 года назад
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!)
@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.
@HelloHelloXD
@HelloHelloXD 2 года назад
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 2 года назад
Thanks for the recommendation!
@OsmanyFerrerBorges-cv6hw
@OsmanyFerrerBorges-cv6hw 9 месяцев назад
Can an esp32 node be connected to both esp-now and regular wifi networks?
@RiddledReality
@RiddledReality 27 дней назад
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?
@MaxGoddur
@MaxGoddur 2 года назад
Please! Please! How about a sketch for the 5V 28BYJ-48 stepper motor and the ULN2003 stepper motor driver.
@programmingelectronics
@programmingelectronics 2 года назад
Thanks for the recommendation! I'll see what we can come up with.
@scubaken89
@scubaken89 11 месяцев назад
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.
@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.
@blehprojects5776
@blehprojects5776 Год назад
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
@erichertsens
@erichertsens 8 месяцев назад
Awesome explanation, One question, can you have several slaves send data to the same master?
@mikey38632
@mikey38632 3 месяца назад
Theoretically, if your dog gets it, it may still work. You'll just get higher temperature readings for a while 🤣 jk Great video, I am learning a lot
@programmingelectronics
@programmingelectronics 3 месяца назад
Ha! Thanks for watching :)
@404-UsernameNotFound
@404-UsernameNotFound 2 года назад
3:13 I'm still trying to find these on ESPN 😉😂🤣
@programmingelectronics
@programmingelectronics 2 года назад
Maybe they sold out :)
@ChrisWard74
@ChrisWard74 7 месяцев назад
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 7 месяцев назад
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 7 месяцев назад
@@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.
@markramsell454
@markramsell454 8 месяцев назад
Can I assume the range is 30' to 100' depending on obstructions?
@anithasshenoy6662
@anithasshenoy6662 6 месяцев назад
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.
@335_TrishankuSatpathy-xo7dh
@335_TrishankuSatpathy-xo7dh 6 месяцев назад
@programmingelectronics please share the code after you removed all the extemporaneous functions.
@programmingelectronics
@programmingelectronics 4 месяца назад
Here it is: github.com/programming-electronics-academy/espnow-minimum Sorry for the delay on that...
@jesusmorenogonzalez7093
@jesusmorenogonzalez7093 21 день назад
hola, mi arduino ID no reconoce las librerías, que puedo hacer para solucionar el problema
@wkjagt
@wkjagt 8 месяцев назад
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 8 месяцев назад
Neat idea! I think that could be possible.
@thakibkorede
@thakibkorede 2 года назад
Can you do a two way communication with this?
@programmingelectronics
@programmingelectronics 2 года назад
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 ?
@GuilhermeGomes2
@GuilhermeGomes2 10 месяцев назад
nice!! how is energy consumption like, for a esp-now device that is constantly "listening"?
@jimsnodgrass8454
@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
@MaxGoddur
@MaxGoddur 2 года назад
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 2 года назад
so true - drivers can drive you mad!
@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
@335_TrishankuSatpathy-xo7dh
@335_TrishankuSatpathy-xo7dh 6 месяцев назад
@programmingelectronics Can I get the code after you removed all the extemporaneous functions? . Thank you.
@programmingelectronics
@programmingelectronics 4 месяца назад
Here it is: github.com/programming-electronics-academy/espnow-minimum Sorry for the delay on that...
@felixt.467
@felixt.467 2 года назад
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 2 года назад
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.
@squilly1974
@squilly1974 3 месяца назад
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!
@mobagamma2096
@mobagamma2096 5 месяцев назад
How do I get the ESP-files in the Examples?
@programmingelectronics
@programmingelectronics 5 месяцев назад
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!
@muskanjhawar3383
@muskanjhawar3383 4 месяца назад
Can I setup 2 esps with esp now protocol for full duplex system
@jimpowell9205
@jimpowell9205 Год назад
Any idea of the Master/Slave WiFi range? Are there accessories to ‘focus’ the WiFi beam?
@AmirEspy
@AmirEspy Месяц назад
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?
@f47h3r
@f47h3r Год назад
Thank you for this! What the average delay between devices ?
@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
@donnytrisandi8862
@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.
@shrill_kill9929
@shrill_kill9929 6 месяцев назад
Does esp now support Arduino UNO ESP8266 Serial wifi Expansion Board Module?
@ttac2011
@ttac2011 Год назад
I want to use this om visual studio code and its debug toolserver
@Rousecakes
@Rousecakes 6 месяцев назад
How do you use ESP NOW and Arduino OTA at the same time?
@MaxGoddur
@MaxGoddur 2 года назад
You know have not found a basic explanation for what an API is and now it works with these devices?
@dineshkrishnasamy1628
@dineshkrishnasamy1628 2 года назад
hi thanks for your valuable information. And I like to learn arduino library. do you have any solutions please
@programmingelectronics
@programmingelectronics 2 года назад
Thanks for this recommendation! I'll see what we can come up with for creating your own libray
@technicalgaming7056
@technicalgaming7056 2 года назад
Sir can esp is used to give signal of sensors and the receiver esp can be connected to Arduino ?
@programmingelectronics
@programmingelectronics 2 года назад
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 2 года назад
@@programmingelectronics Thanks sir 😊
@programmingelectronics
@programmingelectronics 2 года назад
@@technicalgaming7056 Thanks for watching - best of luck on your project!
@Videogame9559
@Videogame9559 6 месяцев назад
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.
@Er-rayman99
@Er-rayman99 Год назад
please can i have Boiled Down" code for Master and Slave code? i didnt t find it
@programmingelectronics
@programmingelectronics 4 месяца назад
Here it is: github.com/programming-electronics-academy/espnow-minimum Sorry for the delay on that...
@CraftAero
@CraftAero 2 года назад
5:25 Yeah, you try using that USB-B cable you're gonna have a bad day.
@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?
@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
@nadzlee9163
@nadzlee9163 Год назад
hi, how can I get the code? and the code after you slim down it?
@programmingelectronics
@programmingelectronics 4 месяца назад
Here it is: github.com/programming-electronics-academy/espnow-minimum Sorry for the delay on that...
@apostolosn5536
@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
@programmingelectronics Год назад
hmmmm. That is weird. I'm not sure what would be going on.
@justsomedude2962
@justsomedude2962 Год назад
Owl wrestling? Can't seem to find that with my cable provider.
@programmingelectronics
@programmingelectronics Год назад
:)
@Rain-yh1sg
@Rain-yh1sg 2 года назад
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.
@thenextproblem8001
@thenextproblem8001 2 года назад
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 2 года назад
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 2 года назад
@@programmingelectronics i have search the internet for days. But without rssi i couldn't find any way to reduce it
@marktrezz
@marktrezz 2 года назад
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 2 года назад
@@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 2 года назад
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.
@TJenga
@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.
@solehbudi1626
@solehbudi1626 2 года назад
I have a job , a make project hand robotic. How connect esp to esp with bluetooth 🙏
@fggolding
@fggolding Год назад
Excelent video, it could not be better.
@programmingelectronics
@programmingelectronics Год назад
Thank you very much for watching!
@kevinmerrell9952
@kevinmerrell9952 2 года назад
Ha! Texting for ESP!
@programmingelectronics
@programmingelectronics 2 года назад
That's kind of what it feels like :)
@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
Далее
ESPNOW mix with #ESP32 and #ESP8266
25:37
Просмотров 39 тыс.
Forget WiFi! This Wireless Method is WAY Better?
12:14
Просмотров 619 тыс.
Getting Started with ESP32 - Step-By-Step Tutorial
19:50
You’ve Never Seen WiFi Like This
20:43
Просмотров 926 тыс.
ESP32 Guide 2024 | Choosing and Using an ESP32 Board
41:06
12 Mind-Blowing ESP32 Projects to try in 2024!
8:50
Просмотров 142 тыс.
Try these 16 Brilliant ESP32 projects!!!
11:18
Просмотров 585 тыс.
ESP-NOW - Peer to Peer ESP32 Network
43:02
Просмотров 363 тыс.