Project tutorial
Android Arduino RC Car

Android Arduino RC Car © GPL3+

Android app control Arduino RC car via bluetooth.

  • 18,700 views
  • 3 comments
  • 41 respects

Components and supplies

Apps and online services

About this project

Hi everyone! This my first tutorial goes through on a BLUETOOTH RC CAR

Step 1: Introduction

The Arduino is platform open-source hardware, based on a simple board with inputs and outputs, analog and digital, in a development environment that is based on the programming language processing. It is a device that connects the physical world with the virtual world, or the analogue world with the digital. for more www.arduino.cc

Android is a mobile operating system (OS) currently developed by Google, based on the Linux kernel and designed primarily for touch screen mobile devices for more

Here we make Another Hardware using both this platform.

Mainly this project have 2 steps.

1) We create this on a Arduino board and fit it on a chassis.

2) Then make a PCB and mount Microcontroller on it and fit it on RC car.

FIRST create prototype on Arduino development board using this parts.

For this project we need following parts >.

  • Arduino
  • Battery pack
  • L293D Motor driver
  • HCSR-05 Bluetooth module
  • Jumper cables
  • Chasis
  • Wheels
  • Caster wheel
  • LED

STEP : 1

Connect parts like as below diagram.

After that check that fit it your RC car. And upload code in to Arduino.(((you can make modification if needed.)))

After connecting this part upload below code in to your Arduino . ((you can make modification if you needed ))

STEP : 2

/*ANDROID ARDUINO BLUETOOTH RC CAR  */ 
//this is arduino code//
/*-----------------------code start here -------------------------------------*/
int led = 3;        //led 
int outPin1 = 5;     //motor1 
int outPin2 = 6;    //motor1 
int outPin4 = 11;   //motor2 
int outPin3 = 12;   //motor2 
char bt = 0;       //BT  
/*------------------------------------------------------------------------------*/ 
void setup() 
{ 
Serial.begin(9600); 
pinMode(outPin1,OUTPUT); 
pinMode(outPin2,OUTPUT); 
pinMode(outPin3,OUTPUT); 
pinMode(outPin4,OUTPUT); 
pinMode(led,OUTPUT); 
} 
void loop() 
{ 
if (Serial.available() > 0) 
{ 
 bt = Serial.read(); 
 digitalWrite(led, 1); 
 /*________________________________________________________________________*/ 
 if(bt == 'F')        //move forwards 
 { 
   digitalWrite(outPin1,HIGH); 
   digitalWrite(outPin2,LOW); 
   digitalWrite(outPin3,HIGH); 
   digitalWrite(outPin4,LOW); 
 } 
 else if (bt == 'B')       //move backwards 
 { 
   digitalWrite(outPin1,LOW); 
   digitalWrite(outPin2,HIGH); 
   digitalWrite(outPin3,LOW); 
   digitalWrite(outPin4,HIGH); 
 } 
 else if (bt == 'S')     //stop!! 
 {    
   digitalWrite(outPin1,LOW); 
   digitalWrite(outPin2,LOW); 
   digitalWrite(outPin3,LOW); 
   digitalWrite(outPin4,LOW); 
 } 
 else if (bt == 'R')    //right 
 { 
   digitalWrite(outPin1,HIGH); 
   digitalWrite(outPin2,LOW); 
   digitalWrite(outPin3,LOW); 
   digitalWrite(outPin4,LOW); 
 } 
 else if (bt == 'L')     //left 
 { 
   digitalWrite(outPin1,LOW); 
   digitalWrite(outPin2,LOW); 
   digitalWrite(outPin3,HIGH); 
   digitalWrite(outPin4,LOW); 
 } 
 else if (bt == 'I')    //forward right 
 { 
   digitalWrite(outPin1,HIGH); 
   digitalWrite(outPin2,LOW); 
   digitalWrite(outPin3,LOW); 
   digitalWrite(outPin4,HIGH); 
 } 
 else if (bt == 'G')    //forward left 
 { 
   digitalWrite(outPin1,LOW); 
   digitalWrite(outPin2,HIGH); 
   digitalWrite(outPin3,HIGH); 
   digitalWrite(outPin4,LOW); 
 } 
 } 
} 
/*---------------- E N  D ------------------------------------------------------*/ 

SO, NOW WE CREATE PROTOTYPE

Check your RC CAR is that is fine ....

STEP : 3

Next we want to create a PCB based on our prototype.

So first make a PCB design using Design software.

