PIC Controller Based Electronic Lock

Published on . Written by

PIC Controller Based Electronic Lock
Security alarm system employing various sensors are becoming increasingly popular in residential communities. Implementing a security alarm system that has a number of the sensor for fire detection, smoke detection, gas leakage detection, appliance operation.etc.

Read more..
Security based project concept as an electronic lock for the doors, safe box. The electronic lock is fully connected with the electronic devices it is operated with a controller. The Microcontroller will be the central monitor of the electronic lock.


Skyfi Labs Projects
The Matrix keypad is used in this concept connected to a microcontroller, LCD display is attached to the controller, the display shows the access granted or not. The relay is act as the tripping the electronic lock system. Here the Microcontroller is taken as PIC Microcontroller(PIC16F877A).

Project Description:

  1. PIC16F877A: The PIC16F877A features 256 bytes of EEPROM data memory , self programming,an lcd display port,2 comparator,8 channels of 10-bit Analog-to-Digital(A/D) converter,2 capture/compare/PWM functions,the synchronous serial port can be configured as either 3-wire Serial peripheral Interface or the 2-wire inter-integrated circuit(I2C) bus and a Universal Asynchronous Receiver Transmitter(USART).These features make it advanced level A/D applications.
  2. Matrix Keypad: A keypad is a set of buttons arranged in a block or pad which bear digits,symbols or alphabetical letter.Pads mostly containing numbers are called a numeric keypad.The keyboard is connected in Matrix format.
  3. Relay: A relay is an electrically operated switch.It can handles the high power required to directly control an elecric motor or other loadas is called relay or contactor.
  4. LCD : A liquid-crystal display is a flat-panel or the other electronically modulated optical device that the light-modulating properties of liquid crystal.LCDs are available to display present words, digits, and seven-segents display.

Project Implementation:

  1. Connect the LCD Display to the port of the controller
  2. Connect the Matrix keypad to the port B of the controller
  3. Connect the relay to the input/output of the controller
  4. You need to as follows in main program the password is saved ,when the matrix keypad gets the same password means only the relay should off (i.e.door open )otherwise it should be closed
Project Brief: The control unit checks the matrix keypad inputs if the key is matched with the program the relay trip in its state and the door open ,if the key is pressed wrong so the relay remains in its state.

Software requirements:

  1. MPLAB X IDE: The MPLAB X IDE is the new graphical,integrated debugging tool set for all of Microchps's more than 8 bit,16 bit and 32 bit MCUs and digital signal controller,and memory devices.
  2. Programming language: Embedded C Language
  3. Proteus Design Software: The Proteus Design Suite is a software tool suite used for eletronic design automation even only sotware itself the output can be checked by the software and also electronic prints for manufactureing printed circuit boards.
Kit required to develop PIC Controller Based Electronic Lock:
Technologies you will learn by working on PIC Controller Based Electronic Lock:


Any Questions?


Subscribe for more project ideas