Skip to content

Latest commit

 

History

History
58 lines (51 loc) · 2.13 KB

README.md

File metadata and controls

58 lines (51 loc) · 2.13 KB

prms-door

Powell River Makerspace Door Project

RFID door lock for our Makerspace

Usage:

To enter:

  1. scan card at door
  2. door unlocks
  3. enter; door relocks after 15 seconds

To exit:

  1. scan card at door
  2. door unlocks
  3. exit; door relocks after 15 seconds

To add a new member:

  1. ssh into the raspberry pi
  2. cd prms-door
  3. ./writeCard.py to get a list of possible users
  4. ./writeCard.py -h to get a list of options (to replace a card for a user)
  5. ./writeCard.py memberId to write a member's id to a card; follow on-screen instructions
  6. test the new card

Setup (big picture, details to come):

  1. Check out from git
  2. Install the pigpio library from abyz.co.uk/rpi/pigpio/
  3. Install any other missing modules. Note that we include a modified MFRC522 library.
  4. Change to be executable: chmod a+x door.py chmod a+x fetchMembers.py chmod a+x writeCard.py
  5. Connect card reader as documented on the internet - we use a standard connection.
  6. Connect the servo to GPIO pin 14, 5v, and ground.
  7. 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:

  1. current access control (keys) still work (needs testing)
  2. members can scan an rfid card/key fob; door unlocks
  3. the door can be unlocked from inside
  4. new members are added by entering the key card id into the member database manually

Optional features:

  1. door can be unlocked from inside without a rfid key/card
  2. list of members is updated from our website
  • non-paying members are removed from the list automatically
  1. there's a way to scan new members into the system
  2. the door knows it's open
  • and won't lock until closed
  • and will alarm if left open, until a card is swiped
  1. 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