Skip to content

Latest commit

 

History

History
16 lines (15 loc) · 559 Bytes

BurglerAlarm.md

File metadata and controls

16 lines (15 loc) · 559 Bytes

Burgler Alarm

State machine

graph TD;
    StateInit((StateInit)) -- Delay --> StateSleep
    StateSleep -- Angle / Acceleration change --> StateAwake
    StateAwake -- Otherwise --> StateAwake
    StateAwake -- Angle / Acceleration change --> StateAlert
    StateAlert -- Timeout --> StateSleep
    StateAlert -- Angle / Acceleration change --> StateCountdown
    StateCountdown -- Pin correct --> Exit((Exit))
    StateCountdown -- Timed out --> StateSiren
    StateSiren -- Pin correct --> Exit
    StateSiren -- Time out --> StateSleep
Loading