RFID door lock for our Makerspace
- scan card at door
- door unlocks
- enter; door relocks after 15 seconds
- scan card at door
- door unlocks
- exit; door relocks after 15 seconds
- ssh into the raspberry pi
cd prms-door
./writeCard.py
to get a list of possible users./writeCard.py -h
to get a list of options (to replace a card for a user)./writeCard.py memberId
to write a member's id to a card; follow on-screen instructions- test the new card
- Check out from git
- Install the pigpio library from abyz.co.uk/rpi/pigpio/
- Install any other missing modules. Note that we include a modified MFRC522 library.
- Change to be executable: chmod a+x door.py chmod a+x fetchMembers.py chmod a+x writeCard.py
- Connect card reader as documented on the internet - we use a standard connection.
- Connect the servo to GPIO pin 14, 5v, and ground.
- Add cron entries via
sudo crontab -e
@reboot pigpiod @reboot sleep 30 && /home/pi/prms-door/door.py & @daily sleep 30 && /home/pi/prms-door/fetchMembers.py &
Required features:
- current access control (keys) still work (needs testing)
members can scan an rfid card/key fob; door unlocksthe door can be unlocked from insidenew members are added by entering the key card id into the member database manually
Optional features:
- door can be unlocked from inside without a rfid key/card
list of members is updated from our website
non-paying members are removed from the list automatically
- there's a way to scan new members into the system
- the door knows it's open
- and won't lock until closed
- and will alarm if left open, until a card is swiped
- there's a camera connected
- that takes video when the card is swiped?
- that takes video when the door is opened?
- that allows people to see if there's anybody in the Makerspace
- that can be used for training machine learning to see if there's anybody in the space