Skip to content

HashemKhaled/HomeSafetySystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 

Repository files navigation

Home Safety System

Table of Contents

  1. Contributors
  2. Project Description
  3. Getting Started
    1. Dependencies
    2. Hardware Components
    3. Getting the Source
      1. Repo Contetnt
  4. Software Build and Deploy
    1. How To Run
    2. Pin Configurations
  5. WIKI Link
  6. Future work

Contributors

Name Github
Abdelwahab Ganna abdelwahabganna
Hashem Abdelfatah HashemKhaled
Omar Sheta omar-sheta

Project Description

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.

Getting Started

Hardware Components

Component
STM32L432KC Microcontroller
Water Detection Sensor Module
Natural Gas Sensor MQ135
Solenoid Valve for Fluid Control
Tower Pro micro servo 9g
Breadboard
Buzzer
Resistors

Dependencies

STM32 IDE (Integrated Development Environment).

STM32 microcontroller board.

Git is installed on your system.

Getting the Source

Git: https://github.com/HashemKhaled/HomeSafetySystem.git.

Repo Contetnt

Software Build and Deploy

How To Run

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.

Pin Configurations

  1. PA0-> TIM2_CH1 (conected to the servo of the water valve)
  2. PA3-> ADC1_1N8 (connected with the somke sensor)
  3. PA6-> GPIO_Input (Water sensor Reading (Digital_Input))
  4. PB1-> GPIO_Output (LED (alarm system))
  5. PB5-> GPIO_Output (Buzzer (alarm system))
  6. PA8-> TIM1_CH1 (conected to the servo of the water valve MQ135)

WIKI Link

https://github.com/shalan/CSCE4301-WiKi/wiki/G3:-Home-Safety-System

Future work

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages