Doorlock: Difference between revisions

From The Munich Maker Lab's Wiki
Jump to navigation Jump to search
(facts, no more brain storming.)
Line 1: Line 1:
Our new space will need an electric door lock. Let's brainstorm
Our new space will need an electric door lock.


= Locking Mechanism =
== Theory ==
==Options==
We needed a lock that allows us to hand out as many "keys" as we like, but without making it super complicated to use. A lot of hackerspaces used SSH keys as "keys" to their space. For us, that's not user friendly enough, as we expect quite a few non-technical folks to have access to the space
* Electric controllable lock
** Motor lock<br>Lock can be locked and unlocked via motor, e.g. [http://www.dorma.com/de/de/sichern/sicherungstechnik/svp_2000_en/index-3260-3610-3685.html Dorma SVP 2000 Series]
** Panic lock with electricly enabled outside lever<br>Lock automatically locks itself when opening/closing the door. One side can be disabled electronicly. E.g. [http://www.dorma.com/de/de/sichern/sicherungstechnik/svp_6000_en/index-3260-3610-3681.html Dorma SVP 6000 series]
* Electric lock cylinder<br>similar to what we currently have at Werk1
* Addon to a mechanical lock cylinder<br>e.g. KeyMatic locks


==Alternative e-lock systems==
After discussions, we settled for a two-factor system, using RFID cards and PINs. Additional means to authenticate may be introduced at another point in time.
* [https://www.siko-shop.de/elektronische-Schliesszylinder/NFC-ELOCK2-Schliesszylinder/elektronisches-Tuerschloss-mit-NFC-Funktion-fuer-Smartphone::9535.html?XTCsid=647b708d745f3f93687052f5c6e57806 NFC ELOCK2]
* [http://danalock.com/ danalock]
* [http://www.gojiaccess.com/shop-goji.html GOji]
* [https://lockitron.com/ Lockitron]
* [http://www.i-keys.de/de/Zutrittskontrollsysteme/Stand-Alone-Geraete/Tuerschloesser/RFID-Schliesszylinder-CM-70.html I-Keys MIFARE]
* Low-Budget RFID Lock system from eBay:
** [http://www.ebay.de/itm/RFID-Zugangskontrolle-Zutrittskontroll-Tuerschloss-Tueroeffner-Codeschloss-Set-/191292104224 RFID-Lock-Set]
** [http://www.ebay.de/itm/BERGHOCH-Elektronisches-Turschloss-RFID-Schlieszylinder-Komplett-Set-/291227002822?pt=LH_DefaultDomain_77&var=&hash=item43ce7b67c6 RFID Lock]
** [http://www.ebay.de/itm/Elektronischer-Schliesszylinder-Elektronisches-Turschloss-Digital-35-35-/321611328644?pt=LH_DefaultDomain_77&hash=item4ae1876c84 RFID Lock]
** [http://www.ebay.de/itm/Burg-Wachter-Eletronisches-Turschloss-TSE-Set-5013-E-KEY-Komplettset-mit-Funksch-/291275321648?pt=LH_DefaultDomain_77&hash=item43d15cb130 Burg-Wächter TSE Set]


= Resources =
== Hardware ==
=== Frontend ===
RFID reader, pinpad, and LCD display, connected to an Arduino.
 
Prototype uses an Arduino Uno, which is a little short on pins. A buzzer would be nice, and we currently can't control the backlight of the LCD.
 
=== Locking Mechanism ===
We got a motor lock on eBay, together with its electronics, and we'll use that. It's a Dorma SVP 2000 series lock.
 
The electronics have a set of contacts that can be used to get the status of the lock, as well as to lock and unlock it.
 
=== Backend ===
A Raspberry Pi, which is connected to the frontend over a serial connection, and has the motor lock electronics connected via its GPIOs. Currently, only the locking pins are connected via a grove relay. No status checks are being done yet.
 
=== Schema ===
<code>
                                                            +-----------+
                                                            | RFID      |
                                                  +-(SPI)--+ Reader    |
                                                  |        +-----------+
  +--------------+              +---------------+  |               
  |              |              |              |  |          +-----------+
  | RaspberryPi  +----(UART)----+  Arduino      +--+-(Matrix)-+ Keypad    |
  |              |              |  (frontend)  |  |          +-----------+
  +------+-------+              +---------------+  |               
        |                                        |  +-----------+
    (Relais board)                                +--+ Display  |
        |                                            +-----------+
  +-----+------+
  | Door lock  |                                                 
  +------------+                                                 
</code>
 
== Software ==
Hosted on Github: https://github.com/munichmakerlab/doorlock, contains both the frontend firmware as well as the software for the backend.
 
The backend runs on the RPi, and uses a SQLite database to store RFID and PIN information. The "manage_db.py" script can be used to maintain that database.
 
== Resources ==
* [https://www.youtube.com/watch?v=y6jDO9zb8gI Talk about doorlock at muCCC]
* [https://www.youtube.com/watch?v=y6jDO9zb8gI Talk about doorlock at muCCC]
* [https://www.youtube.com/watch?v=6tNslSYthFk Video of first prototype]


[[Category:Project]][[Category:Infrastructure]][[Category:New Space]]
[[Category:Project]][[Category:Infrastructure]][[Category:New Space]]

Revision as of 02:00, 2 January 2015

Our new space will need an electric door lock.

Theory

We needed a lock that allows us to hand out as many "keys" as we like, but without making it super complicated to use. A lot of hackerspaces used SSH keys as "keys" to their space. For us, that's not user friendly enough, as we expect quite a few non-technical folks to have access to the space

After discussions, we settled for a two-factor system, using RFID cards and PINs. Additional means to authenticate may be introduced at another point in time.

Hardware

Frontend

RFID reader, pinpad, and LCD display, connected to an Arduino.

Prototype uses an Arduino Uno, which is a little short on pins. A buzzer would be nice, and we currently can't control the backlight of the LCD.

Locking Mechanism

We got a motor lock on eBay, together with its electronics, and we'll use that. It's a Dorma SVP 2000 series lock.

The electronics have a set of contacts that can be used to get the status of the lock, as well as to lock and unlock it.

Backend

A Raspberry Pi, which is connected to the frontend over a serial connection, and has the motor lock electronics connected via its GPIOs. Currently, only the locking pins are connected via a grove relay. No status checks are being done yet.

Schema

                                                           +-----------+
                                                           | RFID      | 
                                                  +-(SPI)--+ Reader    | 
                                                  |        +-----------+ 
 +--------------+              +---------------+  |                
 |              |              |               |  |          +-----------+ 
 | RaspberryPi  +----(UART)----+  Arduino      +--+-(Matrix)-+ Keypad    | 
 |              |              |   (frontend)  |  |          +-----------+ 
 +------+-------+              +---------------+  |                
        |                                         |  +-----------+ 
    (Relais board)                                +--+ Display   | 
        |                                            +-----------+ 
  +-----+------+
  | Door lock  |                                                   
  +------------+                                                   

Software

Hosted on Github: https://github.com/munichmakerlab/doorlock, contains both the frontend firmware as well as the software for the backend.

The backend runs on the RPi, and uses a SQLite database to store RFID and PIN information. The "manage_db.py" script can be used to maintain that database.

Resources