Coder Social home page Coder Social logo

homealarmpi's Introduction

HOMEALARMPI - Kaveen Kumarasinghe

CODE HAS BEEN CLEANED UP AND COMMENTED!

Video Demonstration:

Audible explanation of the entire system.

https://youtu.be/hSgm7C1WC1E

NEW ADDITION: Text message alerts - You must create a twilio account to be able to recieve text message alerts. I have put the framework in the code, but you must replace your SID and Auth Token to get it to work.

NEW ADDITION: Arm/Unarm button - Press button to arm, press again to unarm. Alarm will not ring when unarmed. Not possible to unarm while an alarm is active unless authenticated first by a card. Arm and unarm colors are configurable.

NEW ADDITION: Touch Sensor - Touch sensor detects when a door is opened from the INSIDE and thus disables the alarm on open. It re enables it when the door is closed and considers it re-armed. A green LED and Beep notifies you of the re-arm.

Monitors a doorway and sounds a buzzer and light when opened while armed. Uses RFID/NFC cards to disable it. Specific passphrases for disabling of the alarm can be set through the Write mechanism. Further comments exist in the code.

The flexibility of this code means you can add multiple modules and/or remove multiple modules to be activated during an alarm event, one such example would be adding relays to trigger higher-power devices, adding stepper motors connected to door locks to remotely lock doors, and so forth. Expansion ideas are not limited.

BASE of this project is off the MFRC522 Python library.

Code will be cleaned up (it is extremely messy right now) and pin numberings will be added on this page ASAP.

THE FOURTH BLOCK OF ANY SECTOR HOLDS THE AUTHENTICATION INFORMATION.

If you would like to change the default authentication key please input the following into the 4th block of the desired sector

A= KEY VALUE (Part of your passphrase)

inputbytes = [A,A,A,A,A,A,0xFF,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]

The access modifiers 0xFF,0x07,0x00,0x00 ensure that the first 6 bytes will be used for authentication. Also known as KEY A

MFRC522-python

A small class to interface with the NFC reader Module MFRC522 on the Raspberry Pi.

This is a Python port of the example code for the NFC module MF522-AN.

##Requirements This code requires you to have SPI-Py installed from the following repository: https://github.com/lthiery/SPI-Py

##Revision The MFRC522py library has been edited slightly by me to better output chip data.

homealarmpi's People

Contributors

kav-k avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.