Skip to content

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

License

Notifications You must be signed in to change notification settings

paulfp/NFC-Door-Lock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages