Difference between revisions of "Electronic Door Lock"
(Imported from TWiki) |
m (Move page script moved page ElectronicDoorLock to Electronic Door Lock: Rename from TWiki to MediaWiki style) |
Latest revision as of 23:07, 22 October 2018
Summary
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:
http://www.youtube.com/watch?v=JKTXRlaXLDQ
https://256.makerslocal.org/wiki/index.php/USB_Auth
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!
http://filear.com/index.php/electronics/38-circuits/74-diy-rfid-keyless-entry-system
Text message powered, with different type of deadbolt.
http://hacknmod.com/hack/diy-text-message-powered-keyless-entry/
RFID with door strike.
http://www.househacker.com/permanent/DIY-RFID-Access-to-your-Front-Door
http://hackedgadgets.com/2006/09/18/rfid-front-door-lock/
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.
Notes:
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 | MAX6957ANI+ | LED DRIVER / GPIO, CONSTANT CURRENT, DIP-28 | 2 | ||||
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 | ||||
0 | |||||||
0 | |||||||
0 | |||||||
0 | |||||||
SubTotals | |||||||
Total Cost | ' |
Parts:
Here are links to various useful parts.
RFID readers:
- http://makeprojects.com/Project/Using-the-Parallax-RFID-Reader-with-an-Arduino/617/1
- http://www.sparkfun.com/products/8419
Smart USB FOBs:
- YubiKey: http://www.yubico.com/
- Rainbow iKey: http://english.cyprotect.com/main0153.php
- Aladdin eToken:
Servos:
Vertical Deadbolts:
- http://24hourlocksmithsny.com/residential-locks/medeco-steelguard.html
- Tine house uses Medeco brand deadbolt
Door Strikes:
- http://www.amazon.com/Thomas-Betts-DH970-Carlon-Electric/dp/B000NGVRF8
- [[1]]
- http://www.amazon.com/Trine-T001-Electric-Door-Strike/dp/B00283U3Q8
Maglocks:
- [[2]]
Waterproof USB:
Pushbutton Switches:
- http://octopart.com/partsearch#search/requestData&filters[category_id][]=4811&filters[mounting_type][]=Panel&sortby[]=avg_price&sortby[]=asc&q=led&start=0
- http://datasheet.octopart.com/A0172-Apem-datasheet-2708.pdf
- http://www.apem.com/index.html
- http://www.ia.omron.com/product/40.html
- A16 series PBs are 0.59" dia, and A22 series PBs are 0.94" dia
Hooded Keypads:
Door / Window Sensors:
- [[5]]
- http://www.smarthome.com/77413/Enforcer-Recessed-Mount-Magnetic-Contact-Sensor-Switch-White/p.aspx
- http://www.starkelectronic.com/admsw1.htm
Ethernet Brakeout boards:
MCUs:
- http://www.sparkfun.com/products/10186
- http://www.pololu.com/catalog/product/2150
- http://www.luminarymicro.com/products/lm3s1968_evaluation_kit.html
GPIO Port Expanders:
- MAX6957 with LED control: http://www.maxim-ic.com/datasheet/index.mvp/id/3365
- MAX7301: http://www.maxim-ic.com/datasheet/index.mvp/id/3371
- NXP GPIO Expanders: PCF8575, PCA9673, etc...
-- Main.RickO - 2011-10-18
-- Main.ClifCox - 15 Nov 2011