ESPNOW mix with

  Рет қаралды 36,232

Programming Electronics Academy

Programming Electronics Academy

Күн бұрын

🤩 FREE Arduino Crash 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 KZbin 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
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.**

Пікірлер: 116
@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.
@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.
@iot_enthusiast
@iot_enthusiast Жыл бұрын
Absolutely loved it. Crystal clear explanation!
@normalford
@normalford Ай бұрын
very helpful, just found this after trying to add an 8266 to a couple of esp32's i'm using as transceivers and came up with all kind of issues, this put me on the right track to solve the problems, much appreciated!
@programmingelectronics
@programmingelectronics Ай бұрын
So glad it helped - Best of luck and thanks for watching!
@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.
@SpinStar1956
@SpinStar1956 5 ай бұрын
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 5 ай бұрын
Thanks for watching and glad to here it helped!
@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 :)
@DaveDickens
@DaveDickens 16 күн бұрын
This is a really great tutorial! Thank you! Cheers Dave
@programmingelectronics
@programmingelectronics 13 күн бұрын
Glad it was helpful!
@elmermandiade7309
@elmermandiade7309 Жыл бұрын
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 Жыл бұрын
Thanks so much for the kind words!
@fpvrcstuff
@fpvrcstuff Жыл бұрын
Like the lesson and the laid-back approach to getting the point across!
@programmingelectronics
@programmingelectronics Жыл бұрын
Thanks!
@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!
@rsluggy6485
@rsluggy6485 4 ай бұрын
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 4 ай бұрын
Glad it helped! Sounds like a neat project.
@agevandergoot3410
@agevandergoot3410 6 ай бұрын
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 KZbin video explanation.
@programmingelectronics
@programmingelectronics 6 ай бұрын
So glad to hear it helped - thanks for the kind note and for watching!
@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!
@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!
@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!
@planker
@planker 6 ай бұрын
I followed you to the end and I'm gunna try an ESP01s Excellent presentation.
@joseluizliresdomingues6921
@joseluizliresdomingues6921 Жыл бұрын
Many thanks for sharing your knowledgment !
@programmingelectronics
@programmingelectronics Жыл бұрын
Thanks so much for watching!
@steverileyretired
@steverileyretired Жыл бұрын
Thank you, you are very good as explaining things.
@programmingelectronics
@programmingelectronics Жыл бұрын
Thanks so much Steve!
@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 9 ай бұрын
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
@robertrobert5583
@robertrobert5583 7 ай бұрын
That was really interesting! Thank you. I learned a lot.
@programmingelectronics
@programmingelectronics 7 ай бұрын
Thanks so much for watching!
@puckkemper9500
@puckkemper9500 2 ай бұрын
Great explanation and exactly what I needed :D You saved my graduation project!
@programmingelectronics
@programmingelectronics 2 ай бұрын
Yay! Have fun after graduation!
@farukicen5977
@farukicen5977 Ай бұрын
Teşekkür ederim dostum. esp_now / espnow hatası için yeterli düzeyde açıklma yapmışsın. aydınlatıcı oldu.
@programmingelectronics
@programmingelectronics Ай бұрын
Harika!
@ManoSmriti
@ManoSmriti 6 ай бұрын
Awesome and Superb.
@programmingelectronics
@programmingelectronics 6 ай бұрын
Thanks!
@dominic4892
@dominic4892 Жыл бұрын
Really helpful Thanks
@programmingelectronics
@programmingelectronics Жыл бұрын
Glad it helped Dominic!
@andresduranmolina7994
@andresduranmolina7994 9 ай бұрын
Esto es increible, gracias !!!
@programmingelectronics
@programmingelectronics 9 ай бұрын
¡Gracias por la nota!
@gazzacroy
@gazzacroy Жыл бұрын
very helpful thank you. a brilliant video :)
@programmingelectronics
@programmingelectronics Жыл бұрын
Great! Thanks a ton for watching!
@janekbartnik
@janekbartnik Ай бұрын
Great video. Thank you.
@programmingelectronics
@programmingelectronics Ай бұрын
Thanks for watching!
@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!
@gyvertop2794
@gyvertop2794 Жыл бұрын
Thank you, you really help me!
@programmingelectronics
@programmingelectronics Жыл бұрын
Great! Thanks so much for watching!
@tseckwr3783
@tseckwr3783 7 ай бұрын
Thanks, this helped me ....
@programmingelectronics
@programmingelectronics 6 ай бұрын
Glad it helped
@jimmym2719
@jimmym2719 Жыл бұрын
Weldone video, code explained good for us beginners. 👍good job & thanks for sharing 💕
@programmingelectronics
@programmingelectronics Жыл бұрын
Thanks Jimmy!
@hamada380
@hamada380 Жыл бұрын
VERY NICE , YOU ARE THE BEST
@programmingelectronics
@programmingelectronics Жыл бұрын
Thank you so much 😀
@elektron2kim666
@elektron2kim666 24 күн бұрын
I am planning out something for RC and it's interesting to dive into.
@TheUnofficialMaker
@TheUnofficialMaker 2 ай бұрын
great job
@programmingelectronics
@programmingelectronics Ай бұрын
Thank you!!
@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.
@planker
@planker Жыл бұрын
I'm liking this.
@programmingelectronics
@programmingelectronics Жыл бұрын
ESP-Now is a ton of fun!
@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!
@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
@attalaw36
@attalaw36 Жыл бұрын
❤❤❤
@programmingelectronics
@programmingelectronics Жыл бұрын
Thanks Atta!
@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.
@dnzrobotics
@dnzrobotics 2 ай бұрын
👍👍👍👍
@programmingelectronics
@programmingelectronics 2 ай бұрын
Thanks!
@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.
@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.
@volodimirkun
@volodimirkun 10 ай бұрын
Lovely. Helped a lot!
@programmingelectronics
@programmingelectronics 10 ай бұрын
Glad it helped!
@jonathanhahka9939
@jonathanhahka9939 6 ай бұрын
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?
@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.
@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 Жыл бұрын
Sure, no issue.
@FreddieMare
@FreddieMare Жыл бұрын
I need to see a working example in esphome
@javiersoto570
@javiersoto570 Жыл бұрын
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?
@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!!
@WoWPro71
@WoWPro71 3 ай бұрын
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)
@apostolosn5536
@apostolosn5536 Жыл бұрын
Will this code modification work with the esp8285?
@boopeshkumarprabhakaran
@boopeshkumarprabhakaran Жыл бұрын
is it possible to use with esphome?
@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.
@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!
@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!
@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 Жыл бұрын
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.
@FreddieMare
@FreddieMare Жыл бұрын
how to run espnow on a pi pico w?
@programmingelectronics
@programmingelectronics Жыл бұрын
I'm not sure - I'll have to explore that Freddie!
@ransombot
@ransombot 29 күн бұрын
@@programmingelectronics probably easier to make a gateway, read the serial or I2C on the pi w and write to it from an ESP. You could in theory rip the code from the ESP-Now c libs and try and get it to work on a pi, I doubt it's been been done and it's probably not hardware compatible. But a gateway is easier to setup. You can do that with 2 esp's connected by Serial1 or i2c and let the pi access it over regular wifi as well.
@human4ikinc.796
@human4ikinc.796 10 ай бұрын
проще было написать код самому с нуля
@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
Рет қаралды 132 М.
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 116 МЛН
Русалка
01:00
История одного вокалиста
Рет қаралды 5 МЛН
A clash of kindness and indifference #shorts
00:17
Fabiosa Best Lifehacks
Рет қаралды 61 МЛН
Forget WiFi! This Wireless Method is WAY Better?
12:14
GreatScott!
Рет қаралды 500 М.
Massive AliExpress Haul - Arduino & Electronics Edition (2024)
16:58
Risto Innovates
Рет қаралды 2,8 М.
ESP32 Guide 2024 | Choosing and Using an ESP32 Board
41:06
DroneBot Workshop
Рет қаралды 251 М.
ESP NOW: Espressif's Wireless-Communication Protocol
9:20
Espressif Systems
Рет қаралды 110 М.
ESP-NOW - Peer to Peer ESP32 Network
43:02
DroneBot Workshop
Рет қаралды 344 М.
ESP-Now Range Test: Real-World Results for ESP32 Devices!
8:01
#223 ESP-NOW simple demo - easy IOT data transfer on ESP32 or ESP8266
21:32
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 116 МЛН