door security lock with keypad

Post on 10-Jul-2016

33 Views

Category:

Documents

5 Downloads

Preview:

Click to see full reader

DESCRIPTION

This article describes how to control door with keypad.This is done using 8051 microcontroller.

TRANSCRIPT

Door Security Lock with Keypad

Security is important everywhere. To secure things using the digits, keypads are used to take the input from the user.

For this purpose, components that you need are:

Microcontroller: At89c51

Keypad: cellular phone keypad (4x3)

Relay:

Suppose we are using a motor that open the door when it rotates in clockwise and close the door when it rotates anticlockwise.

First check the circuit diagram:

In previous article we had interface keypad with the microcontroller. By same technique we will make a program which will store the inputs that pressed from the user and store it. Then pressed digits will be compared with the set password combination of digits.

To do all this we make a function in program that will detect the key pressed from the user.

These pattern of keys will be stored in a character array.

Then this array will be compared to set password array.

If password will be matched. Motor will start rotating in clockwise.

I had connected motor directly to the microcontroller. In software it works fine. But for hardware you have to connect the motor using relay (previously discussed) or driver IC because current from the microcontroller is too much low that could not rotate the motor.

Once password is accepted motor will start rotating in clockwise (as door open) then after few second motor will rotate few seconds in anticlockwise to close the door again.

Check the commented C Language program for the security lock.

Check here the animation of the working of code

top related