Project Name: FireGuard
Graduation Project for: Faculty of Computer and Automation
Project Date: 2024
Inspiration: The increasing number of forest fires in recent years, especially in Syria, motivated us to develop a project that can detect fires early to minimize their damage.
- Summary
- Introduction
- The Problem and Its Impact
- Our Solution
- Scenario
- System Components
- Block Diagram (DFD)
- Technology & Hardware Used
- Results and Conclusion
- Future Efforts
- References
- Credits
Fireguard demonstrates the power of integrating IoT and WSN technologies in forest fire detection. With sensor nodes actively monitoring environmental conditions and alerting authorities, the system helps reduce fire damage by providing timely and actionable data. The project highlights the application of our skills in IoT, software development, and hardware design, offering a scalable solution to an increasingly relevant global issue
Forest fires have been increasingly devastating over the last few years, destroying thousands of hectares of forest land. In particular, our homeland Syria has faced significant damage from these fires. Early detection and prompt action are essential to minimize the destruction and protect both human lives and natural resources.
The rapid spread of forest fires, combined with delayed detection, often results in large-scale damage. Traditional methods for detecting and reporting fires are slow and inefficient, leading to delays in mobilizing firefighters and other emergency services.
Over the past years, there has been a sharp increase in the number of fires globally and specifically in Syria. Here are some real data:
- Year 2020: Over 500 fires were reported in forests across Syria, with 80,000 hectares burned.
- Year 2021: Fires increased by 25%, further damaging vast areas.
- Year 2022: 10% more fires, causing irreversible environmental harm.
These statistics underscore the urgency for a solution that can detect fires early and allow for quicker response.
Fireguard, is an IoT-based Wireless Sensor Network (WSN) system designed to detect forest fires early. The system consists of the following main components:
- Sensor Nodes: Placed in strategic locations in forests to measure temperature, smoke, and gas levels.
- Gateway: Collects data from sensor nodes and sends it to the backend server.
- Backend Server: Stores data and processes it for real-time updates.
- Dashboard: Allows fire centers to monitor forest conditions and take decisions.
- Mobile App: Designed for firefighters to receive tasks and respond quickly.
- Landing Page: A simple web interface to showcase Fireguard's features and updates.
The following steps illustrate how Fireguard works in practice to detect and respond to fires:
Sensors are deployed in strategic locations within the forest, dividing it into zones. Each zone contains one or more sensors, with each sensor assigned a unique identifier and geographical coordinates (longitude and latitude) for precise fire location detection.
The sensors periodically measure environmental conditions (e.g., temperature, gas levels) according to the sampling time, which is set based on the battery capacity and solar panel charging ability. These readings are processed locally within the sensor node.
The processed sensor data and device status are sent to the gateway. The sensor nodes then enter deep sleep mode to conserve battery power, especially in remote forest areas where continuous power supply is challenging.
The gateway receives data from multiple sensor nodes simultaneously. It processes the incoming data and prioritizes any values indicating fire risks for immediate transmission to the backend. This ensures quick detection and response to potential fire hazards.
The gateway, which has a continuous internet connection, sends the sensor data to the backend server over the internet for further analysis and storage.
The backend application processes the incoming data and stores it in a MySQL database. This ensures that the dashboard can display up-to-date sensor readings from the forest zones.
The fire station uses a dashboard to monitor sensor statuses and values continuously. If a fire is detected, the dashboard allows personnel to assign tasks to the nearest firefighting team based on the location of the fire.
Each firefighting team uses the mobile app, which sends them a notification if they are assigned a task. The app displays the latest status of the forest and provides the optimal path to reach the fire location. Firefighters can then proceed to the site and take necessary actions.
The Fireguard system consists of several key components, each with its own responsibilities. Below is an overview of each component and links to their respective README files, where you can find detailed design and implementation processes.
The sensor nodes are deployed in forest areas to detect fire-related data (e.g., temperature, humidity, gas levels) and transmit this information to the gateway.
- Sensor Nodes README
- Introduction
- Design Process:
- Define the process of the device
- Schematic design
- PCB design
- 3D design
- Power consumption study
- Implementation Process:
- Software development
- PCB and 3D model printing
- Solar power integration
- First prototype development
The gateway collects data from the sensor nodes and sends it to the backend server for further processing.
- Gateway README
- Introduction
- Design Process:
- Define the process of the gateway
- Schematic design
- PCB design
- 3D design
- Implementation Process:
- Software development
- PCB and 3D model printing
- First prototype development
The backend is responsible for storing sensor data, managing tasks, and providing APIs to other system components.
- Backend README
-
Introduction
-
Design Process:
- UML diagrams: use case, class, ERD, activity diagrams
-
Implementation Process:
- MySQL database setup
- CRUD API development using Symfony
-
Testing Process:
- Swagger UI for API testing
-
The dashboard is used by fire stations to monitor sensor data, manage fires, and assign tasks to firefighting teams.
- Dashboard README
- Introduction
- Design Process:
- UI and graphic identity design using Figma
- Implementation Process:
- Dashboard built using Flutter with clean architecture
- Pages:
- Login page
- Home page (map, sensor status, fire station, fire bridge)
- Fire alerts and task assignment
- Device, forest, and fire bridge management
- Charts for sensor data
- History and device value tracking
The mobile app allows fire brigades to receive tasks, navigate to fire locations, and update their status.
- Mobile App README
- Introduction
- Design Process:
- UI design using Figma
- Implementation Process:
- App built using Flutter with clean architecture
- Pages:
- Logo widget
- Login widget
- Home widget (map, tasks, SOS button)
- Task management and status updates
- History, profile, and settings widgets
Each component plays a vital role in the overall system, working together to create an efficient and reliable forest fire detection and response system. You can find more details and the technical specifics in the respective component README files linked above.
The system follows a simplified Data Flow Diagram (DFD) to show the flow of data between components:
This diagram provides a high-level overview of how data flows from the forest to the firefighters.
- 2x ESP32 Microcontrollers
- DHT11 Temperature Sensor
- MQ9 Gas Sensor
- XL9006 Voltage Regulator
- TP4056 Battery Charging Module
- 5000mAh 3.7V Lithium Battery
- 2W Solar Panel
- Custom PCB Circuit
- 3D-printed components
- LED indicators, switche
- Arduino IDE (C++)
- PHP & MySQL for backend server
- Symfony & Swagger for API development
- Flutter for mobile app and web dashboard development
- WordPress for the landing page
- EasyEDA for PCB design
- Autodesk Inventor for 3D modeling of hardware components
By implementing Fireguard, we successfully showcased the potential of an IoT-based system in detecting forest fires early. The system efficiently monitors forest conditions, provides real-time data to fire stations, and assigns tasks to firefighters. While our prototype is focused on small-scale implementation, it has the potential to be expanded for larger areas.
For future development, we plan to:
- Improve sensor accuracy and coverage.
- Integrate AI algorithms for predictive analysis of fire outbreaks.
- Expand the system to handle larger forests and national parks.
- Collaborate with firefighting organizations to optimize response times.
- Develop a drone-based sensor system for faster deployment.
- Syrian Ministry of Agriculture Fire Reports, 2022
- IoT-Based Forest Fire Detection Systems: A Survey, 2021
- LoRa Technology in IoT Networks, 2020
We would like to acknowledge the following team members who contributed to the design, development, and implementation of the Fireguard:
Name | Role | |
---|---|---|
Izzat Kawadri | IOT Developer | LinkedIn Profile |
Mohammed al Dawaish | Hardware Developer | LinkedIn Profile |
Obada Tarazi | Software Developer (Backend) | LinkedIn Profile |
Mohammad al Hajjar | Software Developer (Mobile,Dashboard) | LinkedIn Profile |
Each team member played a vital role in making the Fireguard project a success. Feel free to reach out to them via LinkedIn for more information on their contributions and areas of expertise.
Name | Role | |
---|---|---|
Dr. Sami AL Issa | guiding us through the project with valuable insights and feedback. | LinkedIn Profile |
Name | Role | Link |
---|---|---|
CupCoding | providing the hosting services needed to run our backend system and make it available online. | Link |
Mahmoud alsaeed | invaluable technical assistance and hands-on help during the implementation phase. | Link |
EVO Tech | providing essential logistics support, ensuring that our prototype was built and delivered successfully. | Link |
We hope this project inspires others to explore the intersection of IoT and environmental conservation!