Это видео недоступно.
Сожалеем об этом.
ESPNOW RC Car using ESP32| Joystick Remote Control 👌🏻
HTML-код
- Опубликовано: 17 авг 2024
- In this video we are going to make RC Car using ESPNOW Protocol.
We will use transmitter created using Analog joystick and esp32 board to send car control commands.
Transmitter and receiver esp32 modules will communicate using ESPNOW protocol.
Car will be controlled in 2 modes, simple movement and throttle+steering mode.
I have explained in details each step along with code.
👉 Please subscribe: www.youtube.co...
👉 Transmitter Components:
✅ ESP32 module amzn.to/3zf7OZa
✅ Analog Joystick amzn.to/4eAxQ98
✅ 5V DC Supply amzn.to/45CnzWf
✅ Breadboard amzn.to/3sXgZqC
✅ Double sided tape amzn.to/3KSJdfa
✅ Jumper wires amzn.to/3heE3Pa
👉 Receiver Components:
✅ 2WD Car Kit amzn.to/3U8BVqK
✅ ESP32 module amzn.to/3zf7OZa
✅ L298N motor driver module amzn.to/3hfLIwJ
✅ 7-12 V DC Battery (in our case lipo 2s battery) amzn.to/4cxwz0Q
✅ Double sided tape amzn.to/3KSJdfa
✅ Jumper wires amzn.to/3heE3Pa
👉 Shorts Channel :
/ ujwalnandanwar
👉 Code and diagram:
github.com/un0...
👉 ESP32 board URL:
dl.espressif.c...
👉 Wi-Fi Robot Tank
• WiFi Robot Tank | ESP3...
👉 Elevating Car
• Elevating WiFi Car usi...
👉 Camera Car
• Surveillance Car using...
👉 Wi-Fi Car
• Smartphone controlled ...
👉 Hand Gesture controlled car
• Hand Gesture Controlle...
👉 Bluetooth car
• How to make Bluetooth ...
👉 Obstacle avoiding car
• Arduino Obstacle Avoid...
👉 Arduino RC car using nrf24l01+ module
• Arduino RC car using N...
👉 Watch more videos:
/ hashincludeelectronics
👉 Follow us on Instagram:
/ hashincludeelectronics
⏱Chapters
00:00 Intro
00:56 Transmitter Components
01:16 Transmitter Connections
01:52 Transmitter Code Explanation
03:40 Receiver Components
04:06 Car Assembly
05:00 Receiver Connections
06:13 Receiver Code Explanation
08:24 Demo
09:38 Important Points
#esp32 #espnow #hashincludeelectronics
Great tutorial as always Sir. I got it working without much effort. I made a mistake in ordering the ESP32 with 30 pins instead of 38. The 30 pin is not breadboard friendly, so I had to get 2 new boards with 38 pins. It was worth it! Thanks!
This is awesome news 👏🏻. Nicely done ✅ . It’s always good to get the exact components shown in video because those are well tested as per need and it reduces the chances of errors. 👍🏻
Cool video. I'm pushing myself into something like that. I have a LEGO Technic setup for the first launch.
Nice 👍🏻👏🏻
It will be more fun if you add 1 push button & MPU6050 module on TX to activate gyro mode.
Nice idea . You can give it a try meanwhile 👍🏻👍🏻
I got a question, I was wondering if there anyway to add led light to the car for example, when the car go forward the led turn green, but when the car go back, the led turn red, if so what the code to add to this
Yes it can be easily added . You can add the code inside rotate motor function where we move the car forward , turn on the green LED . Else if moving backward turn on the red led . 👏🏻👍🏻
Hey, buddy. I have a question, I hope you can solve it. My problem is that we did all the connection well and the programming well but apparently we did not connect the esp32 receiver to the wifi of the transmitter and that is why it does not work. Will you know how to connect the two esp? or at least how to see if communication is being effective?
Yes please
If you know how to use serial monitor then try to connect receiver to laptop and open serial monitor . You can see values received and printed on monitor screen .
can i use esp8266 instead of esp32 and what will the operating range of the car.
I would suggest to use only esp32 module to not face any issue 👏🏻👍🏻
Compilation error: 'ledcSetup' was not declared in this scope, what should i do ?
Please install 2.0.16 version of esp32 board 👍🏻👏🏻
Nice
Just a query
Program for three Wheeler will be same as that of 4 Wheeler
Both motor of one side connected together in same port of motor driver
Yup its exactly same👍 No change needed anywhere.
Does anybody have a problem Peer invalid ? i have the answer... comment and LIKE here.. i will help..😉
Thanks for sharing this . Yes please help if anyone face such issue 👏🏻👍🏻
@@hashincludeelectronics its in the code declare the esp_now_peer_info_t peerInfo; outside the setup..
While transmitting it says message failed. Can u please explain??
Thanks for the video. I have one comment and one question. On the connection table you are connecting the 5V of joystick to 3.3V of Esp32. Is that correct? Also, are you connecting the pins of joystick to analog pins or digital pins? Thanks in advance!
Yes everything is correct and working 👍🏻 Joystick is connected to esp32 pins which can act as analog pins as well .
Sir can we use esp 8266 board instead of instead esp32
I have not tested it with esp8266 . So I would recommend to use esp32 to not face any issue 👍🏻👏🏻
Can you make a esp now remote with two joy stick? I will use it for a macanum wheel car
@@NanonplayZ you can check my video on RC tractor using ESPNOW where I have used 2 joysticks 👍🏻👏🏻
@@hashincludeelectronics thanks I didn't see it before, so now I just have to change how the code function
@@NanonplayZ exactly 👍🏻
Min, I want to ask about the coding for analog and which car
Instead of using joystick can I control it with my smartphone via Wi-Fi or bluetooth?
Yes you can . Please check my other car videos where I am using smartphone app .
Hey, I need help with the code. I'm getting "Error sending the data" from the serial monitor. I'm using a Mac computer, 30pin esp32 with a 2.3.2 version of Arduino IDE.
I saw you mention to someone to "memset peer info variable" but I dont entirely understand what that means and where to fix that in the code. I'm new to using bluetooth for arduinos so help would greatly be appreciated.
Also, for the receiver, I connected the pins to different inputs on the esp32:
EnA=D14
IN1=D27
IN2=D26
IN3=D25
IN4=D33
EnB=D32
Would that pose as a problem?
ALSO, how could i go about adding buttons to control a sg90? Thanks!
You need to use that memset above the memcpy code . 👍🏻👏🏻
Très belle présentation....Merci beaucoup.
Thank you very much 👏🏻👍🏻
Thanks for good instructional video. Two comments please. Firstly, please slow down your speech as its difficult to follow. Secondly, Chassis is pronounced "Shassy"
Thank you very much for checking out the video 👍🏻. Sure will take care of it 👏🏻
My drill has a problem why my car won't move. The coding was uploaded successfully and there were no errors, I followed the video and changed the MAC but it still doesn't work
Which version of Arduino ide are you using ?
@@hashincludeelectronics arduino ide new version 2.2.1
I've followed your Instagram and sent you messages. I need guidance bro
can any body explain how to use this with a L298 mini? it hasnt got enable pins on this board.
Unfortunately I am not sure about mini module . Can someone please help here ?
@@hashincludeelectronics hey i found out it works! great project!
Good job, thanks for sharing
Thank you 👏🏻👍🏻
Could you demonstrate a version of this that uses two control sticks & dual throttle? I like the throttle mode, but the turning isn't very sharp, because one wheel is stationary, when turning. In the other mode, you don't have control over the speed. Two sticks would allow for more versatile control. Also, could you demonstrate using the joystick button to turn on an LED lamp? I like the video. Thank you.
You can refer my other videos for this set up 👍🏻👌🏻
@@hashincludeelectronics what other video? the only other video i see with "dual joystick" for tank is ps4 controller which isnt relevant. Am i missing a video with 2 joystick espnow tank?
@@hecticaperture there is a video of transmitter receiver using ESPNOW and 2 joystick . You can refer that and see if that’s useful. 👍🏻👏🏻
Error sending the data...on serial monitor...and why there is STA mode in both transmitter and receiver code?
Espnow protocol needs WiFi to be just on so we have put both the modules in STA mode . Is your project working ? Or you are facing any issue ?
Hi friend, thank you for your detail guidance.
I'm making the same thing as you. But I faced one probem that my two ESP32 aren't having communication between each other...
Because I'm trying to make this in my school, I only have to make it by Lolin D32 which has 32pins hahahaha,,,
The point that I found is,,,
Because the this only have 32pins
so each pin's functions are little different with yours. Like, Lolin D32 pin-16, pin-17 don't have communication function.
and pin-1,pin-3 has that function.
So my question is,,,
If I change the pin position to 1&3 and change the pin numbers in the code, Do you think it will work properly?
I will be glad if I can hear your opinion :)
Thanks.
It should probably . Also which Arduino IDE version are you using ? If it’s new Arduino IDE 2 then you need to make one small change in code . You need to do memset for peerinfo structure . Please check for this on internet 👍🏻👏🏻
@@hashincludeelectronics Wowwwwww,, Thank you for your quick reply !!
I'm using 1.0.6 hahaha
The same version as you.
And the memset means this code?
" memset(&peerInfo, 0, sizeof(peerInfo)); " I found this on your comment page at here
So you are meaning that I have to put this code above the memcpy sentence which is in the transmitter code right?
Or are there more things that I have to change including this ? Then I will search about it more...!
@@user-kv6hr3yg6z I think it’s not needed as you are using old IDE only . Ok make the changes as per you suggested for pins in code and try 👍🏻👏🏻
@@hashincludeelectronics
Got it 👍👍 I will just change the pin numbers in the code
Thank you so much for helping me!!
I will try that and tell you if I success 👊👊
Nice Projects!
I am using mx1508 Motor driver, which does not have en pins, so can you suggest changes required in the code, I also want speed control means I want control the motor with PWM signal.
Unfortunately I am not sure about this driver . You can use L298N driver and use PWM with it 👍🏻👏🏻
@@hashincludeelectronics Ok, Thanks for reply!
Nice video, you just got yourself a new follower.
And please, are the esp32 the same thing or different
Thank you for checking out the video and following 👍🏻 I did not get your question . Could you please elaborate ?
You put there esp32 transmitter and receiver, I don't know if they are two different circuits or they are the same.
@@florenceede2397 those are same esp32 module .
@@hashincludeelectronics Thanks a bunch 👍😁. Please one more question. Can the Arduino joystick control a car with four wheels
@@florenceede2397 just saw this message . Yes it can control 4 wheels car as well 👍🏻👏🏻
Good Tutorial., We are doing a world-wide competition, We are using ur code but it isn't working, Can u please assist us by sending the correct code
Thank You..If u reply
That’s really good news that the code is being used for such competition👏🏻👍🏻. However what issue are you facing ? Also which version of Arduino IDE are you using ?
@@hashincludeelectronics 2.3.2 , Latest Edition
@@hashincludeelectronics The Code isn't sending data properly..The other espnow led activities are working
@@CreativeDude9269 I had some issues with this code, but after moving this line: "esp_now_peer_info_t peerInfo;" out of the void setup() to just under the line with: "PacketData data;" it worked for me
Like this:
Line
17 PacketData data;
18 esp_now_peer_info_t peerInfo;
hola estoy tratando de replicar tu proyecto pero he tenido ciertas dificultades, no se si tu puedas ayudarme?
What issue are you facing ? 👍🏻👏🏻
@@hashincludeelectronics
EXCUSE MY BAD ENGLISH, I DO THE THING ABOUT OBTAINING THE MAC OF THE ESP32 MODULE AND I GET A MAC AT 00:00:00:00:00
It is somehow not working. I followed all of the instructions correctly but it just says Error sending the data and no signal on the reciever side.
Please help me fix this issue quickly
What Arduino IDE version are you using ?
I have a problem, with the receiver, first I upload the code for the MAC ad and copy it to the transmitter,
on the receiver then I upload the code, but I always get this boot error... at the moment I only have the card attached to the computer, no motor or pin connected
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078000,len:13924
ho 0 tail 12 room 4
load:0x40080400,len:3600
entry 0x400805f0
Please check the video slowly and carefully for any missing step . Don’t worry it will work 👏🏻👍🏻
Can I also connect a powerbank as a Power-supply for the car?
It should provide 7-12 v 👍🏻👏🏻
Thanks for your good video
Thank you very much 👍🏻
Every worked great except when i try to reverse only one wheel reverses. i tried different ESP 32, different drivers and different motors. all same behaviour. any ideas or pointers in the right direction? the only changes i did to the code was the mac address on the transmitter. im on 1.0.6 as is your video
Check the polarity of wires of your motor and driver . 👏🏻👍🏻
@@hashincludeelectronics WHat?!?! did you read my question? Does not seem like it.
OVIOUSLY if the car goes in all oterh directions correctly, how is the polarity relevant?
These answers make me think that this might be your own content nor designs and you might not be too knowledgeable.
Completely understandable; where can i find original author to ask proper questions?
EDIT: just tested it with different esp and l298n and same behavior. whos author of code so i can ask them proper questions?
@@hecticaperture I might not have understood your question properly. But I would suggest to follow the exact steps in video and your project will work. 👍🏻👏🏻. I have taken good care while making this project and write a code for it . So please spend some more time on video and you will understand where can be the mistake . Good luck 👍🏻 .
@@hashincludeelectronics Oh Ok, so how can I fix copy paste? the code was untuched, the pins are identical. How can there be a mistake if this is an exact copy?
@@hecticaperture very strange to me too . So you are saying the wheel moves in forward direction and the same does not move in reverse ? Can you try replacing that motor ?
Hey man i have a problem, hope can hear your response
I'm using an ESP32 usb type C code cable, i have followed your instructions, i changed the MacAdress to suit the receiver's aswel, i don't know why it still having "Error sending the data" in the serial monitor, i have a 4-1.5v-battery case connect to the L298N and the receiver esp32, the transmitter esp connected to laptop. The connected Pins are excactly the same as yours
Please help me, thank you.
Which Arduino IDE version are you using?
@@hashincludeelectronics the newest one
@@JBw. ok in that case you need to make one change in code . You need to add memset above memcpy. Please check the comments for solution 👍🏻👏🏻
@@hashincludeelectronics hey bro i found out that the error came from the peer matching, the duo esp cannot match the peer, it also shows in the serial monitor "invalid peer...", however i dont know how to fix it, chat gpt said they doesnt match the wifi channel?
@@hashincludeelectronicshi, i want to inform you that i have found the bugs and the car works perfectly, i want to thank you for helping me come up with the idea of the project and help me solve the previous issues
Much appreciate
Code is error sending data. And I am using Arduino ide 1.8.18 . Why is not working
You need to memset the peer info variable . Please check for more details on comments section or on internet 👍🏻👏🏻
can i use esp 8266 instead of esp 32
I have not tried it . I would suggest to use esp32 only to avoid issues 👍🏻👏🏻
Instead of using GPIO 32 and 33 for the axis, I'm trying to use GPIO 2 and GPIO 4. Transmitter doesn't read any data. Any idea?
Yes that's true. ADC2 related pins does not work when wifi is used. So GPIO2 and 4 are not available for Analog read because these pins uses ADC2 channels. GPIO32 and 33 uses ADC1 channel so it works.
@@hashincludeelectronics Thanks, which I had knows before making pcb's hehe
@@samvanroy4921 that’s fine 😜 .you can create new PCBs and good thing is your project will work 👍🏻
what is the maximum distance able to connect with this remote to the car?
It is said to cover distance upto 200 ft. But I tried for 60-80 ft 👍🏻👏🏻
Does this also work for ESP32 with 30 pins?
Yes it will 👍🏻👏🏻
@@hashincludeelectronics the trransmitter doesnt connect to the receiver. ESPNOW: Peer interface is invalid
@@fishsticks6611 which Arduino IDE are you using ?
Sou do Brasil e curto muitos seus vídeos, parabéns!
Thank you 👍🏻
How about using using NRF24l01 + module and how to get the address of receiver??
I have replied on other message 👍🏻
Min, what do we do if we use the 38 pin version for the ESP?
please help min
This is 38 pin esp32 👌🏻👏🏻
oh thanks you min
For the Liberty, what do you need to install?
Please help min
@@sarihardianti9903 I would suggest to follow the video slowly and carefully for all the steps . All the details are given in video 👍🏻👏🏻
@@hashincludeelectronics If the text appears leaving hard resetting via RTS pin
can i use esp8266 same code and project ?
I have not tried with esp8266. I would recommend to use esp32 to not face any issue 👍🏻👏🏻
I really love your videos
I would like to know if I can get the link for the esp 32 from AliExpress because I found different types and don't know right one to buy
Thank you very much 👍🏻
Yeah you can buy from Amazon. It’s not that costly . Check for esp32 38 pins
The problem is that amazon don't ship products to my locality. When the product arrives, I still have to way-bill it
@@9obaino oh ok . Then you can check for esp32 38 pin module on any available website .
Hi great project
Can u make the same project but for 4 wheel drive please
Thank you
@@user-bq5yo5bq9y you can use 4wd in the same project 👍🏻👏🏻
Can u please provide the code for it and thank you for the reply
@@user-bq5yo5bq9y everything is same for 2WD and 4wd . Just connect 2 additional motors each side 👍🏻👏🏻
Oh great thank you so much 😊😊
Sorry I have been disturbing u from so long I have just one last question so if I want to add the a feature where I can also control the car with-my phone and with the joystick and also with the esp32 cam so should I just add the code for the surveillance car and this project code together will it work
hey so I came up with a problem where it keeps saying that it failed to add peer, please help
May be the MAC address is wrong . Please check the video slowly and carefully for any missing step 👍🏻👏🏻
Hello, where can I find the [Wifi.h] library in the program?
You need to install the esp32 board as shown in video . It will automatically install WiFi library. 👍🏻
@@hashincludeelectronics I have found the reason. I updated the esp32 library to the latest version. That is why the compilation failed。
@@ZhaoGongZiDepcb awesome 😎
I wonder what is the maximum possible distance for proper control
It should go around 100ft 👍🏻👏🏻
Cool! I wonder if there is any possible plan to make it up to around 100m(about 330ft) I really need this information for my high school homework. Thanks
@@God-empty not sure if it can reach that range . However if you need more range then you can use nrf24l01 module . You can check my videos on that 👍🏻👏🏻
Got it
sir,
can i use this code for esp8266
what librarys need to download
Please use esp32 only to avoid issues 👍🏻👏🏻
@@hashincludeelectronics sir I had only esp8266 modules tell me how to use
Can you make same remote for turn led on and off ?
Yes you can check my other video on espnow transmitter and receiver 👍🏻
can u make ps5 like game controller with esp now is it fast enough ?
You can check my video on espnow transmitter receiver for reference . That will be helpful to you 👍🏻👏🏻
can we use arduino board instead of esp32?????
No . We need esp32 only 👍🏻👏🏻
Hey man, mind for a help?
i'm getting "error sending the data" on the controller serial. I did got the mac adress right, don't know what is happening
Info: both esp32 are 30 pin. can't afford a 38 one now so i was wondering if there is any solution
Do you receive data at receiver ? Please check that . Sometimes we get this error but it’s fine .
@@hashincludeelectronics Receiver's serial is returning this:
load:0x40080400,len:3600
entry 0x400805f0
E (178) psram: PSRAM ID read error: 0xffffffff
I am also getting this error i cant not fix it
@@thanujalakmini7643 which version of Arduino IDE are you using ?
@@hashincludeelectronics I AM using esp32 and its not sending nor receiving data what do id o
i have done exactly the project exactly as it is
done in the video still its giving error for sending data
Which Arduino IDE version are you using ?
@@hashincludeelectronics old one
@@sumeetadsul5014 old one but which version exactly ? Also are you receding data at receiver side by any chance ?
@@hashincludeelectronics 1.8.19 version and i am not recieving data on reciever side😅
Can you make this on 6 or 8 channel??
You can check my video on 12 channel transmitter receiver using ESPNOW for this project 👍🏻👏🏻
nice!
Thank you! Cheers!
bro instead of joystick can you use a gesture/motion sensor and control the car.
if possible please make it.
You can check my video on Gesture Controlled Car. Its already there on channel.
@@hashincludeelectronics yes I saw it ,it is on Arduino,can't we make using esp32(espnow).
@@roofpiece5878 yes we can make it . Just need to interface the mpu6050 with esp32. I can try it later . Meanwhile you can check more on this on how to use mpu6050 with esp32👍🏻
@@hashincludeelectronics ok thank you bro.❤️🤝
Hey can I use node mcu esp8266 instead of esp 32 ?
Yes you can but make sure you use the available pins on esp8266 .
@@hashincludeelectronics okay bruh thank you very much:)
@@MegamindCreation you are welcome 👍🏻
thanks
Welcome 🙏
If i use esp 8266 on receiver side, can it Will work?
Thanks for checking out the video 👍🏻 I have not tried esp8266 in this project . The motor pins used in code are different and not available on esp8266. Also not sure if pwm signal function will work . You can try it and let us know if it works .
Bro its showing error sending data.. How to solve
Which Arduino IDE version are you using ?
please send ESPNOW and WIFI library
You need to install esp32 board which will automatically provide these libraries 👍🏻👏🏻please check the video for this step .
Can i apply same circuit for rc boat
Yes you can . It will work 👍🏻👏🏻. And nice idea 👌🏻
thanks, how can use esp8266-01 against esp32
Thanks for checking out the video 👍🏻. I have not tried this esp8266 module . I would suggest to use esp32 so that you don’t face any issue and your project works 👏🏻👍🏻
Hi bro we can use esp8266 wifi module to this project ?
That’s a good question . Let me check and confirm on this . 👍🏻
I checked on internet and yes we can use it with esp8266 . Please make sure to use the pins for motors as per esp8266 in the code .
@@hashincludeelectronics The esp8266 only has one analog pin, therefore you can't use it.
@@eclecticlife That’s good observation. Yes esp8266 has only one analog input pin . 👍🏻 hence we can not use esp8266 for this project . Thanks John 👏🏻👏🏻
Is the rocker potentiometer 10K?
Yes 👍🏻
Which is your usual communication software, can I add you?
Sorry I did not understand you
@@hashincludeelectronics Which country are you from?
@@ZhaoGongZiDepcb I am from india 🇮🇳
@@hashincludeelectronics nice to see you. Iam from China,what is your email,i have a question i want to ask you
@@ZhaoGongZiDepcb un0038998@gmail.com
I'm having an error on peer-to-peer connection can u please help me out with your code ?
What error do you get?
@@hashincludeelectronics in serial monitor its shows me error sending the data
@@omprajapati9486 that’s fine . Check at receiver end . Connect serial monitor at receiver side and see if you receive data . Transmitter will show that error but don’t worry . We need to check at receiver end .
We can do also wheelie with this car 😅
hahaha 😉
Possible to do 2 joystick controller ?
Yes its possible. You can check my other videos where I have used 2 joysticks and add the handling in this code. Or wait for sometime and you will get a video on it.
Can i use esp8266 nodemcu board
Please use esp32 only in this project . I have not tried esp8266 . 👍🏻👏🏻
To make this project I bought 2 esp 8266 in miss understood
Now please make a video on esp 8266 with this project
I would suggest to buy esp32 module only to avoid any issue while making this project . These type of projects are complicated and requires sufficient time , research and testing . 👍🏻👏🏻
could i use 2 esp8266 board
I believe espnow works on esp8266 as well . Give it a try. You might have to change the pins as per esp8266.
Is there a way to use the controller not plugged into the computer?
Thanks for checking out the video 👏🏻. However we don’t connect controller to computer .
Can one Arduino joystick control a car with four wheels
Yes you can use four wheels as well in this project . Just connect right side 2 wheels together . And same for left side .
Thanks a lot
@@florenceede2397 no problem 👍🏻
can we use esp 8266 instead?
I would suggest to use esp32 in this project to not face any issue 👍🏻👏🏻
@@hashincludeelectronics Thank you so much.🙏🙏
Plz tell which port to select
Please help me
You need to select the port which is used for your module when you connect it . It will be shown in Arduino IDE.
@@hashincludeelectronics I tried all ports it is not working brother
Can you please make a car using funding joystick?
What is funding joystick?
@@hashincludeelectronicsArduino joy stick shield
esp powered rc car swarm when?
That is some awesome idea 💡 Thanks and I will definitely try to create this 👌🏻
can 30 pin esp32 be used
Yes you can use . But check the pins accordingly and make changes in code .
Thanks
Error sendind data, i did everything right. Pls help
Which Arduino IDE version are you using ?
@@hashincludeelectronics latest version, do i need to change it ? 2.3.2 i think
@@cengizhancelik3115 ok . You need to make one change in code . There is something related to memset the structure . Please check the comment section or on the internet . 👏🏻👍🏻
@@hashincludeelectronics bro i am at beginner level, pls can you be more spesific what should i do. TY FOR YOUR ANSWERS 🙏🏻
@@cengizhancelik3115 ok . Please add this line above memcpy in the code .
memset(&peerInfo, 0, sizeof(peerInfo));
How far is the max?
I tested around 70-80 ft . But it’s said that it can go further .
@@hashincludeelectronics ok
@@hashincludeelectronics I have hc05, it can be set, only when AT, after that it can't, just AT
@@hashincludeelectronics please help me 😭😭😭
@@KnightBear123 this project does not use hc05 module.
im getting failed to add peer error how to fix
Please make sure you follow all the steps in video . Check the MAC address properly 👍🏻
I want esp8266 code bro
I don’t have esp8266 to test so can’t provide it 👍🏻👏🏻
how about range?
I tested for 60-80 ft range .
@@hashincludeelectronics okay, thank you.
Bro how to increase the range?
The range of this ESPNOW protocol is limited . How much range do you need ? If you need range in km then you need to use other long range modules 👍🏻👏🏻
@@hashincludeelectronics how much this gives 50m? I'm just working on a prototype that's why I don't need range in km
@@MegamindCreation it should work . Try it 👍🏻👏🏻
@@hashincludeelectronics hey bro can use the same code with eps8266?
I did all what u did but it still does not work
What error do you get ? 👍🏻
Where can I download esp_now.h ?
You don’t need to download it . Just install esp32 board
How to install esp32 board?
@@cipriancolisnicencu2954 check the video . it’s there
What type of board did you use in the video? Can I use NodeMcu or Wemos D1?
@@cipriancolisnicencu2954 it’s ESP-WROOM-32
I got 'error sending the data'
That’s fine . Please check if you are receiving the data .
I FACE ISSUE
Succes: Initialized ESP-NOW
E (136) ESPNOW: Peer interface is invalid
Failed to add peer
Error sending the data
Error sending the data
Please check the connections again .
which bloody port
Unfortunately I did not get your question 👍🏻
Plz help bhai
What help do you need ?
@@hashincludeelectronics Bhai board pe upload hi nhi ho rha code
@@dhruvmittal6151 check the steps in video for uploading code . What error do you get ? Check for that error on internet for more information. If you get error while uploading then send me that error and we will check .
@@hashincludeelectronics It is not showing esp connected to upload the code
@@dhruvmittal6151 try using different cable or USB port .
🆒 Excellent video! Thanks from whole 🇵🇰. If you ignore me, you'll loose a good follower.
Thanks for checking out the video 👏🏻👍🏻
You mean thanks but no thanks?
Any ways to contact you
You can send me an email . Please check the channel description for email id 👍🏻👏🏻
@@hashincludeelectronics ok
Hey,buddy. Can you help me? I have some problems : after flash your code for ESPNOW_Car_Transmitter :
21:36:52.164 -> E (178) psram: PSRAM ID read error: 0xffffffff
21:36:52.287 -> Succes: Initialized ESP-NOW
21:36:52.287 -> E (314) ESPNOW: Peer interface is invalid
21:36:52.287 -> Failed to add peer
21:36:52.287 -> Error sending the data
21:36:52.779 -> Error sending the data
21:36:53.283 -> Error sending the data
21:36:53.792 -> Error sending the data
21:36:54.299 -> Error sending the data
21:36:54.788 -> Error sending the data
21:36:55.279 -> Error sending the data
21:36:55.798 -> Error sending the data
21:36:56.274 -> Error sending the data
21:36:56.791 -> Error sending the data
21:36:57.297 -> Error sending the data
21:36:57.773 -> Error sending the data
I checked everything. My board is 30 pins and the project has 38 pins, I checked the date, the pins are in order. Power : Transmitter from a laboratory power supply, receiver from two 18650 batteries. There is no connection to the receiver. The code loaded without problems and errors. What's wrong? Thanks
Could you please try 38 pins ? Not sure why you are getting this error with 30 pins .
@@hashincludeelectronics thanks. I buy soon.
bro its was error on reciver code its sayledcSetup want not declared in this scope C:\Users\User\AppData\Local\Temp\.arduinoIDE-unsaved202468-8980-19kg884.h5mg\sketch_jul8a\sketch_jul8a.ino: In function 'void setUpPinModes()':
C:\Users\User\AppData\Local\Temp\.arduinoIDE-unsaved202468-8980-19kg884.h5mg\sketch_jul8a\sketch_jul8a.ino:161:3: error: 'ledcSetup' was not declared in this scope
161 | ledcSetup(rightMotorPWMSpeedChannel, PWMFreq, PWMResolution);
| ^~~~~~~~~
C:\Users\User\AppData\Local\Temp\.arduinoIDE-unsaved202468-8980-19kg884.h5mg\sketch_jul8a\sketch_jul8a.ino:163:3: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
163 | ledcAttachPin(enableRightMotor, rightMotorPWMSpeedChannel);
| ^~~~~~~~~~~~~
| ledcAttach
C:\Users\User\AppData\Local\Temp\.arduinoIDE-unsaved202468-8980-19kg884.h5mg\sketch_jul8a\sketch_jul8a.ino: In function 'void setup()':
C:\Users\User\AppData\Local\Temp\.arduinoIDE-unsaved202468-8980-19kg884.h5mg\sketch_jul8a\sketch_jul8a.ino:184: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]
184 | 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\User\AppData\Local\Temp\.arduinoIDE-unsaved202468-8980-19kg884.h5mg\sketch_jul8a\sketch_jul8a.ino:1:
C:\Users\User\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-bd2b9390ef\esp32/include/esp_wifi/include/esp_now.h:157:54: note: initializing argument 1 of 'esp_err_t esp_now_register_recv_cb(esp_now_recv_cb_t)'
157 | esp_err_t esp_now_register_recv_cb(esp_now_recv_cb_t cb);
| ~~~~~~~~~~~~~~~~~~^~
exit status 1
Compilation error: 'ledcSetup' was not declared in this scope
Please install lower version of esp32 board which is 2.0.16 👍🏻👏🏻