Arduino remote control car project

Many of us want to make remote control cars. But I don’t know how to make a remote control car. Today I will teach you how you can easily build a remote control car yourself. The remote control car can be made through various circuits. I will teach you how to design and build a remote control car with the help of microcontroller. As a microcontroller I will take the Arduino board. I will teach and show you how to make a remote control car by coding on this Arduino board with coding and practical.

remote control car
remote control car

So let’s see what components and devices we need to make a remote control car.

  1. Arduino uno R3 Board.
  2. L298d Motor Driver.
  3. Motor Wheel.
  4. DC Gear Motor.
  5. Rotary Wheel.
  6. Robotic Chassis.
  7. Any remote.
  8. IR Receiver Sensor.
  9. 9v Battery.
  10. Switch.
  11. Screw.
  12. Connecting Wire.

In general, these components must be. With these you can create a remote control car. Now take a look at the pin diagram of the IR receiver sensor.

remote control car
remote control car

This IR Receiver sensor will basically give an output by receiving the signal sent from the remote transmitter. Notice the Pin Diagram below to use it with Arduino.

remote control car
remote control car

Now you have to do some test after uploading that coding to Arduino by coding Arduino. The remote you will use in this project will generate a code to press each button on that remote .First you need to download a library file and add Arduino ID software.

IR Remote Library File: Download Here

Now the coding that I am showing you below will upload this coding to Arduino UNO Board.

CODE:

 #include <IRremote.h>  
 int RECV_PIN = A0;  
 IRrecv irrecv(RECV_PIN);  
 decode_results results;  
 void setup()  
 {  
  Serial.begin(9600);  
  irrecv.enableIRIn(); // Start the receiver  
  pinMode( RECV_PIN, INPUT);  
 }  
 void loop() {  
  if (irrecv.decode(&results)) {  
   Serial.println(results.value, HEX);  
   irrecv.resume(); // Receive the next value  
  }  
 }   

Connect the IR receiver sensor with the Arduino board as shown above and upload this code. Now you have to give power to the Arduino board. Then press the buttons of the remote that you will use in this project in front of the IR receiver sensor. Then you will get a code for pressing every button on the serial monitor of Arduino ID software. Notice in the figure below.

remote control car
remote control car

In this way, by pressing the button on the remote, the number of codes that you need, that is, the number of buttons that you will use. This project requires five buttons on the remote.

  1. Forward.
  2. Backward.
  3. Left.
  4. Right.
  5. Stop button.

Now you can use any button on the remote. You will need to extract a code from the buttons that you will use according to the rules I showed above. By pressing each button on the remote you get the codes separately. These codes have to be given inside the original coding. Notice the image below.

remote control car
remote control car

Here you can see the ones marked in red. These are the codes for pressing each button. And to use each of these codes in the original coding, you have to put 0XFF in front of this code. Now let me show you the Pin Diagram or connection diagram of this project.

 

remote control car
remote control car

 

Above I showed the circuit diagram or connection diagram of the remote control car. You will make the connection according to this circuit diagram or connection diagram. Then the coding that I am showing you below will upload this Coding Arduino Board.

SIM808 Load ON/OFF Project: Click Here

GSM SIM808 Send and Receive SMS System: CLICK Here

Our Youtube Channel: Click Here

Code:

 #include <IRremote.h>  // including the IR remote library  
 #define forward  0xFF38863BF2 // code received from forward button  
 #define backward 0xFF38863BFA // code received from backward button  
 #define left   0xFF38863BC2// code received from left button  
 #define right   0xFF38863BCA // code received from right button  
 #define stop_button 0xFF38863BDC // code received from stop button  
 int IN_1 = 12;  
 int IN_2 = 11;  
 int IN_3 = 10;  
 int IN_4 = 9;  
 char command;  
 int receiver_pin = A0;  //Connect the output pin of IR receiver at pin A0  
 IRrecv receiver(receiver_pin); //Arduino will take output of IR receiver from pin A0  
 decode_results output;  
 void setup()  
 {  
  Serial.begin(9600);  
  receiver.enableIRIn(); // Start to take the output from IR receiver  
  pinMode(IN_1, OUTPUT);  
  pinMode(IN_2, OUTPUT);  
  pinMode(IN_3, OUTPUT);  
  pinMode(IN_4, OUTPUT);  
 }  
 void loop() {  
  if (receiver.decode(&output)) {  
   unsigned int value = output.value;  
   switch(value) {  
  case forward:  
    //Moving Forward  
  digitalWrite(IN_1, HIGH);  
  digitalWrite(IN_2, LOW);   
  digitalWrite(IN_3, LOW);  
  digitalWrite(IN_4, HIGH);  
      break;  
 case backward:  
    //Moving backward  
  digitalWrite(IN_1, LOW);  
  digitalWrite(IN_2, HIGH);   
  digitalWrite(IN_3, HIGH);  
  digitalWrite(IN_4, LOW);  
      break;  
 case left:  
     //Turning left  
  digitalWrite(IN_3, LOW);  
  digitalWrite(IN_4, HIGH);  
      break;   
  case right:  
     //Turning Right  
  digitalWrite(IN_1, HIGH);  
  digitalWrite(IN_2, LOW);  
      break;  
  case stop_button:  
     //Stop  
  digitalWrite(IN_1, LOW);  
  digitalWrite(IN_2, LOW);   
  digitalWrite(IN_3, LOW);  
  digitalWrite(IN_4, LOW);  
      break;  
 }  
   Serial.println(value);  
   receiver.resume();  
 }  
 }  

 

Now make the connection according to the connection diagram I have shown you above. After that, if you upload the coding, this project will be created for you. But inside the coding you must change. Because you have to do the coding according to the code of the remote you will use. If you have difficulty understanding, then watch this video below carefully.

 

 

100% LikesVS
0% Dislikes

Leave a Comment