Touch pad door lock

Overview

The door lock uses the MPR121 Capacitive Touch Pad by SparkFun as a means for entering key codes, and a solenoid door lock by Adafruit to simulate the door. First the user is prompted to enter their own personal pin code. Then a random number is generated as an authentication code, which can be sent to the user via SMS or another method. At this point, a new randomized authentication code is generated every 30 seconds, replacing the old code. For the purpose of this demo it is just printed on the PC serial port. Once the pin code and authentication code are entered, the door is unlocked. If a wrong pin code or authentication code are entered, the user is prompted to enter another code. In this code, there is no limit to how many incorrect codes can be entered, but that can be easily added.

Program

Import programECE4180_Touchpad_V2

touch pad door lock with two phase authentication

Pinout

Touch Pad

Touch Padmbed
VccVout
IRQp30
SCLp10
SDAp9
GNDGND

Solenoid Door Lock

SolenoidmbedDriver circuit (transistor)12V power supply
GNDGNDGNDGND
+V-+V-
--+V+12V
-p29base-

NOTE: two 4.7k resistors should be used between touch pad SCL and SDA, and another 1k resistor from p29 to driver circuit logical input

Images and Videos

Door lock driver circuit diagram (.pdf)

/media/uploads/jsmith352/solenoid_driver_wiring_diagram.pdf

Driver circuit photo

/media/uploads/jsmith352/img_0076.jpg

Door Lock

/media/uploads/jsmith352/img_0077.jpg

Touch Pad

/media/uploads/jsmith352/img_0078.jpg

Video Demonstration


Please log in to post comments.