DoorAccess

From TkkrLab

Jump to: navigation, search

Contents

Credits


We are mentioned on hackaday, well done everyone!


Goal

The goal of this project is to be able to enter the space with some sort of electronic key. We decided to use the iButton for this. We have a few reasons for electronic access of which the main reason is that we have a limited set of old metal keys and since all members get a key of the space we're soon running out of them. We cannot copy the keys because they are special keys which only can be ordered which would be too expensive (and also a waist of money since we don't know how long we can stay in our current building). Since we are sharing the building with others we cannot replace the cylinder and use cheap keys so there you have it: We're in need of an electronic access system. Other reasons for en electronic access system are the possibility of logging and revoking keys and of course it is cool to see some leds blinking when using an electronic key:)

Main Features

used parts

Financing for all of this

Questions

ToDo list

pics of door, lock and electronics

Before
Buitendeur1.jpg . Buitendeur2.jpg . Buitendeur3.jpg

Lock mounting and After (iButton reader with led installed in the aluminum frame):
Mounting-lock.jpg . Door-inside-open.jpg . Door-outside-closed.jpg . Door-outside-open.jpg

Electronics and button to open door:
Case-electronincs-closed.jpg . Case-electronincs-arduino.jpg . Door-open-button.jpg
The second reader is not mounted in the case yet.

schematic

V1.1 of our lock electronics with arduino and shields
Tkkrlab Lock-O-Matic.png

Code

It took some time to fit all of the libraries and code into the available flash size of the arduino. With the arduino optiboot bootloader of 512 bytes only 32256 bytes remain left. Only after rigourous optimizing the code was small enough to fit (and eventually there were some leftover bytes to include measuring of chip temperature and storing the essence of condensed hamster (see above)). The code including all libraries currently consumes about 31800 bytes

Used libraries:

source code File:Lock-O-Matic.tar.bz2

Pics of menu and admin menu (accessible by telnet or serial interface):
Lock-O-Matic default menu and status.jpg . Lock-O-Matic admin menu.jpg

Links to relating projects

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox