Тёмный

ESPNOW for beginners!  

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

🤩 FREE Arduino Crash 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
Boiled down code from video:
github.com/programming-electr...
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.**

Наука

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

 

4 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 236   
@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
@AzharKhan-cy5kt
@AzharKhan-cy5kt 3 месяца назад
dude i need that last code you showed of master and slave that small one github says "file not found"
@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!
@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!
@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 4 месяца назад
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 4 месяца назад
Glad it was helpful!
@englandrasmussen3111
@englandrasmussen3111 10 месяцев назад
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 10 месяцев назад
Great to hear! A lot of fun can be had!
@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.
@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.
@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!
@DaveDickens
@DaveDickens 18 дней назад
This is an amazing tutorial, thank you! The way you stripped down the example code, just magic! Cheers Dave
@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.
@Rick_Cavallaro
@Rick_Cavallaro Год назад
This is incredibly well done! Thanks!
@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
@trainwreck3839
@trainwreck3839 Год назад
Thank you so much for this! Easy to understand and follow!
@programmingelectronics
@programmingelectronics Год назад
Glad it was helpful!
@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.
@fggolding
@fggolding 10 месяцев назад
Excelent video, it could not be better.
@programmingelectronics
@programmingelectronics 10 месяцев назад
Thank you very much for watching!
@mt-qc2qh
@mt-qc2qh 10 месяцев назад
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 10 месяцев назад
Whoa!!! You've got quite a setup - very impressive! Thanks so much for watching.
@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.
@Indoseraya
@Indoseraya Месяц назад
This video really help me to understand ESP32... great
@programmingelectronics
@programmingelectronics 28 дней назад
Awesome!
@walthermatthau9537
@walthermatthau9537 10 месяцев назад
Excellent explanations!!!!
@programmingelectronics
@programmingelectronics 10 месяцев назад
Great! I hope it was helpful!
@familyplans3788
@familyplans3788 Месяц назад
Just wanted to add to the algorithm for you and to say a big thanks for your videos
@programmingelectronics
@programmingelectronics Месяц назад
Thank you!!!
@jeremysnopek5442
@jeremysnopek5442 Год назад
Great video, thanks!
@programmingelectronics
@programmingelectronics Год назад
Thanks Jeremy!
@chrismolloy131
@chrismolloy131 Год назад
Used it for a remote thermometer. Easy peasy!
@programmingelectronics
@programmingelectronics Год назад
Nice!
@patrickmclaughlin6013
@patrickmclaughlin6013 Год назад
Thank You. Very helpful.
@programmingelectronics
@programmingelectronics Год назад
Great! Thanks for the note!
@hudsonreynolds4349
@hudsonreynolds4349 2 месяца назад
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!
@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!
@raymondmichael4987
@raymondmichael4987 7 месяцев назад
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
@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
@michaelkennedy4842
@michaelkennedy4842 2 месяца назад
Thanks for your work. This video helps. (I will have to watch it a few times though!)🥴
@programmingelectronics
@programmingelectronics 2 месяца назад
Glad it was helpful!
@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!
@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.
@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.
@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.
@amrijuliadi7257
@amrijuliadi7257 4 месяца назад
you rockkkk...💥
@programmingelectronics
@programmingelectronics 3 месяца назад
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 🙂
@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!
@vladimirpotapov7050
@vladimirpotapov7050 Год назад
Thank you a lot!
@programmingelectronics
@programmingelectronics Год назад
Thanks for watching Vladimir!
@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
@scubaken89
@scubaken89 8 месяцев назад
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.
@f47h3r
@f47h3r Год назад
Thank you for this! What the average delay between devices ?
@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.
@midhunchandran1983
@midhunchandran1983 Год назад
great sir
@programmingelectronics
@programmingelectronics Год назад
Thanks!
@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!)
@user-fh5xr6yi9b
@user-fh5xr6yi9b 4 месяца назад
This Video is worth enough to Subscribe 😇.
@programmingelectronics
@programmingelectronics 4 месяца назад
Thanks! I hope you find our other videos helpful as well!
@michaelberry950
@michaelberry950 2 месяца назад
Pretty good video, gave me some ideas. Suggestion: put in comments like "// Register callback function", leave out ones like "chill"
@programmingelectronics
@programmingelectronics 2 месяца назад
Thanks for this!
@madhukeshnp
@madhukeshnp 7 месяцев назад
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 7 месяцев назад
Thanks! I'll see what i can do on ESP-WiFi-Mesh!
@madhukeshnp
@madhukeshnp 7 месяцев назад
@@programmingelectronics Thank you for the reply. I never expected a quick response. Thank you for considering my request.
@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?
@jimpowell9205
@jimpowell9205 Год назад
Any idea of the Master/Slave WiFi range? Are there accessories to ‘focus’ the WiFi beam?
@wkjagt
@wkjagt 5 месяцев назад
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 5 месяцев назад
Neat idea! I think that could be possible.
@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?
@TechnoAutomation
@TechnoAutomation 11 месяцев назад
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??
@GuilhermeGomes2
@GuilhermeGomes2 7 месяцев назад
nice!! how is energy consumption like, for a esp-now device that is constantly "listening"?
@TJenga
@TJenga 10 месяцев назад
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.
@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!
@muskanjhawar3383
@muskanjhawar3383 Месяц назад
Can I setup 2 esps with esp now protocol for full duplex system
@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
@OsmanyFerrerBorges-cv6hw
@OsmanyFerrerBorges-cv6hw 6 месяцев назад
Can an esp32 node be connected to both esp-now and regular wifi networks?
@anithasshenoy6662
@anithasshenoy6662 3 месяца назад
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.
@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.
@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
@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.
@erichertsens
@erichertsens 5 месяцев назад
Awesome explanation, One question, can you have several slaves send data to the same master?
@Videogame9559
@Videogame9559 3 месяца назад
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.
@MrBBea4
@MrBBea4 Год назад
@3:15.. ESPN...that was funny!
@programmingelectronics
@programmingelectronics Год назад
Glad you liked the humor!
@squilly1974
@squilly1974 16 дней назад
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!
@Rousecakes
@Rousecakes 3 месяца назад
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
@markramsell454
@markramsell454 5 месяцев назад
Can I assume the range is 30' to 100' depending on obstructions?
@shrill_kill9929
@shrill_kill9929 3 месяца назад
Does esp now support Arduino UNO ESP8266 Serial wifi Expansion Board Module?
@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
@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.
@ttac2011
@ttac2011 11 месяцев назад
I want to use this om visual studio code and its debug toolserver
@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?
@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...
@solehbudi1626
@solehbudi1626 Год назад
I have a job , a make project hand robotic. How connect esp to esp with bluetooth 🙏
@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.
@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!
@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!
@335_TrishankuSatpathy-xo7dh
@335_TrishankuSatpathy-xo7dh 3 месяца назад
@programmingelectronics Can I get the code after you removed all the extemporaneous functions? . Thank you.
@programmingelectronics
@programmingelectronics Месяц назад
Here it is: github.com/programming-electronics-academy/espnow-minimum Sorry for the delay on that...
@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!
@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!
@ChrisWard74
@ChrisWard74 4 месяца назад
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 4 месяца назад
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 4 месяца назад
@@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.
@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.
@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.
@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 ☺️
@mobagamma2096
@mobagamma2096 2 месяца назад
How do I get the ESP-files in the Examples?
@programmingelectronics
@programmingelectronics 2 месяца назад
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!
@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
@Er-rayman99
@Er-rayman99 Год назад
please can i have Boiled Down" code for Master and Slave code? i didnt t find it
@programmingelectronics
@programmingelectronics Месяц назад
Here it is: github.com/programming-electronics-academy/espnow-minimum Sorry for the delay on that...
@mikey38632
@mikey38632 23 дня назад
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 23 дня назад
Ha! Thanks for watching :)
@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 ?
@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!
@blehprojects5776
@blehprojects5776 11 месяцев назад
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
@epicmach1332
@epicmach1332 2 дня назад
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.
@programmingelectronics
@programmingelectronics 2 дня назад
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;
@epicmach1332
@epicmach1332 23 часа назад
@@programmingelectronics Thanks man I'll try to do that🙂👍🏻
@404-UsernameNotFound
@404-UsernameNotFound Год назад
3:13 I'm still trying to find these on ESPN 😉😂🤣
@programmingelectronics
@programmingelectronics Год назад
Maybe they sold out :)
@MaxGoddur
@MaxGoddur Год назад
You know have not found a basic explanation for what an API is and now it works with these devices?
@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.
@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!
Далее
ESPNOW mix with #ESP32 and #ESP8266
25:37
Просмотров 35 тыс.
ESP32 Guide 2024 | Choosing and Using an ESP32 Board
41:06
Me: Don't cross there's cars coming
00:16
Просмотров 4,3 млн
Try these 16 Brilliant ESP32 projects!!!
11:18
Просмотров 547 тыс.
Forget WiFi! This Wireless Method is WAY Better?
12:14
Просмотров 483 тыс.
Getting Started with ESP32 - Step-By-Step Tutorial
19:50
ESP32-to-ESP32 Simplex Communication via ESP-NOW
6:31
ESP8266 in 5 minutes
5:50
Просмотров 120 тыс.
#291 External antennas and ESP32 Long-Range mode
13:57
Просмотров 216 тыс.