Mobile Controlled Car Using Arduino+Bluetooth Module

10,725

120

13

About: 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.....

Intro: Mobile Controlled Car Using Arduino+Bluetooth Module

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...

Share

Recommendations

  • Fix It! Contest

    Fix It! Contest
  • Audio Contest 2018

    Audio Contest 2018
  • Furniture Contest 2018

    Furniture Contest 2018

13 Discussions

0
None
RiazK9

Question 4 months ago on Step 1

please give a good pic of circuit diagram

0
None
mohamedgad46622

4 months ago

I want matlab code for this car please!

0
None
Nakhimie

1 year ago

I want to know how to make a program for

0
None
RajatB13

1 year ago

can i use promini?

0
None
PradeepS90

1 year ago

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.

1 reply
0
None
Kitu SinghPradeepS90

Reply 1 year ago

I think u are using same power source for both adafruit shield and arduino...
this happens because of low current supply from a power source...motor draw whole current when starting ...
use separate battery for arduino...it will definitely solve your problem

0
None
abbu123Kitu Singh

Reply 1 year ago

it asking for unqualified -id before < token

0
None
JayF49

2 years ago

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?

1 reply
0
None
Kitu SinghJayF49

Reply 2 years ago

yes you are right...it is about 10m

0
None
Crazy E-Hub

2 years ago

it asks me for a pin while connecting to it with mobile. can u tell me wat it might me??

1 reply
0
None
Kitu SinghCrazy E-Hub

Reply 2 years ago

Are you asking the pin- asked while pairing HC-05 ....it is 1234 or 12345