21 January 2013

Password Based Autoomatic Door Lock Using PIC16F877A



Password based automatic door lock

Security is a prime concern in our day-today life. Everyone wants to be as much secure as possible. An electronic lock allows activation of an electric appliance only on entering the correct password. This is also such an electronic locking system in which PIC16F887A microcontroller plays the role of the central processing unit. The MCU is interfaced with a 4×4 matrix keypad and a 16×2 LCD to form the user interface.
The job of the MCU in this project is to receive signals from the input device (keypad) and take corresponding actions. Whenever any key is pressed on the keypad, the software program in the MCU identifies the pressed key and accordingly turns on or turns off the appliance. Simultaneously, it also displays a message on the LCD screen. The system turns on the appliance on entering a four digit password set by the user and displays message “password accepted” on LCD screen for 2 seconds followed by the message “lock open”. If the entered password is not correct then the message “lock denied” should be displayed on LCD screen for 2 seconds and followed by the message “lock closed”.
The user can also change the password by using corresponding key. Using this circuit any electrical appliance can be made as password protected. It can also be used as an electronic door lock by interfacing the output of the circuit with an electrically actuated door lock. 

Block diagram

Block diagram description
 The circuit is based on PIC micro controller. It can be divided into five sections: input (4×4 matrix keypad), processing unit (PIC16F877A MCU), appliance controller (relay driver), display (16×2 LCD), and power supply. The PIC16F877A is an 8-bit micro controller. It has 8k×14-bit flash program memory, 368 bytes of RAM and many other internal peripherals like analogue-to-digital converter, USART, timers, synchronous serial port, compare captures and pulse width modulation modules, EEPROM and analogue comparators. The job of the MCU in this project is to receive signals from the input device (keypad) and take corresponding actions. Whenever any key is pressed on the keypad, the software program in the MCU identifies the pressed key and accordingly turns on or turns off the appliance. Simultaneously, it also displays a message on the LCD screen.

Matrix keypad
                       A 4×4 matrix keypad is used to give commands and the password to the MCU. It consists of 16 keys arranged in the form of a square matrix of four rows and four columns. Each key in the matrix is labeled according to the operation assigned to it.

LCD

 A 16×2 LCD is used to display various messages. It also displays an asterisk mark (*) for each digit of the password entered. Control lines EN, RW and RS of the LCD module are connected to pins RA1, RA2 and RA3 of Port A of the MCU, respectively. Commands and the data to be displayed are sent to the LCD module in nibble mode from Port D of the MCU. The higher four data bits of the LCD (D4 through D7) are connected to the lower nibble of Port D (RD0 through RD3) of the microcontroller.

Relay driver

           RC2 pin of Port C of the microcontroller is interfaced with the relay driver circuit to switch on or switch off the AC load (appliance). A relay driver circuit is nothing but a simple electronic circuit that drives an electromechanical relay. In this project, a 6V, single-changeover relay is used for switching the appliance ‘on’ or ‘off.’ Whenever the user enters the correct password, RC2 pin goes high. The relay energies and the appliance turn ‘on.’ When RC2 is low, the appliance turns ‘off.’ Free-wheeling diode 1N4007 protects the relay driver circuit from the reverse voltage developed in the relay coil.

Power supply

The 230V AC mains supply is stepped down to 9V AC using step-down transformer X1. The output from the secondary of the transformer is rectified by a bridge rectifier and filtered by capacitor. The filtered output is regulated by ICs to obtain the required 5V and 6V, respectively.

                                                  Circuit Diagram

 

Relay Driver Circuit
Related projects


Automatic Room Light Controller with Bidirectional Visitor Counter

Automatic Night Lamp with Morning Alarm

Season Based Street Light Switching Based On Sensors

Bidirectional Visitor

Online Purchasing

Ece Mini Project

Mobile Based Dc Motor Control

Automatic Home Security System



 

