ESP-NOW Protocol: Establishing Communication Between Two ESP32 Devices - How to Use It

  Рет қаралды 48,919

Volos Projects

Volos Projects

Күн бұрын

📹 Description:
In this tutorial, I'll guide you through the process of using the ESP-NOW protocol to establish seamless communication between two ESP32 devices. ESP-NOW is a powerful protocol designed for low-power, peer-to-peer communication, making it ideal for IoT projects and sensor networks.
PCBWay - Special thanks to our sponsor, PCBWay, for supporting this tutorial. If you need high-quality PCBs for your projects, be sure to check out their services. www.pcbway.com/
🤔 What is ESP-NOW?
ESP-NOW is a communication protocol developed by Espressif Systems specifically for ESP8266 and ESP32 microcontrollers. It enables fast and efficient data transmission between devices without the need for a traditional Wi-Fi connection, making it perfect for scenarios where low latency and minimal power consumption are crucial.
🔗Links:
BOARD used in video: www.lilygo.cc/...
my CODE: github.com/Vol...
RandomNerd Tutorial: randomnerdtuto...
☕️ Support me on:
KO-FI ko-fi.com/volo...
PATREON: / volosprojects
👍 Don't forget to subscribe, like, and hit the notification bell for more IoT and ESP32 tutorials!
🙏 Special thanks to PCBWay for sponsoring this video!
#esp32 #espnow #iot #arduino