You can use “Eagle cad” “Fritzing” ...etc

I’m using Eagle cad . You can find Eagle tutorial here.

tutorial 1 ---- this is a playlist with full tutorial ---

tutorial 1

Eagle cad file is below attachment section ((You can modify if needed ))

Next we want to create PCB board.

You can find many tutorials in YouTube. checkout some tutorial below.

tutorial 1

tutorial 2

After making PCB drill ad solder the pats on it.

Now our board is ready.

Then fit board in the RC car chassis.

STEP : 4

Download android app from Google play store and install.

App download here

connect through BLUETOOTH by pairing with pass code: 0000 or 1234

please watch working video here ....

RC car working video

Code

Arduino codeArduino
Arduino RC car code..
/*ANDROID ARDUINO BLUETOOTH RC CAR  */
  

 




int led = 3;        //led

int outPin1 = 5;     //motor1
int outPin2 = 6;    //motor1

int outPin4 = 11;   //motor2
int outPin3 = 12;   //motor2

char bt = 0;       //BT 
/*-----------------------------------------------------------------------------------------------------*/

void setup()
{
  Serial.begin(9600);
  
  pinMode(outPin1,OUTPUT);
  pinMode(outPin2,OUTPUT);
  pinMode(outPin3,OUTPUT);
  pinMode(outPin4,OUTPUT);
  
  pinMode(led,OUTPUT);
}
void loop()
{
  if (Serial.available() > 0)
  {
    bt = Serial.read();
    digitalWrite(led, 1);
    /*_________________________________________________________________________________________________*/
    
    if(bt == 'F')        //move forwards
    {
      digitalWrite(outPin1,HIGH);
      digitalWrite(outPin2,LOW);
      digitalWrite(outPin3,HIGH);
      digitalWrite(outPin4,LOW);
    }
    else if (bt == 'B')       //move backwards
    {
      digitalWrite(outPin1,LOW);
      digitalWrite(outPin2,HIGH);
      digitalWrite(outPin3,LOW);
      digitalWrite(outPin4,HIGH);
    }
    else if (bt == 'S')     //stop!!
    {   
      digitalWrite(outPin1,LOW);
      digitalWrite(outPin2,LOW);
      digitalWrite(outPin3,LOW);
      digitalWrite(outPin4,LOW);
    }
    else if (bt == 'R')    //right
    {
      digitalWrite(outPin1,HIGH);
      digitalWrite(outPin2,LOW);
      digitalWrite(outPin3,LOW);
      digitalWrite(outPin4,LOW);
    }
    else if (bt == 'L')     //left
    {
      digitalWrite(outPin1,LOW);
      digitalWrite(outPin2,LOW);
      digitalWrite(outPin3,HIGH);
      digitalWrite(outPin4,LOW);
    }
    else if (bt == 'I')    //forward right
    {
      digitalWrite(outPin1,HIGH);
      digitalWrite(outPin2,LOW);
      digitalWrite(outPin3,LOW);
      digitalWrite(outPin4,HIGH);
    }
    else if (bt == 'G')    //forward left
    {
      digitalWrite(outPin1,LOW);
      digitalWrite(outPin2,HIGH);
      digitalWrite(outPin3,HIGH);
      digitalWrite(outPin4,LOW);
    }//arduino//

  
      
    }
  
  }
  /*---------------- E N  D -----------------------------------------------------------------------*/

Custom parts and enclosures

EAGLE FILE
Eagle PCB schematic and board file
Eagle.zip

Schematics

Arduino connection diagram
fritzing file ..
Rc%20car%20 bb

Comments

Similar projects you might like

Turn your RC Car to Bluetooth RC car

Project tutorial by Prajjwal Nag

  • 12,004 views
  • 1 comment
  • 11 respects

Arduino 4WD RC Car

Project tutorial by Andriy Baranov

  • 13,133 views
  • 3 comments
  • 43 respects

RC Car Hack With Android And Arduino

Project showcase by danionescu

  • 10,248 views
  • 2 comments
  • 13 respects

Hacking A RC Car To Control It Using An Android Device

Project tutorial by MJRoBot

  • 21,012 views
  • 0 comments
  • 39 respects

RC Car to BT Car Controlled with Blynk

Project tutorial by Team Daxes Hacks

  • 3,634 views
  • 2 comments
  • 6 respects

Smartphone Controlled Arduino 4WD Robot Car

Project in progress by Andriy Baranov

  • 53,307 views
  • 43 comments
  • 98 respects
Add projectSign up / Login