How to Make an Arduino RC Car with Flysky FS-i6X Transmitter | Ultimate Guide for Beginners
HTML-код
- Опубликовано: 6 июл 2024
- #arduino #rccar
How to Make an Arduino RC Car with Flysky FS-i6X Transmitter
Your Searches...
Arduino
Arduino Bluetooth Car
Arduino Joystick Control Car
Arduino Joystick Controller
Arduino Joystick Project
Arduino Long Range Car
Arduino Long Range Remote Control
Arduino nrf24l01 Projects
Arduino Projects
Arduino Projects for Beginners
arduino robot
Arduino Robot Car
Arduino Robot Projects
Arduino Transmitter And Receiver
DIY Builder
DIY RC Car
Flysky FS-i6x
Flysky Transmitter
Homemade RC Car
How to Make a RC Car
How to Make Arduino Car
How to Make Arduino RC Car
How to Make RC Car
how to make rc car using flysky
L298N Motor Driver
L298N Motor Driver Arduino
Long Range RC Car using Arduino
Make RC Car at Home
RC Car using Flysky transmitter and receiver
Pro Know
Radio Control Car
RC Car
RC Car DIY
Remote Control Car
Buy components at best prices from China
Store Link
click.daraz.pk/e/_CXJJfF
Arduino UNO
click.daraz.pk/e/_CVlDTL
L298N Motor Driver
click.daraz.pk/e/_CXDADj
Flysky Receiver
click.daraz.pk/e/_CWmZuH
4 wheel chassis
click.daraz.pk/e/_C611LL
2 wheel chassis
click.daraz.pk/e/_CWGSRR
TT Gear Motor 2 pcs
click.daraz.pk/e/_CVeY5L
Arduino Expansion Shield
click.daraz.pk/e/_CZ7ynX
Arduino Code:
bit.ly/48TcUr0
Circuit Diagram:
L293D - ARDUINO:
ENA --- 5
ENB --- 6
IN1 --- 2
IN2 --- 3
IN3 --- 4
IN4 --- 7
RECEIVER -- ARDUINO:
CH1 --- A0
CH2 --- A1
CH3 --- A2
CH4 --- A3
CH5 --- A4
CH6 --- A5
VCC --- VCC
GND --- GND
(Will soon share the schematic diagram. For now, you can just do wiring as above)
Time stamps
0:00 Intro
0:18 Components Required
0:57 Making the Car
5:04 Programming
5:37 Finishing
6:08 Transmitter Setup
6:55 Testing
#akelectrodiy #arduino #arduinoproject #rccar #diybuilder #arduinorobot #arduinocar #proknow #diy #electronics Наука
thanks for the feedback
@@wellingtonpereira8171 You're welcome
Thats awsome ,really Nice👍
Thanks ❤
@@AKElectroDIY 👍👍
Bro how do use it using kendin yap 6 channel reciever can you answer
It's the same for that too. Any receiver can be used with this. Mean they are interchangeable. Just you need to set channels 5 and 6 as aux switches in transmitter. And connect channels 1 and 2 to the arduino similar as shown
Pode ser um controle de carro com 4 canais?
The car is controlled by 2 channels. There are two additional aux channels to control speed mode.
It's a great tutorial 👏👏
I wanted to use BLDC or Brushes motors INSTEAD....
Can i simply replace the motors without changing any circuit connection or code??
Will it affect any power issues??
I'm planning to build it please let me know..
Thank you
I would also like to know...
It would be great to build it with brushless motors
Yes that's easy to make. But for it, I have made another video. You may see that. Two brushless ESCs will be required for that one.
Here is the video
ruclips.net/video/FcyyWRq44n4/видео.html
In that video, I used brushed motors with a brushed esc. Just replace the brushed motors with brushless ones and the brushed ESCs with brushless ESCs
@@AKElectroDIY thank you
Actually the point here is, the L298N is made just for brushed motors. For brushless motors, you will just need a brushless ESC. And if an ESC is used, then there will be no need of arduino. Means no programming needed for that.
Will this car run on muddy tracks
Yes you can. But for muddy tracks, you will have to modify its shape a little bit so that it can easily run on it. I mean the motors should be a bit upwards to increase the ground clearance for easy driving on such tracks.
I have FS-i6, so what changes i have to do in code and transmitter setting
Code will be the same for all transmitters. All it needs to be is a 6 channel transmitter.
@@AKElectroDIY fir transmitter ki setting m kya change krne honge q ki video m AUX wala setting Kiya tha woh usme nhi h
Flysky i6 mein bhi same Aux setting ho jaye gi. Bas apne channel 5 ko sw1 aur channel 6 ko sw2 assign karna hai.
@@AKElectroDIY ohk main try krke dekhta hu....
BTW thnks for the video 🫡
@@ram_gupta5 Welcome
Could you help to add relay for putting 220v motor?
4 channel Relay module is available for arduino. You can see it
@@AKElectroDIY Could you help to make that video and add camera esp32 cam?
@@evo8773 Yes why not. So you just want to use relays instead of L298n, right?
And for esp32, I am already planning to make a video on that. To control a car using esp32 and also display camera result on mobilr
Bro itz a great one, but I couldn't find the code of the project evn I have subscribed tour channel
Code link is in description
Copy and paste the link in a browser
@AkElectroDIY ok
can you do one with Fly Sky Ct6b
That is exactly the same. No difference
Hey bro how did u made your own code
I found the code from online resources and modified it according to my own needs.
Where is the link for the circuit diagram ? 👍🏼
Sorry brother, I haven't yet made the circuit diagram. But don't worry, here are all the connections. You can easliy make the connections by yourself.
L293D ---> ARDUINO:-
ENA ---> 5
ENB ---> 6
IN1 ---> 2
IN2 ---> 3
IN3 ---> 4
IN4 ---> 7
RECEIVER ---> ARDUINO:-
CH1 ---> A0
CH2 ---> A1
CH3 ---> A2
CH4 ---> A3
CH5 ---> A4
CH6 ---> A5
VCC ---> VCC
GND ---> GND
@@AKElectroDIY Ok, brother...
Can u provide me circuit diagram ??
The connections are very simple
L293D -- ARDUINO:-
ENA --- 5
ENB --- 6
IN1 --- 2
IN2 --- 3
IN3 --- 4
IN4 --- 7
RECEIVER --- ARDUINO:-
CH1 --- A0
CH2 --- A1
CH3 --- A2
CH4 --- A3
CH5 --- A4
CH6 --- A5
VCC --- VCC
GND --- GND
For now, you can just do all the wiring as mentioned. I will soon share the circuit diagram too.
Hello do u have the light video
Soon. Stay tuned!
My parts have arrived my friend please do it fast or you would loose your biggest fan@@AKElectroDIY
My parts have arrived pls do fast or you will loose a fan
Ok, on this Sunday
@@AKElectroDIY please do brother
the code is not opening
Copy the link and paste it in a browser. It will open bit.ly/48TcUr0
'setModeLED' was not declared in the scope
exit status 1
Why?😮
Clear the code and upload.....
You can remove that line from the program. It is useless
Actually, it was a function that was declared earlier, but I removed that because it had no important use.
@@AKElectroDIYLet me check
@@AKElectroDIY let me check
Ok I will upload again. Sorry for the mistake
The code is not opening can you provide the code ..?
Kindly copy the link and paste it in a browser. It should open then
Also, if you're opening on a mobile phone then you will need a text editor application to open the code as its an arduino file
@@AKElectroDIY nothing happens bro same not even working
@@ravinani9198 // Arduino RC Car using Flysky Transmitter and Receiver
// Subscribe the Channel: www.RUclips.com/@AKElectroDIY
// Video Link: ruclips.net/video/q-Clw0m3E18/видео.html
int enA = 5;
int in1 = 2;
int in2 = 3;
int enB = 6;
int in3 = 4;
int in4 = 7;
int receiver_pins[] = {A0, A1, A2, A3, A4, A5};
int receiver_values[] = {0, 0, 0, 0, 0, 0};
int res_min = 950;
int res_max = 2020;
int working_range = 255; // motor driver range
boolean prt = true;
int mode = 0;
//-1 = transmitter not connected or out of range
// 0 = transmitter connected and ready
// 1 = slow speed mode
// 2 = high speed mode
void setup() {
pinMode(enA, OUTPUT);
pinMode(enB, OUTPUT);
pinMode(in1, OUTPUT);
pinMode(in2, OUTPUT);
pinMode(in3, OUTPUT);
pinMode(in4, OUTPUT);
Serial.begin(115200);
}
void loop() {
receive();
int m1 = 0;
int m2 = 0;
int rot = receiver_values[0];
if (mode == 1) {
m1 = receiver_values[1] / 2 + (rot)/1.5;
m2 = receiver_values[1] / 2 - (rot)/1.5;
} else if (mode == 2) {
m1 = receiver_values[1] + rot / 1.75;
m2 = receiver_values[1] - rot / 1.75;
}
mpower(1, m1);
mpower(2, m2);
}
int rp = 0;
void receive() {
receiver_values[rp] = map(pulseIn (receiver_pins[rp], HIGH), res_min, res_max, -1 * working_range, working_range);
rp++;
if (rp == 6){
rp = 0;
}
boolean activevalues = true;
for (int i = 0; i < 6; i++) {
if (prt) {
Serial.print("CH");
Serial.print(i);
Serial.print(" : ");
Serial.print(receiver_values[i]);
Serial.print(",\t");
}
if (receiver_values[i] < -500) {
activevalues = false;
}
}
mode = 0;
if (!activevalues) {
mode = -1;
} else if (receiver_values[4] > -100) {
mode = 2;
} else if (receiver_values[5] > -100) {
mode = 1;
}
if (prt) {
Serial.println("");
}
}
void mpower(int motor, int spd) {
int rotation = 0;
if (spd > 0) {
rotation = 1;
} else if (spd < 0) {
rotation = -1;
spd *= -1;
}
if (spd > 255) {
spd = 255;
}
int pwm;
int pA;
int pB;
if (motor == 1) {
pwm = enA;
pA = in1;
pB = in2;
} else if (motor == 2) {
pwm = enB;
pA = in3;
pB = in4;
} else {
return;
}
if (rotation == 0) {
digitalWrite(pA, LOW);
digitalWrite(pB, LOW);
} else if (rotation == 1) {
digitalWrite(pA, HIGH);
digitalWrite(pB, LOW);
} else if (rotation == -1) {
digitalWrite(pA, LOW);
digitalWrite(pB, HIGH);
}
analogWrite(pwm, spd);
}
@@AKElectroDIY tq bruh
Hii bro i will connect the blutooth with same code
The code will have to be a little changed then. I can also make a complete video on bluetooth car if you want.
@@AKElectroDIY send link bro
Bro mene ek robot banaya he
Arduino Uno
L298n
And Bluetooth
Ke sath lekin bich me chalna band ho jata kya issue ho sakta he
Bluetooth ki connectivity ka issue ho sakta hai. Pehle ap bluetooth ki range test karo ke kitna dur tak sahi kaam karta hai.
bro code is not opening
Copy the link and paste it in a browser. It will open bit.ly/48TcUr0
@@AKElectroDIY bro the link is not working
Just copy it by long pressing the link, and paste it in google, chrome, etc.
@@AKElectroDIY nothing happens bro same not even working
@@Anime_Edtz_
Try this link drive.google.com/file/d/1_pXMvwVtUgeOv9VHgYj6TTDrA6GJCnsT/view?usp=drivesdk
Bro how can i contact u ?
You can contact me on messenger or Instagram. Link in bio.