Arduino IDE + ESP32 | Communication between ESP32 (Two or more ESP32) with ESP-NOW Protocol

Поділитися
Вставка
  • Опубліковано 13 лип 2021
  • Arduino IDE + ESP32 | Communication between ESP32 (Two or more ESP32) with ESP-NOW Protocol. In this project video I use Arduino IDE 1.8.9 , Notepad++ V7.7.1 , LEDs, Push Button and ESP32 WROOM-32 Development Board.
    Download source code here : drive.google.com/file/d/1gzmc...
    See installation pictures here : drive.google.com/file/d/1ShYI...
    The code file is saved in the .rar file format. I created a .rar file using Winrar V5.50, so to extract it, make sure you use the same version of Winrar that I use or the latest version or use the winrar extractor online.
    To make this project, make sure that your Arduino IDE has an ESP32 board installed in the "Board Manager", if you haven't already, see here for how to install it : • Arduino IDE + ESP32 | ...
    If between ESP32 has the same MAC Address or you want to change the MAC Address of ESP32, see here: randomnerdtutorials.com/get-c...
    Sorry if my English is confusing, I use an online translator.
    ***********************************************
    Thanks for watching & don't forget to like , share, comment and Subscribe.
    ***********************************************
    For other video tutorials on this channel, please see this playlist:
    - Basic4Android (B4A) Tutorials : • Basic4Android (B4A) | ...
    - Electronics Tutorials : • 3 LED Flip Flop
    - Arduino Tutorials : • Arduino | Scrolling Te...
    - Great Cow Basic Tutorials : • Great Cow BASIC with A...
    - Bascom Avr Tutorials : • Bascom Avr | How to Se...
    - VB .NET Tutorials : • Visual Basic .NET | ...
    - LoLin NodeMCU V3 ESP12E ESP8266 Tutorials : • Arduino | LoLin NodeMC...
    - ESP32 Tutorials : • Arduino IDE + ESP32 | ...
    ***********************************************
    Download Arduino IDE : www.arduino.cc/en/Main/Software
    Download Notepad++ : notepad-plus-plus.org/downloads/
    ***********************************************
    Reference :
    - Getting Started with ESP-NOW (ESP32 with Arduino IDE) : randomnerdtutorials.com/esp-n...
    - ESP-NOW Two-Way Communication Between ESP32 Boards : randomnerdtutorials.com/esp-n...
    - ESP-NOW : www.espressif.com/en/products...
    and from several other sources.
    ***********************************************
  • Наука та технологія

