Thursday, April 28, 2016

Very Easy Arduino and Android Direction control robot.

Required Components:

Arduino Uno 
Bluetooth Module
L293D Motor Driver
2x Gear Motor
1x Chasis
A breadboard 
Connecting wires










Arduino Program
_________________________________________________________________________________

#include <SoftwareSerial.h>

SoftwareSerial BT(10, 11); //TX, RX respetively
String readdirection;

void setup() {
 BT.begin(9600);
 Serial.begin(9600);
  pinMode(3, OUTPUT);
  pinMode(4, OUTPUT);
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);

}
//-----------------------------------------------------------------------// 
void loop() {
  while (BT.available()){  //Check if there is an available byte to read
  delay(10); //Delay added to make thing stable
  char c = BT.read(); //Conduct a serial read
  readdirection += c; //build the string- "forward", "reverse", "left" and "right"
  } 
  if (readdirection.length() > 0) {
    Serial.println(readdirection);

  if(readdirection == "forward")
  {
    digitalWrite(3, HIGH);
    digitalWrite (4, HIGH);
    digitalWrite(5,LOW);
    digitalWrite(6,LOW);
    delay(100);
  }

  else if(readdirection == "reverse")
  {
    digitalWrite(3, LOW);
    digitalWrite(4, LOW);
    digitalWrite(5, HIGH);
    digitalWrite(6,HIGH);
    delay(100);
  }

  else if (readdirection == "right")
  {
    digitalWrite (3,HIGH);
    digitalWrite (4,LOW);
    digitalWrite (5,LOW);
    digitalWrite (6,LOW);
    delay (100);
   
  }

 else if ( readdirection == "left")
 {
   digitalWrite (3, LOW);
   digitalWrite (4, HIGH);
   digitalWrite (5, LOW);
   digitalWrite (6, LOW);
   delay (100);
 }

 else if (readdirection == "stop")
 {
   digitalWrite (3, LOW);
   digitalWrite (4, LOW);
   digitalWrite (5, LOW);
   digitalWrite (6, LOW);
   delay (100);
 }

  


readdirection="";}} //Reset the variable

Very Easy Arduino and Android Voice control Robot ( How to make a voice control robot)

Required Components:

Arduino Uno 
Bluetooth Module
L293D Motor Driver
2x Gear Motor
2x Wheel
1x Chasis
A breadboard 
Connecting wires






Arduino Program for voice control robot.
_________________________________________________________________________________

#include <SoftwareSerial.h>

SoftwareSerial BT(10, 11); //TX, RX respetively
String readvoice;

void setup() {
 BT.begin(9600);
 Serial.begin(9600);
  pinMode(3, OUTPUT);
  pinMode(4, OUTPUT);
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);

}
//-----------------------------------------------------------------------// 
void loop() {
  while (BT.available()){  //Check if there is an available byte to read
  delay(10); //Delay added to make thing stable
  char c = BT.read(); //Conduct a serial read
  readvoice += c; //build the string- "forward", "reverse", "left" and "right"
  } 
  if (readvoice.length() > 0) {
    Serial.println(readvoice);

  if(readvoice == "forward")
  {
    digitalWrite(3, HIGH);
    digitalWrite (4, HIGH);
    digitalWrite(5,LOW);
    digitalWrite(6,LOW);
    delay(100);
  }

  else if(readvoice == "reverse")
  {
    digitalWrite(3, LOW);
    digitalWrite(4, LOW);
    digitalWrite(5, HIGH);
    digitalWrite(6,HIGH);
    delay(100);
  }

  else if (readvoice == "right")
  {
    digitalWrite (3,HIGH);
    digitalWrite (4,LOW);
    digitalWrite (5,LOW);
    digitalWrite (6,LOW);
    delay (100);
  
  }

 else if ( readvoice == "left")
 {
   digitalWrite (3, LOW);
   digitalWrite (4, HIGH);
   digitalWrite (5, LOW);
   digitalWrite (6, LOW);
   delay (100);
 }

 else if (readvoice == "stop")
 {
   digitalWrite (3, LOW);
   digitalWrite (4, LOW);
   digitalWrite (5, LOW);
   digitalWrite (6, LOW);
   delay (100);
 }
readvoice="";}} //Reset the variable

Very Easy A Light Following Robot Without Microcontroller

Required Components :

1x Castor Wheel
2x wheels
2x Gear Motors
1x LDR sensor
1x Chassis 
1x ULN2003 IC
1x  9v battery
1x battery snap
1x Breadboard and connecting wires
Spacers, stud, screws and screw driver

Circuit Diagram:


blue wire is for connecting sensors output.


LIGHT SENSOR:



LDR SENSOR CIRCUIT:
blue wire is sensor output
red wire is power supply (5v)
black wire is ground (-ve)

How to make a LIGHT Sensor From IR Sensor
Remove both the IR transmitter and Receiver, Place a LDR in the place of Receiver IR.

How This Light Following Robot Works?

Whenever the sensor detects Light, it gives 5v as logic output. The output of the sensor is connected to the ULN2003 IC input, This IC swich ON the circuit Whenever 5v is applied to the sensor input.

Very Easy A Flame Following Robot Without Microcontroller

This is a Fun to do robot. The robot start to move if the sensor detects flame, be cautious when using a lighter or other element using for flame.

Required Components :

1x Castor Wheel
2x wheels
2x Gear Motors
1x Flame sensor
1x Chassis 
1x ULN2003 IC
1x  9v battery
1x battery snap
1x Breadboard and connecting wires
Spacers, stud, screws and screw driver

Circuit Diagram


blue wire is for connecting sensors output.



Flame Sensor:



Flame Sensor Circuit:


blue wire is sensor output
red wire is power supply (5v)
black wire is ground (-ve)

How to make a Flame Sensor From IR Sensor




Remove the IR emitter by cutting out from the pcb. IR transmitter which usually marked as (Tx) in the sensor pcb. If the IR transmitter removed from the pcb, this sensor act as a flame detector.

How This Flame Following Robot Works?

Whenever the sensor detects flame, it gives 5v as logic output. The output of the sensor is connected to the ULN2003 IC input, This IC swich ON the circuit Whenever 5v is applied to the sensor input.