How to make Arduino Bluetooth rc car

How to make Arduino Bluetooth rc car

Arduino Bluetooth RC car

Welcome to the Techatronic, in this article we will explain how to make Arduino Bluetooth RC car. this is a very simple and basic project from the Arduino. and also a very popular project like Smart Dustbin. there is a lot of search for this project. so, we decided to make the projects with all the instructions required to make it possible. what does it do? it moves according to your instructions which we will give you on your mobile phone. and you can use this RC car robot in many applications, for example, you can use this robot in your home to carry the food. or we can use this robot to clean our floor. this depends on you where you can use this awesome robot. to learn how to make the robot please read the full article step by step. there is some table of content as given as follows.

Arduino Bluetooth rc car image

  1. What we will learn in this project.
  2. How does it work?
  3. Components Required to make the project.
  4. Connection Diagram
  5. Code of the project.
  6. How to set up the android app.
  7.  How to upload the program.

What you will learn in this project:-

  • Serial communication:-

What is serial communication and why it needed? We have a lot of data in parallel manners. for example, if I have the data “ASKONIZATION” has to be transferred, then we need 12 wires or 12 paths to transfer the data from one device to another device. but as we are using serial communication then the data arranged in the Serially with the help of some shift register and can be transferred by a single wire. this is a very easy and simple way to transfer a lot of data with a single wire instead of using multiple paths or wires.

  • How to use Bluetooth module hc-05 with Arduino:-

As we discussed in the above paragraph about serial communication now we will learn how to transfer the data through Bluetooth using serial communication. There are four pins in the Bluetooth module Rx, Tx, VCC, and ground. connect properly according to the given circuit diagram. We will use the baud rate 9600 on which a Bluetooth hc-05 can communicate with the Arduino. Bluetooth module HC-05 is easy to use because we are having many libraries inside the Arduino IDE. which helps to write the program.

 How does it work?

in the Arduino Bluetooth car the data send by the mobile phone to the Bluetooth module hc-05 which is connected to the Arduino and the Arduino take decisions according to the data received via Bluetooth. if you send an instruction for left from your mobile phone then the Arduino will send the instruction to the motor to move the right. but you have to connect the mobile device with your Bluetooth RC car. and there is an app that controls the touch feedback to any instruction.

    Components Required to make Arduino Bluetooth RC car

  • Arduino Uno  (click to buy)
  • Bluetooth Module HC-05
  • Jumper Wires
  • Chassis
  • L298N Motor Driver
  • 12V Battery

   Connection Diagram for Bluetooth controlled car using Arduino

arduino bluetooth rc car circuit diagram

 

  Bluetooth control Rc car Arduino code

 

char m=0;
/* Sweep
 by BARRAGAN <http://barraganstudio.com>
 This example code is in the public domain.

 modified 8 Nov 2013
 by Scott Fitzgerald
 http://www.arduino.cc/en/Tutorial/Sweep
*/




void setup() {
  // put your setup code here, to run once:

pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);

Serial.begin(9600);
}
void loop() {
 
 
 if (Serial.available()>0)
 {
  m=Serial.read();
  Serial.println(m);
  }
 if (m=='F')
{
  digitalWrite(4, HIGH);
  digitalWrite(5, LOW);
  digitalWrite(6, HIGH);
  digitalWrite(7, LOW);
  
  
  }

  else if (m=='B')
{
  
  digitalWrite(4, LOW);
  digitalWrite(5, HIGH);
  digitalWrite(6, LOW);
  digitalWrite(7, HIGH);
  
  
  }

else if (m=='R')
{
  
  digitalWrite(4, HIGH);
  digitalWrite(5, LOW);
  digitalWrite(6, LOW);
  digitalWrite(7, HIGH);
  
  }

 else if (m=='L')
{
  
  digitalWrite(4, LOW);
  digitalWrite(5, HIGH);
  digitalWrite(6, HIGH);
  digitalWrite(7, LOW);
  
  }


else
{
  digitalWrite(4, LOW);
  digitalWrite(5, LOW);
  digitalWrite(6, LOW);
  digitalWrite(7, LOW);
  } 

  
 // put your main code here, to run repeatedly:

}

;

How to set up the android app

  1. Download Bluetooth RC controller from play store
  2. Click on the Setting icon and connect with your Bluetooth device

Bluetooth rc car app

 

How to upload the program.

Copy the given code and paste into the Arduini Ide

click on the tools and select the port of your Arduino

click on the upload icon on the app