Report For Automation 4
Report For Automation 4
Introduction
Fires can occur unexpectedly and spread rapidly, causing significant loss of life and property. Traditional
fire detection systems, such as smoke detectors and sprinkler systems, are useful but often limited by
range, mobility, and response time.
2. Objective
The main goals of the Fire Detector Robot are:
• Early Detection: Identify fire as soon as it starts using flame and temperature sensors.
• Autonomous Navigation: Move through an area without human control to locate the fire.
• Fire Alert System: Trigger an alarm or send a message when a fire is detected.
• Extinguishing Mechanism (optional): Use a water sprayer or extinguisher to suppress small fires.
• Safety Monitoring: Reduce risk to humans by exploring dangerous environments.
• Function: Switches high-power devices (like water pumps) using low-voltage control signals.
• Description: A Field Effect Transistor (FET) module is used when the Arduino’s pins can’t supply
enough current to drive components like pumps or lights. The FET acts like an electronic switch.
• Benefits:
o Safe high-current switching
o Efficient and fast response
o Often includes optocouplers for isolation
5. 6W Water Pump
• Function: Detects ambient light levels to follow light sources or detect fire’s brightness.
• Description: This module uses LDRs to sense light intensity. It can be used to enhance flame
detection or help the robot align with the brightest (possibly hottest) source.
• Uses:
o Additional navigation or orientation toward fire
o Fire confirmation through brightness level
4. Working Principle
The Fire Detector Robot operates on the principle of autonomous navigation and sensor-based
fire detection. As the robot moves around on its 4WD chassis, it continuously monitors its
surroundings using an array of six flame sensors placed at different angles, allowing it to detect
the direction and presence of fire. Simultaneously, a temperature sensor and light follower
sensor help confirm the existence of a fire by detecting heat and increased light intensity. When
a flame is detected, the microcontroller (Arduino Uno) processes the input signals and
commands the robot to stop. Using the servo motor, it rotates a mounted water nozzle toward
the fire source, guided by the most active flame sensor. The Arduino then activates the 6W
water pump through the FET module to spray water at the fire. An alarm or buzzer can also be
triggered to notify nearby personnel. The motor driver controls the motion of the robot
throughout the process, ensuring smooth and accurate movement. This system allows the robot
to autonomously detect and respond to fire in a safe, efficient manner without human
intervention.
CAD/CAM SYSTEMATIC VIEW
Top View:
Isomatric view:
Right view Left view
Power Supply:
The robot is powered by a lithium battery, which provides a lightweight and efficient energy source.
Lithium batteries are rechargeable and have a high energy density, making them suitable for mobile
robotic applications. The battery used typically supplies between 7.4V to 11.1V, depending on the
component requirements. This power is distributed to the motors, Arduino, water pump, and other
modules via appropriate regulators and drivers.
The base of the robot consists of a 4WD (four-wheel drive) platform equipped with four 6V DC motors.
These motors provide adequate torque for smooth movement and can navigate various terrains. The
motors are driven by a motor driver module (such as an L298N), which receives control signals from the
Arduino. This setup allows the robot to move forward, backward, and turn toward detected fire sources.
The Arduino Uno acts as the main controller of the robot. It gathers input from the flame sensor(s) and
sends output signals to control other components such as motors, servo, buzzer, and water pump. The
Arduino is programmed using C/C++ through the Arduino IDE and serves as the decision-making brain of
the system.
Flame Detection Sensor:
The robot is equipped with one or more flame sensors, which detect infrared light emitted by a fire.
These sensors have both analog and digital outputs. The digital output triggers when flame intensity
crosses a set threshold, while the analog output can be used to determine distance or direction. The
detection range of a typical flame sensor is around 80 to 100 cm. These sensors are mounted at the
front to scan for fire in the robot's path.
A FET (Field Effect Transistor) module is used in the system to control high-current devices like the water
pump. Since the Arduino cannot handle large current loads directly, the FET acts as an electronic switch
that allows the Arduino to turn the pump on or off using a digital signal. This setup protects the
controller and ensures efficient operation.
The water pump is responsible for extinguishing the fire once it has been detected. It operates on 6V to
8V DC and draws power through the FET module. The pump is connected to a small water reservoir
mounted on the robot chassis and sprays water toward the fire when activated by the Arduino.
A servo motor is attached to the nozzle or water sprayer to control its direction. The Arduino sends
PWM signals to the servo, allowing it to rotate within a range (typically 0–180 degrees). This enables the
robot to target the flame more precisely after determining its direction using sensor input.
Step-by-Step Operation:
1. Startup: The robot powers on, and the Arduino initializes all sensors and modules.
2. Sensor Monitoring: The flame sensor continuously checks for fire.
3. Detection: If a fire is detected, the Arduino triggers the buzzer and water pump.
4. Targeting: The servo motor adjusts the spray direction toward the flame.
5. Extinguishing: The water pump is activated via the FET module to spray water.
6. Loop: The system returns to monitoring after attempting to extinguish the fire.
ARDINO:
Programming Environment
Arduino is programmed using the Arduino IDE, which supports a simplified version of the C/C++
language. Each Arduino program (called a sketch) contains two main functions: setup() and loop(). The
setup() function runs once to initialize inputs and outputs, while the loop() function runs repeatedly,
making the board respond to real-time inputs like sensor values or user commands. This structure
makes it easy to understand and implement both basic and advanced logic.
#include <Servo.h>
Servo myServo;
void setup() {
Serial.begin(9600);
// Motor setup
pinMode(IN1, OUTPUT);
pinMode(IN2, OUTPUT);
pinMode(IN3, OUTPUT);
pinMode(IN4, OUTPUT);
pinMode(ena, OUTPUT);
pinMode(enb, OUTPUT);
analogWrite(ena, Speed);
analogWrite(enb, Speed);
// Servo setup
myServo.attach(9);
myServo.write(90); // Center position
void loop() {
firefighterMode();
}
// Firefighter logic
void firefighterMode() {
digitalWrite(pump, LOW);
myServo.write(90); // Center servo
digitalWrite(pump, LOW);
} else if (digitalRead(sense_F) == LOW) {
backwardCar();
} else if (digitalRead(sense_L) == LOW) {
turnLeft();
} else if (digitalRead(sense_R) == LOW) {
turnRight();
} else {
stopCar();
}
}
void backwardCar() {
digitalWrite(IN1, LOW);
digitalWrite(IN2, HIGH);
digitalWrite(IN3, LOW);
digitalWrite(IN4, HIGH);
}
void turnLeft() {
digitalWrite(IN1, HIGH);
digitalWrite(IN2, LOW);
digitalWrite(IN3, LOW);
digitalWrite(IN4, HIGH);
}
void turnRight() {
digitalWrite(IN1, LOW);
digitalWrite(IN2, HIGH);
digitalWrite(IN3, HIGH);
digitalWrite(IN4, LOW);
}
void stopCar() {
digitalWrite(IN1, LOW);
digitalWrite(IN2, LOW);
digitalWrite(IN3, LOW);
digitalWrite(IN4, LOW);
}
FLOWCHART:
Working Range:
The fire detector robot has an effective working range of approximately 1 to 1.5
meters for fire detection and extinguishing. This range is determined by the sensitivity of the flame
sensors, which can detect infrared radiation emitted by fire within this distance. The water pump and
servo motor are designed to spray water in a wide arc, covering up to 180 degrees, allowing the robot to
extinguish flames within close proximity effectively. The robot’s movement range depends on the motor
battery capacity and surface conditions, allowing it to operate for up to 30 minutes on a full charge
while patrolling and detecting fire sources within its sensor range.
Total cost:
Abdul Sammad
Conclusion:
The fire detector robot project demonstrates an effective integration of electronics, embedded systems,
and mechanical components to develop a compact and autonomous fire-fighting system. By using flame
sensors to detect fire and a combination of motors, a water pump, and a servo motor to extinguish it,
the robot provides a practical solution for fire hazard mitigation in small-scale indoor environments. The
system is controlled by an Arduino UNO, which reads sensor data, operates actuators, and executes
decision-making algorithms through a well-defined code structure.
The robot is powered by a rechargeable lithium-ion battery that delivers adequate runtime and
performance. With a detection range of about 1 to 1.5 meters and an operational time of up to 40
minutes, it is capable of responding promptly to fire threats within its working area. The successful
design and implementation of this project highlight the feasibility of using low-cost electronics and
open-source programming for developing real-world automated safety systems. Future improvements
may include integrating wireless communication for remote alerts and using multiple sensors for
increased accuracy.