HACCSY – Hackerspace Access Control and Check in System


HACCSY abreviation stands for Hackerspace Access Control and Check in System and that’s pretty much what it does.

HACCSY app is meant to run on a RaspberryPi that’s connected to internet and the front door electric strike lock. It does the job of a simple Check in System and Door Access Control System (2 in 1), it queries a REST service by handing it the scanned in RFID card reader and it will return ‘true’ if the key owner owes less than 2 months worth of their monthly payment. It will return ‘false’ otherwise. It does the same for checking in and out. The computer would then send the signal to the door lock actuator to open it if returned true or do nothing if false. It has a check IN/OUT button to indicate Check IN or Check OUT. It also has an LCD backlight display that displays messages for the user, and an RGB LED that turns RED for Access Denied, GREEN for Access Granted and WHITE to indicate offline mode. Through the REST API, you can also make it available for others to see if the hackerspace is open or not. See working example on the website header at www.prishtinahackerspace.orgHACCSY  Hackerspace Access Control and Check in System

Hardware and tools

HACCSY is built with the following hardware and electronic components:

  • 2 Plastic Electrical Enclosures to place the electronics inside.
  • In our case, 3 meters of UTP (Ethernet) cable
  • Raspberry Pi
  • USB RFID reader (hidraw0)
  • AdaFruit LCD screen,
  • 12V Power supply (12V LED power supply)
  • 2 push buttons (Check in/out button, Exit button)
  • Electric strike lock.
  • N-Channel Mosfet (FK106269)
  • Mosfet Resistor 1/4W ~47 kOhm
  • Display Resistor 1/4W 470 Ohm
  • Display Pot 10 kOhm
  • 3x LED resistors ~330 Ohm
  • Protection Diode 1N4007
  • Snubber Resistor 100 Ohm
  • Snubber Capacitor 0.47 uF 100V (not electrolytic)

We used the following tools:

  • Glue gun
  • Soldering iron
  • Electric drill
  • Box cutter
  • Dremel tool
  • Shear cutters
  • Screwdrivers
  • Caliper
  • Third hand
  • Multi meter

Step 1: Prepare the front door display and RFID enclosure

  1. Measure your LCD Screen, and with a dremel tool cut the plastic electrical enclosure to fit the LCD screen.
  2. With the electric drill, drill holes for the RGB LED and the Check in Button.
  3. Don’t forget to drill a hole in the back of the plastic electrical enclosure for extending the UTP cables inside the main box where the RaspberryPi will be.
  4. Dismantle the RFID USB reader, and with a glue gun attach it’s components inside the plastic enclosure.
  5. Use the glue gun to place the LCD (after you’ve soldered the pins) and RGB LED in place as well
  6. After you’re done with those, proceed with the wiring as shown in the project wiring schema built with Fritzing.
  7. Enforce the closure on the wall next to the door, and close it.

Step 2: Prepare the main enclosure

After you’ve extended the UTP cables wired from the LCD screen enclosure through the wall, follow the schema for wiring the following:

  • Place the 5V/1A adapter for powering the Raspberry Pi,
  • 12V adapter for powering the electric strike lock,
  • RaspberryPi and other components with it,
  • Place the Exit button in the main box like shown on the pics attached.
  • Finally place the electric strike lock at the door.

Step 3: Install the software #1

Your RaspberryPi should be running on raspbian

Install Seltzer CRM and HACCSY REST API in your remote server

Documentation for installing seltzer can be found in this link: https://github.com/elplatt/seltzer

After you’re done with installing Seltzer CRM, from HACCSY github code repository proceed with installing the HACCSY REST API

HACCSY Github repository: https://github.com/PrishtinaHackerspace/HACCSY

The Seltzer PHP files (api folder) need to be uploaded via FTP to the same web server where you’ve installed Seltzer CRM. It should line up where this “api” folder is under the “crm” folder so that the URL looks like “http://yourserver.com/crm/api/query.php…..”

If you don’t want it to interface with Seltzer you could take out the part that updates the whitelist file and just populate the file manually with the valid users and their RFID serial numbers. The whitelist file should have a JSON array like this:

[{“firstName”:”Josh”,”lastName”:”Pritt”,”serial”:”8045AB453449″},{“firstName”:”Tony”,”lastName”:”Bellomo”,”serial”:”6554557774BC”},{“firstName”:”Arlo”,”lastName”:”Del Rosario”,”serial”:”4944D8938D11″}]

Then make sure to create the new tables and new columns by importing the “update.sql” file via phpmyadmin to your seltzer database.

See the documentation here for more detailed steps: https://github.com/PrishtinaHackerspace/HACCSY/tree/master/Seltzer/crm/apiHACCSY  Hackerspace Access Control and Check in System schematich

Usage
An example query might be to check if a member is allowed in using their RFID scanned at the door via an RFID reader attached to a Raspberry Pi based on their payment status.

Simply read the RFID serial via a python script or similar program then put that string on the end of the URL like so:

Say the RFID reader returned this string after reading the card: 345A33008C

Then you’d stick it on the URL like this:

http://yourserver.com/crm/api/query.php?action=doorLockCheck&rfid=345A33008C

Then use whatever HTTP request functionality in your script to GET that URL and the response should resemble something like “true” or “false”.

Then your script would be able to know immediately if it should open the door or not by turning a servo on the deadbolt or turning off the power to the electric strike lock via relay switch, etc.

 

 

For more detail: HACCSY – Hackerspace Access Control and Check in System




© 2015 Powered By Engineering Projects Team, Raspberry Pi Projects

Scroll to top