How to make a remote control car

In this tutorial, we will learn how to make a Remote Control car from scratch. You don’t need to have expertise in robotics to make it, but patience is mandatory.

Most of us loves learning by watching videos. Therefore, i have added a one which will also help you  making the car easily.

 

Components


  1.  Arduino UNO
  2.  Bluetooth Module (HC05/HC06)
  3.  L298n Motor Driver
  4.  200Rpm geared motor with mountings.
  5.  caster wheel
  6. Plastic board
  7. connectors

Step 1: Chassis

  1. Cut the white plastic board according to the dimensions (28cm * 15cm) to make the chassis of the remote control car.

2.   Attach the caster ball & DC geared motor to the board using the clamps and screw.

Now, it is time to beautify the chassis of the car…… For this, lets add the following parts to the main body…..

After adding the parts main body looks like this. Here, mechanical part of the car is almost done. Now it’s time for adding the circuit.

remote control car

 

Step 2: Circuit

Connect all the components according to the circuit. It will take 20-25 minutes to connect all the components. First of all, connect the L298 motor driver to arduino. secondly the bluetooth module. Battery should be connected at the last stage after checking all the connections.

rc carremote control car

Step 3: Upload Code

Finally, its time to upload your arduino code to the car using IDE.

#include<SoftwareSerial.h>
SoftwareSerial bluetooth(10,11);
char data;
int a=150,b=150;
void setup() {
  Serial.begin(115200);
  bluetooth.begin(9600);
  pinMode(2,OUTPUT);
  pinMode(3,OUTPUT);
  pinMode(4,OUTPUT);
  pinMode(5,OUTPUT);
  pinMode(6,OUTPUT);
  pinMode(7,OUTPUT);
}


void loop() {
  if(bluetooth.available()){
  data=bluetooth.read();
  Serial.println(data);
}  
  if(data=='F'){forward();}
  if(data=='B'){backward();}
  if(data=='L'){left();}
  if(data=='R'){right();}
  if(data=='S'){stop();}
}

void forward(){
  digitalWrite(2,HIGH);
  digitalWrite(3,LOW);
  analogWrite(4,a);
  
  digitalWrite(5,HIGH);
  digitalWrite(6,LOW);
  analogWrite(7,b);
  }

void backward(){
  digitalWrite(2,LOW);
  digitalWrite(3,HIGH);
  analogWrite(4,a);
  
  digitalWrite(5,LOW);
  digitalWrite(6,HIGH);
  analogWrite(7,b);
  }

void right(){
 digitalWrite(2,HIGH);
  digitalWrite(3,LOW);
  analogWrite(4,a);
  
  digitalWrite(5,LOW);
  digitalWrite(6,HIGH);
  analogWrite(7,b);
  }

void left(){
  digitalWrite(2,LOW);
  digitalWrite(3,HIGH);
  analogWrite(4,a);
  
  digitalWrite(5,HIGH);
  digitalWrite(6,LOW);
  analogWrite(7,b);
  }

void stop(){
 digitalWrite(2,LOW);
  digitalWrite(3,LOW);
  analogWrite(4,0);
  
  digitalWrite(5,LOW);
  digitalWrite(6,LOW);
  analogWrite(7,0);
  }


Step 4: Configuring Android App (remote control)

Configure your bluetooth module (HC 05/06) with the recommended free android app Arduino Bluetooth RC Car 

You will see LED is blinking on your bluetooth module after powering on the car. Now, search for the Bluetooth module  from your smartphone. If you find it, use “1234” as password. Finally, your remote control car is ready to run. Open your android app and enjoy the project.

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *