Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 737 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 737 Bytes

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