loading

Hello friends,

In this project i will show you how to make a android phone controlled car using Bluetooth module and Arduino Uno Board.

In this i also show you how to make android app for the same so that you can further change/modify it acc. to your needs.

Overall this project cover everything you need to build up a mobile controlled car(Hardware+coding).

Step 1: Hardware and Software Required

Hardware:

  • 2 Motors(100-300rpm)
  • car Chassi
  • 2 Tyres
  • 1 caster weel
  • Breadboard
  • Battery 9v
  • Power Adapter(9-24v)
  • Male to male wires
  • L293d IC(Motor driver IC)
  • Arduino Uno
  • Bluetooth Module

Softwares

  • Arduino
  • Android Studio

Use of these all are explained in next steps...

Step 2: Setup of Hardware

1.First design your car using Chassi, tyres, caster wheel and Motors.

2.Paste breadboard on car using double sided tape.

3.Now again using double sided tape fix Arduno board on breadoard.

there is no restriction on setting up hardware in same way...these are just ideas...

Step 3: Connections

Do connections as shown in figure above.

  • Here L293d is used because maximum output voltage of Arduino board is 5V. But we want more than 5V to run our Motors therefore we use L293D(Motor driver IC containing two H bridges) which can supply upto 32V to motors.
  • -To 8th pin of L293D ,you can provide voltage upto 32v ,depend on you how much speed of car you need...

Power Supply to Arduino and Motor

  • Adapter of required voltage can be used to power IC/Motors and separate 9V battery can be used to power Arduino Board
  • Please don't suppy Arduino Board more than 12V, it can burn out the the Board.
  • Paste any insulator(Double sided tap) below Arduino to prevent short circuiting.

Bluetooth Module

  • Connection of VCC and GND of bluetooth module must be done with arduino 5V and GND.

  • connect TXD pin to RX pin of Arduino.

If any confusions feel free to write to me...

Step 4: Arduino Code

Download Arduino software and write below code in it...

char command;<br>String string;
  void setup()
  {
     pinMode(2,OUTPUT);//MOTOR1
     pinMode(3,OUTPUT);//MOTOR1
     pinMode(4,OUTPUT);//MOTOR 2
     pinMode(5,OUTPUT);//MOTOR 2
Serial.begin(9600);
    
  }
  void loop()
  {
    if (Serial.available() > 0) 
    {string = "";}
    
    while(Serial.available() > 0)
    {
      command = ((byte)Serial.read());
      
      if(command == ':')
      {
        break;
      }
      
      else
      {
        string += command;
      }
      
      delay(1);
    }
    
    if(string == "F")//Forward
    {
  digitalWrite(2, HIGH);
  digitalWrite(3, LOW);
  digitalWrite(4, HIGH);
  digitalWrite(5, LOW);
       Serial.println(string);
    }
    
    if(string =="B")//Back
    {
  digitalWrite(2, LOW);
  digitalWrite(3, HIGH);
  digitalWrite(4, LOW);
  digitalWrite(5, HIGH);
        Serial.println(string);
    }
    
    if(string =="R")//Turn Right
    {
  digitalWrite(2, HIGH);
  digitalWrite(3, LOW);
  digitalWrite(4, LOW);
  digitalWrite(5, LOW);
        Serial.println(string);
    }
    
    if(string =="L")//Turn Left
    {
  digitalWrite(2, LOW);
  digitalWrite(3, LOW);
  digitalWrite(4, HIGH);
  digitalWrite(5, LOW);
        Serial.println(string);
    }
    
    if(string =="S")//Stop
    {
  digitalWrite(2, LOW);
  digitalWrite(3, LOW);
  digitalWrite(4, LOW);
  digitalWrite(5, LOW);
        Serial.println(string);
    }
    
 }

Step 5: Android App Code in Android Studio

This section for those who used Android Studio before...

New user can also use this code and modify it with help of tutorials on android studio...

Below link is given to download android files and apk file...

For Android Files(.rar):

https://drive.google.com/open?id=0B4eY-jcXDOueajhQT3BKMzYwdWM

For .apk file:

https://drive.google.com/open?id=0B4eY-jcXDOueRXU0...

Import android file(Bluetooth Control Car1) in android studio and enjoy editing...

Step 6: Last

After done everything:

  1. uploading Arduino code in Arduino Uno Board
  2. Installing .apk file on mobile
  3. making all connections

NOTE: dont forget to pair your bluetooth module first...while pairing it will ask pin which is 1234 or 12345.

Now you can control your bot/car using your android phone..

IF ANY QUERIES PLEASE WRITE...

<p>we made it , but we add a sensor and we want to save the data in the SD card, any idea ?</p>
<p>yes it can be done...recieving data has little bit complex code...</p>
<p>can you give me a hint or any website , i have to submit my project in two days, and thanks for the reply </p>
I made it with a adafruit shield but when I connect the bot to external power supply whenever I move it the Bluetooth disconnects.But it runs fine when connected to computer. Please give a solution.
I think u are using same power source for both adafruit shield and arduino...<br>this happens because of low current supply from a power source...motor draw whole current when starting ...<br>use separate battery for arduino...it will definitely solve your problem
<p>Cool Arduino car.</p>
thank you!:-)
it asking for unqualified -id before &lt; token
<p>I should be able to put this in a water-tight body of some sort and use paddle wheels instead of road tyres. Instant paddle-wheel river boat model. If I recall correctly, Bluetooth range is about 10 meters or about 33 feet?</p>
<p>yes you are right...it is about 10m</p>
<p>it asks me for a pin while connecting to it with mobile. can u tell me wat it might me??</p>
<p>Are you asking the pin- asked while pairing HC-05 ....it is 1234 or 12345</p>

About This Instructable

7,664views

120favorites

License:

Bio: Likes to build circuits, electronics project in free time... Also love coding...have knowledge of JAVA, C, C++, Arduino, HTML, Android Studio, LabView, CoDeSys, OrCAD.....
More by Kitu Singh:Smart Solar Lamp Mobile control LED(Arduino+Bluetooth module) App for Mobile control LED(Arduino+Bluetooth module) 
Add instructable to: