ESPNOW mix with

  Переглядів 32,401

Programming Electronics Academy

Programming Electronics Academy

День тому

🤩 Check out this Free Arduino Course 👇
bit.ly/get_Arduino_skills
**Want to have some fun programming your own electronics?**
bit.ly/3xosSID
00:00 Introduction
01:11 What is ESP-Now?
02:17 ESP-Now network designs
02:59 ESP-Now example with esp32 and esp8266s
03:51 Example sketches for tx to multiple rx
05:13 Connecting ESP32 boards to Arduino IDE
06:47 ESP-Now transmitter sketch for esp32
08:47 ESP-Now receiver sketch for ESP-Now
12:06 esp32 and esp8266 header file errors
13:45 ESP_OK to ERR_OK error
16:23 esp_now_register_receive_cb error
**Get the code, transcript, challenges, etc for this lesson on our website**
bit.ly/3qIn75a
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/
________________________________
- [Mike] Do you wanna build a network of wireless sensors using EPS32s and ESP8266s, all mixed together? In this lesson, I'm gonna demonstrate using ESP-Now with EPS32s and ESP8266s. What I'll show you is a way of taking an existing sketch that's used with ESP32s and change it, make some simple modifications, so that you can use it with the ESP8266s. This example sketch even comes pre-installed with the Arduino IDE when you get it set up for using ESP boards. By the end of this lesson, you're gonna know the exact sketch that I'm talking about, and the tiny changes in the sketches that are gonna make all the difference. Let's go. Well, before we dive in, I'd really appreciate if you could take a moment and click that subscribe button. It doesn't cost you but a click, but it really helps us grow our UKposts channel and bring you great content like this. Also, if at any point, while you're watching this video and you're thinking like, "What is this guy talking about?" please take a moment and ask a question in the comments. I do my very best to answer all the questions I can. All right, so let's jump into this. First off, I wanna make sure that we're on the same page. I'm assuming if you're watching this, you know what an ESP8266 and an ESP32 board is. But if you don't, just real quick, these boards are WiFi-enabled microcontrollers made by a company called Espressif. They're super cheap, and they can be easily programmed using the Arduino IDE. For this reason, they've made a huge splash for newer folks who want to build really cool wireless applications for hardware devices without some huge learning curve. So those are what ESP boards are. You probably already know that. But what is ESP-Now? You might be thinking that, since we're talking about all these cool WiFi-enabled microcontrollers, that ESP-Now would have something to do with WiFi. But actually, ESP-Now is a different protocol developed by Espressif, which enables multiple ESP devices to communicate to one another without using WiFi. It's a wireless protocol that's similar to like a low-power, 2.4 gigahertz wireless connectivity that is often used in wireless mouses. Using ESP-Now, you can design a network of ESP devices that can communicate in a huge variety of ways. For example, you can set up a network so that you've got a transmitter transmitting to one receiver, or you could set up a network where you have a transmitter transmitting to multiple receivers, or you could have a bunch of transmitters transmitting to a single receiver, or, you know, it can be like a cocktail party and everybody's just talking to each other. Now, what I'm gonna demonstrate is having my ESP32 transmitting data to a bunch of different receiving ESP8266s. So, just for example, what I have here are four different ESP boards. This one is an ESP32 SparkFun Thing. This one is an Adafruit Feather HUZZAH ESP8266. This is some Wemos D1 Mini knockoff clone. And this is an ESP8266 12E Module by NodeMCU.
CONTINUED...
bit.ly/3qIn75a
**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.**

