Table of Contents
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.
- What we will learn in this project.
- How does it work?
- Components Required to make the project.
- Connection Diagram
- Code of the project.
- How to set up the android app.
- 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.
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.
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 | Buy Link |
1. | Arduino UNO | 1 | https://amzn.to/3ue2vmh |
2. | Arduino UNO Cable | 1 | https://amzn.to/3obXjht |
3 | L298N Motor Driver | 1 | https://amzn.to/3CSzX4L |
4. | DC Motor | 4 | https://amzn.to/3a5YDKR |
5. | HC-05 Bluetooth | 1 | https://amzn.to/3zZOeKR |
6. | 9 Volt Battery | 1 | https://amzn.to/3zUDj5l |
7. | 12 Volt Battery | 1 | https://amzn.to/3F3DizQ |
8. | Jumper Wire | 40 | https://amzn.to/39q43jr |
9. | Breadboard | 1 | https://amzn.to/39vsRX2 |
10. | 4 Motor Chassis | 1 | https://amzn.to/39RJxs8 |
11. | 2 Motor Chassis | 1 | https://amzn.to/3kUxyAd |
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 set up the android app
- Download Bluetooth RC controller from play store
- 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
Great, share me others, please