Difference between revisions of "Door control system"

From London Hackspace Wiki
Jump to navigation Jump to search
Line 2: Line 2:
 
We have a [http://www.touchatag.com/ Tikitag] RFID reader, embedded in the door, which we use to automatically open the door when authenticated.
 
We have a [http://www.touchatag.com/ Tikitag] RFID reader, embedded in the door, which we use to automatically open the door when authenticated.
  
Runs on [[System naming|Flowers]], and code is on [http://github.com/londonhackspace/doorbot Github].
+
The software runs on [[System naming|Flowers]], and its code is on [http://github.com/londonhackspace/doorbot Github].
  
Access list is currently a text file, copied via a script from [[System naming|Babbage]] or Flowers.  The text file just consists of card ID and name. To add a card:
+
The access list is currently a text file, copied via a script from Flowers.  The text file simlpy consists of card ID and name.
 +
 
 +
=== Adding a card===
 +
On Babbage or Flowers:
  
 
  babbage:~$ cd /usr/local/share/Doorbot
 
  babbage:~$ cd /usr/local/share/Doorbot
Line 10: Line 13:
 
  babbage:/usr/local/bin/Doorbot$ sudo addid.sh
 
  babbage:/usr/local/bin/Doorbot$ sudo addid.sh
  
And then touch the card to the reader next to the [[Makerbot]]. Alternatively, connect to [[System naming|Flowers]]:
+
Then touch the card to the reader next to the [[Makerbot]] (if on Babbage) or the door (if on Flowers).
 +
 
 +
Alternatively, connect to [[System naming|Flowers]]:
  
 
  flowers@flowers:~$ sudo screen -dr doorbot
 
  flowers@flowers:~$ sudo screen -dr doorbot
  
And ^A ^D to disconnect
+
You will see the log of attempted access.  Press Ctrl+A Ctrl+D to disconnect and add the .
  
 
The door opener connects to '''robonaut''' on [[System naming|Babbage]] to announce whenever the door is opened, and also flashes the lights on using '''Lighted''', also on Babbage.
 
The door opener connects to '''robonaut''' on [[System naming|Babbage]] to announce whenever the door is opened, and also flashes the lights on using '''Lighted''', also on Babbage.

Revision as of 14:28, 13 August 2010

Overview

We have a Tikitag RFID reader, embedded in the door, which we use to automatically open the door when authenticated.

The software runs on Flowers, and its code is on Github.

The access list is currently a text file, copied via a script from Flowers. The text file simlpy consists of card ID and name.

Adding a card

On Babbage or Flowers:

babbage:~$ cd /usr/local/share/Doorbot
babbage:/usr/local/bin/Doorbot$ sudo git pull
babbage:/usr/local/bin/Doorbot$ sudo addid.sh

Then touch the card to the reader next to the Makerbot (if on Babbage) or the door (if on Flowers).

Alternatively, connect to Flowers:

flowers@flowers:~$ sudo screen -dr doorbot

You will see the log of attempted access. Press Ctrl+A Ctrl+D to disconnect and add the .

The door opener connects to robonaut on Babbage to announce whenever the door is opened, and also flashes the lights on using Lighted, also on Babbage.


                             +---------+     +---------+
                             | LM7805  |-----| 12V UPS |
                             +---------+     +---------+
                                                  |
                                                  |
+------+     +---------+     +---------+      +-------+
| RFID |-----| Flowers |-----| Arduino |------| Relay |
+------+     +---------+     +---------+      +-------+
                                                  |
                                                  |
                                             +---------+
                                             | Release |
                                             +---------+

Override

ssh flowers@flowers
sudo doorbot/openDoor.py

The password is hackspace. If the arduino has somehow changed port, you might need to edit that in openDoor.py

Please use this with caution. Once unlocked, the door must be physically opened and closed again to relock.

If you unlock the door remotely, use the webcam to check someone has entered the space.