Electronic Door Lock

From Eugene Maker Space
Jump to: navigation, search


The Eugene Maker Space is in need of an electronic door locking mechanism. This will make key management really simple because every key holder will have their own separate key that can be revoked at any time. Clif was working on a USB key based system at one point in time. There are other possibilities as well such as RFID or smart cards. We should build a good system for the space and log all relevant information about it here.

Example Systems:

Similar but with an iPhone: http://www.youtube.com/watch?v=0c5FKhMCjT0
Similar but with analog distance sensor and plays cute tones: http://www.youtube.com/watch?v=R9S8hlJDeUQ

This one uses a VCR worm gear assembly for running the dead bolt, which actually pushes the door latch in!
Text message powered, with different type of deadbolt.
RFID with door strike.

Feature list

  • Authentication possibilities: USB serial Number, RFID, Keypad, Email, Texting, or Webpage.
    Checks with something like a radius server, credentials could be something you have and/or something you know.
    Keypads could have a pizio beeper or speaker/mike for audio.
  • Uses servos or actuator that can also be turned by a key? This is a tradeoff.
    Has door closed Mag switch, to prevent bolt from being thrown at the wrong time.
    Also an electric door strike, so one can be "buzzed" in when the knob is locked.
  • Has ethernet , possibly with PoE and a DC battery charger for a small Gell Cell on the door.
    Monitors wall power and battery voltage, use simple trickle charger maybe with cutoff FET.
    Probably a 6V system, make sure servo and door strike are 6V.
  • The MCU board has a sleep mode,
    and Flash so a small number of codes can be DL into it that will work if the Radius system can't be reached.
  • Use the watchdog timer for robustness. Log it if we were bit. ;-)
  • Red/Green/Yellow lit push buttons on inside and outside. Red is Locked, Yellow is in transit or authenticating, Green is Unlocked. Inside button is on deadbolt cover, and could also be on PWM for pretty fade effects. Inside light blinks slowly if wall power is out, fast 25% DC if battery is low. Blinks Yellow if jammed.
  • Outside hooded keypad for privacy and waterproofing.


Optionally, when leaving; Close door, authenticate, and press button to lock, (default is unlock). This logs you out of the space.

Roll the (Optional) alarm system terminal into it. Which consists of a 4x4 keypad, backlit LCD and blinky LEDs.

Initially use ethernet, then later when we build a CAN or LIN network, and swap the controller for a lessor one that does just one of those. The first controller can become the CAN/LIN to ethernet bridge. Use headers like found in a PC for disk / reset / power leds etc... for connections to the MCU board. Later just slide the wires onto the new controller. Could use the Teensy++ 2.0 for a LIN node, but it doesn’t have CAN. Might be awkward for audio.

Door should have a door closer so that if it is unlocked and "Buzzed" open but no one enters, it can be relocked automatically. There may be a security camera near the door but on a separate system.

MCU board resources:

Feature Resource Netduino Plus mbed - LPC1768
USB Master for USB fob auth USB Master
Ethernet NIC to network NIC
Outside Button w/RG LED 3DIO Int?
Inside Button with RG LED 3DIO, 2PWM?
Deadbolt Servo 1PWM
Servo jam current sensor 1 ADC
Electric door strike 1DO
Door closed mag Switch 1DI
Monitor power and battery 1DI, 1ADC
Battery charger 1PWM
Power conservation Sleep mode
Local auth code storage Data Flash
RFID reader?
Optional inside 4x4 keypad 8 DIO
Optional outside 3x4 keypad +3 DIO
Optional Beepers/Speakers 1PWM Ea.
Optional inside LCD/LEDs 8 +4-5DIO
LCD backlight control 1PWM
Optional Audio IO 1ADC, 1PWM
Totals: 9+11+12=32, 32-19+1=14DIO, 2-5PWM, 2-3ADC = 22 + serial

Sample Code mostly for the Mbed

Sample BOM and Costing

Vendor Part number Description Price Quantity Extended Shipping Subtotal
pololu.com mbed NXP LPC1768 dev board 1
pololu.com 1058 Power HD Standard Servo 3001HB 1
amazon.com DH970 Thomas & Betts DH970 Carlon Electric Door Strike 1
usbfirewire.com RR-1C543122 Delux USB Waterproof Connector 1
smarthome.com 77413 Recessed-Mount Magnetic Contact Sensor Switch 1
smarthome.com 7113 Surface Mount Magnetic Contact Switch 1
newark.com 14N8135 CAT5/CAT5E RJ45 MODULAR JACK 8POS 1 PORT 2
digikey.com 553-1480-ND CONN STARJACK 1PORT 10BASE-T 1
Red / Green LEDs Common Anode 2
Batteries Plus 6V Gell Cell 0
Junk Box 7-9V DC wall bug 1
sparkfun.com COM-08653 Keypad - 12 Button 0
iteadstudio.com BAS009 Sealed Membrane 4X4 button pad with sticker 0
Radio Shack 273-073 Piezo transducer 1
every1kengo.com USB Adapter - USB A Female to USB B Male 4 Pin Mini 1
Avnet Express A22L-TW Omron Lighted round pushbutton Op+Case 2
Avnet Express A22L-10M Omron Lighted round pushbutton SPST switch 2
Total Cost '


Here are links to various useful parts.

RFID readers:

Smart USB FOBs:


Vertical Deadbolts:

Door Strikes:


Waterproof USB:

Pushbutton Switches:

Hooded Keypads:

Door / Window Sensors:

Ethernet Brakeout boards:


GPIO Port Expanders:

-- Main.RickO - 2011-10-18

-- Main.ClifCox - 15 Nov 2011