Welcome to the Techatronic, in this article we will explain how to make an Arduino Bluetooth RC car.
this is a very simple and basic project from Arduino. and also a very popular project like Smart Dustbin.
there is a lot of searches 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.
Table of Contents
Introduction
Arduino Bluetooth RC car is a car which is connected with the Bluetooth device with our mobile phone an d can be control by the mobile phone. Like there is an application in the mobile phone which connect the car with the Bluetooth communication. and sending signals from application to the device. For example there is som button in the application which control the direction and movement of the car.
Likee there is a button start the car, when you touch on the button the mobile application send a character ‘A’. Now, the device in Arduino Bluetooth rc car will get this character. and send it to the Microcontroller. we code this microcontroller like if the device get ‘A’ then the motor of the car will move forward. for backward direction of car there we can use another character.
This is the method to control the Arduino based Bluetooth RC car.
What you will learn in Arduino Bluetooth car:-
Serial communication:-
What is serial communication and why is 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 is arranged 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 for a Bluetooth-controlled car using Arduino.
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.
we have made a gesture control car too with this technology.
How does a Bluetooth RC car work?
- in the Arduino Bluetooth car, the data is sent by the mobile phone to the Bluetooth module hc-05 which is connected to the Arduino,
- and the Arduino takes 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
- Arduino UNO cable
- Bluetooth Module HC-05
- Jumper Wires
- Chassis
- L298N Motor Driver
- 12V Battery
- Wheel
- BO motor
Component Table
You can buy the whole components from the given link we have to share the amazon link. from where you can get a good discount on the components.
S.No | Component Required | Quantity |
1. | Arduino UNO | 1 |
2. | Arduino UNO Cable | 1 |
3 | L298N Motor Driver | 1 |
4. | DC Motor | 4 |
5. | HC-05 Bluetooth | 1 |
6. | 9 Volt Battery | 1 |
7. | 12 Volt Battery | 1 |
8. | Jumper Wire | 40 |
9. | Breadboard | 1 |
10. | 4 Motor Chassis | 1 |
11. | 2 Motor Chassis | 1 |
Connection Diagram for Bluetooth controlled car using Arduino
Connection Table
Arduino UNO | L298N Motor Driver | |
12 Pin | IN 1 | |
11 Pin | IN 2 | |
10 Pin | IN 3 | |
9 Pin | IN 4 | |
Arduino UNO | HC-05 Bluetooth | |
( +5V ) | VCC | |
GND | GND ( | |
TX Pin | RX Pin | |
RX Pin | TX Pin | |
Arduino UNO | 9 V Battery | L298N Motor Driver |
( +5V ) | +5 Volt | |
9 Volt | +12 Volt | |
GND | GND | GND |
Motor 1, 2 | Motor 3, 4 | L298N Motor Driver |
Terminal 1 | Out 1 | |
Terminal 2 | Out 2 | |
Terminal 1 | Out 3 | |
Terminal 2 | Out 4 |
Bluetooth-controlled car using Arduino code
//Techatronic.com
char m=0;
void setup()
{
pinMode(9, OUTPUT);
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
pinMode(12, OUTPUT);
Serial.begin(9600);
}
void loop()
{
if (Serial.available()>0)
{
m=Serial.read();
Serial.println(m);
}
if (m=='R')
{
digitalWrite(9, HIGH);
digitalWrite(10, LOW);
digitalWrite(11, HIGH);
digitalWrite(12, LOW);
}
else if (m=='L')
{
digitalWrite(9, LOW);
digitalWrite(10, HIGH);
digitalWrite(11, LOW);
digitalWrite(12, HIGH);
}
else if (m=='F')
{
digitalWrite(9, HIGH);
digitalWrite(10, LOW);
digitalWrite(11, LOW);
digitalWrite(12, HIGH);
}
else if (m=='B')
{
digitalWrite(9, LOW);
digitalWrite(10, HIGH);
digitalWrite(11, HIGH);
digitalWrite(12, LOW);
}
else if (m=='S')
{
digitalWrite(9, LOW);
digitalWrite(10, LOW);
digitalWrite(11, LOW);
digitalWrite(12, LOW);
}
}
How to upload the program.
Copy the given code and paste it into the Arduino Ide
Click on the tools and select the port of your Arduino
Click on the upload icon on the app
How to set up the Android app for Arduino Bluetooth RC Car
- Download the Bluetooth RC controller from Given link
- Click on the Setting icon and connect with your Bluetooth device
To connect with your device you need to turn on your Bluetooth. then go to the setting and pair new device. after getting the HC-05 device pait your app with the device. if it ask for the password then write 1234. after completing pairing now go to the application. click on the connect button now. select your device which is hc-05. Now it is connected.
After connecting the application with your Arduino Bluetooth RC Car. you can operate your car with the application.
Great, share me others, please