Professional Documents
Culture Documents
ON
Submitted By
Brahmananda Sethi
(200301120114)
Jyotir Aditya Barik
(200301120098)
Abhisek Das
(200301120092)
Jagannath Dansana
(200301120080)
1
CERTIFICATE
This is to be certified that the project entitled “Fire fighter robot with sms alert ” has been
submitted for the School of Engineering &Technology, CUTM, Jatni during the academic year
2023-2024 is a persuasive piece of project work carried out by Jagannath Dansana
(200301120080) , Brahmananda Sethi (200301120114), Abhisek Das (200301120092) and
Jyotir Aditya Barik(200301120098) towards the partial fulfillment for award of the degree
(B.Tech.) under the guidance of Prof. Biswajit Mallick and no part there has been submitted
by them for any degree to the best of my knowledge.
2
EVALUATION SHEET
3
CANDIDATE’S DECLARATION
Signature of Student
Jagannath Dansana
(200301120080)
Brahmananda Sethi
(200301120114)
Abhisek Das
(200301120092)
Jyotir Aditya Barik
(200301120098)
Place: Bhubaneswar
Date:
4
ACKNOWLEDGEMENT
It’s our pleasure to be indebted to various people, who directly or indirectly contributed
in the development of this work and who influenced our thinking, behavior and acts
during the course of study.
We express our sincere gratitude to Prof. (Dr.) Sujata Chakravarty, Dean, SOET for
providing academic support &opportunities.
We extend our sincere appreciation to Prof. Biswajit Mallick Supervisor who provided
her valuable suggestions and precious time in accomplishing our project report.
We also extend our sincere appreciation to Prof. Raj Kumar Mohanta , HoD who
provided her valuable suggestions and precious time in accomplishing our project
report.
We also extend our sincere appreciation to Prof. Biswajit Mallick, Coordinator who
provided his valuable suggestions and precious time in accomplishing our project report.
Lastly, We would like to thank the almighty and our parents for their moral support and
friends with whom We shared our day-to day experiences and received lots of
suggestions those improved the quality of work.
Jagannath Dansana
(200301120080)
Brahmananda Sethi
(200301120114)
Abhisek Das
(200301120092)
Jyotir Aditya Barik
(200301120098)
5
CONTENTS
Abstract
Introduction
Objective
Components
Specifications
Proposed Work and Working
Circuit Diagram
Project Overviews
Code
Conclusion
Future Enhencement
6
ABSTRACT
The project employs jumper wires for a tidy and organized circuit
layout, and a Caster Wheel for improved maneuverability. Utilizing
C++ programming language with ROS extends the capabilities of
the robot, providing efficient control and coordination.
7
INTRODUCTION
The key components driving the functionality of this robot include the
Arduino Nano microcontroller, L298 Motor Driver for precise motor control,
and the ESP NodeMCU for seamless wireless communication capabilities.
These components form the core control and communication system,
providing the robot with intelligence and autonomy.
The systematic use of jumper wires ensures a clean and organized circuit
layout, while the incorporation of a Caster Wheel enhances the robot's
maneuverability. By employing C++ with ROS, the project not only benefits
from the efficiency of the programming language but also taps into the
powerful capabilities of ROS for robotic control and coordination.
8
OBJECTIVE
2. **Fire Detection:**
- Implement a robust fire detection system using the Flame Sensor for
swift and accurate identification of fire incidents.
4. **Wireless Communication:**
- Utilize the ESP NodeMCU for wireless communication, employing
C++ programming with the Robot Operating System (ROS) to enable
seamless interaction and control.
5. **Motor Control:**
- Implement the L298 Motor Driver to ensure precise control over the
motors, facilitating smooth and responsive movement.
6. **Power Management:**
- Utilize a rechargeable 18650 battery with a TP4056 charging
module for sustainable and portable power management.
7. **Obstacle Avoidance:**
- Integrate an Ultrasonic Sensor to enable obstacle avoidance during
robot navigation, enhancing safety and preventing collisions.
9
- Incorporate a 12V Relay Module and relay to control external
devices, such as water pumps or sprinkler systems, for effective fire
suppression.
10
COMPONENTS USED:
1) Arduino Nano
Arduino Nano:
The Arduino Nano is a compact and versatile microcontroller board that belongs
to the Arduino family. It is based on the ATmega328P microcontroller, providing
similar functionalities to the Arduino Uno but in a smaller form factor. The Nano
is widely used in various electronics projects due to its ease of use, flexibility,
and a rich ecosystem of libraries and community support.
**Key Features:**
2. **Compact Size:** One of the significant advantages of the Nano is its small
size, making it suitable for projects with limited space requirements or those
where a compact form factor is essential.
3. **I/O Pins:** The Nano features a variety of digital and analog input/output
pins, providing flexibility for connecting sensors, actuators, and other electronic
components.
**Typical Applications:**
11
- **Embedded Systems:** Used in a wide range of embedded systems and
electronic projects due to its small size and ease of integration.
- **IoT Devices:** Suitable for developing Internet of Things (IoT) devices and
projects where a compact form factor is crucial.
The L298 is a popular dual H-bridge motor driver integrated circuit (IC) used to
control the direction and speed of DC motors. It is widely employed in robotics,
mechatronics, and various electronic projects requiring motor control. The L298
allows bidirectional control of two DC motors or the control of one stepper motor.
**Key Features:**
**Typical Applications:**
13
The ESP8266 NodeMCU is a low-cost open-source IoT platform based on the
ESP8266 Wi-Fi module. It combines the capabilities of a microcontroller
(ESP8266) and a Wi-Fi module, making it suitable for a variety of IoT
applications. The NodeMCU firmware is built on the Lua scripting language, but
it can also be programmed using the Arduino IDE, making it accessible to a
broad range of developers.
**Key Features:**
5. **Analog Pins:** In addition to digital GPIO pins, it offers analog pins for
reading analog sensor values.
**Typical Applications:**
14
- **IoT Projects:** Ideal for a wide range of IoT applications such as home
automation, smart agriculture, and industrial monitoring.
4) Relay
Relay:
**Key Features:**
15
3. **NO (Normally Open) Contacts:** In their default state (when the coil is not
energized), NO contacts are open, interrupting the flow of current.
**Typical Applications:**
5) Ultrasonic Sensor
Ultrasonic Sensor:
16
An ultrasonic sensor is a device that uses ultrasonic waves for distance
measurement and object detection. It emits ultrasonic pulses and measures the
time it takes for the pulses to bounce back after hitting an object. This
information is then used to calculate the distance to the object. Ultrasonic sensors
are commonly employed in robotics, automation, and various applications where
non-contact distance measurement is required.
**Key Features:**
2. **Ultrasonic Waves:** The sensor emits ultrasonic waves (sound waves with
a frequency above the human hearing range) and measures the time it takes for
these waves to reflect off an object and return to the sensor.
**Typical Applications:**
17
- **Parking Assist Systems:** Found in vehicles to assist drivers in parking by
detecting obstacles.
6) Servo motor
Servo Motor:
A servo motor is a type of rotary actuator that allows for precise control of
angular position. It consists of a motor, a feedback system, and a controller.
Servo motors are widely used in various applications where accurate and
controlled movement is required, such as robotics, automation, and remote-
controlled vehicles.
**Key Features:**
1. **Rotary Actuator:** Servo motors are rotary actuators, meaning they provide
rotational motion.
18
6. **Limited Range of Motion:** Servo motors typically have a limited range of
motion, usually around 180 degrees, although continuous rotation servos are also
available.
**Typical Applications:**
7) Gear motor
Gear Motor:
19
A gear motor is a type of electric motor integrated with a gearbox that allows for
the adjustment of speed, torque, and direction. The gearbox contains a set of
gears that can amplify or reduce the motor's rotational speed and increase its
torque. Gear motors are commonly used in applications where controlled and
precise motion is required, such as in robotics, automotive systems, and industrial
machinery.
**Key Features:**
1. **Electric Motor:** The core component is an electric motor that provides the
rotational power. Common types include DC motors, stepper motors, and AC
motors.
4. **Torque:** Gear motors are known for their high torque output, making them
suitable for applications requiring a significant amount of force.
5. **Direction Control:** The gearbox allows for the control of the motor's
rotational direction, providing bidirectional motion.
6. **Compact Design:** The integration of the motor and gearbox into a single
unit results in a compact and space-efficient design.
**Typical Applications:**
- **Robotics:** Used in robotic arms, wheels, and other moving parts to provide
controlled and precise motion.
20
- **Aerospace:** Applied in aerospace systems for tasks such as controlling
flaps and actuators.
8)18650 battery
The 18650 battery is a cylindrical lithium-ion rechargeable battery that is 18mm
in diameter and 65mm in length, hence the name "18650." These batteries have
become widely used in various electronic devices due to their compact size and
high energy density. Here are key features and characteristics of 18650 batteries:
When using 18650 batteries, it's important to handle them with care, follow
proper charging and discharging guidelines, and avoid exposing them to extreme
temperatures to maximize their lifespan and safety.
8) Jumper wire
22
9) 12V Relay Module
A 12V relay module is an electronic device that includes a relay and associated
components on a single circuit board. It is designed to control high-power
electrical devices using a low-voltage signal. Here are the key features and
characteristics of a 12V relay module:
2. **Coil Voltage:** The relay coil operates at a 12V voltage level, making it
compatible with 12V DC power sources.
7. **LED Indicators:** Many 12V relay modules feature LED indicators to show
the relay's status, making it visually clear whether the relay is active or inactive.
23
8. **Applications:** 12V relay modules are commonly used in home automation,
robotics, industrial control systems, and various electronic projects where low-
voltage control signals need to switch higher-voltage devices.
When working with a 12V relay module, it's important to adhere to the
manufacturer's specifications and guidelines to ensure proper operation and
prevent any damage to the module or connected devices.
24
3. **Analog or Digital Output:** Flame sensors may provide either analog or
digital output signals, depending on the specific model. Digital sensors often
provide a simple on/off signal when a flame is detected.
4. **Rapid Response:** Flame sensors are designed for rapid response to the
presence of flames, enabling quick detection in critical applications.
When using a flame sensor, it's essential to follow the manufacturer's guidelines
for installation and calibration to ensure optimal performance and reliability in
fire detection applications.
11) TP4056
The TP4056 is a popular lithium-ion battery charging module commonly used in
electronic projects. It provides a simple and efficient way to charge lithium-ion or
lithium polymer batteries, making it widely used in portable devices, power
25
banks, and other battery-powered applications. Key features of the TP4056
include:
2. **Micro USB Input:** It typically features a Micro USB port for easy
connection to a power source, such as a USB wall adapter or a computer.
4. **Constant Current and Voltage Charging:** The TP4056 charges the battery
using a constant current and constant voltage charging algorithm, optimizing the
charging process for lithium-ion batteries.
6. **Small Form Factor:** The module is compact and easy to integrate into
electronic projects, providing a convenient solution for battery charging.
8. **Widely Used:** Due to its ease of use, reliability, and low cost, the TP4056
has become a popular choice for DIY electronics enthusiasts and professionals
alike in various battery-powered applications.
When using the TP4056 module, it's important to follow the manufacturer's
specifications and guidelines to ensure proper charging and to avoid any issues
related to battery safety and performance.
26
12)Caster Wheel
27
SPECIFICATIONS:
1. **Microcontroller:**
- Arduino Nano for compact control and programming flexibility.
2. **Motor Control:**
- L298 Motor Driver to ensure precise control of motors.
- Integration of Servo Motor and Gear Motor for agile and accurate
movement.
3. **Wireless Communication:**
- ESP NodeMCU for wireless communication capabilities using C++
programming with the Robot Operating System (ROS).
4. **Sensors:**
- Ultrasonic Sensor for obstacle avoidance during navigation.
- Flame Sensor for rapid and accurate fire detection.
5. **Power Management:**
- Rechargeable 18650 battery for sustainable and portable power.
- TP4056 charging module to efficiently manage battery charging.
6. **Relay System:**
- 12V Relay Module for effective control of external devices, such as
water pumps or sprinkler systems, enhancing fire suppression
capabilities.
7. **Circuit Connectivity:**
- Jumper wires for a tidy and organized circuit layout.
8. **Mobility:**
- Caster Wheel to improve the robot's maneuverability within indoor
environments.
28
- Integration with the Robot Operating System (ROS) for enhanced
robotic control and coordination.
29
PROPOSED WORK:
1. **System Optimization:**
- Conduct thorough optimization of the existing system to enhance
overall efficiency, reduce power consumption, and improve response
times.
9. **Sensor Fusion:**
- Investigate the fusion of sensor data from multiple sources, such as
the Ultrasonic Sensor and Flame Sensor, to improve the robot's
situational awareness and decision-making capabilities.
31
- Foster a culture of continued innovation by regularly reviewing
emerging technologies and integrating relevant advancements to keep
the Firefighter Robot at the forefront of fire safety solutions.
This proposed work aims to enhance the Firefighter Robot with SMS
Alert by integrating new features, improving existing functionalities,
and exploring innovative approaches to make the system more efficient,
adaptable, and effective in addressing the challenges of fire detection
and suppression in indoor environments.
32
WORKING:
1. **Initialization:**
- The system initiates by initializing the Arduino Nano
microcontroller, establishing communication with the ROS framework.
2. **Power Management:**
- The 18650 battery, managed by the TP4056 charging module,
provides the necessary power for the robot's operation.
3. **Navigation System:**
- The Ultrasonic Sensor continuously scans the surroundings,
generating real-time data to facilitate autonomous navigation through
indoor environments.
4. **Obstacle Avoidance:**
- Utilizing the data from the Ultrasonic Sensor, the robot employs
obstacle avoidance algorithms to adjust its path, ensuring collision-free
movement.
5. **Fire Detection:**
- The Flame Sensor actively monitors the environment for signs of
fire. Upon detection, the robot initiates the fire response mechanism.
7. **Wireless Communication:**
- The ESP NodeMCU facilitates wireless communication, using C++
programming with the ROS framework for efficient control and
coordination.
9. **Circuit Connectivity:**
- Jumper wires are utilized for a well-organized circuit layout,
ensuring seamless connectivity between components.
13. **Documentation:**
- Comprehensive documentation guides users through setup,
operation, and maintenance, ensuring ease of use and troubleshooting.
34
communication, providing a comprehensive solution for enhancing fire
safety in indoor environments.
35
CIRCUIT AND WORKING DIAGRAM:
36
PROJECT OVERVIEW
37
38
39
CODE:
Main code:
#include <NewPing.h>
#include <Servo.h>
#define trigger_pin A0
#define echo_pin A1
#define max_distance 200
int motor1_1 = 2;
int motor1_2 = 3;
int motor2_1 = 4;
int motor2_2 = 5;
int motor1_en = 10;
int motor2_en = 11;
void setup() {
pinMode(motor1_1, OUTPUT);
pinMode(motor1_2, OUTPUT);
pinMode(motor2_1, OUTPUT);
pinMode(motor2_2, OUTPUT);
pinMode(motor1_en, OUTPUT);
pinMode(motor2_en, OUTPUT);
myservo.attach(9);
myservo.write(90);
delay(2000);
distance = readPing();
delay(100);
distance = readPing();
delay(100);
}
40
void loop() {
int right_distance = 0;
int left_distance = 0;
analogWrite(10, 255);
analogWrite(11, 255);
delay(40);
int look_right()
{
myservo.write(40);
delay(500);
41
int distance = readPing();
delay(100);
myservo.write(90);
return distance;
}
int look_left()
{
myservo.write(140);
delay(500);
int distance = readPing();
delay(100);
myservo.write(90);
return distance;
delay(100);
}
int readPing() {
delay(50);
int dist_cm = sonar.ping_cm();
if (dist_cm == 0)
{
dist_cm = 250;
}
return dist_cm;
}
void move_stop() {
digitalWrite(motor1_1, LOW);
digitalWrite(motor1_2, LOW);
digitalWrite(motor2_1, LOW);
digitalWrite(motor2_2, LOW);
}
void move_forward() {
{
moving_forward = true;
digitalWrite(motor1_1, LOW);
digitalWrite(motor1_2, HIGH);
digitalWrite(motor2_1, HIGH);
digitalWrite(motor2_2, LOW);
42
}
}
void move_backward() {
moving_forward = false;
digitalWrite(motor1_1, HIGH);
digitalWrite(motor1_2, LOW);
digitalWrite(motor2_1, LOW);
digitalWrite(motor2_2, HIGH);
}
void turn_right() {
digitalWrite(motor1_1, LOW);
digitalWrite(motor1_2, HIGH);
digitalWrite(motor2_1, LOW);
digitalWrite(motor2_2, HIGH);
delay(1000);
digitalWrite(motor1_1, LOW);
digitalWrite(motor1_2, HIGH);
digitalWrite(motor2_1, HIGH);
digitalWrite(motor2_2, LOW);
}
void turn_left() {
digitalWrite(motor1_1, HIGH);
digitalWrite(motor1_2, LOW);
digitalWrite(motor2_1, HIGH);
digitalWrite(motor2_2, LOW);
delay(1000);
digitalWrite(motor1_1, LOW);
digitalWrite(motor1_2, HIGH);
digitalWrite(motor2_1, HIGH);
digitalWrite(motor2_2, LOW);
}
43
For notification:
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
void setup()
{
Serial.begin(115200);
delay(10);
Serial.println();
Serial.println();
Serial.print("Connecting to ");
Serial.println(ssid);
WiFi.begin(ssid, password);
Serial.println("");
Serial.println("WiFi connected");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
}
int value = 0;
44
void loop()
{
delay(5000);
value = digitalRead(16);
Serial.print("connecting to ");
Serial.println(host);
// Read all the lines of the reply from server and print them to Serial
while(client.available()) {
String line = client.readStringUntil('\r');
Serial.print(line);
Serial.println();
Serial.println("closing connection");
}else{;}
}
46
CONCLUSION
While this iteration does not include a GSM module for real-time
SMS alerts, the design remains adaptable for future integration,
providing an opportunity for enhanced communication capabilities.
The ESP NodeMCU, coupled with C++ programming and ROS,
facilitates wireless communication for efficient control and
coordination.
1. **Multi-Robot Collaboration:**
- Explore the implementation of collaborative robotics by integrating
multiple robots, allowing them to work together in a coordinated
manner during large-scale fire incidents.
48
enabling the robot to adapt its strategy based on environmental
conditions.
50