How to Make a Remote-controlled Car Using Arduino

by aniket02 in Circuits > Arduino

883 Views, 1 Favorites, 0 Comments

How to Make a Remote-controlled Car Using Arduino

snapedit_1707456990495.png

Are you eager to embark on a thrilling DIY adventure into the world of robotics and electronics? Imagine the satisfaction of building your very own remote-controlled car from scratch using Arduino, while also gaining valuable knowledge about programming, electronics, and mechanical design. In this guide, we provide step-by-step instructions that will guide you through the entire process of creating your very own remote-controlled car. Get ready to dive into a world of creativity and exploration!


What is Arduino?

Arduino is a family of single-board microcontrollers that consist of a printed circuit board with a microcontroller chip, input/output pins, a power supply, and a USB connector. These boards can be programmed to read inputs (like sensors) and control outputs (like LEDs, motors, and speakers). This makes it possible to create all sorts of amazing projects, from simple blinking LEDs to complex robots and home automation systems.

Supplies

Assembly

How to Make SPY FPV wireless Car | Long-Range transmission | Arduino Project

Assemble all the components on the chassis perfectly


you can refer to the video for the assembly

Circuit Connection

Diagram (1).jpeg

In this step, we need to connect all the moted with the motor driver and with the Arduino board by using jumper cables. Also, we need to connect the FPV camera to get a video feed in the FPV Goggle. We will be using Lipo Battery for powering the circuit. You can refer the above circuit diagram.

Program the Arduino Board

Connect the Arduino to the PC. And upload code in the Arduino board using Arduino IDE software



CODE:

double ch1=2;
int a=4; int b=5;

double ch2=3;
int c=6; int d=7;


void setup()
{
Serial.begin(9600);

pinMode(2,INPUT);
pinMode(4,OUTPUT); pinMode(5,OUTPUT);

pinMode(3,INPUT);
pinMode(6,OUTPUT); pinMode(7,OUTPUT);

}

void loop()
{
ch1 = pulseIn(2,HIGH);
ch2 = pulseIn(3,HIGH);

if((ch1==0)&&(ch2==0))
{
digitalWrite(a,LOW); digitalWrite(b,LOW);
digitalWrite(c,LOW);digitalWrite(d,LOW);
}

else if((ch1>1530)&&(ch2>1530))
{
digitalWrite(a,HIGH); digitalWrite(b,LOW);
digitalWrite(c,LOW);digitalWrite(d,HIGH);
}

else if((ch1>1530)&&(ch2<1460))
{
digitalWrite(a,HIGH); digitalWrite(b,LOW);
digitalWrite(c,HIGH);digitalWrite(d,LOW);

}

else if((ch1<1460)&&(ch2>1530))
{
digitalWrite(a,LOW); digitalWrite(b,HIGH);
digitalWrite(c,LOW);digitalWrite(d,HIGH);
}

else if((ch1<1460)&&(ch2<1460))
{ digitalWrite(a,LOW); digitalWrite(b,HIGH);
digitalWrite(c,HIGH);digitalWrite(d,LOW);


}

else
{
digitalWrite(a,LOW); digitalWrite(b,LOW);
digitalWrite(c,LOW);digitalWrite(d,LOW);
}

}


TX Setup

We need to set our Transmitter as shown in the above video.


Power up the car by connecting it with the battery and you are good to go.