Gatekeeper

From Nottinghack Wiki
Revision as of 16:02, 31 January 2019 by Danspencer101 (talk | contribs) (Danspencer101 moved page Project:Gatekeeper to Gatekeeper over redirect)
Jump to navigation Jump to search

Gatekeeper is the first node of our Hackspace Instrumentation project to go live and is responsible for access control to the space through the front "Airlock" door.

Pics

Source Code

The firmware that runs on the arduino cane be found here
https://github.com/NottingHack/Gatekeeper
The code for the database and the process that run on Holly can be found here
https://github.com/NottingHack/instrumentation, the relevant part is GateKeeper.cpp

Schematic

Logic Flow

Quick Breakdown

  • Arduino with Wiznet shield
  • RFID reader
  • Doorbell button (interrupt pin)
  • magnetic release (MOSFET switch 12v)
  • Magnetic contact
  • Doorbell sounder (Relay) - activated either by attached doorbell button, or doorbell on outer door (connected to main LED Matrix display)
  • Magnetic release status led's red/blue (TODO)
  • Matrix keypad and HD44780 LCD controlled via I2C AtTiny2313
  • MQTT
  • MQTT scripts on holly push door opened & last man switch events to irc twitter and log
  • Card numbers in 'Instrumentation' MySQL database on Holly
  • Database managed by HMS

Notes

6 Core alarm cable run to airlock door

  • magnetic contact on black and white core
  • door magnetic release green and yellow cores
  • last man switch on blue and red cores