Skip to content

deep-creek/alarmpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

We have a small shelter on our property were we keep our bikes. Sadly, we had 4 occasions at which 5 bikes had been stolen throughout the last 9 years. As the years went by, I upgraded the sheds physical security features:

  • better locks
  • o-ring within the shelter to additionally lock the bikes So far nothing helped and we thus stored two of the bikes inside the house.

This project is the next escalation phase, and implements a Raspberry-Pi based alarm system. It features an audible alarm and two 15.000 LED lumen blinding lights, so that if a theft enters the shelter he will be blinded for a small duration of time.

Hardware:

  • Raspberry PI 3B
  • 4 Channel Relais
  • Alarm Signal
  • Window-/Door contact sensor
  • Keypad

Alarm rules

The following depicts how the state machine is implemented.

stateDiagram
    

    Armed --> Disarmed          : Correct code entered
    Armed --> Alarm             : Door opened

    Alarm --> Disarmed          : Correct code entered
    Alarm --> AlarmTimedOut     : Timeout
    AlarmTimedOut --> Armed     : Door closed  
    AlarmTimedOut --> Disarmed  : Correct code entered
    
    Disarmed --> Armed          : Door closed / Reset code entered AND Door closed

    classDef greenState fill:#00ff00,color:black,font-weight:bold,stroke-width:2px,stroke:grey
    classDef yellowState fill:#ffff00,color:black,font-weight:bold,stroke-width:2px,stroke:grey
    classDef redState fill:#f00,color:black,font-weight:bold,stroke-width:2px,stroke:grey

    class Alarm                 redState
    class AlarmTimedOut         redState
    class Armed                 greenState
    class Disarmed              greenState
Loading

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published