every person in the comment were saying error and stuff but i done it in 1 try with 30 pin esp32, i just edited the code a little bit for the 30 pin one and it worked fine with no issues😃
That’s awesome 👍🏻👏🏻. That’s how it should work in first attempt itself . I have taken very good care while making this entire project . If we follow exact steps then there will be no issue 👍🏻👏🏻
@@hashincludeelectronics yea this is the only video i made a joystick car without any problem, last time i tried arduino nano and it was a big disaster connecting with nrf module so this time it perfectly worked with esp32, and i also thought that its the only video with esp32 in yt, i thought it would turn out as a disaster again but it worked so well and i am still using it with no issues
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. 👍🏻
i make this project at 2024 the code not worked with esp32 version 3.0.5 but when i try with 1.0.6 it worked .i think that this chat will be helpful for some people
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?
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 .
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
@@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 ?
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.
@@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?
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
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!
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.
Thanks for good instructional video. Two comments please. Firstly, please slow down your speech as its difficult to follow. Secondly, Chassis is pronounced "Shassy"
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 👍🏻👏🏻
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.
@@eclecticlife That’s good observation. Yes esp8266 has only one analog input pin . 👍🏻 hence we can not use esp8266 for this project . Thanks John 👏🏻👏🏻
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
@@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👍🏻
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.
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!
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...!
@@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 👊👊
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.
@@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
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 .
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
Hi man, is good work but now the espesif change the API from 2. to 3. in which your code not working in my esp32 and after a lot of work I got the code compiled and uploaded on my esp32 but does not work I douple checked the wiring all good but not working for the receiver shows in the serial monitor message failed, what could be the problem. i think the problem is with the API's updated can you help me if you can thank you for your good video
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 👏🏻👍🏻
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 ?
@@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;
@@l-drago5434 please check the video for the steps to install esp32 board . Select 2.0.16 version while installing in Arduino IDE . That will solve the error 👍🏻👏🏻
@@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 .
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 . 👍🏻👏🏻
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
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
@@cengiizclk 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 . 👏🏻👍🏻
hola me sale un problema a la hora de subir el programa void setUpPinModes() { pinMode(enableRightMotor,OUTPUT); pinMode(rightMotorPin1,OUTPUT); pinMode(rightMotorPin2,OUTPUT);
pinMode(enableLeftMotor,OUTPUT); pinMode(leftMotorPin1,OUTPUT); pinMode(leftMotorPin2,OUTPUT); //Set up PWM for motor speed ledcSetup(rightMotorPWMSpeedChannel, PWMFreq, PWMResolution); ledcSetup(leftMotorPWMSpeedChannel, PWMFreq, PWMResolution); ledcAttachPin(enableRightMotor, rightMotorPWMSpeedChannel); ledcAttachPin(enableLeftMotor, leftMotorPWMSpeedChannel); me dice que no esta declarado esto usando una placa esp32 wifi bluetooh de 30 pines o le puedo quitar esto o empieas a especificar para que tipo de placas utilizar esto
every person in the comment were saying error and stuff but i done it in 1 try with 30 pin esp32, i just edited the code a little bit for the 30 pin one and it worked fine with no issues😃
That’s awesome 👍🏻👏🏻. That’s how it should work in first attempt itself . I have taken very good care while making this entire project . If we follow exact steps then there will be no issue 👍🏻👏🏻
@@hashincludeelectronics yea this is the only video i made a joystick car without any problem, last time i tried arduino nano and it was a big disaster connecting with nrf module so this time it perfectly worked with esp32, and i also thought that its the only video with esp32 in yt, i thought it would turn out as a disaster again but it worked so well and i am still using it with no issues
@@ananthanayyappan9391 great 👍🏻👏🏻
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. 👍🏻
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 .
whats the button being used for ? i cant figure it out i wanna use it to contol a relay or add a button chanel for a relay how can i do this ?
i make this project at 2024 the code not worked with esp32 version 3.0.5 but when i try with 1.0.6 it worked .i think that this chat will be helpful for some people
Exactly . We need to install lower version of esp32 board . 2.0.16 will also work 👍🏻👏🏻
Can you tell me which library you chose for esp32 since if I search for one, there are about 3 please?
Cool video. I'm pushing myself into something like that. I have a LEGO Technic setup for the first launch.
Nice 👍🏻👏🏻
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 . 👏🏻👍🏻
Très belle présentation....Merci beaucoup.
Thank you very much 👏🏻👍🏻
Thanks for your good video
Thank you very much 👍🏻
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.
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 .
Good job, thanks for sharing
Thank you 👏🏻👍🏻
Can it be done with two esp32-s3? And which version of the board could work?
I have not tried this module so can’t comment . However if you have those modules then give it a try 👍🏻👏🏻
Is it okay if I use two 6v battery holders? Or should they be of the voltages specified in the diagrams?
@@kevinfernandez9842 use total voltage 7-12 V . And make sure it’s rechargeable battery only 👍🏻👏🏻
For the control I have 5v, is this okay if I use 6v for the car part?
@ for car use 7-12 v 👍🏻👏🏻
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 👍🏻👏🏻
Min, I want to ask about the coding for analog and which car
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??
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 👍🏻👍🏻
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 ?
Can I also connect a powerbank as a Power-supply for the car?
It should provide 7-12 v 👍🏻👏🏻
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 👏🏻👍🏻
Sou do Brasil e curto muitos seus vídeos, parabéns!
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. 👍🏻👏🏻
Bro its showing error sending data.. How to solve
Which Arduino IDE version are you using ?
@@hashincludeelectronics 2.3.3, how to fix this? Even i have the same 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 👍🏻
Can you make same remote for turn led on and off ?
Yes you can check my other video on espnow transmitter and receiver 👍🏻
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 👍🏻👏🏻
Hi great project
Can u make the same project but for 4 wheel drive please
Thank you
@@AliasgarLodhgar you can use 4wd in the same project 👍🏻👏🏻
Can u please provide the code for it and thank you for the reply
@@AliasgarLodhgar 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
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 .
We can do also wheelie with this car 😅
hahaha 😉
What if we use normal AA batteries instead of this Li Ion
@@notprogamerz8076 please only use rechargeable battery to avoid power related issues 👍🏻👏🏻
Can you please suggest software that you are asking for Circuit diagram
It’s called Fritzing 👍🏻👏🏻
@@hashincludeelectronics is it paid, fritzing?
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 👍🏻
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!
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 👏🏻
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
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
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 👍🏻👏🏻
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!
Is the rocker potentiometer 10K?
Yes 👍🏻
can we use arduino board instead of esp32?????
No . We need esp32 only 👍🏻👏🏻
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 👍🏻👏🏻
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
can i use a less mah battery
Yes you can 👍🏻👏🏻
thanks
Welcome 🙏
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 😎
Can you make this on 6 or 8 channel??
You can check my video on 12 channel transmitter receiver using ESPNOW for this project 👍🏻👏🏻
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 👍🏻👏🏻
Esp now is compatible with esp8266 so it should work!
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 ?
nice!
Thank you! Cheers!
can i use esp 8266 instead of esp 32
I have not tried it . I would suggest to use esp32 only to avoid issues 👍🏻👏🏻
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.
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 👏🏻👏🏻
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
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 ?
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
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 .
Can i apply same circuit for rc boat
Yes you can . It will work 👍🏻👏🏻. And nice idea 👌🏻
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.❤️🤝
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.🙏🙏
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 👍🏻
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 . 👍🏻👏🏻
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.
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...!
@@서유현-r1j 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 👊👊
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
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.
esp powered rc car swarm when?
That is some awesome idea 💡 Thanks and I will definitely try to create this 👌🏻
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 .
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
@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
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
Hi man, is good work but now the espesif change the API from 2. to 3. in which your code not working in my esp32 and after a lot of work I got the code compiled and uploaded on my esp32 but does not work I douple checked the wiring all good but not working for the receiver shows in the serial monitor message failed, what could be the problem. i think the problem is with the API's updated can you help me if you can thank you for your good video
@@ahmadmurad8126 you need to add this line in transmitter code .
esp_now_peer_info_t peerInfo;
memset(&peerInfo, 0, sizeof(esp_now_peer_info_t));
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
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 👍🏻👏🏻
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 👏🏻👍🏻
Can i use esp8266 nodemcu board
Please use esp32 only in this project . I have not tried esp8266 . 👍🏻👏🏻
How about using using NRF24l01 + module and how to get the address of receiver??
I have replied on other message 👍🏻
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 👍🏻
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;
can 30 pin esp32 be used
Yes you can use . But check the pins accordingly and make changes in code .
Thanks
Can you please make a car using funding joystick?
What is funding joystick?
@@hashincludeelectronicsArduino joy stick shield
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 .
Compilation error: 'ledcSetup' was not declared in this scope, what should i do ?
Please install 2.0.16 version of esp32 board 👍🏻👏🏻
@@hashincludeelectronicsmeans?
Same error
@@l-drago5434 please check the video for the steps to install esp32 board . Select 2.0.16 version while installing in Arduino IDE . That will solve the error 👍🏻👏🏻
@@hashincludeelectronics solved it and the car worked😀
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 .
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 . 👍🏻👏🏻
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 .
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 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😅
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 ?
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 👍🏻👏🏻
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 👏🏻👍🏻
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 👍🏻
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
@@cengiizclk 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 🙏🏻
@@cengiizclk ok . Please add this line above memcpy in the code .
memset(&peerInfo, 0, sizeof(peerInfo));
bro, iam running into ledcsetup problem
Please install 2.0.16 version of esp32 board 👍🏻👏🏻
Can we do it with esp8266
Please use only esp32 board to avoid issues 👍🏻👏🏻
@hashincludeelectronics but I have node MCU esp 8266
And I can't buy another
If possible can you try with esp8266
Please
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
hola me sale un problema a la hora de subir el programa
void setUpPinModes()
{
pinMode(enableRightMotor,OUTPUT);
pinMode(rightMotorPin1,OUTPUT);
pinMode(rightMotorPin2,OUTPUT);
pinMode(enableLeftMotor,OUTPUT);
pinMode(leftMotorPin1,OUTPUT);
pinMode(leftMotorPin2,OUTPUT);
//Set up PWM for motor speed
ledcSetup(rightMotorPWMSpeedChannel, PWMFreq, PWMResolution);
ledcSetup(leftMotorPWMSpeedChannel, PWMFreq, PWMResolution);
ledcAttachPin(enableRightMotor, rightMotorPWMSpeedChannel);
ledcAttachPin(enableLeftMotor, leftMotorPWMSpeedChannel);
me dice que no esta declarado esto usando una placa esp32 wifi bluetooh de 30 pines o le puedo quitar esto o empieas a especificar para que tipo de placas utilizar esto
Please install 2.0.16 version of esp32 board 👍🏻👏🏻
I want esp8266 code bro
I don’t have esp8266 to test so can’t provide it 👍🏻👏🏻
I got 'error sending the data'
That’s fine . Please check if you are receiving the data .
which bloody port
Unfortunately I did not get your question 👍🏻