Skip to content

This project presents a design and prototype implementation of a home automation system that introduces possible solutions whereby the user can secure, monitor, and control his/her house from anywhere through his/her smartphone.

License

Notifications You must be signed in to change notification settings

bennaaym/home-automation-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Home Automation System

Table of Contents:

About:

This project presents a design and prototype implementation of a home automation system that introduces possible solutions whereby the user can secure, monitor, and control his/her house from anywhere through his/her smartphone.

Automation System

This system is mainly split into two parts:

  • Home Security
  • Home Control

Home Security

This part of the project aims to introduce an AI-based authentication system to decide who is entitled to enter the house and who is not.

Hardware

  • Arduino Uno Board x1
  • Ultrasonic Sensor HC-SR04 x1
  • 12V Solenoid x1
  • Relay 5V x1
  • 12V Energy Source x1

Stack

Functionalities

QR code recognition Face Recognition

Circuits

Working Principle

The whole security system is based mainly on two parts:

  • Python script (running on a machine / embedded system)
  • Arduino Uno Board

Python Script: running on a computer, it’s responsible for image recognition process and database interactions.

Arduino Uno Board: responsible for sensing people in front of the door, opening the door, and closing the door when needed.

(!) All interactions between the The machine running the Python script and the Arduino Uno board are made through serial communication (By default utilize port COM3).

Home Control

This part of the project aims to introduce a simple and smooth solution whereby the homeowner can monitor and control his/her home from anywhere and anytime through his/her smartphone.

Hardware

  • NodeMCU x3
  • LED x2
  • 1 way 5V Relay x2
  • SG90 Servo Motor x2
  • DHT11 Sensor x2

Stack

Functionalities

  • Control lights & windows of different rooms
  • Temperature & Humidity Check
  • Control users new users and give entry privilege (Admin only)
Admin (House Member with extra permissions) House Member QR code holds a unique serial number (unique for each user)

Circuits

Lamps Sketch : ./control/microcontrollers/lamps/lamps.ino
Temperature & Humidity Sketch : ./control/microcontrollers/temperature_humidity/temperature_humidity.ino
Windows Sketch : ./control/microcontrollers/windows/windows.ino

Getting Started

Home Security Setup

Prerequisite

  1. Clone the project
git clone https://github.com/bennaaym/home-automation-system.git
  1. Set up the circuit base on the given schema & sketch

  2. Install Python dependencies

pip install -r security/requirements.txt
  1. Upload the sketch to the Arduino Uno board & turn on the circuit

  2. Run the python Script

python -m security.__main__

Home Control Setup

Prerequisite

  1. Install dependencies
npm install
  1. Run the app android
npx react-native run-android

ios

npx react-native run-ios 

Firebase Setup

  • Create a firebase project
  • Update security/database (Add your own : serviceAccountKey.json)
  • Update control/react-native-app/src/firebase/firebase.js

Team

License

MIT License
Distributed under the MIT License. See LICENSE for more information.

About

This project presents a design and prototype implementation of a home automation system that introduces possible solutions whereby the user can secure, monitor, and control his/her house from anywhere through his/her smartphone.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages