-
Notifications
You must be signed in to change notification settings - Fork 4
G3: Home Safety System
Name | Github |
---|---|
Abdelwahab Ganna | abdelwahabganna |
Hashem Abdelfatah | HashemKhaled |
Omar Sheta | omar-sheta |
https://github.com/HashemKhaled/HomeSafetySystem.git
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 |
Water Leak Detection: The Water Detection Sensor Module is placed in areas prone to water leaks, such as near sinks, washing machines, or pipes. When the sensor detects the presence of water, it sends a signal to the microcontroller.
Gas Leak Detection: The Natural Gas Sensor MQ5 is utilized to detect gas leaks within the home. It can detect various gases, including natural gas. Once a gas leak is detected, the sensor sends a signal to the microcontroller. However, in testing we use MQ135 which basically has the same connections but detects Co2 instead of Gas just for debugging.
Microcontroller Processing: The STM32L432KC microcontroller receives the signals from the water and gas sensors. It processes the signals and determines the appropriate actions to be taken based on the detected leak type.
Closing Solenoid Valve: If a water or a gas leak is detected, the microcontroller triggers the Solenoid Valve, which shuts off the supply to prevent further leakage.
Servo micro: acts as a place holder for the Solenoid Valve as it was not available.
Alert System: In case of either a water or gas leak, the Buzzer is activated to generate an audible alert, notifying the inhabitants of the potential hazard.
We developed a working initial prototype of the water sensor and valve As can be seen from the attached Images:
The First Image is of the system with no water and we see that the system is off.
The second Image is of introducing water to the system but still the system did not get into contact with it:
The Third Image is when the sensor gets in contact with water and the led is turned on indicating that the sensor is active. Finally the Tower Pro micro starts turning indicating closing the valve.
The Gas sensor for the sake of prototyping was replaced by an MQ-135 sensor to detect the CO2 level by converting the adc value measured from its analog output to CO2 concetration level in part per milion (ppm) using the calibration procedure provided in the sensor's datasheet.
The system now consists of a water sensor, MQ-135 sensor, alarm system (a LED and a buzzer), and two micro servo SG90 to control: one for controlling the water leakage and the other for controlling the gas leakage.