КОМЕНТАРІ: 102
@puckkemper9500
@puckkemper9500 6 днів тому
Great explanation and exactly what I needed :D You saved my graduation project!
@programmingelectronics
@programmingelectronics 6 днів тому
Yay! Have fun after graduation!
@jon_raymond
@jon_raymond Рік тому
Another great video! "A little gang of ESP boards that were causing trouble in my drawer." Cracked me up.
@programmingelectronics
@programmingelectronics Рік тому
Thanks Jon! When those ESP01 boards first came out, I was buying them by the pound -> now I swear they are colonizing my office.
@SpinStar1956
@SpinStar1956 2 місяці тому
Thanks for the code-modification walkthrough, it i always nice to see behind the scenes on the libraries as well as the working of the C-language!
@programmingelectronics
@programmingelectronics 2 місяці тому
Thanks for watching and glad to here it helped!
@AllertonEPS
@AllertonEPS Рік тому
This is absolutely FAB - I've had a nightmare trying to work all this out - When you are new to a board - the sutble differences between boards can be VERY Frustrating ... Thanks a Million
@programmingelectronics
@programmingelectronics Рік тому
Glad it was helpful! I ran into the same issues and spent quite some time working through it.
@iot_enthusiast
@iot_enthusiast Рік тому
Absolutely loved it. Crystal clear explanation!
@fpvrcstuff
@fpvrcstuff Рік тому
Like the lesson and the laid-back approach to getting the point across!
@programmingelectronics
@programmingelectronics Рік тому
Thanks!
@elmermandiade7309
@elmermandiade7309 9 місяців тому
been following you,.. incredibly detailed tutorial, that's what makes you different from others. They just feed us beginners with codes, but yours, surpasses them. AWESOME!
@programmingelectronics
@programmingelectronics 9 місяців тому
Thanks so much for the kind words!
@joshuaoduroadu5376
@joshuaoduroadu5376 Рік тому
Another splendid video. Thanks for the crystal clear explanation, especially regarding how you broke down finding out what each error message meant. 👍👍👌
@programmingelectronics
@programmingelectronics Рік тому
Thanks so much Joshua! It's great to hear this feedback, sometimes I worry I am getting too verbose. Those two sketches I used in the video had been working great with esp32s, but when I tried using it with a couple esp8266, I was getting all those errors. I was able to google and find examples of working ESP8266 ESP-now sketches, but I really found working through the errors line by line helped me get a better handle on those differences.
@photorealm
@photorealm Рік тому
Excellent explanation, love the peek function in the IDE, I will be using that a lot from now on. Thanks for sharing.
@programmingelectronics
@programmingelectronics Рік тому
Thanks so much for watching Glen!
@planker
@planker 3 місяці тому
I followed you to the end and I'm gunna try an ESP01s Excellent presentation.
@steverileyretired
@steverileyretired Рік тому
Thank you, you are very good as explaining things.
@programmingelectronics
@programmingelectronics Рік тому
Thanks so much Steve!
@joseluizliresdomingues6921
@joseluizliresdomingues6921 Рік тому
Many thanks for sharing your knowledgment !
@programmingelectronics
@programmingelectronics Рік тому
Thanks so much for watching!
@hariseldon2577
@hariseldon2577 Рік тому
Life saver. Went through a bit of pain(2hrs) with the function definition differences for esp_now_register_recv_cb for ESP32 and ESP8266. Was doing the same dance with the printing the full error on notepad++ to work out what was required, when I thought I'd check you tube. Bingo great definition of what to do!
@programmingelectronics
@programmingelectronics Рік тому
So glad it helped. Most of our material is born from hours/days of our won confusion on these subjects :)
@PiyushNikam
@PiyushNikam Рік тому
Wow!! What a great idea of resolving the errors line by line. That's way more efficient than writing the code from scratch
@familyplans3788
@familyplans3788 6 місяців тому
I'm curious , why is a high level programmer (you) watching a video on how to get an esp32 to talk to an esp 8266 , i would have thought you would have known how to do all this already!! as for us non-high level programmers its brilliant to have an in depth look at the differences and code
@agevandergoot3410
@agevandergoot3410 3 місяці тому
What a great explanation on how to fix the code errors. I followed the entire process of your excellent explanation. I've become a lot wiser from this. I have not been able to see and explain on many different other sites what the causes of the errors in the code can be solved. Thank you very much for your great UKposts video explanation.
@programmingelectronics
@programmingelectronics 3 місяці тому
So glad to hear it helped - thanks for the kind note and for watching!
@jeffschroeder4805
@jeffschroeder4805 Рік тому
Elegant detective work! The right click "definition" hint will be very helpful - never knew it existed. I will be right clicking everything to see what other tools might be available. Thank you.
@programmingelectronics
@programmingelectronics Рік тому
Glad it helped Jeff! Thanks so much for the note!
@karelnovotny4844
@karelnovotny4844 Рік тому
Great work man . For amateur like me the only solution. I was searching for 3 weeks on the web. Appreciate your work. Great Thanks. Chay.👌😇
@programmingelectronics
@programmingelectronics Рік тому
So glad it helps Karel! Sometimes I feel like I have to search around for 10 days before I land on something that helps me get things done in 10 minutes :) Best of luck!
@andresduranmolina7994
@andresduranmolina7994 6 місяців тому
Esto es increible, gracias !!!
@programmingelectronics
@programmingelectronics 6 місяців тому
¡Gracias por la nota!
@ismzaxxon
@ismzaxxon Рік тому
I just spent 6 hours trying to sort this out. I wish i had seen this earlier. Thank you.
@programmingelectronics
@programmingelectronics Рік тому
I hoped it helped some - thanks for the note Terry!
@avejst
@avejst Рік тому
Great video as always Good pace in the video Thanks for sharing your experiences with all of us :-)
@programmingelectronics
@programmingelectronics Рік тому
Thanks so much for watching Asger!
@rsluggy6485
@rsluggy6485 2 місяці тому
This is great info! I have a practical project where everything will be two way communication, but my controller will be an ESP32-S3 box, with a screen and some buttons plus my IO and each of the other devices are D1 MINI Pro boards with the external antenna because, for what they are, they must be inside a steel box. I did manage to get the ESP8266 example talking to the ESP32 example by figuring out that the examples used different channels *and* different SSIDs. Being able to just use the SAME example on both ends is golden!
@programmingelectronics
@programmingelectronics 2 місяці тому
Glad it helped! Sounds like a neat project.
@robertrobert5583
@robertrobert5583 4 місяці тому
That was really interesting! Thank you. I learned a lot.
@programmingelectronics
@programmingelectronics 4 місяці тому
Thanks so much for watching!
@jimmym2719
@jimmym2719 Рік тому
Weldone video, code explained good for us beginners. 👍good job & thanks for sharing 💕
@programmingelectronics
@programmingelectronics Рік тому
Thanks Jimmy!
@volodimirkun
@volodimirkun 7 місяців тому
Lovely. Helped a lot!
@programmingelectronics
@programmingelectronics 7 місяців тому
Glad it helped!
@chuicoevenmerk
@chuicoevenmerk Рік тому
Please make a video of Esp now sending data with timings. I've been searching such video but couldn't find one. Been one of your fan in this journey. Thank you for this video I learn a lot even thou I'm not a programer.
@programmingelectronics
@programmingelectronics Рік тому
Thanks for this idea! I'll see what we can do!
@ManoSmriti
@ManoSmriti 3 місяці тому
Awesome and Superb.
@programmingelectronics
@programmingelectronics 3 місяці тому
Thanks!
@dominic4892
@dominic4892 Рік тому
Really helpful Thanks
@programmingelectronics
@programmingelectronics Рік тому
Glad it helped Dominic!
@gazzacroy
@gazzacroy Рік тому
very helpful thank you. a brilliant video :)
@programmingelectronics
@programmingelectronics Рік тому
Great! Thanks a ton for watching!
@DirtyEngineer
@DirtyEngineer Рік тому
Very well laid out video and explanation of how to systematically deal with compiler errors. Do you have any videos specifically about using pointers in programming? Often a trap for new programmers.
@programmingelectronics
@programmingelectronics Рік тому
Thanks Chainsaw! I definitely agree with you, pointers can wrack the brain at times (just last week I was reaching out to a friend trying to understand some errors I was encountering and it had to do with my mishandling pointers). We should have a couple lessons coming it in the next couple months about using pointers. Thanks again for the comment and recommendation.
@gyvertop2794
@gyvertop2794 Рік тому
Thank you, you really help me!
@programmingelectronics
@programmingelectronics Рік тому
Great! Thanks so much for watching!
@tseckwr3783
@tseckwr3783 4 місяці тому
Thanks, this helped me ....
@programmingelectronics
@programmingelectronics 4 місяці тому
Glad it helped
@hamada380
@hamada380 Рік тому
VERY NICE , YOU ARE THE BEST
@programmingelectronics
@programmingelectronics Рік тому
Thank you so much 😀
@planker
@planker Рік тому
I'm liking this.
@programmingelectronics
@programmingelectronics Рік тому
ESP-Now is a ton of fun!
@alaoui90
@alaoui90 Рік тому
Thanks so much for this video,I was looking for the differences between esp32 and esp8266 in espnow for long time. do you have any idea about the broadcasting mode or combo mode
@projectparadise1736
@projectparadise1736 Рік тому
Awesome video, I've been getting a lot of out your videos trying to do some DIY projects. I'd love to see a videos on heltec's CubeCell AB0x boards for LoRaWAN applications on the IoT. There seems to be a ton of potential for sensor integration with smart home applications that utilize the IoT network instead of WiFi.
@programmingelectronics
@programmingelectronics Рік тому
Thanks a ton for this recommendation!
@jonathanhahka9939
@jonathanhahka9939 3 місяці тому
Thanks for the great video! My question: I want to control lights on one esp32 c3 with another esp32 c3 all with battery power over Bluetooth 5.0. Am I’m using the correct microcontroller?
@frederickstehle11
@frederickstehle11 Рік тому
What is your arduino ide setup. I would like to know about that "peek" ability and how to set it up. I am currently using Arduino 1.8.13. Great video very clearly done. The recommendation on using ALL ESP32 or ALL ESP8266 is very good. Less work for me as I am just a hobbist and not a pro. Thanks.
@attalaw36
@attalaw36 Рік тому
❤❤❤
@programmingelectronics
@programmingelectronics Рік тому
Thanks Atta!
@FreddieMare
@FreddieMare 10 місяців тому
I need to see a working example in esphome
@WoWPro71
@WoWPro71 Місяць тому
is there an example of sending the other way? tried to modify the espnow -esp32 master for esp8266 but its more complicated than slave. and i am looking for esp8266(Master/TX) -> esp32(Slave/RX)
@javiersoto570
@javiersoto570 Рік тому
Eres un fenómeno !!!! Era tan fácil como cambiar unas líneas en el código. !!! Puede el maestro ser un esp8266 ? o solo sirve para los esp32 ser maestro?.. Gracias.
@programmingelectronics
@programmingelectronics Рік тому
Creo que el esp8266 también puede ser el maestro.
@tomygman
@tomygman Рік тому
Thank so much for the video, would you be able to show us how to use the data that is sent to control Gpio pins in different ways. When I “mencpy” the data after it’s received I can’t seem to use it effectively. I’m a super beginner to coding so I might be missing something. Thanks
@programmingelectronics
@programmingelectronics Рік тому
Hi Richard - great question - thanks for posting this!! I'll see what we can come up with. I've be building a project using ESP-Now, and I hope through this experience I'll be able to show off some more of the intricacies.
@tomygman
@tomygman Рік тому
@@programmingelectronics Thanks so much, that would be awesome.
@sumit2k
@sumit2k Рік тому
Thanks for such a nice video. There is no code present on your website for this project. please make it available.
@programmingelectronics
@programmingelectronics Рік тому
Sorry about that! Should be there now.
@apostolosn5536
@apostolosn5536 11 місяців тому
Will this code modification work with the esp8285?
@javiersoto570
@javiersoto570 10 місяців тому
Una duda que no consigo solventar.!!! Puede el esp8266 siendo esclavo enviar algún dato al maestro? Por ejemplo el valor de un sensor de temperatura?. Gracias de antemano. Algún ejemplo en el que me pueda basar?
@peterwright4656
@peterwright4656 Рік тому
Hi, thanks for the video, do you know if it is possible to use an ESP8622 as a transmitter? I have been unsuccessful adapting the ESP32 transmitter code and i cannot find anything about it on the internet.
@charleslyell3748
@charleslyell3748 10 місяців тому
Sure, no issue.
@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.
@boopeshkumarprabhakaran
@boopeshkumarprabhakaran Рік тому
is it possible to use with esphome?
@gazzacroy
@gazzacroy Рік тому
do you know of a way (or if it is possible) to use an esp32 to transmit a web radio station to a Bluetooth speaker ?
@programmingelectronics
@programmingelectronics Рік тому
Great question! I'm not sure...but yes, I think it is possible. I have seen some internet radio player projects out there. Pretty cool stuff!!
@56Victorine
@56Victorine Рік тому
love your content, if I purchase your "paid lessons" I know I'll have questions... does someone answer those?
@programmingelectronics
@programmingelectronics Рік тому
Thanks Frank! Our paid membership includes access to a private forum where we do our best to help answer member questions. We usually do our best when helping folks with questions about the lesson material, but will always try to point people in the right direction. I hope this answers your question - have a great holiday!
@solidfuel0
@solidfuel0 Рік тому
It doesn't work when you try from esp8266 to esp32 s3 . If s3 is connected to wifi ap
@andresrodriguez7605
@andresrodriguez7605 Рік тому
I went through the video but I get a delivery fail. Anyone getting this. I am sending data from ESP32 to Wemo 1 mini ESP8266
@donnytrisandi8862
@donnytrisandi8862 11 місяців тому
me too. any solution? I did one way ESP32-ESP32 data transmission
@DavidCousins
@DavidCousins Рік тому
Does espnow work with micro Python?
@programmingelectronics
@programmingelectronics Рік тому
Not sure, but I would imagine it does.
@phakalanep7241
@phakalanep7241 Рік тому
There is no code on your web site to indicate a download. Please correct
@programmingelectronics
@programmingelectronics Рік тому
Thanks for pointing this out. Should be there now!
@FreddieMare
@FreddieMare Рік тому
how to run espnow on a pi pico w?
@programmingelectronics
@programmingelectronics Рік тому
I'm not sure - I'll have to explore that Freddie!
@human4ikinc.796
@human4ikinc.796 7 місяців тому
проще было написать код самому с нуля
@prashanthprashanth7418
@prashanthprashanth7418 Рік тому
How to contact you
ESP32 install Arduino IDE 1 in 90 seconds #ESP32
2:05
Programming Electronics Academy
Переглядів 8 тис.
ESPNOW for beginners! #ESP32 #ESP8266
35:09
Programming Electronics Academy
Переглядів 116 тис.
ФОКУС С ЧИПСАМИ (секрет)
00:44
Masomka
Переглядів 2,9 млн
ESP-NOW - Peer to Peer ESP32 Network
43:02
DroneBot Workshop
Переглядів 324 тис.
ESP32 Guide 2024 | Choosing and Using an ESP32 Board
41:06
DroneBot Workshop
Переглядів 196 тис.
ESP-Now Range Test: Real-World Results for ESP32 Devices!
8:01
atomic14
Переглядів 101 тис.
#223 ESP-NOW simple demo - easy IOT data transfer on ESP32 or ESP8266
21:32
#112 LoRa / LoRaWAN De-Mystified / Tutorial
20:25
Andreas Spiess
Переглядів 996 тис.
Anyone Can Send Data to Anyone | ESPNOW Many To Many Communication
9:07
Control ESP32 from ANYWHERE in the World - Step-By-Step Tutorial
1:48:57
Tomasz Tarnowski
Переглядів 61 тис.