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.
*********************************************** - Наука та технологія
Your Knowledge, Help me for started in ESP NOW alot Thank you... ขอบคุณครับ from Thailand ...
Eres un buen aporte para la sociedad. Muchas gracias.
justo lo que necesitaba, gracias por el aporte.
The best video step by step Esp-now
Thank you 🙂
Sathyam
@@utehstr Will it work between esp32 cam and esp32 !?!
bravo , molto interessante questo vidotutorial
Grazie 🙂
Belle explication! Merci....
👍🙂
lot of thanks, best video.
👍🙂
Super tutorial
Thank you so much!
You're welcome 🙂
What difference should i make in this code to work with esp8266 ?? Please respond
Great 👍
Thank you 🙂.
Very good.
Thank you🙂
super 👍
Thank you 🙂.
Can I make quest like controllers (2 VR controllers) with this esp NOW modules.
Sorry I am newbie to electronics
chaneel favorit ane ini ....chat di ig lancar thanks bang ,,jadi termotivasi buat ane belajar
Terima kasih :-)
Maaf jika saya lambat untuk membalas email atau DM di IG, karena saya juga punya pekerjaan lain selain mengelola channel ini :-)
@@utehstr siap komandan
gooooood nice!!!
it's work in esp32 and esp8266 or just esp32 ?
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.
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
¡Atención! Deben revisar la nueva firma de devolución de la llamada, se ha actualizado.
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)
👍
Thank you 🙂
Thanks man 👍
You're welcome🙂.
Sir I do same but my led is flickering and do malfunctioning while execution
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!
You're welcome 🙂.
Sorry I don't understand what you mean. Can you explain in more detail.
how to know the problem of connection according to message :"Error sending the data"
SHOW 🇧🇷👏👍🇧🇷👏👍
Hello, Thats an amazing video! can we send the data without clicking the push button ? like sending data continuously? please help me out
You can send data without clicking the pin but not continuously. ESP NOW protocol can only send 250 Byte packet at a time.
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
I have the same problem, did you get yours to work ?
@@apostolosn5536 check that I commented
@@apostolosn5536 esp_now_peer_info_t peerInfo = {};
how to send "HELLO" message from one WG222 WIFI module to another on Arduino IDE?
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!
Uteh Str
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
The LED uses 330 ohm resistor.
@@utehstr and what about button do you use as pull up or pull down?
@@muhammadmudassir6343 pull down
Can I do this with esp node mcu 32s and arduino mega with wifif module
Do they have to be in the same network to communicate with each other? Or is it connected to different networks?
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
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?
Make sure that you have selected the ESP32 board in the Arduino IDE.
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?
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.
can you plz explain the connections as well thanks a lot
which pins of esp32 did you use in this project
For the pin used, it is very clearly written in the code that I share.
#define LED_Pin 4
#define BTN_Pin 15
@@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
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.
esp_now_peer_info_t peerInfo = {};
Cool! But how i do to send or recive any message both?
will it work with two raspberry pi pico w?
sir mysql colom data displaya to nodemcu lcd display
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?
Of course, I changed the MacAdress.
esp_now_peer_info_t peerInfo = {};
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
Have you watched this video to the end? I also demonstrate about it in this video.
Will this work between other kinds of esp as well like esp8266 or esp32 cam
Maybe not with the esp32cam because data transfer is limited to 250Bytes/s
bang kalo modul nya pake esp8266 apanya yg perlu di ubah?
Bang , itu kalau salah satu esp di buat terhubung dengan wifi
apakah masih bisa?
can the both esp32 be in different locations or they have to be placed nearby eachother.
Both esp32 can be placed in different locations, but of course within a certain distance.
I keep getting Error Sending data, please help
On peut avoir le code pour la connexion des deux ESP32 s'il vous plaît ?
Para adicionar mais botões e mais leds?
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!
Thank you 🙂.
Look in the video description, I've added a link to see the installation image.
Pakai board esp32 dev module sama doit esp32 devkit v1 beda ga ya atau sama aja?
Maksudnya ?
@@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.
@@leonardo5854 maksud kamu di pemilihan board di arduino ide-nya ?
@@utehstr iya, ga jdi deh tiba" berhasil 😅, thank youu 🙏
@@leonardo5854 Ok 🙂
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
Its work or not work.
Can wifi repeater be made with node mcu?
Did you mean nodemcu esp8266 ?
@@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.
bang kok saya coba muncul "error sendimg the data" terus ya?
trima kasih tolong bantuannya
coba periksa ulang MAC Address pengirim dan penerima.
@@utehstr sudah bang tapi gatau tetep eror
Sir i want to 6 clients and one server.
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?
Bang, Jarak antar modul maksimalnya berapa meter?
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.
Does it work wirelessly?
Yes, it works wirelessly.
Please help!
ESPNOW : Per interface is invalid
Failed to add peer
>>>> Send data
Error sending the data.
Please give me solution
ESP NOW ini bisa dipakai di esp8266 gk bang?
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.
9:32
14:37
How to contact you
contact me via e-mail: teamuteh@gmail.com