Skip to content

teonapster/home-alarm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

home-alarm

home-alarm project is just a home project which offers a basic home alarm system. This project runs in a raspberry pi 3 interconnected with some sensors using proper GPIO connector/adapter.

Main idea

The main idea is that we have a "master" device which enables/disables the alarm whenever its disconnected/connect in LAN respectively. So when "master" device is out, the system is armed and polls available sensors. Our main hypothesis behind this is that the master device takes constantly the same IP address. So in order to clarify whether device is connected or not we use ping command to this specific (leased) ip address which belongs to our local network (LAN). WARNING: this is completely insecure. Instead of that we have to implement a technique which checks at least the mac address of "master" device. If any event is raised then it triggers alarm and sends email to the alarm owner with further information. In current version no siren is available so we just receive an email.

Language

  • Python

Hardware used

  • GPIO adapter (costs around 2-8EUR)
  • pir sensor (costs around 2EUR per piece)
  • magnetic swithces (costs around 4EUR for 5-6 pieces)
  • simple cable (i used some old ones with efficient armor)
Execute

You have just to run switches.py with: py your/project/path/switches.py

About

A simple home alarm system with raspberry pi 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages