Project tutorial
Bluetooth Controlled Car

Bluetooth Controlled Car

A small car based on Arduino platform which can be controlled using Bluetooth and a Android app.

  • 21 views
  • 0 comments
  • 1 respect

Components and supplies

A000066 iso both
Arduino UNO & Genuino UNO
×1
61pby065esl  sx679  tnr8syww5d
HC-05 Bluetooth Module
×1
09670 01
SparkFun Dual H-Bridge motor drivers L298
×1
Battery - 18650 - 7800mAh- 3.7V
×2
56t2029 40
Battery Holder, 18650 x 2
×1
Tens70
9V battery (generic)
×1
Adafruit industries ada80 image 75px
9V to Barrel Jack Connector
×1
BO Motor - Straight - 300rpm
×2
11026 02
Jumper wires (generic)
×1
Ball Caster Wheel
×1
Chasis - Eg. Plastic Box Cover, Acrylic Sheet, Metal Sheet
×1
4314603
Toggle Switch, (Off)-On
×1

Necessary tools and machines

Apps and online services

About this project

  • Step 1: Assemble the circuit as shown in the schematic given below. You can use the battery pack for powering driver circuit which I have mentioned in the components section or you could try out some other battery pack, but keep it mind it should deliver between 7-12V and atleast 3500mAh. Also, use different battery/battery-packs for powering Arduino and the Motor-Driver module, but ensure they share a common ground. Battery is one of the most important thing in this project !
  • Step 2: Compile the code given below in the Arduino-IDE and hit upload, but before that make sure you have disconnected RX of Arduino from TX of Bluetooth Module (HC-05).
  • Step 3: Install the application on your Android device through a link provided below.
  • Step 4: Pair your Android device and HC-05 over Bluetooth. Now, open the app and click on Bluetooth-icon and select your device from the list.
  • Step 5: Now you have gone through all the hard work ! Just sit back and relax and use the on-screen controls available on the app to control the car/bot. You could also change the schematic and code, and add some servos or other actuators to it. But keep it mind as you increase the quantity of actuators, your car/bot would demand more power from the battery/battery-pack.


Code

Bluetooth Controlled CarC/C++
Download/Copy-Paste and compile+upload it using Arduino IDE
char t;
const int r1=13,r2=12,l1=11,l2=10;
 
void setup() {
Serial.begin(9600);
pinMode(r1,OUTPUT);   //right motors forward
pinMode(r2,OUTPUT);   //right motors reverse
pinMode(l1,OUTPUT);   //left motors forward
pinMode(l2,OUTPUT);   //left motors reverse
}
 
void loop() {
if(Serial.available()){
  t = Serial.read();
}
 
if(t == 'F'){            //move forward(all motors rotate in forward direction)
  digitalWrite(r1,HIGH);
  digitalWrite(r2,LOW);
  digitalWrite(l1,HIGH);
  digitalWrite(l2,LOW);
}
 
else if(t == 'B'){      //move reverse (all motors rotate in reverse direction)
  digitalWrite(r1,LOW);
  digitalWrite(r2,HIGH);
  digitalWrite(l1,LOW);
  digitalWrite(l2,HIGH);
}
 
else if(t == 'L'){      //turn right (left side motors rotate in forward direction, right side motors rotate in reverse direction for 100ms & stop)
  digitalWrite(r1,HIGH);
  digitalWrite(r2,LOW);
  digitalWrite(l1,LOW);
  digitalWrite(l2,HIGH);
  delay(100);
  t = 'S';
}
 
else if(t == 'R'){      //turn left (right side motors rotate in forward direction, left side motors rotate in reverse direction for 100ms & stop)
  digitalWrite(r1,LOW);
  digitalWrite(r2,HIGH);
  digitalWrite(l1,HIGH);
  digitalWrite(l2,LOW);
  delay(100);
  t = 'S';
}
 
else if(t == 'S'){      //STOP (all motors stop)
  digitalWrite(r1,LOW);
  digitalWrite(r2,LOW);
  digitalWrite(l1,LOW);
  digitalWrite(l2,LOW);
}
delay(100);
}

Schematics

Bluetooth Controlled Car
Connect them and get going !
Capture dpjkco8jty

Comments

Similar projects you might like

Bluetooth Controlled Car

Project tutorial by JANAK13

  • 28,809 views
  • 30 comments
  • 54 respects

Robotic Car Controlled over Bluetooth by Andriod Phone

Project showcase by S.Ranjith Reddy

  • 8,192 views
  • 1 comment
  • 16 respects

PlayStation Remote Controlled Wireless Car

Project showcase by Jasmeet Singh

  • 8,217 views
  • 5 comments
  • 15 respects

Mobile Controlled Bluetooth Car || Easy || Simple || HC-05

Project tutorial by Team Vishal soni

  • 26,923 views
  • 4 comments
  • 21 respects

Bluetooth Controlled Car

Project showcase by Ian St. Louis

  • 15,700 views
  • 4 comments
  • 18 respects
Add projectSign up / Login