Project tutorial

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

This the Bluetooth controlled car that used HC-05 Bluetooth module to communicate with mobile.

  • 13,945 views
  • 3 comments
  • 18 respects

Components and supplies

Apps and online services

About this project

Please SUBSCRIBE to my YouTube channel. This is the Bluetooth controlled car that used HC-05 Bluetooth module to communicate with mobile. We can control the car with mobile via Bluetooth. There is an app to control the motion of car.

Step 1: Requirements

  • Arduino Uno
  • Motor shield
  • Battery for motor (above 4v and above 1amp)
  • Power bank of 5v to power the Arduino
  • HC-05 Bluetooth module
  • Robot chassis

Step 2: Assemble the Chassis

Assemble the motor, wheels and chassis, as per the given instructions with chassis.

Step 3: Download the Zip File

  • Download the zip file
  • And extract it

Download the code here

Step 4: Add the AF Motor Library

  • Extract the zip file
  • Open extracted folder
  • Copy the AF motor folder
  • Now go to document section
  • Open Arduino folder
  • Now open library folder
  • Paste the AFMotor folder
  • Then close it

Step 5: Upload Program

  • Connect Arduino with laptops or PC
  • Open extracted folder again
  • Open the car program
  • Go to the tools in Arduino software
  • Make sure board are Arduino Uno and port where Arduino connected
  • Upload the program

Step 6: Circuit Connections

  • Solder two wires at Arduino's 0 and 1 pins: RX and TX.
  • Fix the motor shield on the top of Arduino
  • Connect all motors on motor shield as given in the schematic.
  • Left motor is connected to M3 and M4
  • Right motor is connected to M1 and M2
  • If any motors are rotating in the reverse direction, then reverse the connection of motor.

Step 7: Add Bluetooth Module

  • Take Bluetooth module
  • Connect two female to female wires at +5v and GND
  • Connect Bluetooth's +5v and GND with servo's + and - on motor shield as shown in picture.
  • Connect RX of Arduino to TX of Bluetooth module
  • Connect TX of Arduino to RX of Bluetooth module

Step 8: Power the Arduino and Motors

  • Connect the power bank to Arduino via USB cable
  • Connect the battery to motor shield

Step 9: Connect the App

  • Turn on Bluetooth
  • Search for new device
  • Click on HC-05
  • Enter the password 1234
  • Once it's paired, open Play Store
  • Search for Arduino Bluetooth RC car
  • Download the app and open
  • Click on setting icon
  • Click on connect to car
  • Click on HC-05
  • When the red light turns green it means it's connected
  • All done

Step 10: All Done

Now all done move left, right and up, down arrow in app to operate robot.

Code

Mobile Controlled carC/C++
#include <AFMotor.h>

AF_DCMotor motor1(1);
AF_DCMotor motor2(2);
AF_DCMotor motor3(3);
AF_DCMotor motor4(4);

char bt='S';
void setup()
{
  Serial.begin(38400);
 
  motor1.setSpeed(255);
  motor2.setSpeed(255);
  motor3.setSpeed(255);
  motor4.setSpeed(255);
  Stop();
}


void loop() {
 
bt=Serial.read();

if(bt=='F')
{
 forward(); 
}

if(bt=='B')
{
 backward(); 
}

if(bt=='L')
{
 left(); 
}

if(bt=='R')
{
 right(); 
}

if(bt=='S')
{
 Stop(); 
}

}
void forward()
{
     motor1.run(FORWARD);
  motor2.run(FORWARD);
  motor3.run(FORWARD);
  motor4.run(FORWARD);
}

void backward()
{
     motor1.run(BACKWARD);
  motor2.run(BACKWARD);
  motor3.run(BACKWARD);
  motor4.run(BACKWARD);
}
void left()
{
  motor1.run(FORWARD);
  motor2.run(FORWARD);
  motor3.run(BACKWARD);
  motor4.run(BACKWARD);
}
void right()
{
  motor1.run(BACKWARD);
  motor2.run(BACKWARD);
  motor3.run(FORWARD);
  motor4.run(FORWARD);
}
void Stop()
{
  motor1.run(RELEASE);
  motor2.run(RELEASE);
  motor3.run(RELEASE);
  motor4.run(RELEASE);
}

Schematics

Motor connection on motor shield
Screenshot 2017 10 23 11 27 23 265 com uzl2okqlud

Comments

Similar projects you might like

Bluetooth Controlled Car

Project tutorial by JANAK13

  • 2,347 views
  • 7 comments
  • 15 respects

Bluetooth Controlled Car

Project showcase by Ian St. Louis

  • 10,741 views
  • 3 comments
  • 12 respects

Robotic Car Controlled over Bluetooth by Andriod Phone

Project showcase by S.Ranjith Reddy

  • 4,430 views
  • 0 comments
  • 9 respects

Turn your RC Car to Bluetooth RC car

Project tutorial by Prajjwal Nag

  • 11,968 views
  • 1 comment
  • 11 respects

Gesture Controlled Trainable Arduino Robot Arm via Bluetooth

Project tutorial by KureBas Robotics

  • 11,567 views
  • 41 comments
  • 98 respects
Add projectSign up / Login