Пікірлер: 94
@2000jago
@2000jago 8 ай бұрын
Your GUI's are fantastic.
@thunderinvader9031
@thunderinvader9031 8 ай бұрын
Your channel is a hidden gem! So glad that it got recommended to me by KZbin
@VolosProjects
@VolosProjects 8 ай бұрын
Thank you man, i am glad you are here.
@floodplainnl
@floodplainnl 8 ай бұрын
You sure have a talent making UI's look great!
@VolosProjects
@VolosProjects 8 ай бұрын
thank you!
@arlo4051
@arlo4051 8 ай бұрын
Makes me want to dive into creating something that would use it ,like a weather station maybe. I love your subtle sense of humor. Thanks again for another informative video.
@michaelbishton9439
@michaelbishton9439 8 ай бұрын
To date, I think your most informative and best presentations have been about demystifying sprites. But you always just showed the results on the screen and then just told people to look at your code. Now that you are explaining things, I suggest that you go back to explaining - and covering in an organized manner - how the display functions work. This would help us understand how to build more dynamic displays for areas like avionics, engines, and automation where we don't have fixed parameters.
@reinholdu9909
@reinholdu9909 8 ай бұрын
Wanna' learn a german word: *"Spielkind"* _...but I seriously ❤the way you present your 🎨and the way you teach us fairly complicated stuff"_ 💯👍
@VolosProjects
@VolosProjects 8 ай бұрын
Thank you my friend.
@donaldkormos5529
@donaldkormos5529 8 ай бұрын
Great video!!! I plan to use ESP32s and ESP-NOW to "connect" them on some model railroad projects. All the best ...
@ldandco
@ldandco 7 ай бұрын
That GUI is simply beautiful
@alkhashtee
@alkhashtee 8 ай бұрын
I am so lucky to find you here on KZbin. Appreciate you
@VolosProjects
@VolosProjects 8 ай бұрын
Tnx man, happy to have you here
@digitald2007
@digitald2007 8 ай бұрын
Your channel is seriously under-subscribed. Thank you for yet another informative and entertaining video. Cheers!
@VolosProjects
@VolosProjects 8 ай бұрын
Thank you, i hope there will be more subscibers in future. I gess i will need add more topics and work harder.
@heatherryan9820
@heatherryan9820 7 ай бұрын
I love your sense of humor, and I actually think that the first example that you made was great. Yeah, some people may say that that it is over-engineered, but I really like it.
@VolosProjects
@VolosProjects 7 ай бұрын
Thank you :)
@paragliding_fun
@paragliding_fun 8 ай бұрын
Awesome, your tutorials and content about ESP32 and displays really rock! Keep it up!
@zyghom
@zyghom 8 ай бұрын
tip: to avoid looking for MAC and recompilation for other modules, use fake MAC address instead of built in tip 2: on_sent() and on_receive() should be very fast commands (so no drawing) to avoid problems - better to set the flag in on_receive() and process it out of this callback function
@62f100
@62f100 8 ай бұрын
Great video !! Love to see a few more espnow examples. For me I want to take canbus info into main esp32 & send it out to 3 or 4 display with guages. Look at adafruit qualia 4" round for main display. Always look forward to your videos.
@ivovass195
@ivovass195 8 ай бұрын
Yes, great continuation from previous video, combined I believe one can have a simple esp32 device connected with sensors and send the readings to a second one with display. Definitely many possibilities for espnow. Thanks for sharing
@TYGAMatt
@TYGAMatt 8 ай бұрын
Just started to play with ESP NOW. It's fantastic.
@VolosProjects
@VolosProjects 8 ай бұрын
Yes, it is easy to use and fun
@TYGAMatt
@TYGAMatt 8 ай бұрын
@@VolosProjects yesterday built my first real life ESP NOW project. A remote control for a fan to control fan speed. It just switches relays to control the speed. Works perfectly! And the best bit was that chatgpt wrote all the code and it worked first time. Amazing ;-)
@Larry2cur
@Larry2cur 18 күн бұрын
Excellent tutorial that answered several of my ESP-NOW questions. However, this and other ESP-NOW videos explain only limited or on-board functions. A future tutorial could demonstrate sketch, pin definitions and many-to-many links in which "work" is done based on signaling from multiple devices (not timer driven). E.g. conditional turning on and off LED's . Devices both receive and send signaling messages
@luisrey8986
@luisrey8986 8 ай бұрын
Excelente como siempre! 👍🏻
@dfn808
@dfn808 8 ай бұрын
As usual, awesome video. Thanks for sharing 👍
@toddbrown-s2r
@toddbrown-s2r 8 ай бұрын
Thanks again for sharing another great demonstration of the capabilities of these devices! Your GUIs are always inspiring! Your videos always fire my imagination!!
@The22v10
@The22v10 8 ай бұрын
Excellent video, straight and to the point, Subbed.
@VolosProjects
@VolosProjects 8 ай бұрын
Thank you😀
@so4706
@so4706 8 ай бұрын
i need this coffee cup, too. great content by the way.
@victor_glekler
@victor_glekler 8 ай бұрын
You can also get the mac adress when you just upload any sketch (even with empty setup() and loop() functions). Just look at esptool messages that will be printed in terminal before the flashing begins. But also you can emulate any mac adress whitout using the hardware build in mac. The second option is to use broadcast mode, where you do not need a mac adress of receiver
@VolosProjects
@VolosProjects 8 ай бұрын
thank you, yes you are right, i finded it. i will check brodcast mode , tnx again.
@jeffschroeder4805
@jeffschroeder4805 8 ай бұрын
Your videos really espress (?) how much fun you are having. I find them very inspiring and have had success with most of your examples that I have tried.
@VolosProjects
@VolosProjects 8 ай бұрын
Tnx jeff, i try to have fun always. Glad you live examples.
@marinehm
@marinehm 3 ай бұрын
I have watched many of your tutorials over the years. I have MANY questions about "ESP-NOW". I did a search and came across this video. How can I establish a 1-1 dialog so I can learn more about ESP-NOW? Thank you for your KZbin content! Very inspirational with ideas.
@VolosProjects
@VolosProjects 3 ай бұрын
Glad it was helpful! volos.marketing@gmail.com this is my business mail
@SomeTechGuy666
@SomeTechGuy666 7 ай бұрын
These things would make an excellent fitness watch.
@automatemefirst
@automatemefirst 8 ай бұрын
Didn’t know about this protocol. Super cool and useful!
@Technical_stuff86
@Technical_stuff86 8 ай бұрын
Svaka cast legendo! sve pohvale 🍺
@VolosProjects
@VolosProjects 8 ай бұрын
Hvala prijatelju.
@dainula
@dainula 8 ай бұрын
your display work never dissapointing
@VolosProjects
@VolosProjects 8 ай бұрын
Thank you.
@robertcloutier8839
@robertcloutier8839 8 ай бұрын
Awesome tutorial. It gives me an idea for viewing the outside temperature.
@VolosProjects
@VolosProjects 8 ай бұрын
Yes this is good usage for ESP NOW. tnx
@k98killer
@k98killer 2 ай бұрын
Methinks that the way to get MAC addresses for a real application will be to broadcast a beacon on start and then periodically. Any listener will then add the peer if the beacon packet was valid and the peer hadn't been added yet. Peers can then send their own beacon packets directly to the new peer.
@davidrowe9168
@davidrowe9168 8 ай бұрын
Very useful. I watch all your videos. Thanks!
@Dave64track
@Dave64track 7 ай бұрын
Just come across your channel great content have to give this a try I've been looking for something like this . I have subscribed looking forward to watching your other videos.
@nicoladellino8124
@nicoladellino8124 8 ай бұрын
As always, a nice and useful video, THX.
@Jackie-sg8es
@Jackie-sg8es 8 ай бұрын
Very cool and great code explanation. I plan to use your M5 stack core 2 voltmeter code with a M5 stick (or Lilygo T display S3 pro) to remotely display readings from the core 2. With these videos and code that you’ve created, I am sure I can put it together or at least have fun trying. Thanks for all of this content.
@VolosProjects
@VolosProjects 8 ай бұрын
Good idea, remore voltmeter, great for solar projects. Have fun😀
@veedonfleece3694
@veedonfleece3694 8 ай бұрын
very clear, as usual ! Thankyou
@nikthefix8918
@nikthefix8918 8 ай бұрын
Great video Volos! (again).
@nimrodkerrett8506
@nimrodkerrett8506 5 ай бұрын
Thanks for all you do. I learn a lot from you. One question: why do you do digitalWrite(15, 1) in setup?
@TechPlayerBu
@TechPlayerBu 8 ай бұрын
Hi Volos, I stumbled upon your ESP NOW video recently, and I must say, your work and code are truly commendable! 👏👏 The clarity in your explanations made it so much easier for me to dive into this topic. I'm currently working on a project involving ESP NOW, and one concern I have is regarding heat generation during usage. Have you noticed any significant heating issues, especially during extended operation? Your insights would be incredibly valuable. Also, if you have any recommendations based on your experience, I'm all ears! By the way, I run a channel where I share my own projects, and I'm eager to showcase how your content has influenced my work. Would love to discuss this further if you're open to it. Thanks again for sharing your knowledge, and looking forward to more great content from your channel! Best regards, Creative Electronics Studio
@TheTriangle2012
@TheTriangle2012 8 ай бұрын
Nice project as always ! I guess sometimes you will show us how to connect sender and reciever without hard coding MAC address. :)
@jensgoerke3819
@jensgoerke3819 8 ай бұрын
I'm thinking about a receipt printer connected to an ESP32 development module, printing a list of MAC addresses on a WLAN, with their corresponding IP addresses if available.
@teebeeonline
@teebeeonline 8 ай бұрын
fantastic!
@christianlingurar7085
@christianlingurar7085 8 ай бұрын
thanks! cool! I got me a cardputer. very nice!
@dagarnenilssen
@dagarnenilssen 8 ай бұрын
Crisp and clean UI as usually. In example; what Font Family is in file "mFont.h".
@VolosProjects
@VolosProjects 8 ай бұрын
Name of font is Agency, i dont kniw family
@ioannismanousakas3040
@ioannismanousakas3040 8 ай бұрын
Thanks for the nice videos! Any suggestions for self pairing interface?
@simontheuer3606
@simontheuer3606 2 ай бұрын
Compilation 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] what does this mean?
@minglv
@minglv 8 ай бұрын
Compiling MyMacIS prompts error: Compilation error: 'ledcSetup' was not declared in this scope
@dookshi
@dookshi 8 ай бұрын
Oh, and one more thing, how much current do these Lilygo gadgets draw with this particular screen drawn and no WiFi or BT enabled? If it's more than 100 mA, don't bother measuring but please guess freely on how much more, I won't hold your word for it... Thanks man, I appreciate it!
@ATS3788
@ATS3788 7 ай бұрын
What is a pity ESP Now does not allow to communicate TCP/IP
@IvanVoras
@IvanVoras 6 ай бұрын
These are devices with the standard ESP32 module antennas? Did you test the range of transmission, at least in the open space?
@VolosProjects
@VolosProjects 6 ай бұрын
in open spaca they are more than 100m , but walls reduce range drasticly.
@aaronkbutler
@aaronkbutler 8 ай бұрын
What batteries do you use? What kind of battery life do they get?
@VolosProjects
@VolosProjects 8 ай бұрын
iniside is 500 mah battery, i can get around 10 hours if BT,wfi are turned off and board is working on lower speed.
@gc9n
@gc9n 7 ай бұрын
Hi VOLOS , QUICK Question.... can i use lcd_setRotation(1) ; sprite.createSprite(536, 240); inside the code and on runtime sometime to go back to lcd_setRotation(0) sprite.createSprite(240,536); i am trying to do it but the graphics are scrambled
@VolosProjects
@VolosProjects 7 ай бұрын
i dont understand, which board you are using?
@mohamed-bana
@mohamed-bana 5 ай бұрын
What battey are you using and how did yoy connect it to the ESP32?
@VolosProjects
@VolosProjects 5 ай бұрын
I am using 500mah 3.7 lipo battery, under this board is battery conector.
@GoatZilla
@GoatZilla 8 ай бұрын
the ESP-NOW libraries are riddled with bugs so don't be surprised when something spontaneously breaks on you.
@jozefsoucik3115
@jozefsoucik3115 Ай бұрын
coffee joke...i liiiike
@richpeacock
@richpeacock 8 ай бұрын
Sadly it won't work on a macbook air. TTGO T display driver loaded, device shows up in USB TREE>but it won't mount. So disappointing
@VolosProjects
@VolosProjects 8 ай бұрын
Hm thats weard, i never owned Mac, you can try reset board Connect the board via the USB cable Press and hold the BOOT button , While still pressing the BOOT button, press RST Release the RST Release the BOOT button
@cviki21
@cviki21 6 ай бұрын
Hi, imam pitanje. Ja imam projekt Cocktail Mixera, upravlja ga ESP32 D1. Za kontrolu sam napravio WEB UI. Sad bi htio napraviti kontroliranje na daljinu pomoću drugog modula. Dali je to moguće?
@VolosProjects
@VolosProjects 6 ай бұрын
Ako ti kažem dal dobijem koktel? :) Šalim se , pretpostavljam da je web interface izveden samo lokalno, ako zelis kontrolirati sa druge mreže mislim da ćem morati koristii neki oblak. Ja sam davno koristio Blynk, a dobar je i arduino IOT cloud. Iskreno namam bas iskustva sa ovakvim projektima ali nadam se da će ti ovo pomoći. Pozdrav.
@cviki21
@cviki21 6 ай бұрын
@@VolosProjects ja se izvinjavam, ali ja sam budala i to žešća. Umjesto da napravim najjednostavniji način ja ga kompliciram. Sve treba biti na lokalnoj mreži tako da nema potrebe za cloud rješenjima. Danas sam shvatio da mi je najlakše staviti Push ili Touch Button i temeljiti operacije na tome koliko puta ga pritisnem. Hvala na odgovoru svejedno!
@MaxSMoke777
@MaxSMoke777 8 ай бұрын
It's just wifi, right? It's not LORA.
@VolosProjects
@VolosProjects 8 ай бұрын
Not Lora, for lora we need aditional hardware
@nikthefix8918
@nikthefix8918 8 ай бұрын
It uses the lower parts of the wifi stack - stripping off all the IP stuff. Very efficient and peer-to-peer. Much like the comms used when you have a 2.4GHz mouse/keyboard with a wireless USB dongle. Better than Bluetooth if you need range. Better than 433Mhz if you need reliable xfer with handshaking. Perfect for remote control if you like ESP. Very low latency. Simple coding. Ultra-low-power. 250 bytes per packet but many packets can be sent per second.
@edriobranco
@edriobranco 8 ай бұрын
Sup! Subtitles please.
@CrudelyMade
@CrudelyMade 8 ай бұрын
subtitles are present for me. 2 options. [CC] button shows subtitles, but also going to the gear, turning on 'auto sub titles'... maybe this'll help. :-)
@Nexon-lab
@Nexon-lab 7 ай бұрын
just subbed love your videos truly marvelous i want to start an arduino/electronics channel as you can tell by my username any tips :) i also wanted to ask if you have any tips on learning to code in the arduino ide
@OttarOpland
@OttarOpland 8 ай бұрын
Excellent! You are one of my favornites on KZbin. Always cool Projects and you always have the a nice relaxed Style. Keep up the good work! 👌🥸
@VolosProjects
@VolosProjects 8 ай бұрын
Thank you, it is nice to hear that :)
ESP-NOW - Peer to Peer ESP32 Network
43:02
DroneBot Workshop
Рет қаралды 363 М.
It’s Been a Good Run, Phone Providers.
26:31
Data Slayer
Рет қаралды 4,8 МЛН
SHAPALAQ 6 серия / 3 часть #aminkavitaminka #aminak #aminokka #расулшоу
00:59
Аминка Витаминка
Рет қаралды 2,2 МЛН
💩Поу и Поулина ☠️МОЧАТ 😖Хмурых Тварей?!
00:34
Ной Анимация
Рет қаралды 2,1 МЛН
когда не обедаешь в школе // EVA mash
00:57
EVA mash
Рет қаралды 3,8 МЛН
ESP-Now Range Test: Real-World Results for ESP32 Devices!
8:01
Forget WiFi! This Wireless Method is WAY Better?
12:14
GreatScott!
Рет қаралды 618 М.
Meshtastic: Build Your Own Private Off-Grid Network!
19:02
Crosstalk Solutions
Рет қаралды 88 М.
Having fun with M5Dial - New ESP32 device from M5Stack
9:37
Volos Projects
Рет қаралды 128 М.
ESP NOW: Espressif's Wireless-Communication Protocol
9:20
Espressif Systems
Рет қаралды 116 М.
Yes, I Changed My Mind: Using SquareLine Studio and LVGL Now!
8:41
Volos Projects
Рет қаралды 29 М.
You’ve Never Seen WiFi Like This
20:43
Data Slayer
Рет қаралды 924 М.
SHAPALAQ 6 серия / 3 часть #aminkavitaminka #aminak #aminokka #расулшоу
00:59
Аминка Витаминка
Рет қаралды 2,2 МЛН