BLUETOOTH CONTROLLED ROBOT

The project is to design and construction of Robot controlling with Blue tooth to
Navigate in the desired place (with in the range of Bluetooth), using the microcontroller.
The project was divided into two phases. The First phase is to demonstrate the application of
Bluetooth communication for coordinated robotic search. The second phase of the project
Attempts to control the robotic movements which send the information to master Bluetooth.
The information flows in two ways: on the one hand there are commands from the computer
To the Bluetooth robot for controlling directions and also different characteristics of it.
This project deals with one of the application of robotics. In this project one moving object is
Developed which is controlled by Bluetooth technology. Micro controller along with the
Driver circuit is provided to run the dc motor. According to the signal from Bluetooth
Device (connected to a system) robot follows the path, which is driven by a stepper/dc motor.
The up/down and left/right arrow keys of application in android mobile control the robot movement

CIRCUIT DIAGRAM




PROGRAM

void setup()
{  
 Serial.begin(9600);
 pinMode(5,OUTPUT);
 pinMode(6,OUTPUT);
 pinMode(7,OUTPUT);
 pinMode(8,OUTPUT);
 pinMode(9,OUTPUT);
 pinMode(10,OUTPUT);
 pinMode(11,OUTPUT);
 pinMode(12,OUTPUT);

}
void loop()
{
  if(Serial.available() > 0)
  {
    
    char a =Serial.read();Serial.write(a);
    if(a=='F')
    {
      frd(5,6);
      
    }
    else if(a=='B')
    {
      frd(6,5);
    }
    else if(a=='L')
    {
      frd(7,8);
    }
    else if(a=='R')
    {
      frd(8,7);
    }
    else if(a=='G')
    {
       frd(5,6);frd(7,8);
    }
    else if(a=='I')
    {
      frd(5,6); frd(8,7);
    }
    else if(a=='H')
    {
      frd(6,5);frd(7,8);
    }
    else if(a=='J')
    {
      frd(6,5);frd(8,7);
    }
    else if((a=='w')||(a=='W'))
    {
      frd(9,10);
      delay(100);
    }
    else if((a=='u')||(a=='U'))
    {
      frd(10,9);
      delay(100);
    }
    else if((a=='v')||(a=='V'))
    {
      frd(11,12);
      delay(100);
    }
    else if((a=='X')||(a=='x'))
    {
      frd(12,11);
      delay(100);
    }
    else
    {
      stp(5,6);
      stp(7,8);
      stp(9,10);
      stp(11,12);
    }
    
  }
 }



 void frd(int a,int b)
 {
 digitalWrite(a,HIGH); digitalWrite(b,LOW);
 }
 void stp(int a,int b)
{
 digitalWrite(a,LOW); digitalWrite(b,LOW); 
}


PCB LAYOUT