How to make remote control Car with Android phone via Bluetooth

Tutorial video:

Download application “Car Bluetooth RC” to control Car:

Sourcecode:
http://www.mediafire.com/download/gimyczudi0azlqn/RC_CarAVersion1.rar

//My blog: http://unovn.blogspot.com/
 //My apps: 
 #include <SoftwareSerial.h>
 #include <Servo.h>
 int bluetoothTx = 2;
 int bluetoothRx = 3;
 SoftwareSerial bluetooth(bluetoothTx, bluetoothRx);
 // Motor 1 - control forward and fack
 int Motor1A = 5;
 int Motor1B = 6;
 //Motor 2 - control left and right
 int Motor2A = 9;
 int Motor2B = 10;
 void setup()
 {
   //Setup Bluetooth serial connection to android
   bluetooth.begin(115200);
   bluetooth.print("$");
   delay(100);
   bluetooth.println("U,9600,N");
   bluetooth.begin(9600);
   
   
   pinMode( Motor1A, OUTPUT );
   pinMode( Motor1B, OUTPUT );
   pinMode( Motor2A, OUTPUT );
   pinMode( Motor2B, OUTPUT );
   
   digitalWrite( Motor1A, LOW );
   digitalWrite( Motor1B, LOW );
   digitalWrite( Motor2A, LOW );
   digitalWrite( Motor2B, LOW );
 }
 int flag1 = -1;
 int flag2 = -1;
 void loop()
 {
   //Read from bluetooth and write to usb serial
   if(bluetooth.available())
   {
     char toSend = (char)bluetooth.read();
     if(toSend == 'S')
     {
         flag1 = 0;
         flag2 = 0;
         digitalWrite( Motor1A, LOW );
         analogWrite( Motor1B, LOW );
         
         digitalWrite( Motor2A, LOW );
         analogWrite( Motor2B, LOW );
     }
     if(toSend == 'F' || toSend == 'G' || toSend == 'I')
     {
         if(flag1 != 1)
         {
           flag1 = 1;
           digitalWrite( Motor1A, HIGH );
           analogWrite( Motor1B, 50 );
         }
     }
     if(toSend == 'B' || toSend == 'H' || toSend == 'J')
     {
         if(flag1 != 2)
         {
           flag1 = 2;
           digitalWrite( Motor1B, HIGH );
           analogWrite( Motor1A, 50 );
         }
     }
     if(toSend == 'L' || toSend == 'G' || toSend == 'H')
     {
         if(flag2 != 1)
         {
           flag2 = 1;
           digitalWrite( Motor2B, HIGH );
           analogWrite( Motor2A, 50 );
         }
     }
     else
     if(toSend == 'R' || toSend == 'I' || toSend == 'J')
     {
         if(flag2 != 2)
         {
           flag2 = 2;
           digitalWrite( Motor2A, HIGH );
           analogWrite( Motor2B, 50 );
         }
     }
     else
     {
         if(flag2 != 3)
         {
           flag2 = 3;
           digitalWrite( Motor2A, LOW );
           analogWrite( Motor2B, LOW );
         }
     }
   }
 }