Skip to content

About

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

Resources

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

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

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages