FIRE FIGHTING ROBOT

Photo of author

By Jackson Taylor

Home » Electronics Topics » Arduino » FIRE FIGHTING ROBOT

As an Amazon Associate we earn from qualifying purchases.

YouTube video

The project aims in designing a Robot that can be operated using Android mobile phone. The controlling of the Robot is done wirelessly through Android smart phone using the Bluetooth feature present in it. Here in the project the Android smart phone is used as a remote control for operating the Robot. . This isa Fire Fighting Robot which is used  for prevent  our  houses,  offices and shops  fromFire. . It will find the existence of fire using IR sensor and when the fire is detected by robot ,it will try to fight with fire using water pump.

Android is a software stack for mobile devices that includes an operating system, middleware and key applications. Android boasts a healthy array of connectivity options, including Wi‑Fi, Bluetooth, and wireless data over a cellular connection (for example, GPRS, EDGE (Enhanced Data rates for GSM Evolution), and 3G). Android provides access to a wide range of useful libraries and tools that can be used to build rich applications. In addition, Android includes a full set of tools that have been built from the ground up alongside the platform providing developers with high productivity and deep insight into their applications.

Bluetooth is an open standard specification for a radio frequency (RF)-based, short-range connectivity technology that promises to change the face of computing and wireless communication. It is designed to be an inexpensive, wireless networking system for all classes of portable devices, such as laptops, PDAs (personal digital assistants), and mobile phones. It also will enable wireless connections for desktop computers, making connections between monitors, printers, keyboards, and the CPU cable‑free. The controlling device of the whole system is a Microcontroller. Bluetooth module, DC motors are interfaced to the Microcontroller. The data received by the Bluetooth module from Android smart phone is fed as input to the controller. The controller acts accordingly on the DC motors of the Robot. The robot in the project can be made to move in all the four directions using the Android phone. The direction of the robot is indicated using LED indicators of the Robot system. In achieving the task the controller is loaded with a program written using Embedded ‘C’ language.

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
See also
BOOST CONVERTER DESIGN

BLOCK DIAGRAM

Block Diagram

CIRCUIT DIAGRAM

Circuit Diagram

PROGRAM

void setup()
{
  pinMode(13,OUTPUT);
  Serial.begin(9600);
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
  pinMode(7, OUTPUT);
  pinMode(8, OUTPUT);
}
void loop()
{
  if (Serial.available() > 0)
  {
    int b=analogRead(A5);
    int c=analogRead(A4);
    char a =Serial.read();
    if((b>995)||(c>995))
    {
      digitalWrite(13,HIGH);
      delay(2000);
      digitalWrite(13,LOW);
    }
    else if(a=='F')
    {
      FRD();
    }
    else if(a=='B')
    {  
      BACK();
    }
    else if(a=='R')
    {
      RIGHT();
    }
    else if(a=='L')
    {
      LEFT();
    }
    else
    {
      STOP();
    }
  }
}
void FRD(void)
{
  digitalWrite(5,HIGH); digitalWrite(6,LOW); digitalWrite(7,HIGH); digitalWrite(8,LOW);
}
void BACK(void)
{
  digitalWrite(5,LOW); digitalWrite(6,HIGH); digitalWrite(7,LOW); digitalWrite(8,HIGH);
}
void RIGHT(void)
{
  digitalWrite(5,HIGH); digitalWrite(6,LOW); digitalWrite(7,LOW); digitalWrite(8,LOW);
}
void LEFT(void)
{
  digitalWrite(5,LOW); digitalWrite(6,LOW); digitalWrite(7,HIGH); digitalWrite(8,LOW);
}
void STOP(void)
{
  digitalWrite(5,LOW); digitalWrite(6,LOW); digitalWrite(7,LOW); digitalWrite(8,LOW);
}

PCB LAYOUT

PCB Layout

Things to Know Before You Build This Fire Fighting Robot

The sketch above covers the driving side of the project and the flame check. The Android app sends a single letter (F, B, L, R), and the board turns the motor pins on or off to match. The two analog inputs, A4 and A5, are read for the fire sensors. When either reading goes above 995, the sketch switches on the LED on pin 13 for two seconds. It does not switch the water pump. If you want the robot to spray water, you need to add that part yourself.

  • Pump control: Connect the pump to a spare output pin through a transistor or relay module. The board pin cannot power a pump directly. Then add a line in the fire-detected branch to turn that pin on, and off again when the reading drops.
  • Motor driver: Pins 5 to 8 should go to a motor driver board, not straight to the DC motors. The driver handles the current the motors draw.
  • Sensor threshold: The value 995 depends on your sensor module and the lighting in the room. Print the readings to the Serial Monitor with a small flame nearby and far away, then set your own threshold.
  • Power supply: Motors and a pump can cause the board to reset if they share a weak supply. A separate battery pack for the motors and pump, with a common ground, is a common fix.
  • Water and electronics: Keep the pump tank and tubing away from the board and wiring, and seal or raise any connections that could get splashed.
See also
COLOUR SORTING MACHINE USING ARDUINO

This is a learning project. It is a good way to practise sensors, motor control and wireless input, but it should not replace a smoke alarm or a proper fire extinguisher at home. Test it only with a small, controlled flame such as a candle, on a non-flammable surface, with someone nearby.

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