How to make Arduino Bluetooth rc car

Introduction

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 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.

Learn 10+ basic activities & sensor interfacing with our Arduino ebook. Well explained program. And brief circuit diagram WhatsApp and email support. which will help you to learn basic electronics, Arduino Coding, Sensor interfacing with Arduino, Arduino, and much more. buy Arduino Ebook to learn https://techatronic.com/arduino-ebook/

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.

Serial communication

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.

bluetooth hc-05 rc car

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.

 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.NoComponent RequiredQuantityBuy Link
1.Arduino UNO1https://amzn.to/3ue2vmh
2.Arduino UNO Cable1https://amzn.to/3obXjht
3L298N Motor Driver1https://amzn.to/3CSzX4L
4.DC Motor4https://amzn.to/3a5YDKR
5.HC-05 Bluetooth1https://amzn.to/3zZOeKR
6.9 Volt Battery1https://amzn.to/3zUDj5l
7.12 Volt Battery1https://amzn.to/3F3DizQ
8.Jumper Wire40https://amzn.to/39q43jr
9.Breadboard1https://amzn.to/39vsRX2
10.4 Motor Chassis 1https://amzn.to/39RJxs8
11.2 Motor Chassis1https://amzn.to/3kUxyAd

Connection Diagram for Bluetooth controlled car using Arduino

Connection Table

Arduino UNOL298N Motor Driver
12 PinIN 1
11 PinIN 2
10 PinIN 3
9 PinIN 4
Arduino UNOHC-05 Bluetooth
( +5V ) VCC
GND GND (
TX PinRX Pin
RX PinTX Pin
Arduino UNO9 V BatteryL298N Motor Driver
( +5V )  +5 Volt
 9 Volt+12 Volt
GNDGNDGND
Motor 1, 2 Motor 3, 4 L298N Motor Driver
Terminal 1 Out 1
Terminal 2 Out 2
 Terminal 1Out 3
 Terminal 2Out 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 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

How to upload the program.

Copy the given code and paste it into the Arduini Ide

Click on the tools and select the port of your Arduino

Click on the upload icon on the app

Video Sample

Spread the love, Share this post with friends

Leave a Reply

Your email address will not be published.