ESPNOW mix with
🤩 FREE Arduino Crash Course 👇👇
bit.ly/get_Ard...
**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...
Unexpected Maker ESP32 Dev Board (Adafruit)
www.adafruit.c...
ESP32 Thing (SparkFun)
www.sparkfun.c...
ESPNOW API Reference:
docs.espressif...
ESPNOW User Guide:
www.espressif....
**We designed this circuit board for beginners!**
Kit-On-A-Shield: amzn.to/3lfWClU
FOLLOW US ELSEWHERE
---------------------------------------------------
Facebook: / programmingelectronics...
Twitter: / progelecacademy
Website: www.programmin...
________________________________
- [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 KZread 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
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
Жыл бұрын
Glad it was helpful! I ran into the same issues and spent quite some time working through it.
Another great video! "A little gang of ESP boards that were causing trouble in my drawer." Cracked me up.
@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.
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
5 ай бұрын
Glad it helped! Sounds like a neat project.
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
Жыл бұрын
So glad it helped. Most of our material is born from hours/days of our won confusion on these subjects :)
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
2 ай бұрын
So glad it helped - Best of luck and thanks for watching!
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
6 ай бұрын
Thanks for watching and glad to here it helped!
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
Жыл бұрын
Glad it helped Jeff! Thanks so much for the note!
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
Жыл бұрын
Thanks so much for the kind words!
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 KZread video explanation.
@programmingelectronics
7 ай бұрын
So glad to hear it helped - thanks for the kind note and for watching!
Another splendid video. Thanks for the crystal clear explanation, especially regarding how you broke down finding out what each error message meant. 👍👍👌
@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.
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
Жыл бұрын
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!
Thank you, you are very good as explaining things.
@programmingelectronics
Жыл бұрын
Thanks so much Steve!
Teşekkür ederim dostum. esp_now / espnow hatası için yeterli düzeyde açıklma yapmışsın. aydınlatıcı oldu.
@programmingelectronics
2 ай бұрын
Harika!
Wow!! What a great idea of resolving the errors line by line. That's way more efficient than writing the code from scratch
@familyplans3788
10 ай бұрын
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
This is a really great tutorial! Thank you! Cheers Dave
@programmingelectronics
Ай бұрын
Glad it was helpful!
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
Жыл бұрын
Thanks for this idea! I'll see what we can do!
Excellent explanation, love the peek function in the IDE, I will be using that a lot from now on. Thanks for sharing.
@programmingelectronics
Жыл бұрын
Thanks so much for watching Glen!
Like the lesson and the laid-back approach to getting the point across!
@programmingelectronics
Жыл бұрын
Thanks!
I just spent 6 hours trying to sort this out. I wish i had seen this earlier. Thank you.
@programmingelectronics
Жыл бұрын
I hoped it helped some - thanks for the note Terry!
Great explanation and exactly what I needed :D You saved my graduation project!
@programmingelectronics
3 ай бұрын
Yay! Have fun after graduation!
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
Жыл бұрын
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.
I am planning out something for RC and it's interesting to dive into.
I followed you to the end and I'm gunna try an ESP01s Excellent presentation.
Many thanks for sharing your knowledgment !
@programmingelectronics
Жыл бұрын
Thanks so much for watching!
Great video. Thank you.
@programmingelectronics
2 ай бұрын
Thanks for watching!
Awesome and Superb.
@programmingelectronics
7 ай бұрын
Thanks!
That was really interesting! Thank you. I learned a lot.
@programmingelectronics
8 ай бұрын
Thanks so much for watching!
Weldone video, code explained good for us beginners. 👍good job & thanks for sharing 💕
@programmingelectronics
Жыл бұрын
Thanks Jimmy!
Absolutely loved it. Crystal clear explanation!
great job
@programmingelectronics
3 ай бұрын
Thank you!!
Really helpful Thanks
@programmingelectronics
Жыл бұрын
Glad it helped Dominic!
Thanks, this helped me ....
@programmingelectronics
8 ай бұрын
Glad it helped
Great video as always Good pace in the video Thanks for sharing your experiences with all of us :-)
@programmingelectronics
Жыл бұрын
Thanks so much for watching Asger!
Esto es increible, gracias !!!
@programmingelectronics
10 ай бұрын
¡Gracias por la nota!
very helpful thank you. a brilliant video :)
@programmingelectronics
Жыл бұрын
Great! Thanks a ton for watching!
VERY NICE , YOU ARE THE BEST
@programmingelectronics
Жыл бұрын
Thank you so much 😀
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
Жыл бұрын
Thanks a ton for this recommendation!
Thank you, you really help me!
@programmingelectronics
Жыл бұрын
Great! Thanks so much for watching!
I'm liking this.
@programmingelectronics
Жыл бұрын
ESP-Now is a ton of fun!
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?
Thanks for such a nice video. There is no code present on your website for this project. please make it available.
@programmingelectronics
Жыл бұрын
Sorry about that! Should be there now.
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)
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
Жыл бұрын
Creo que el esp8266 también puede ser el maestro.
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
Жыл бұрын
Sure, no issue.
I need to see a working example in esphome
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.
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?
It doesn't work when you try from esp8266 to esp32 s3 . If s3 is connected to wifi ap
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
Жыл бұрын
me too. any solution? I did one way ESP32-ESP32 data transmission
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
Жыл бұрын
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
Жыл бұрын
@@programmingelectronics Thanks so much, that would be awesome.
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
Lovely. Helped a lot!
@programmingelectronics
11 ай бұрын
Glad it helped!
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.
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
Жыл бұрын
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!!
There is no code on your web site to indicate a download. Please correct
@programmingelectronics
Жыл бұрын
Thanks for pointing this out. Should be there now!
👍👍👍👍
@programmingelectronics
3 ай бұрын
Thanks!
Will this code modification work with the esp8285?
love your content, if I purchase your "paid lessons" I know I'll have questions... does someone answer those?
@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!
is it possible to use with esphome?
how to run espnow on a pi pico w?
@programmingelectronics
Жыл бұрын
I'm not sure - I'll have to explore that Freddie!
@ransombot
2 ай бұрын
@@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.
❤❤❤
@programmingelectronics
Жыл бұрын
Thanks Atta!
Does espnow work with micro Python?
@programmingelectronics
Жыл бұрын
Not sure, but I would imagine it does.
проще было написать код самому с нуля
How to contact you