BLUETOOTH CONTROLLED CAR
Today in this article we are going to Make a Bluetooth control car with Arduino UNO, L293D Motor Driver, and Bluetooth Module.
Here you will get Fully Detailed instructions for making Arduino Bluetooth Controlled Car. Codes are also Included.
I have tried to provide you with all the must-have Circuit Schematics and Diagrams in this article. My intention was to give you all in one guide for making Bluetooth-controlled Cars.
Bluetooth Car is a motion-controlled car. Here, the Bluetooth can be used in two ways by using the button underneath the Bluetooth: By changing the Gear and moving the touching the left, right, forward, and backward the car can be controlled accordingly.
If you want to make a School/ College project then this project is for you. You would not need any special knowledge for making the Arduino Bluetooth control car. So, you should definitely try it.
Watch the Full Video and you will understand everything. Next, follow the step-by-step guide below.
Arduino Bluetooth Control Car making Video
BLUETOOTH CONTROL CAR WORKING
This is a simple Micro-controller based car. The Micro-Controller is connected to the car. The Arduino is doing all this job. For receiving data wire we are using the Bluetooth Module.
At first, We have to connect the Bluetooth module with the wires you want to control. Now, we are doing different operations such as when we move the forward button then the Bluetooth sends the value to the microcontroller.
Next, we have to code in a way that if Arduino Gets a Certainvalue we have to make a certain condition for running the car in a certain direction. So, basically, there are many move cases in the Arduino code. For a known condition or a moving case, the car will perform the added functions in the code.
When we touch the forward button in the Bluetooth controller app then the car starts moving in a forward direction moving continues forward until the next command comes.
When we touch the backward button in the Bluetooth controller app then the car start moving in the reverse direction and moving continues reverse until the next command comes.
When we touch the left button in the Bluetooth controller app the car start moving in the left direction and moving continues left until the next command comes. In this condition,, the front motor turns the front side wheels in the left direction and the rear motor runs in the forward direction.
When we touch the right button in the Bluetooth controller app the car start moving in the right direction and moving continues right until the next command comes. In this condition front side motor turns the front side wheels in the right direction and rear motor runs in the forward direction.
COMPONENTS REQUIRED
Item Image |
Item Name |
Quantity |
Shop Online |
---|---|---|---|
Plywood 16cm X10cm |
1 No | 😀Order Now | |
Caster Wheels |
1 No | Order Now | |
Arduino UNO |
1 No | Order Now | |
L298N Motor Driver |
1 NO | Order Now | |
dc gear motor |
2 no | Order Now | |
Wheel |
2 no | Order Now | |
bluetooth module |
1 No | Order Now | |
18650 cells |
1 No | Order Now | |
18650 battery holder |
2 No | Order Now | |
Switch |
1 No | Order Now | |
Jumper wires |
Enough | Order Now |
TOOLS REQUIRED
Tool Image |
Tool Name |
Shop Online |
---|---|---|
Gun gum |
Order Now | |
Soldering rod with lead |
Order Now | |
Screwdriver |
Order Now |
APPS AND ONLINE SERVICES
Arduino IDE |
Downlond now | |
---|---|---|
Arduino car app |
Downlond now |
CIRCUIT DIAGRAM
circuit for control Bluetooth robotic car
STEPS TO MAKING
I have divided the joystick control car into several steps. By this, you can understand the Arduino car more easily. Please don’t skip any step otherwise it will be difficult to replicate.
Step 1:
First, you will need 2 gear Motors. Sometimes the motor doesn’t come with wire attached. So, In that case, you have to attach the wire to the motors with a soldering iron.
Step 2:
In the same way, I have connected wires with Motors. One suggestion to solder is that please don’t heat the motor terminals too much they will be damaged if you heat that too much. After that, I tested all the motors before connecting and it works just fine.
Step 3:
fix the 360-degree wheel to plywood with help of screws
Step 4:
Now take a Piece of Plywood dimension of 16CM x 10CM. Now use a Glue Gun and place the motor on the Plywood corners. Use the same technique and connect all 2 Motors on the chassis.
Step 5:
I have attached 2 motors in the Plywood. One suggestion to you is to align the motors. Otherwise, the motors will not go straight.
Step 6:
First, take Arduino Uno and attach it to the Chassis. Many people use Hot Glue to attach but I don’t recommend that at all. The coper traces under the PCB may be damaged by the hot glue. So, I used Double-sided tape for attaching the Board. For controlling the Motors we will definitely need a motor driver. The L298n and the L293D motor drivers are most commonly used with Arduino. All these drivers have an inbuilt H-Bridge inside in them for controlling the motors.
Step 7:
Here is the Left and the Right side view of the Car. You can see the connection more clearly here. If you change the motor wires then the motor rotation will also change. Just connect all the motors as shown in the picture and will work just fine.
Note:
Suppose you are powering a DC motor with a power source like 9V Battery. Just think that your motor is rotating in a certain direction. Now, If you change the connection (Suppose previously you connected Red Wire to the +ve and the Gray wire with the -ve of the battery. So, here changing connection means you have to connect the Red wire with the -ve and Gray wire with the +ve) then the motor will rotate in the opposite direction. This is the property of DC Motor. In this way, you can also check your DC Motor is working or not.
Step 8:
I have used 18650 Batteries for Joystick Control Car. You can also use Li-Po Batteries or Lead Acid Batteries as well. My recommendation is to go with Li-ion or Li-Po Battery because this is most commonly used in Projects. Nowadays you can get 18650 Batteries as cheap as 2$. And these batteries will give you the most power.
Connect the Battery wires with the EXT_PWR Terminal Block. The Battery Terminal block has a Switch inbuilt in it. It is used to turn On/ Off the car. I have attached Double-sided tape with the battery holder and connected it with the Chassis.
Note:
But one thing I should definitely mention that Li Batteries are great for DIY Projects. But use with care. Charge with Dedicated chargers. Just being at the safe side you may use the TP4056 Li Charger module. And never ever Over-charge, Over-discharge, or short circuit these batteries. It may blast.
Step 9:
Connect the wires as per shown in the figure or table
wire connection between Arduino and motor driver
Motor Driver(L298n) | Arduino UNO |
---|---|
IN 1 | Pin 4 |
IN 2 | Pin 5 |
IN 3 | Pin 6 |
IN 4 | Pin 7 |
Step 10:
Connect the wires as per the shown in the figure or table
wire connection between Arduino and Joystick Module
>Joystick Module | Arduino UNO |
---|---|
+5ve | 5v |
GND | GND |
Tx | Rx |
Rx | tx |
Step 11:
Next, connect your Arduino with your PC or MAC. After that, we will dive into the software section.
Now, I have provided the code below. Just copy the code and paste it in your Arduino IDE. Before uploading the code to Arduino we need to add a library to Arduino. Just go to the following.
CODE
code for control Bluetooth robotic car
I hope this step-by-step guide will help you for making the Arduino Bluetooth control car with L293D whether you are a Beginner or it is your first-ever Arduino project. All components link are included with proper pricing. Hope this helps. If you have any queries or any suggestions then don’t forget to mention that in the comment section. I will definitely try to help you. Moreover, you can subscribe to our Youtube channel Electromechanics for more amazing content like this.