Close

Software

A project log for Resinified Office Lock

A Friday Hacks project adding an NFC/RFID lock system to our local office, powered by a Raspberry Pi 3 and resin.io

joeJoe 10/20/2016 at 08:420 Comments

I chose to set up a Python script to implement the door lock logic. The source code is available on GitHub. The script has a straightforward (somewhat simplified) cycle of:

The script is deployed through resin.io, which allows some practical benefits. First, we can observe the logs from the lock script through an online dashboard and see entry attempts including tag IDs. This is handy when adding a new ID to the system as no additional equipment is needed: just scan and check the logs. Second, new card/tag IDs are authorized through adding environment variables in the dashboard (setting a series of variables such as CARD_1 , CARD_2 , ... containing the IDs), so no additional programming is required!

There are additional settings, such as how long to keep the door open, or how fast to blink the LEDs.

Discussions