ESP32-to-ESP32 Simplex Communication via ESP-NOW

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 พ.ค. 2024
  • 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 ปีที่แล้ว +2

    Simple & easy.. Many thx

  • @jrmichel
    @jrmichel ปีที่แล้ว +5

    Hello from Sao Paulo/Brazil! Great tutorial! You save me a lot of work and time, after more than ten insucess.

  • @donaldkormos5529
    @donaldkormos5529 10 หลายเดือนก่อน

    Thank you for giving me ideas for my model railroad control ...

  • @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...

  • @fukushima4670
    @fukushima4670 2 ปีที่แล้ว

    Excellent tutorial man thanks. Got yourself a subscriber...

    • @AnasKuzechie
      @AnasKuzechie  2 ปีที่แล้ว +1

      Thanks for your feedback

  • @mh7369
    @mh7369 6 หลายเดือนก่อน

    Excellent video, also liked the videos in your playlist, you have got another subscriber 👍👍

  • @mehmeh5471
    @mehmeh5471 4 หลายเดือนก่อน

    Thank you very straight forward

  • @bernard2735
    @bernard2735 2 ปีที่แล้ว

    Nice tutorial. Liked and subscribed.

  • @sameerk12982
    @sameerk12982 2 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      @@sameerk12982 you can checkout my videos on programming AT89S52 via C and assembly

  • @qiertwoe5691
    @qiertwoe5691 2 ปีที่แล้ว

    Sir can you mention the BOARD NAME , Which board I have to configure in 19pin esp32

  • @fotografofrancisley
    @fotografofrancisley ปีที่แล้ว

    You can make a button on node1 send to node2 flashing led help me

  • @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

  • @TOMTOM-nh3nl
    @TOMTOM-nh3nl 2 ปีที่แล้ว

    Thank You Anas, what IDE are you using?

  • @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?

  • @electricalcoder3025
    @electricalcoder3025 2 ปีที่แล้ว +1

    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 ปีที่แล้ว +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

  • @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!

  • @andres_pq
    @andres_pq 10 หลายเดือนก่อน

    can you stream video with this?

  • @ReviewExpert
    @ReviewExpert ปีที่แล้ว

    Can any send Voice transfer between two ESP32 Code

  • @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 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      @@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.

  • @farnoud
    @farnoud 2 ปีที่แล้ว +1

    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 ปีที่แล้ว +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.

  • @hero-gl4zy
    @hero-gl4zy 2 ปีที่แล้ว

    Is there any limtation in number of devices via espnow protocol?

    • @AnasKuzechie
      @AnasKuzechie  2 ปีที่แล้ว +3

      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

  • @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 ปีที่แล้ว +1

      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. th-cam.com/video/FRXfxi0HO9o/w-d-xo.html

    • @chathurafernando1299
      @chathurafernando1299 2 ปีที่แล้ว +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. th-cam.com/video/PVtqi8n9lVM/w-d-xo.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 5 หลายเดือนก่อน

    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 ปีที่แล้ว +1

      th-cam.com/video/PxGWEg4i6q4/w-d-xo.html

  • @garethsmith7628
    @garethsmith7628 ปีที่แล้ว

    It will broadcast with MAC address ff:ff:ff:ff:ff:ff.