Popup

Wait! Don’t Go Yet! 👋

Become a Member Today and Unlock Access to All eBooks! 😍

Thousands of eBooks at your fingertips. Read, learn, and grow anytime, anywhere ✨

DIY Bluetooth Controlled RC Car using Arduino, HC-05, L298N & Lithium Battery

Build your own Bluetooth-controlled RC car using Arduino Uno, the HC-05 Bluetooth module, the L298N motor driver, and a lithium-ion battery. Control it wirelessly with your smartphone and learn core embedded and robotics skills!

Components and supplies

Apps and platforms

Arduino IDE 2.0 (beta)

Project description

Learn how to make a DIY Bluetooth RC car using Arduino Uno, HC-05 Bluetooth module, L298N motor driver, and a Lithium-ion battery. This wireless car project can be controlled via an Android smartphone using a custom Bluetooth controller app. It's a beginner-friendly Arduino robotics project, ideal for anyone interested in IoT, embedded systems, or Arduino car projects.

You’ll understand the basics of motor control, Bluetooth communication, and power management. Perfect for students, hobbyists, or tech enthusiasts looking to build a low-cost, smartphone-controlled RC car.

Components Used

  1. Arduino Uno
  2. HC-05 Bluetooth Module
  3. L298N Motor Driver
  4. Lithium-ion Battery (3.7V or 7.4V)
  5. Chassis with motors and wheels
  6. Android Bluetooth controller app

Code

1int in1 = 12;
2int in2 = 11;
3int in3 = 10;
4int in4 = 9;
5char command;
6
7void setup()
8{
9  pinMode(in1,OUTPUT);
10  pinMode(in2,OUTPUT);
11  pinMode(in3,OUTPUT);
12  pinMode(in4,OUTPUT);
13}
14void loop()
15{
16  if(Serial.available() > 0)
17  {
18    command = Serial.read();
19
20    if(command =='F')
21    {
22    digitalWrite(in1,HIGH);
23    digitalWrite(in2,LOW);
24    digitalWrite(in3,HIGH);
25    digitalWrite(in4,LOW);
26    }
27    if(command=='B')
28    {
29    digitalWrite(in1,LOW);
30    digitalWrite(in2,HIGH);
31    digitalWrite(in3,LOW);
32    digitalWrite(in4,HIGH);
33    }
34    if(command=='R')
35    {
36    digitalWrite(in1,HIGH);
37    digitalWrite(in2,LOW);
38    digitalWrite(in3,LOW);
39    digitalWrite(in4,LOW);
40    }
41    if(command=='L')
42    {
43    digitalWrite(in1,LOW);
44    digitalWrite(in2,LOW);
45    digitalWrite(in3,HIGH);
46    digitalWrite(in4,LOW);
47    }
48    if(command=='S')
49    {
50    digitalWrite(in1,LOW);
51    digitalWrite(in2,LOW);
52    digitalWrite(in3,LOW);
53    digitalWrite(in4,LOW);
54    }
55    
56  }
57}

Circuit Diagram

Circuit Diagram
Share your love

🚀 Discover the world of electronics and innovation!

✨ Create, program, and experiment with all your creative ideas with ease.

Spotpear

Leave a Reply

Your email address will not be published. Required fields are marked *

Secure Payments
Securing online payments is a shared responsibility, and everyone can contribute.
Free Shipping
You get unlimited free shipping on eligible items with Ebokify, with no minimum spend.
24/7 Support
Sales gifts are helpful tools often used to show appreciation to clients for their purchase.
Gifts & Sales
Our customer care service is offered in the form of 1st or 2nd level support.