КОМЕНТАРІ • 112

  • @chsmartlive6318
    @chsmartlive6318 Рік тому

    Your Knowledge, Help me for started in ESP NOW alot Thank you... ขอบคุณครับ from Thailand ...

  • @estebanmarin1321
    @estebanmarin1321 11 місяців тому +3

    Eres un buen aporte para la sociedad. Muchas gracias.

  • @darckael
    @darckael Рік тому +1

    justo lo que necesitaba, gracias por el aporte.

  • @tanawatnakaew9359
    @tanawatnakaew9359 2 роки тому +5

    The best video step by step Esp-now

  • @lucianodipaolo2428
    @lucianodipaolo2428 3 роки тому +1

    bravo , molto interessante questo vidotutorial

  • @azzattar8422
    @azzattar8422 Рік тому

    Belle explication! Merci....

  • @dvgelectrician1605
    @dvgelectrician1605 Рік тому

    lot of thanks, best video.

  • @sachiramalinda8396
    @sachiramalinda8396 3 роки тому

    Super tutorial

  • @Shine___10101
    @Shine___10101 5 місяців тому

    Thank you so much!

    • @utehstr
      @utehstr  5 місяців тому

      You're welcome 🙂

  • @abhijithsuresh7897
    @abhijithsuresh7897 2 роки тому +2

    What difference should i make in this code to work with esp8266 ?? Please respond

  • @AZ-ig7ll
    @AZ-ig7ll Рік тому

    Great 👍

  • @supermiguel7733
    @supermiguel7733 2 роки тому

    Very good.

  • @amirkian6722
    @amirkian6722 2 роки тому

    super 👍

    • @utehstr
      @utehstr  2 роки тому

      Thank you 🙂.

  • @VVLGANESHK
    @VVLGANESHK 2 роки тому

    Can I make quest like controllers (2 VR controllers) with this esp NOW modules.
    Sorry I am newbie to electronics

  • @andrivie579
    @andrivie579 3 роки тому

    chaneel favorit ane ini ....chat di ig lancar thanks bang ,,jadi termotivasi buat ane belajar

    • @utehstr
      @utehstr  3 роки тому +1

      Terima kasih :-)
      Maaf jika saya lambat untuk membalas email atau DM di IG, karena saya juga punya pekerjaan lain selain mengelola channel ini :-)

    • @andrivie579
      @andrivie579 3 роки тому

      @@utehstr siap komandan

  • @kamalkamel7559
    @kamalkamel7559 3 роки тому

    gooooood nice!!!
    it's work in esp32 and esp8266 or just esp32 ?

    • @utehstr
      @utehstr  3 роки тому +1

      Thank you :-)
      ESP-Now can work on ESP32 and ESP8266. But I'm currently only trying it on an ESP32. Later I will try it on the ESP8266 and publish the results.

  • @mouseminer2978
    @mouseminer2978 7 місяців тому

    HI, I AM GETTING THIS ERROR WHILE COMPILING THE RECIVER ESP 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

  • @estebanmarin1321
    @estebanmarin1321 14 днів тому

    ¡Atención! Deben revisar la nueva firma de devolución de la llamada, se ha actualizado.

  • @movienino
    @movienino 11 місяців тому

    Hello,
    I get the following error
    E (177) psram: PSRAM ID read error: 0xffffffff
    E (309) ESPNOW: Peer interface is invalid
    (PSRAM is enabled in Arduino IDE)

  • @electronic7979
    @electronic7979 3 роки тому +1

    👍

    • @utehstr
      @utehstr  3 роки тому +1

      Thank you 🙂

  • @AurSunaaoKyaHaalHai
    @AurSunaaoKyaHaalHai Рік тому

    Thanks man 👍

    • @utehstr
      @utehstr  Рік тому

      You're welcome🙂.

  • @muhammadmudassir6343
    @muhammadmudassir6343 2 роки тому

    Sir I do same but my led is flickering and do malfunctioning while execution

  • @rafaeladrianmartinez1749
    @rafaeladrianmartinez1749 Рік тому

    I was able to get your circuit and program working! great thank you very much!!,
    I need to do the same but when passing a magnet through the hall sensor that has the ESP32 A (transmitter) incorporated, the led that is connected to the ESP32 B (receiver) lights up. Can you help me with that, I use ESP32wrom
    Sorry for the translation, I use google translator, I'm from Argentina, I see your videos, they help me a lot!

    • @utehstr
      @utehstr  Рік тому

      You're welcome 🙂.
      Sorry I don't understand what you mean. Can you explain in more detail.

  • @MadocheAnagonou
    @MadocheAnagonou 11 місяців тому

    how to know the problem of connection according to message :"Error sending the data"

  • @marcosdasilva7409
    @marcosdasilva7409 23 дні тому

    SHOW 🇧🇷👏👍🇧🇷👏👍

  • @sahaskumar4064
    @sahaskumar4064 Рік тому

    Hello, Thats an amazing video! can we send the data without clicking the push button ? like sending data continuously? please help me out

    • @denniskix5471
      @denniskix5471 Рік тому

      You can send data without clicking the pin but not continuously. ESP NOW protocol can only send 250 Byte packet at a time.

  • @MrDonrecardo
    @MrDonrecardo Рік тому +2

    Hi , I loaded the 1 way comms part of the program and set the sender to the MAC Address of the receiver but I get ...
    19:15:35.122 -> E (112) ESPNOW: Peer Interface is invalid
    19:15:35.122 -> Failed to add Peer
    I have tried another ESP-NOW program it was in arduino examples /esp32/esp-now/basic/ I loaded slave to one
    esp32 and master to the other. set both to channel 1 and its working fine so I guess my ESP moduals are working ok
    so why is it not working with yours ? any ideas
    Don

    • @apostolosn5536
      @apostolosn5536 Рік тому

      I have the same problem, did you get yours to work ?

    • @wakeup5845
      @wakeup5845 Рік тому

      @@apostolosn5536 check that I commented

    • @wakeup5845
      @wakeup5845 Рік тому +1

      @@apostolosn5536 esp_now_peer_info_t peerInfo = {};

  • @lostboy_12
    @lostboy_12 2 місяці тому

    how to send "HELLO" message from one WG222 WIFI module to another on Arduino IDE?

  • @rafaeladrianmartinez1749
    @rafaeladrianmartinez1749 Рік тому

    Hello, I would like to know that I have to change the code so that only when the button is pressed the LED turns on and when the button is released the LED turns off. Thanks for the video, I look forward to your response!

  • @muhammadmudassir6343
    @muhammadmudassir6343 2 роки тому

    Sir could you plz tell us a bit about schematic means which configuration you used while attaching led means pull up or pull down or which resistance you used
    Thanks a lot

    • @utehstr
      @utehstr  2 роки тому

      The LED uses 330 ohm resistor.

    • @muhammadmudassir6343
      @muhammadmudassir6343 2 роки тому

      @@utehstr and what about button do you use as pull up or pull down?

    • @utehstr
      @utehstr  2 роки тому +1

      @@muhammadmudassir6343 pull down

  • @youssefyasser1929
    @youssefyasser1929 Рік тому

    Can I do this with esp node mcu 32s and arduino mega with wifif module

  • @zhambun
    @zhambun 2 роки тому

    Do they have to be in the same network to communicate with each other? Or is it connected to different networks?

    • @utehstr
      @utehstr  2 роки тому

      ESP-NOW connection is a direct connection between ESP devices, in this project it is ESP32. The way it works is similar to a bluetooth connection that requires "Pairing" between ESPs to be able to connect and communicate with each other. The connection is peer-to-peer. For more info see here: docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/network/esp_now.html

  • @leogarcia8222
    @leogarcia8222 Рік тому

    Great video! Just one question, How do I a add the esp_now.h library? I get an error saying there is no file directory. Can you please help me?

    • @utehstr
      @utehstr  Рік тому

      Make sure that you have selected the ESP32 board in the Arduino IDE.

  • @Leilektsoglou
    @Leilektsoglou Рік тому

    If we don't have view on the other side (receiver ESP32 board), how can we be sure that the led of the other side in deed has light up?

    • @utehstr
      @utehstr  Рік тому

      when the "receiver ESP32 board" has turned on the LED, make the "receiver ESP32 board" send a message containing the LED State to the Master / ESP32 sender.

  • @muhammadmudassir6343
    @muhammadmudassir6343 2 роки тому

    can you plz explain the connections as well thanks a lot
    which pins of esp32 did you use in this project

    • @utehstr
      @utehstr  2 роки тому

      For the pin used, it is very clearly written in the code that I share.
      #define LED_Pin 4
      #define BTN_Pin 15

    • @muhammadmudassir6343
      @muhammadmudassir6343 2 роки тому

      @@utehstr great this system working perfectly thanks a lot could you plz guide me a bit I would like to change the code like in this way as we press the button light glows and other wise remains off
      Thank you

  • @apostolosn5536
    @apostolosn5536 Рік тому

    Hi , I loaded the 1 way comms part of the program and set the sender to the MAC Address of the receiver but I get ...
    E(112) ESPNOW: Peer Interface is invalid
    Failed to add Peer.
    What can be the problem? I know that my ESP32 boards work because I tried them with the demo sketches include with the ESP32 examples and ther worked OK.

    • @wakeup5845
      @wakeup5845 Рік тому +1

      esp_now_peer_info_t peerInfo = {};

  • @aislanorberto9440
    @aislanorberto9440 9 місяців тому

    Cool! But how i do to send or recive any message both?

  • @hekk_tech5975
    @hekk_tech5975 11 місяців тому

    will it work with two raspberry pi pico w?

  • @chathushkaelectronics1152
    @chathushkaelectronics1152 3 роки тому

    sir mysql colom data displaya to nodemcu lcd display

  • @marioaristizabal7414
    @marioaristizabal7414 Рік тому

    Thank you very much for this video. I have a problem, the esp32 cant peer with the other. I have the same code as you. Any idea?

  • @chathushkaelectronics1152
    @chathushkaelectronics1152 3 роки тому

    Sir tell us how to connect 2 nodemcus together and display how to send and trace data eg = another nodemcu sensor displays the other nodemcu

    • @utehstr
      @utehstr  3 роки тому

      Have you watched this video to the end? I also demonstrate about it in this video.

  • @theprogrammer3376
    @theprogrammer3376 2 роки тому +1

    Will this work between other kinds of esp as well like esp8266 or esp32 cam

    • @movienino
      @movienino 11 місяців тому

      Maybe not with the esp32cam because data transfer is limited to 250Bytes/s

  • @TeguhItp
    @TeguhItp 5 місяців тому

    bang kalo modul nya pake esp8266 apanya yg perlu di ubah?

  • @yohaneskefi7198
    @yohaneskefi7198 6 місяців тому

    Bang , itu kalau salah satu esp di buat terhubung dengan wifi
    apakah masih bisa?

  • @430laavankumar8
    @430laavankumar8 Рік тому

    can the both esp32 be in different locations or they have to be placed nearby eachother.

    • @utehstr
      @utehstr  Рік тому

      Both esp32 can be placed in different locations, but of course within a certain distance.

  • @benakravishankar1003
    @benakravishankar1003 Рік тому

    I keep getting Error Sending data, please help

  • @GeremieKINKPOESSI
    @GeremieKINKPOESSI 3 місяці тому

    On peut avoir le code pour la connexion des deux ESP32 s'il vous plaît ?

  • @jaimearaujo5719
    @jaimearaujo5719 6 місяців тому

    Para adicionar mais botões e mais leds?

  • @rafaeladrianmartinez1749
    @rafaeladrianmartinez1749 Рік тому

    Very good video! Can you put the connection diagram of the circuit that you have in the video please, I await your response, thank you!

    • @utehstr
      @utehstr  Рік тому +1

      Thank you 🙂.
      Look in the video description, I've added a link to see the installation image.

  • @leonardo5854
    @leonardo5854 Рік тому

    Pakai board esp32 dev module sama doit esp32 devkit v1 beda ga ya atau sama aja?

    • @utehstr
      @utehstr  Рік тому

      Maksudnya ?

    • @leonardo5854
      @leonardo5854 Рік тому

      @@utehstr kan di board ada beberapa pilihan, kalo di video kan pakainya esp32 dev modole, board yang saya pakai doit esp32 devkit v1. Karena saya udh coba ngikutin seperti yg video tapi belum berhasil, keluarnya error sending data.

    • @utehstr
      @utehstr  Рік тому

      @@leonardo5854 maksud kamu di pemilihan board di arduino ide-nya ?

    • @leonardo5854
      @leonardo5854 Рік тому

      @@utehstr iya, ga jdi deh tiba" berhasil 😅, thank youu 🙏

    • @utehstr
      @utehstr  Рік тому

      @@leonardo5854 Ok 🙂

  • @AlexandreEglit
    @AlexandreEglit 2 роки тому

    Boa tarde.
    Prezado
    Tem como você fazer ou ensinar em um vídeo fazendo NodeMCU ou ESP32 como uma placa de portão inteligente com acionamento de motor e estados do fim-de-curso.
    Desde já lhe agradeço a atenção

  • @sachiramalinda8396
    @sachiramalinda8396 3 роки тому

    Its work or not work.

  • @adilshaa5222
    @adilshaa5222 3 роки тому

    Can wifi repeater be made with node mcu?

    • @utehstr
      @utehstr  3 роки тому

      Did you mean nodemcu esp8266 ?

    • @utehstr
      @utehstr  3 роки тому

      @@adilshaa5222 Yes, you can use ESP-Now with the ESP8266, but to do that with the program code in this project video, the code must be modified to match the ESP8266. It's too long if I explain in the comments column, so I suggest you to search on Google, many people have made tutorials about ESP-Now with ESP8266.

  • @vannnd17
    @vannnd17 2 роки тому

    bang kok saya coba muncul "error sendimg the data" terus ya?
    trima kasih tolong bantuannya

    • @utehstr
      @utehstr  2 роки тому

      coba periksa ulang MAC Address pengirim dan penerima.

    • @vannnd17
      @vannnd17 2 роки тому

      @@utehstr sudah bang tapi gatau tetep eror

  • @sachiramalinda8396
    @sachiramalinda8396 3 роки тому

    Sir i want to 6 clients and one server.

  • @diptanshumalviya7547
    @diptanshumalviya7547 3 роки тому

    INTRODUCTION :::::::::hello sir,I am making project on the multiple Node Mcu esp32 connecting via Mac Address . As per sir, Your Instruction, I have done the coding part and In my project sir, I want to use 30 Gpio pin for one of the node Mcu, So In One Node Mcu the 30 gpio pin is not possible, then I have connected to the Arduino Mega . I Node Mcu and Arduino Mega is connected via SCL AND SDA.That is till done sir.
    PROBLEM (1) : Sir , I have Connected One Node Mcu(with Arduino Mega) to another Node Mcu via Mac Address. I am using the Arduino Mega For GPIO pin, When done the programming it works perfectly but in the middle of running , node mcu stops. giving some decoder Eror something else . I Don't know what to do next?
    PROBLEM (2) : Can you explain sir what is peerInfo and what is channel and if want to make multiple communication via mac address do i Want to change channel?? Please Explain
    I will be greatful for you if you answer. Is there any Media Handler which connect you . send the code?

  • @ArisMunandar-xz5fb
    @ArisMunandar-xz5fb 2 роки тому

    Bang, Jarak antar modul maksimalnya berapa meter?

    • @utehstr
      @utehstr  2 роки тому

      Saya belum pernah uji, tapi dari beberapa artikel yang saya baca, kalau di lapangan terbuka atau di area terbuka bisa sampai 200 meteran kurang lebih.

  • @sm_hasib
    @sm_hasib Рік тому

    Does it work wirelessly?

    • @utehstr
      @utehstr  Рік тому

      Yes, it works wirelessly.

  • @pwtechno1521
    @pwtechno1521 3 місяці тому

    Please help!
    ESPNOW : Per interface is invalid
    Failed to add peer
    >>>> Send data
    Error sending the data.
    Please give me solution

  • @jaringjaring
    @jaringjaring 3 роки тому

    ESP NOW ini bisa dipakai di esp8266 gk bang?

    • @utehstr
      @utehstr  3 роки тому +1

      bisa, tapi kalau menggunakan kode program pada video ini, ada yang harus diubah, kalau memang mau pakai esp8266, coba browsing aja, udah banyak kok yang share untuk esp-now esp8266.

  • @ggermany2123
    @ggermany2123 8 місяців тому

    9:32
    14:37

  • @prashanthprashanth7418
    @prashanthprashanth7418 Рік тому

    How to contact you

    • @utehstr
      @utehstr  Рік тому

      contact me via e-mail: teamuteh@gmail.com