ESP32-to-ESP32 Simplex Communication via ESP-NOW

  Переглядів 47,346

Anas Kuzechie

Anas Kuzechie

День тому

ESP-NOW protocol is used to allow ESP-32 controllers to communicate in simplex mode.
Link to code:
akuzechie.blogspot.com/2021/0...
Contents:
0:00 Introduction
0:29 ESP-NOW Protocol Specs
1:21 Circuit Diagram
2:25 Demonstration
2:46 C++ Sketch of Transmitter
4:55 C++ Sketch of Receiver
6:13 Future Project: Duplex Communication of ESP32-to-ESP32

КОМЕНТАРІ: 57
@AbuSous2000PR
@AbuSous2000PR 2 роки тому
Simple & easy.. Many thx
@donaldkormos5529
@donaldkormos5529 10 місяців тому
Thank you for giving me ideas for my model railroad control ...
@jrmichel
@jrmichel Рік тому
Hello from Sao Paulo/Brazil! Great tutorial! You save me a lot of work and time, after more than ten insucess.
@AnasKuzechie
@AnasKuzechie Рік тому
Thanks for your feedback
@theobserver9849
@theobserver9849 2 роки тому
Very very helpful video. After days of struggling. Finally success.
@AnasKuzechie
@AnasKuzechie 2 роки тому
Thanks for your feedback
@attariazeddine6603
@attariazeddine6603 Рік тому
Excellente présentation, merci beaucoup...
@AnasKuzechie
@AnasKuzechie Рік тому
Thanks for your feedback
@fukushima4670
@fukushima4670 2 роки тому
Excellent tutorial man thanks. Got yourself a subscriber...
@AnasKuzechie
@AnasKuzechie 2 роки тому
Thanks for your feedback
@mh7369
@mh7369 6 місяців тому
Excellent video, also liked the videos in your playlist, you have got another subscriber 👍👍
@AnasKuzechie
@AnasKuzechie 6 місяців тому
Thank you
@mehmeh5471
@mehmeh5471 3 місяці тому
Thank you very straight forward
@AnasKuzechie
@AnasKuzechie 3 місяці тому
Thank you
@sameerk12982
@sameerk12982 2 роки тому
Hello from India Sir..... Thank you very much for this easy to understand and helpful tutorial... Your channel seems interesting ... I have subscribed and looking forward for more....
@AnasKuzechie
@AnasKuzechie 2 роки тому
Many thanks for your feedback
@sameerk12982
@sameerk12982 2 роки тому
@@AnasKuzechie you are very welcome :)
@sameerk12982
@sameerk12982 2 роки тому
@@AnasKuzechie please try to make more videos using core level C language using Atmel or Arm processors.
@AnasKuzechie
@AnasKuzechie 2 роки тому
@@sameerk12982 you can checkout my videos on programming AT89S52 via C and assembly
@bernard2735
@bernard2735 2 роки тому
Nice tutorial. Liked and subscribed.
@AnasKuzechie
@AnasKuzechie 2 роки тому
Thank you
@qiertwoe5691
@qiertwoe5691 2 роки тому
Sir can you mention the BOARD NAME , Which board I have to configure in 19pin esp32
@rafaeladrianmartinez1749
@rafaeladrianmartinez1749 Рік тому
Good morning, can you help me with a project? please!, I have 2 esp32, I want through the esp32 (master) to sense a magnet (using built-in hall sensor) and then turn on a led on the other esp32 (slave). The connection between the 2 esp32 must be espnow. I hope you can help me, thanks! Using arduino IDE
@fotografofrancisley
@fotografofrancisley Рік тому
You can make a button on node1 send to node2 flashing led help me
@ReviewExpert
@ReviewExpert Рік тому
Can any send Voice transfer between two ESP32 Code
@andres_pq
@andres_pq 10 місяців тому
can you stream video with this?
@mkr32
@mkr32 2 роки тому
is there other video for esp to esp LED control and ESP to ESP motor speed control with potentio meter
@AnasKuzechie
@AnasKuzechie 2 роки тому
No, but that could be a future video!
@TOMTOM-nh3nl
@TOMTOM-nh3nl 2 роки тому
Thank You Anas, what IDE are you using?
@AnasKuzechie
@AnasKuzechie 2 роки тому
Hi. Arduino IDE
@electricalcoder3025
@electricalcoder3025 2 роки тому
when i tried practical communication of two esp boards using espnow i get only 15-20metre maximum range not a completely open area ,almost 2-3 walls were there between the two boards. I still dont understand how people claim to have range of above 200metres oin blogs and videos .Do you experience the same Kuzechie?
@AnasKuzechie
@AnasKuzechie 2 роки тому
Hi. Like you, I only tested at short range. As for people claiming 100s of meters, I’m not sure. I need to do some research. Thanks for your feedback.
@electricalcoder3025
@electricalcoder3025 2 роки тому
@@AnasKuzechie ok thanks
@sameerk12982
@sameerk12982 2 роки тому
They claim mostly using atennas facing towards each other in open area.... If you are behind walls or your esp board is inside box with antenna not visible it will need router support to spread the range. Else try to add antenna to board.
@chathurafernando1299
@chathurafernando1299 2 роки тому
@@sameerk12982 Yeah antennas must be line of sight !!! Idk about 100s meters but definitely you can cover some wide area 😇
@tracnunya7165
@tracnunya7165 Рік тому
well, you have to have antennas, I am shooting 5 gig 600 feet in a mesh right now, but i live in an area with zero wireless so my NOISE is negative 110
@user-jb3po4ph3u
@user-jb3po4ph3u Рік тому
Hello bro, what a great project, can you please tell me the range of transmission
@AnasKuzechie
@AnasKuzechie Рік тому
Thanks for your feedback. I’m not sure. Adding an antenna would boost the range.
@ForgeMoment
@ForgeMoment Рік тому
@@AnasKuzechie ok, I'm grateful, is there a document I can check for the range at a given mode?
@sameerk12982
@sameerk12982 2 роки тому
Hello Sir... can you please help me to include esp_now.h library to arduino? can't find the library or right way to include it.
@AnasKuzechie
@AnasKuzechie 2 роки тому
Hello Sameer. Check out the article by Random Nerd: randomnerdtutorials.com/esp-now-esp32-arduino-ide/. It was my main reference in implementing the project.
@sameerk12982
@sameerk12982 2 роки тому
@@AnasKuzechie thanks a lot Sir for your quick response.. Highly appreciated... I already found the same and make it work... Its working superb... Covering almost my whole house well.. Thank you for your excellent tutorial and help.
@hero-gl4zy
@hero-gl4zy 2 роки тому
Is there any limtation in number of devices via espnow protocol?
@AnasKuzechie
@AnasKuzechie 2 роки тому
Based on Espressif datasheet for ESP-NOW protocol: with encryption, max 10 devices can be linked together; without max 20.
@tracnunya7165
@tracnunya7165 Рік тому
@@AnasKuzechie it is 20, i didnt know it was 10 if encrypted
@farnoud
@farnoud 2 роки тому
it makes no sense if I have to add mac address manually in code. how can I do pairing via a button or sth
@AnasKuzechie
@AnasKuzechie 2 роки тому
Hi, thanks for your feedback. You can enter mac address via serial monitor during run time. Or during run time program extracts mac address stored in internal EEPROM when a button is pressed.
@chathurafernando1299
@chathurafernando1299 2 роки тому
Btw what is the limit of transmitters ? If i want to make a mesh network , how many transmitters can i use ? 🤔
@AnasKuzechie
@AnasKuzechie 2 роки тому
I'm not sure, I need to research this. I do have a video on nRF24L01 used in a network with multiple transmitters (up to 6) and one receiver. ukposts.info/have/v-deo/foKJmq6gZ36AmqM.html
@chathurafernando1299
@chathurafernando1299 2 роки тому
@@AnasKuzechie Yes !! I watch it and it was a really great lesson !!! Your teaching style is really awesome. Btw i have small request, Can you do a video or a series about MQTT and HTTP. I mean A - Z because IOT is really trending these days. I saw some videos /tutorials but most of them are really confusing. That's why i recommend A-Z series or a video 😇
@AnasKuzechie
@AnasKuzechie 2 роки тому
@@chathurafernando1299 I’m not familiar with MQTT protocol, but it is an interesting area for research. I do have a series of videos on HTTP, CSS, and JavaScript. ukposts.info/have/v-deo/iIalpZ9vpW-dt4E.html
@AnasKuzechie
@AnasKuzechie 2 роки тому
@@chathurafernando1299 I'm not familiar with MQTT protocol, I need to do some research. I do have videos on HTTP, CSS, and JavaScript applications.
@tracnunya7165
@tracnunya7165 Рік тому
I think it is 20
@mouseminer2978
@mouseminer2978 4 місяці тому
Please help ... My Arduino IDE would not compile the Receiver side sketch. Here is the error .... C:\Users\Lenovo\Documents\Arduino\2NDesp\2NDesp.ino: In function 'void setup()': C:\Users\Lenovo\Documents\Arduino\2NDesp\2NDesp.ino:56:28: 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] 56 | esp_now_register_recv_cb(OnDataRecv); | ^~~~~~~~~~ | | | void (*)(const uint8_t*, const uint8_t*, int) {aka void (*)(const unsigned char*, const unsigned char*, int)} In file included from C:\Users\Lenovo\Documents\Arduino\2NDesp\2NDesp.ino:11: C:\Users\Lenovo\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-6b1f40b9bf/esp32/include/esp_wifi/include/esp_now.h:156:54: note: initializing argument 1 of 'esp_err_t esp_now_register_recv_cb(esp_now_recv_cb_t)' 156 | esp_err_t esp_now_register_recv_cb(esp_now_recv_cb_t cb); | ~~~~~~~~~~~~~~~~~~^~ exit status 1 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]
@Fifury161
@Fifury161 2 роки тому
Where is the duplex follow up video?
@AnasKuzechie
@AnasKuzechie 2 роки тому
ukposts.info/have/v-deo/iKh4i3uea59n0mg.html
@garethsmith7628
@garethsmith7628 Рік тому
It will broadcast with MAC address ff:ff:ff:ff:ff:ff.
ESP NOW: Espressif's Wireless-Communication Protocol
9:20
Espressif Systems
Переглядів 103 тис.
ESP-Now Range Test: Real-World Results for ESP32 Devices!
8:01
atomic14
Переглядів 101 тис.
ESP32-to-ESP32 Duplex Communication via ESP-NOW
2:44
Anas Kuzechie
Переглядів 13 тис.
PlatformIO: All you need to know in 10 Minutes!
10:56
J's e-shack
Переглядів 277 тис.
Master ESP-NOW: Easy ESP32 Broadcast & P2P Communication Explained
10:34
12 Useful & Interesting ESP32 Projects for Beginners!
9:41
ToP Projects Compilation
Переглядів 564 тис.
ESP32 Walkie-Talkie: DIY Audio Magic
8:50
atomic14
Переглядів 98 тис.
Exploring ESP-NOW in MicroPython: A Learner’s Guide
14:21
DonskyTech
Переглядів 3,1 тис.