BLUETOOTH CONTROLLED ROBOT

Photo of author

By Jackson Taylor

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.

Hardware Hack

Stop Buying New Batteries for Your Tech

Electronics are expensive, but their power sources don't have to be. Discover the simple engineering trick to recondition dead batteries and bring your gadgets back to 100% capacity.

Watch the Free Video

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

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

PCB Layout
See also
TIMER OR LED BLINKING

Revive Your Dead Electronics

Got a drawer full of dead gadgets or a failing car battery? Instead of paying a premium for replacements, use this simple trick to easily recondition them right from home.

See How It Works