How To Make A DIY Arduino Joystick Control Car At Home
ฝัง
- เผยแพร่เมื่อ 11 ก.ค. 2019
- JLCPCB Prototype for $2(Any Color): jlcpcb.com
Hello Guys, In this tutorial, I am going to show you how to make a DIY Arduino Joystick Controlled Car At Home. So let's get started :)
Subscribe It's Free bit.ly/2WlyA8Y
Parts List:
(Banggood.in)
1) Arduino Nano (2x) - bit.ly/2RdpIo4
2) NRF24L01 Radio Module (2x) - bit.ly/2YOEP7j
3) L298N Motor Driver - bit.ly/2LTqEMh
4) Joystick Module - bit.ly/30wfHmc
5) TT Gear Motor(4x) - bit.ly/2XZFLZv
6) Rubber Wheels(4x) - bit.ly/2XIaDOQ
7) Pref Board (2x) -
8) 18650 Battery (4x) - (Local Store, Old powerbank or laptop battery)
9) Battery Holder (4x) - bit.ly/2sulLwu
10) 5mm Acrylic Sheet(14x9cm) - (Local Store)
(Amazon.in)
1) Arduino Nano (2x) - amzn.to/2nIuInc
2) NRF24L01 Radio Module (2x) -amzn.to/33oc2bw
3) L298N Motor Driver - amzn.to/35xMwm8
4) Joystick Module - amzn.to/35wp8oV
5) TT Gear Motor and wheels (4x) - amzn.to/2qa25A9
6) Pref Board (2x) -
7) 18650 Battery (4x) - (Local Store, Old powerbank or laptop battery)
8) Battery Holder (4x) - amzn.to/32cJUb7
9) 5mm Acrylic Sheet(14x9cm) - (Local Store)
[Flyrobo.in]
Arduino Nano : bit.ly/2kzPi7S
L298N Motor Driver : bit.ly/2ksMcSU
NRF24L01 Radio Module : bit.ly/2VD5enI
Joystick Module : bit.ly/2VH18ed
TT Gear Motor : bit.ly/2m4fMid
Rubber Wheels : bit.ly/2kxPeFF
-------------------------------------------------------
Gerber File - bit.ly/2JLG8NY
Circuit Diagram - bit.ly/2NWqzsi
Code - bit.ly/2XL5QvM
Code Credit : (Dejan Nedelkovski, www.HowToMechatronics.com)
--------------------------------------------------------
More Arduino Car Related Projects
1) Arduino Voice Controlled Car - bit.ly/2WUdsuR
2) Arduino Bluetooth Controlled Car - bit.ly/2WpYPuX
3) Arduino Line Follower Car - bit.ly/2ZimqPV
4) NodeMCU WIFI Controlled Car - bit.ly/2XA941d
Thanks For Watching
✅LIKE ✅SHARE ✅ COMMENTS✅ SUBSCRIBE
----------------------------------------------------
Here my social sites:
Instagram: / diy.builder
Facebook: / surajit.majumder.165
Instructables: www.instructables.com/member/...
twitter: / diybuilder1
-------------------------------------------------------------
🎧 Background Music
Spiral by KV / kvmusicprod
Creative Commons - Attribution 3.0 Unported - CC BY 3.0
Free Download / Stream: bit.ly/Spiral-KV
Music promoted by Audio Library • Spiral - KV (No Copyri...
Song: KSMK X Dizaro - You Make Me (Vlog No Copyright Music)
Music promoted by Vlog No Copyright Music.
Video Link: • KSMK X Dizaro - You Ma...
Roads 2 (feat. LiQWYD) by Le Gang / thisislegang
Creative Commons - Attribution 3.0 Unported - CC BY 3.0
Free Download / Stream: bit.ly/2DcLIpk
Music promoted by Audio Library • Roads 2 (feat. LiQWYD)...
--------------------------------------------------------------------
#ArduinoProjects #ArduinoRobot #WirelessCar - แนวปฏิบัติและการใช้ชีวิต
One suggestion while moving left or right both sides motor should move in opposite direction for smother turns.
hi, what did you use to build the schematic?
Sir, I love your videos about Arduino projects very much. Sir, you should make the 4 dof joystick-controlled robotic arm car project?
Great project
Loved it
Your video quality is nice
congratulations new subscriber
Oustatanding project as everyone that Ihave seen from your channel thanks for sharing.
Thank you very much!
@Akh dzzz I thank you very much for the suggestion of this video.
PROFISSIONAL 🇧🇷 👏
Hi can you make an Rc car controlled by the cheap VR wireless controller, the one with a single joystick. Would it be possible to read the data from that controller. I want that because it looks simple in design. Thank you!
This is one of the best, if not the best video I've seen on Robot cars! Thank you!
Thanks
Hi, what s/w do you use to draw the schematic diagram?
Shalini we use nfr24L01 2.4ghz module
can we use Arduino uno on the car and nano on the transmitter?
Can you tell me please do I have to order everything separately or will everything be provided in the box that i need?
very good job. i like and i want to make it too.
If I wanted to use better motors with three wires for this, could I do it if and how
Good video. Is there any way to replace the remote with an esp32 connected to gpt-4?
Hi bro ! nice work, rly like your video,
Just a question : no BMS or protection for your 18650 CDR ? is it just for the purpose of the tutorial ?
thank you for answering me, I would like to have the answer from an experienced person
I don't think you need a BMS for such small projects like these. The battery will be balanced already when it gets charged externally with its own charger.
Good job brother
Thank you very much. It's Great project
Ok. Thanks!
can you please tell me the controlling range of that rf and car , i am also looking forward to make such that car
High, i have questions about, l298 Motor driver i am using the same as yours but it can only handle one DC MOTOR each side, do you have any suggestions?
Search on google "Four-way L9110S chip". The driver you see in video is also meant to be working with 2 DC motors only. The driver can be damaged.
He attached 2 motors at single side.
Does you can make up a car which can be controlled by Bluetooth,remote contrll,obstacles detector,hand gesture,line folower.
Arduino coding only
Gracias, nos salvas a todos :D
i like your effort dear
awesome job bro.. u rock.. thanks for sharing the schematics and code.. i've designed a tank.. i intend to use ur code. the joy transmitter however has 1 joystick, and i need 2, 1 to control the motion and 1 to control 2 servos for turret motion. can u help??
Bro u r dng wonderful job keep it up
Thanks :)
nice video budy thanks
Is it possible to make it in away it has a camera on top, so you can see where it's driving from it's point of view?
See bro,
You are the best Arduino Builder
But the problem is That the connections you make is not shown properly
I suggest as a viewer,
If you start showing complete step by step then you will be the most viewed Arduino project maker on youtube
Thanks bro and soon i will start voice-over videos where i'll explain every details
@@DIYBuilder plz sir uploaded the correct code we wanna to make it successful our project..toughly I arrange all the components...
th-cam.com/video/oOoypRHMZ-o/w-d-xo.html
@@DIYBuilder Hello, can duo please update the code? thanks în advance
@@DIYBuilderliar!
What's the range of the Transmitter?
Can you make this with lora module for longer range?
Thaaaaaanksss A lot
Awesome...
you ordered dot pcb from JLC PCB, genius!!!
I burst into laughter 😂😂😂😂🤣🤣🤣
and he gave us gerber file of dot pcb lol
@@akshitsharma2737 I didn't knew that,ha ha ha.
Sir you have got this all Object in kit or you have bought it separately.
Great project man! Would love the code. Plz maybe better music next time or think about talking to us 👍👍
Awesome!!! 😃
Thanks! 😄
Nice video bro
Bro can this chip use more heavy moter... Like major
Project car moter
Nice project 👍
th-cam.com/channels/_lkvX1qyF3L6dbopp1aQRw.html
The project is very good.
Can you please correct the sketch so that it can be fully functional, including variable speed operation? You must make the following changes to the sketch:
#define in1 3 // D3 arduino to IN1 of L298N
#define in2 4 // D4 arduino to IN2 of L298N
#define enA 5 // D5 arduino to ENA of L298N
#define enB 6 // D6 arduino to ENB of L298N
#define in3 7 // D7 arduino to IN3 of L298N
#define in4 8 // D8 arduino to IN4 of L298N
RF24 radio (9, 10); // CE, CSN
Also, the respective changes will be made in the JOYSTICK RECEIVER SCHEMATIC.
Only one correction will be made in the transmission sketch:
RF24 radio (9, 10); // CE, CSN
There is another small error in the sketch, when conditioning the speed in the range 0 to 255 that can be corrected.
Thanks.
hi after doing this change in the sketch do i need to change my physical circuit or not?
@@MSalim21 probably not because since he said correct the sketch the thing itself should work
@@whynot1284 did it work for u with the corrected sketch?
Does this work
Most satisfying video
You have used which wire for gear motors
What is the range of nrf24l01 module
Which app you use for denoting the name of the components
did you fast forward the last part bro ? the testing part ?
Awesome project!!! but when I tried it out the signal of radio module doesn't last long what should I do
same problem
See your battry is discharged
I cannot get an NFR24L01 module. They are unavailable at this time. Can I use ACERMIC 38kHz IR transmitter and receiver instead of the NFR24L01? Will the NFR libraries work for these modules, or do I need different libraries to make them work?
What is the range of transmitter and receiver
super project
i like this
sir, good joystick-controlled robot and how many days you have spent to finish your joystick-controlled robot.
I had taken 5 days
when do you plan to publish the correct receiver and transmitter codes?
Ye chutiya hai scam kuch provide nahi karta
Super bro
Bro superb bro... Need more from u...😍
th-cam.com/channels/_lkvX1qyF3L6dbopp1aQRw.html
How can i do if i want to use rc car remote control ? is it a concept similar to a blutooth ?
Kinda
I am also trying this project .So in this L298N motor drive module can we use 4 motors at a time?
He connected every same side motors to the same output of the driver as they will always bs moving together forward or backward
Can u gave the sketch of circuit on pcb please?
Nicely done
Thanks
Sir can you please tell me how u have uploaded the codes?
Excellent
Plz tell whether the pcb used is dot pcb
Sir we can use L293 motor drive sir?
Amaiziiing😀😀😉
Bro
Can you please send me the link to buy pin connector headers (please give amazon if possible)
Broo I have one dout can u pls make the joystick and guesture control car
Bro you are great
Thanks
What is the size of the PCB board?
sir please can you tell me. how to find radio modula to which online site
Can u gave the sketch of circuit on pcb please
Nice 😍
Thanks 🤗
sir, I have a request to ask you can you please, please upload the joystick-controlled robotic arm project and please also upload by giving the circuit diagrams and the code to the joystick-controlled robotic arm project. thank you, sir.
What is the jumper wire used here?
please try to make an video for the same project but with timeout mechanism...
Sir skech compile ni ho rha library v add karli but it's show pgm nd ptr not declair in this scope . Plz tell me solution for this
what is the range of the remote control?
100m I think so
And one thing more what is the range of transmitter and receiver?
23
@@shashankkanna5453 bananas?
in case anybody is still wondering the answer to this, the receiver he's using claims to go 100 meters, and the one with the antenna claims 1000+ meters
It is going very fastly nice
Amazing
Green sheet jo table ke upar he use ka kahate he please batao ... Muze lena he
how many volts do you feed the gearmotors?
7.4v
will the codes we download be different for each type of thing we make?
by the way thank you
hope i succeed in making it
@Akh dzzz alrightie then
You are using only receiver on both modules, or am i wrong.i checked your description link too,but couldn't find a transmitter.
Late response probs wont help you but might help someone else, the module is transimitter AND receiver on the same module!
You can do r2d2 ?
Can i used l298n motor driver?
hey, what do think everything you used cost in total ? i think i'll do this project but i'm broke
If I use nrf24l01 pa lna then there will we some changes in code or not
Well done
This guy is dope
hello bro
how far can u remote?
Nice work
Thanks
Thank you very very much!!! Great video!!!
can we control the speed wireless?
Hey Can I supply power with 12v battery
I found troubleshooting in uploading thr receiver code due to undeclared variable a in line 37 and 40 of the code so how can i solve the problem
see , if the below works for you. I generally update any lifted code. I started with forum.arduino.cc/index.php?topic=421081
/*ARDUINO JOYSTICK CONTROLLED CAR (RECEIVER)
YOU HAVE TO INSTALL THE RF24 LIBRARY BEFORE UPLOADING THE CODE
github.com/tmrh20/RF24/
*/
#include
#include
#include
#define enA 2
#define in1 3
#define in2 4
#define enB 7
#define in3 5
#define in4 6
RF24 radio(9, 10); // CE, CSN
const byte address[5] = {'R','x','A','A','A'};
char receivedData[32] = "";
int xAxis, yAxis;
int motorSpeedA = 0;
int motorSpeedB = 0;
void setup() {
pinMode(enA, OUTPUT);
pinMode(enB, OUTPUT);
pinMode(in1, OUTPUT);
pinMode(in2, OUTPUT);
pinMode(in3, OUTPUT);
pinMode(in4, OUTPUT);
Serial.begin(9600);
radio.begin();
radio.openReadingPipe(0, address);
radio.setPALevel(RF24_PA_MIN);
radio.startListening();
}
void loop() {
if (radio.available()) { // If the NRF240L01 module received data
radio.read(&receivedData, sizeof(receivedData)); // Read the data and put it into character array
xAxis = atoi(&receivedData[0]); // Convert the data from the character array (received X value) into integer
delay(10);
radio.read(&receivedData, sizeof(receivedData));
yAxis = atoi(&receivedData[0]);
delay(10);
}
// Y-axis used for forward and backward control
if (yAxis < 470) {
// Set Motor A backward
digitalWrite(in1, HIGH);
digitalWrite(in2, LOW);
// Set Motor B backward
digitalWrite(in3, HIGH);
digitalWrite(in4, LOW);
// Convert the declining Y-axis readings for going backward from 470 to 0 into 0 to 255 value for the PWM signal for increasing the motor speed
motorSpeedA = map(yAxis, 470, 0, 0, 255);
motorSpeedB = map(yAxis, 470, 0, 0, 255);
}
else if (yAxis > 550) {
// Set Motor A forward
digitalWrite(in1, LOW);
digitalWrite(in2, HIGH);
// Set Motor B forward
digitalWrite(in3, LOW);
digitalWrite(in4, HIGH);
// Convert the increasing Y-axis readings for going forward from 550 to 1023 into 0 to 255 value for the PWM signal for increasing the motor speed
motorSpeedA = map(yAxis, 550, 1023, 0, 255);
motorSpeedB = map(yAxis, 550, 1023, 0, 255);
}
// If joystick stays in middle the motors are not moving
else {
motorSpeedA = 0;
motorSpeedB = 0;
}
// X-axis used for left and right control
if (xAxis < 470) {
// Convert the declining X-axis readings from 470 to 0 into increasing 0 to 255 value
int xMapped = map(xAxis, 470, 0, 0, 255);
// Move to left - decrease left motor speed, increase right motor speed
motorSpeedA = motorSpeedA + xMapped;
motorSpeedB = motorSpeedB - xMapped;
// Confine the range from 0 to 255
if (motorSpeedA < 0) {
motorSpeedA = 0;
}
if (motorSpeedB > 255) {
motorSpeedB = 255;
}
}
if (xAxis > 550) {
// Convert the increasing X-axis readings from 550 to 1023 into 0 to 255 value
int xMapped = map(xAxis, 550, 1023, 0, 255);
// Move right - decrease right motor speed, increase left motor speed
motorSpeedA = motorSpeedA - xMapped;
motorSpeedB = motorSpeedB + xMapped;
// Confine the range from 0 to 255
if (motorSpeedA > 255) {
motorSpeedA = 255;
}
if (motorSpeedB < 0) {
motorSpeedB = 0;
}
}
// Prevent buzzing at low speeds (Adjust according to your motors. My motors couldn't start moving if PWM value was below value of 70)
if (motorSpeedA < 70) {
motorSpeedA = 0;
}
if (motorSpeedB < 70) {
motorSpeedB = 0;
}
analogWrite(enA, motorSpeedA); // Send PWM signal to motor A
analogWrite(enB, motorSpeedB); // Send PWM signal to motor B
}
@@croydon21H thanks
Bro is the motor driver size m3 sorry, I am new to this, pls respond as quickly as you can.
It very nice bro
How can i connect two servo motors for pan and tilt camera
The only thing that confused me is: you said this video is sponsored by JLCPCB, while they send you perforated board 🤔
Dotted pcb
What programming language use this project ?
i am having a problem in uploading the file it show to the file is not inculde
and
what is the file rf 24