Rental door lock control
dbj
Posts: 75
···· I am looking into building a door lock controler for rental properties, I was thinking about using a six digit code that can be generated from formula.
Use three of the digit's for day of the year and two for time in and time out
and one for length of stay in days.
··· ·I think that a DS1302 would be a good timekeeping chip but I·dont know which basic stamp would be more pratical, I would think since this is a battery controlled device, that sleep mode would be needed but I·also·feel that sometype of scratch pad ram would be·needed to store the time out, so the lock can be activated at the end of their stay. I·have· some·experience with BsP24 and Bs2 Boe. I don't know anything about the new Propeller Chip and the method of writing program for it. Does anyone know of any similar projects using the DS1302 chip?
············································ Thanks David
Use three of the digit's for day of the year and two for time in and time out
and one for length of stay in days.
··· ·I think that a DS1302 would be a good timekeeping chip but I·dont know which basic stamp would be more pratical, I would think since this is a battery controlled device, that sleep mode would be needed but I·also·feel that sometype of scratch pad ram would be·needed to store the time out, so the lock can be activated at the end of their stay. I·have· some·experience with BsP24 and Bs2 Boe. I don't know anything about the new Propeller Chip and the method of writing program for it. Does anyone know of any similar projects using the DS1302 chip?
············································ Thanks David
bmp
671K
Comments
The best way I see to tackle the idea is with an RFID card/reader. If the locks are networked with a central unit it is simple enough to tell the lock which card to accept. If they aren't networked, you can use RFID cards with some memory on them that gets programmed with the length of stay information (typically an end of stay time). Then you can use the time keeper chip to compare the time. If the second method is used, you will need to program the locks with a master RFID # that can be opened at any time (a master RFID·key). And charge a deposit to cover the loss of the renter's card if they don't return it. In the case of non return, you can reset the lock to another RFID card. This can be done externally via a means of holding the master key to the reader for 10 seconds, then the next RFID tag to come in contact becomes the new user key.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
$86.00 per lock!! with 50 rooms thats upfront cost of $28600.00 and a yearly fee of $4300
Ouch.. You can buy a electronic door lock with 4x3 keypad for $87.00. Saftey is a important so what would be a good level of encription for a project like this? And would the
propeller chip be able to count the number of days of the year from the DS1302 chip?
Thanks David
First, I think for fire code/electrical code safety, you need to design your circuit so that in a power outage, the lock would automatically open. This prevents people from being trapped in the event of an emergency. A battery would have no effective emergency override.
Second, if the battery was easily overridden, your lock would be ineffective, since anybody could bypass it if they wanted.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
To add to Paul’s comments... "...You don’t need to implement any strong encryption...", you could include a three strikes and your out scheme where if a wrong code were entered
after the third attempt it would lock the unit so no further codes could be entered. This could be indefinite until reset by a master key or it could be under a timed interval to self-reset.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
I hope you dont mind this input its way off what your thinking I just took an interest in your project, especially when I saw the cost comparisons.
Jeff T.
Post Edited (dbj) : 10/24/2006 1:09:28 AM GMT
The SX does have a "sleep" mode. But I would think it would be better to completely power down the SX, and make a keypress power it up.
Then the SX can latch it's own power on.
Sleep mode is more for a device that need to "do something" every couple of seconds or so. Like a digital thermostat for your house.
Every 10 seconds or so, it wakes-up checks the time, temperature, and temperature setting, turn on/off heat as needed, go back to sleep.
I would think that 99.9% of the time this thing will be idle. And even in sleep mode those milliAmps add up.
Very interesting project.
I can't beleive there is nothing already on the market. Or are you just trying to DIY it ?
Since this is on the outside of a door, have you looked into putting a small solar panel on it with niMh batteries ? You might be able to make it last many years (until the batteries fail to charge).
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
"People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
Post Edited (Bean (Hitt Consulting)) : 10/24/2006 1:11:40 AM GMT
I just finished a simliar project that was used on lockboxes.· When sleeping the unit draws about 0.01uA (10 nA) according to my 5 1/2 digit bench multimeter.
Bean's idea of using a keypress to re-power the SX after a period if inactivity sounds intriguing.· As usual, I have finished a project and now think there may be a better way......
Nate
·
Post Edited (dbj) : 10/27/2006 3:35:31 AM GMT