Name | Github |
---|---|
Abdelwahab Ganna | abdelwahabganna |
Hashem Abdelfatah | HashemKhaled |
Omar Sheta | omar-sheta |
This project provides a home safety system that can detect and prevent water and gas leaks. Our system is designed to provide the user with peace of mind and protect their home from potential damage caused by water and gas leaks. This system prevents the hazards resulting from water or gas leakage at home by automatically detecting the leakage and closing the source immediately upon leakage detection. Our home safety system is easy to use and can be enabled or disabled based on the user's choice. It is designed to be highly reliable and provide the user with the relief that comes from knowing that their home is protected from potential water and gas leaks.
Component |
---|
STM32L432KC Microcontroller |
Water Detection Sensor Module |
Natural Gas Sensor MQ135 |
Solenoid Valve for Fluid Control |
Tower Pro micro servo 9g |
Breadboard |
Buzzer |
Resistors |
STM32 IDE (Integrated Development Environment).
STM32 microcontroller board.
Git is installed on your system.
Git: https://github.com/HashemKhaled/HomeSafetySystem.git.
main.c
: Main application filestm32l4xx_hal_msp.c
: HAL MSP (Microcontroller Support Package) filestm32l4xx_it.c
: Interrupt handler filesyscalls.c
: System calls filesysmem.c
: System memory filesystem_stm32l4xx.c
: STM32L4xx system initialization fileREADME.md
: Project documentation (you are here)
Make sure you have the necessary hardware components (water sensor, gas sensor, valves) connected properly to the STM32 board.
1- Clone the repository to your local machine using Git: https://github.com/HashemKhaled/HomeSafetySystem.git.
2- Open the STM32 IDE and navigate to the project directory.
3- Build the project by selecting the "Build" or "Compile" option in the IDE's menu. This will compile the source code and generate the binary file.
4- Connect the STM32 board to your computer and ensure it is recognized by the IDE.
5- Load the project to the STM32 board. This will transfer the binary file to the microcontroller.
6- Power on the STM32 board and place the sensors near water or gas sources to detect any leakage. The system should detect leaks and trigger the corresponding alarms. Additionally, the valves should be controlled to close off the leaks.
- PA0-> TIM2_CH1 (conected to the servo of the water valve)
- PA3-> ADC1_1N8 (connected with the somke sensor)
- PA6-> GPIO_Input (Water sensor Reading (Digital_Input))
- PB1-> GPIO_Output (LED (alarm system))
- PB5-> GPIO_Output (Buzzer (alarm system))
- PA8-> TIM1_CH1 (conected to the servo of the water valve MQ135)
https://github.com/shalan/CSCE4301-WiKi/wiki/G3:-Home-Safety-System
Adding the ability to notify users on phone when a leakage is detected & setting the alarm to give a changing alarm frequency to give a better sounding alarm and to match industrial standards.