This is a instructable for a very simple Arduino controlled electric lock.
The key idea here is to be very simple as this was more of a proof of concept prototype type of thing.
The Arduino is used as a switch to control the lock itself, and is set to interface with a Computer.
The Computer sends serial data to the Arduino in which allows the electronic lock to be opened.
The Computer itself allows many different ways of opening this lock such as just pushing a button, reading a bar code scanner, and even over Bluetooth with a Windows Mobile device.
I used this simple project as a fun way of learning the basics of a few different things,
such as Arduino programming, Bluetooth integration, Bar code scanners and Serial communication
Step 1: Parts
Well first you need a Arduino, i used a Diecimila but any type would work.
The lock i am using is La Gard ENV 1300 type lock, i bought like 6 of them for 10 bucks on EBay.
You can not use just any type of lock, like a regular door lock, it must be electronic based.
It needs to work in the following manner: Inside this lock is a deadbolt, now what keeps this deadbolt closed is a very simple electromagnet. When you put power through this electromagnet it allows the lock to be open. If it does not have this simple electromagnet inside then it will not work . A simple door lock that uses a key and pins and tumbler will not work.
I included a picture of the inside of the lock where you can see how it works: Power goes to the electromagnet which pulls back a pin that releases and frees a wedge. This wedge then allows the door to be unlocked.
Theoretically you could create your own electromagnetic lock, or use a simple motor or something but that is for a different instructable.
You will also need a basic transistor: I used a 2N2222 from radio shack
Now if you want to open it through other means than just the computer your need:
A Bluetooth phone, i am using a Touch Pro with Windows Mobile
A bar code scanner, i am using a Symbol CS1504
In the last picture you see a door knob, this door knob has a wooden square knob glued to the bottom to fit in the square peg on the lock, its used to open the lock.