[tech] Door lock
Andrew Adamson
bob at ucc.gu.uwa.edu.au
Sun Mar 11 22:20:53 WST 2012
Hi All,
The modem has now been replaced with the arduino and the small 5v relay
board. It's working for now, but it's a hack and not even properly boxed
up. [TPG] has already modified dispense to suit it. If it breaks, I'll let
you keep the pieces.
For posterity, here are the super-sekret settings and commands:
Serial over USB connected to merlo, 115200 8n1
Type "2;" and it will respond with "1,The UCC door is alive;"
Type "4;" and it will respond with "1,Opening door;" , keep the lock open
for ten seconds and then say "1,Locking door;". The command codes are
strange numbers because I hacked the CmdMessenger [1] library example to
do the job.
I've found using picocom to check it is easier than minicom. The following
command* will start picocom with the correct baud rate and a command
character of x: `picocom /dev/ttyUSB0 -e x -b 115200'
Andrew Adamson
UCC President
bob at ucc.asn.au
[1] http://arduino.cc/playground/Code/CmdMessenger
* merlo is only open to wheel members
|"The faster you move, the slower time passes, the longer you live." |
| ---Peter's Laws |
On Wed, 7 Mar 2012, Andrew Adamson wrote:
> *sigh*
>
> So I got back from the pub and went to close the clubroom, and guess what
> wasn't working? I've turned the modem off, since it is obviously the
> problem and was causing the lock to heat up. I bought a little 5V relay
> board at altronics today [1], which could be combined with the Seeeduino
> in the machine room to replace the modem system. Unfortunately I won't be
> at uni for the next two days, so if someone wants to work on that, just
> let us know on the list.
>
> [1] http://www.altronics.com.au/index.asp?area=item&id=S4440
>
> Andrew Adamson
> UCC President
> bob at ucc.asn.au
>
> |"The faster you move, the slower time passes, the longer you live." |
> | ---Peter's Laws |
>
> On Wed, 7 Mar 2012, Andrew Adamson wrote:
>
> > The door is now back online. The in-wall wiring has been redone, and the
> > power supply has been replaced with something smaller now that we need
> > less current. We are still using the modem, so if the system breaks in the
> > next couple of days we know exactly what is wrong.
> >
> > Please note: you no longer need to bang/kick on the door to open or close
> > it.
> >
> > Andrew Adamson
> > UCC President
> > bob at ucc.asn.au
> >
> > |"The faster you move, the slower time passes, the longer you live." |
> > | ---Peter's Laws |
> >
> > On Tue, 6 Mar 2012, Andrew Adamson wrote:
> >
> > > Hi all,
> > >
> > > I spent some time today replacing our old electronic lock with a newish
> > > one which has been sitting in the tool cupboard for a couple of years.
> > > It's not wired up as yet so you will still need to use the key for now. In
> > > the next day or so I plan to redo the wiring back to the machine room, at
> > > which point the door modem may or may not get replaced with an arduino or
> > > analogue circuit. There is no longer any need to slam the door to make it
> > > close, and the lock even closes itself now. Enjoy! :-)
> > >
> > > Andrew Adamson
> > > UCC President
> > > bob at ucc.asn.au
> > >
> > > |"The faster you move, the slower time passes, the longer you live." |
> > > | ---Peter's Laws |
> > >
> >
>
More information about the tech
mailing list