9 comments:

  1. Programming? should be simplest

    ReplyDelete
  2. Any hex file for the Circuit diagram???

    ReplyDelete
  3. Do you have the hex file for the PIC16f877a for the Automatic Doorlock?

    ReplyDelete
  4. This is the hex file for this project
    :10000000758160C2B5D2B0D2B1C2B7C29074A0122D
    :100010000260740012029A1202D3B9FF3874A0125F
    :100020000260740012029A741112029A1202C01233
    :10003000034012034074A0120260740112029A7409
    :100040001112029A1202C0C2B0D2B51203491203B1
    :1000500049D2B0C2B57528FF7B0175250075200017
    :10006000D297D296D295C291C292C293C294E59091
    :1000700054E0B4E0F1515AE59054E0B4E00280F568
    :10008000515AE59054E0B4E00280EAE59044FEF570
    :1000900090C291E59054E0B4E030E59044FEF590D4
    :1000A000C292E59054E0B4E039E59044FEF590C288
    :1000B00093E59054E0B4E042E59044FEF590C2949C
    :1000C000E59054E0B4E04B02007533400575200123
    :1000D0002138334005752002213833405B752003F9
    :1000E000213833400575200421383340057520053B
    :1000F00021383340437520062138334005752007E9
    :100100002138334005752008213833402B752009EC
    :10011000213833401575200A7525007528FFC2B7B0
    :10012000C290D2B0D2B17B01015D33400575200B86
    :10013000213833400375200FC2B1120340D2B1BB46
    :1001400001060B852021015DBB02060B85202201E3
    :100150005DBB03060B852023015DBB04057B018588
    :100160002024E521C44522F522E523C44524F524B5
    :1001700074A0120260740012029A1202D3892674CB
    :10018000A0120260740112029A1202D38927E5229A
    :10019000B5265EE524B52759E528B4FF4AC2B575F2
    :1001A0002500C2B0D2B7120352C2B7D2B0D2B22029
    :1001B000B2FD30B2FDC2B0D290120352C2B0C290B2
    :1001C000D2B220B2FD30B2FDC2B0D2B7120352D2C9
    :1001D000B0C2B7C294D2972097FDC2B0D29012039A
    :1001E00052D2B0C290015D7528AAC2B57525000132
    :1001F0005DE522B4120FE524B4340A752800C2B5B7
    :10020000752500015DE528B4AA3D7528FF74A0128C
    :100210000260740012029AE52212029A1202C012BF
    :10022000034012034074A0120260740112029AE5A6
    :100230002412029A1202C0C2B0D2B51203491203AC
    :1002400049D2B0C2B5015D0525E525B4030AD2B592
    :10025000C2B07528FF752500015D793200D9FD22F5
    :100260007A08D2B4D2B3000000000000C2B400008B
    :1002700000000000C2B3335005D2B4020280C2B401
    :10028000D2B3000000000000C2B3DAEAD2B400D258
    :10029000B3000000000000C2B3227A08335005D238
    :1002A000B40202A6C2B4D2B3000000000000C2B380
    :1002B000DAEAD2B400D2B3000000000000C2B322D8
    :1002C000C2B4000000000000D2B300000000000033
    :1002D000D2B42274A151601202DEF951C0227A0810
    :1002E000D2B4C2B300000000000000D2B3C330B4E7
    :1002F00001B333DAEDC2B32274A07A08C2B40000AD
    :1003000000000000C2B3335005D2B4020310C2B4DF
    :10031000D2B3000000000000C2B3DAEAD2B400D2C7
    :10032000B300000000000030B40280CCC2B3C2B4FD
    :10033000000000000000D2B30000000000D2B42290
    :10034000780F79FFD9FED8FA2278FF79FFD9FED845
    :10035000FA227D12B2B078FF79FFD9FED8FADDF427
    :01036000227A
    :00000001FF

    ReplyDelete
    Replies
    1. hey friend can u send me the programming of ""Password Based Autoomatic Door Lock Using PIC16F877A by using IR sensor"" please..

      my email id- coolamit.kumar14@gmail.com

      Delete
    2. hi sir,
      can u send me the programming of Password Based Autoomatic Door Lock Using PIC16F877A using IR sensor
      on my
      email id - coolamit.kumar14@gmail.com

      please sir.......

      Delete
  5. Strong password is very important for password based door locks.

    www.locksmithinlancastertx.com

    ReplyDelete
  6. send me the program of this project

    ReplyDelete
  7. hey amit kumar you need to join in our site as member to receive program

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...