paulfp / NFC-Door-Lock

How to unlock a door with an RFID keyfob, with a Raspberry Pi driving a relay to switch an electronic door strike.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NFC Door Lock

This simple Python script which was featured in Issue 4 of HackSpace magazine allows you to unlock a door with an NFC / RFID keyfob.

This code works with a USB RFID reader, which acts like a keyboard and inputs the code from the fob as if it were being typed on a keyboard. The striker plate is powered by its own 12V power supply and switched by a 5V single-channel relay switch connected to the Raspberry Pi's GPIO ports as shown in the diagram below:

alt text

Dependencies

The script uses evdev which can be installed like this:

sudo pip install evdev

About

How to unlock a door with an RFID keyfob, with a Raspberry Pi driving a relay to switch an electronic door strike.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%