Project tutorial
Bluetooth-Controlled Car

Bluetooth-Controlled Car

It's a basic 4-wheel drive car which can be controlled by Android phones.

  • 33,865 views
  • 3 comments
  • 42 respects

Components and supplies

Apps and online services

About this project

Hello! In this project I will show you how to make a Bluetooth-controlled car which can be controlled through your Android smartphone!

Before starting, make sure that you have:

  • Arduino Uno board
  • L293D motor driver
  • HC-06 Bluetooth module
  • An RC car that can fit all the above!

Optionally, you will need:

  • 1M & 100K resistor for battery level
  • 4x LEDs for lights
  • 1x speaker/buzzer for horn sound

For power, you can use the existing batteries (4x 1.5V AA), or replace them with a LiOn rechargeable battery pack.

At the time I build mine LiPo batteries were not available so I used 12V lead acid batteries. It was just an explanatory Model which can be modified in many ways it's up to your creativity. So best of luck for the project.

Breadboard Schematic:

Ι suggest you build your circuit on a (small) breadboard first. Then after checking the circuit, you can make your own PCB. I have attached my PCB layout (it can be improved very much).

Android Bluetooth Controller

To control your new Bluetooth car, download and install this Android application from the play store named Bluetooth car.

Basic Tutorial Video

My first video! So forgive me for the little mistakes.

My Bluetooth Car in Action!

Tips

  • First enable Bluetooth and establish connection with BT module (ex. HC-06, password 1234). Use the "Help & Info" button if you cannot understand how it is working.
  • Accelerometer function is under development, use with caution!
  • If you have problem with this app on your Android device, you can also use this one.

Please share your innovative ideas.

"Learning and innovation go hand in hand. The arrogance of success is to think that what you did yesterday will be sufficient for tomorrow."

Code

Arduino codeArduino
/***************************BLUETOOTH CONTROLLED CAR CODE**************************/

//Declare the arduino pins

int lm1 = 10;
int lm2 = 9;
int rm1 = 8;
int rm2 = 7;
int horn = 11;
int fl = 3;
int bl = 2;

void setup()
{
  //initlize the mode of the pins
   pinMode(lm1,OUTPUT);
   pinMode(lm2,OUTPUT);
   pinMode(rm1,OUTPUT);
   pinMode(rm2,OUTPUT);
   pinMode(horn,OUTPUT);
   pinMode(fl,OUTPUT);
   pinMode(bl,OUTPUT);

   //set the serial communication rate
  Serial.begin(9600);
}

void loop()
{
  //check whether arduino is reciving signal or not 
  while(Serial.available() == 0);
  char val = Serial.read() ;//reads the signal
  Serial.print(val);

  /*********For Forward motion*********/
  
  if (val == 'F')
  {
    Serial.println("FORWARD");
    digitalWrite(lm1,HIGH);  digitalWrite(rm1,HIGH);
    digitalWrite(lm2,LOW);       digitalWrite(rm2,LOW);
    
  }

 
    /*********For Backward Motion*********/
  else if(val == 'B')
  {
  Serial.println("BACK");
      digitalWrite(lm2,HIGH);  digitalWrite(rm2,HIGH);
    digitalWrite(lm1,LOW);       digitalWrite(rm1,LOW);
  
  }
   /*********Right*********/
  else if(val == 'R')
  {
  Serial.println("RIGHT");
    digitalWrite(lm1,HIGH);  digitalWrite(rm2,HIGH);
    digitalWrite(lm2,LOW);       digitalWrite(rm1,LOW);
  }
   /*********Left*********/
  else if(val == 'L')
  {
   Serial.println("LEFT");
     digitalWrite(lm2,HIGH);  digitalWrite(rm1,HIGH);
    digitalWrite(lm1,LOW);       digitalWrite(rm2,LOW);
  
  }
   /*********Horn*********/
 else if(val == 'V')
  {
  digitalWrite(horn,HIGH);
  }
else if(val == 'v')
  {
    digitalWrite(horn,LOW);
  }
  
  /*********Front Lights*********/
  else if(val == 'W')
  {
  digitalWrite(fl,HIGH);
  }
  else if(val == 'w')
  {
    digitalWrite(fl,LOW);
  }
  /*********Back Lights*********/
  else if(val == 'U')
  {
    digitalWrite(bl,HIGH);
  }
  else if(val == 'u')
  {
    digitalWrite(bl,LOW);
  }
  /*********STOP*********/
  else
  {
  Serial.println("Invalid!!!");
     digitalWrite(lm1,LOW);  digitalWrite(rm1,LOW);
    digitalWrite(lm2,LOW);       digitalWrite(rm2,LOW);

  }
  
}

Schematics

Schematics
Fni8wdji49rn77h chmfpema7v
PCB Layout
l293d_-_UUdCgyHTgq.dip

Comments

Similar projects you might like

Turn your RC Car to Bluetooth RC car

Project tutorial by Prajjwal Nag

  • 11,967 views
  • 1 comment
  • 11 respects

Bluetooth-Controlled Car

Project showcase by Team ajay singh

  • 2,407 views
  • 1 comment
  • 6 respects

Robotic Car controlledover Bluetooth with Obstacle Avoidance

Project showcase by S.Ranjith Reddy

  • 9,582 views
  • 5 comments
  • 17 respects

Voice Controlled Car

Project tutorial by Yug_Ajmera

  • 5,088 views
  • 0 comments
  • 9 respects

Hacking A RC Car To Control It Using An Android Device

Project tutorial by MJRoBot

  • 21,012 views
  • 0 comments
  • 39 respects

Android Arduino RC Car

Project tutorial by RAFI RASHEED T C

  • 15,340 views
  • 2 comments
  • 38 respects
Add projectSign up / Login