Door control system: Difference between revisions
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
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: | 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: | ||
babbage:~$ sudo addid.sh | babbage:~$ cd /usr/local/share/Doorbot | ||
babbage:/usr/local/bin/Doorbot$ sudo git pull | |||
babbage:/usr/local/bin/Doorbot$ sudo addid.sh | |||
And then touch the card to the reader next to the makerbot. Alternatively, connect to flowers: | |||
flowers@flowers:~$ sudo screen -dr doorbot | |||
And ^A ^D to disconnect | |||
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 18:27, 10 August 2010
Overview
Runs on Flowers, and code is on Github.
Access list is currently a text file, copied via a script from Babbage or Flowers. The text file just consists of card ID and name. To add a card:
babbage:~$ cd /usr/local/share/Doorbot babbage:/usr/local/bin/Doorbot$ sudo git pull babbage:/usr/local/bin/Doorbot$ sudo addid.sh
And then touch the card to the reader next to the makerbot. Alternatively, connect to flowers:
flowers@flowers:~$ sudo screen -dr doorbot
And ^A ^D to disconnect
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.