ESPNOW mix with #ESP32 and #ESP8266

preview_player
Показать описание
🤩 FREE Arduino Crash Course 👇👇

***Want to have some fun programming your own electronics?***

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***

Set up ESP32 with Arduino IDE:

Get link for Arduino preference board manager from this Espressif webpage:

Unexpected Maker ESP32 Dev Board (Adafruit)

ESP32 Thing (SparkFun)

ESPNOW API Reference:

ESPNOW User Guide:

***We designed this circuit board for beginners!***

FOLLOW US ELSEWHERE
---------------------------------------------------

________________________________
- [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 YouTube 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...

***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.***
Рекомендации по теме
Комментарии
Автор

Another great video! "A little gang of ESP boards that were causing trouble in my drawer." Cracked me up.

jon_raymond
Автор

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

AllertonEPS
Автор

You answered the question I had been struggling with at 17:00 re: data type mismatch

thanks so much

ergcentric
Автор

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!

rsluggy
Автор

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!

hariseldon
Автор

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!

SpinStar
Автор

Thank you, you are very good as explaining things.

steverileyretired
Автор

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.👌😇

karelnovotny
Автор

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 YouTube video explanation.

agevandergoot
Автор

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!

elmermandiade
Автор

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!

normalford
Автор

I just spent 6 hours trying to sort this out. I wish i had seen this earlier. Thank you.

ismzaxxon
Автор

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.

jeffschroeder
Автор

Great explanation and exactly what I needed :D You saved my graduation project! <3

puckkemper
Автор

Wow!!
What a great idea of resolving the errors line by line. That's way more efficient than writing the code from scratch

PiyushNikam
Автор

Another splendid video. Thanks for the crystal clear explanation, especially regarding how you broke down finding out what each error message meant. 👍👍👌

joshuaoduroadu
Автор

Excellent explanation, love the peek function in the IDE, I will be using that a lot from now on. Thanks for sharing.

photorealm
Автор

This is a really great tutorial! Thank you! Cheers Dave

DaveDickens
Автор

I followed you to the end and I'm gunna try an ESP01s
Excellent presentation.

planker
Автор

Like the lesson and the laid-back approach to getting the point across!

fpvrcstuff