Summary of RFID based electronic lock using pic microcontroller
This article describes an RFID and keypad-based security system implemented using an 8051 microcontroller. The project reads a 12-digit serial number from an RFID tag, compares it with stored data, and requests a password via a 4x4 matrix keypad for verification. Upon successful authentication, a motor driver opens a gate; otherwise, an LCD displays "access denied" and a buzzer sounds. The system integrates an RFID reader, LCD display, and L293D motor driver controlled by the 8051 chip.
Parts used in the RFID and Keypad Security System:
- 8051 Microcontroller
- RFID Reader
- RFID Tag (12-digit serial)
- 4x4 Matrix Keypad
- 16x2 Liquid Crystal Display (LCD)
- L293D Motor Driver
- Buzzer
- BC547 NPN Transistor
In these days we’re here with our subsequent assignment that is RFID and keypad primarily based security machine. This assignment is implemented by means of the use of 8051. often we are able to see RFID tags or card in metro teach when we’re going to someplace then we need to apply a RFID tag has some records and RFID readers, that may read and write statistics to RFID tags. RFID carries a RFID tag which has 12 digit serial wide variety that’s read by using FRID Reader.
Step 1: Sections of Project

RFID Reader Section: This phase contains a RFID, which is an electronics tool which has part one is RFID Reader and other is RFID tag or Card. while we placed RFID tag to close to the RFID reader it reads tag information serially. RFID tag which we have used has 12 digit man or woman code or serial range. This RFID is running at baud fee of 9600 bps.
Keypad: 4×4 matrix keypad is used for entering the password for the system.
Control section: 8051 microcontroller is used for controlling entire the procedure of this project. here by way of using 8051 we are receiving RFID data and sending results or messages to liquid crystal display.
Display section: and 16×2 LCD is used in this project for displaying results and messages on it.
Driver section: this Section has a motor driver L293D for open and closed the gate and a buzzer with a BC547 NPN transistor for alert.
Step 2: Working
Operating of this project is easy. When someone put their RFID tag over RFID reader then RFID reads tag’s data and ship to 8051 microcontroller after it, microcontroller compares this received data with predefined data or records. If data is matched with predefined data or records then microcontroller ask for password and after coming password into microcontroller it starts to examine password with predefined password. If password in correct then gate will opened and in any other case liquid crystal display displayed access denied and buzzer begin beeping for a while.
Step 3: Circuit
liquid crystal display is hooked up in 4 bit mode with microcontroller. lcd’s RS, RW and EN pins are connected at PORT 1 pin number P1.0, P1.1 and P1.2. D4, D5, D6 and D7 pins of lcd are linked at pin P1.4, P1.5, P1.6 and P1.7 of port 1. Motor is hooked up at PORT pin number P2.4 and P2.5. And buzzer is hooked up at P2.6 at PORT2. And keypad is hooked up at PORT0. Keypad row are connected at P0.4 – P0.7 and Columns are linked at P0.0 – P0.3.
Source: RFID based electronic lock using pic microcontroller
- How does the RFID reader function in this project?
The RFID reader reads the 12-digit serial number from the tag when placed nearby and transmits this data at a baud rate of 9600 bps. - What is the role of the 8051 microcontroller?
The 8051 microcontroller controls the entire process by receiving RFID data, comparing it with predefined records, and managing the LCD and output devices. - How is the password entered into the system?
A 4x4 matrix keypad is used to enter the password, which the microcontroller then compares against a predefined password. - What happens if the password is incorrect?
If the password is incorrect, the liquid crystal display shows access denied and the buzzer begins beeping for a while. - Which pins are used to connect the LCD?
The LCD RS, RW, and EN pins connect to P1.0, P1.1, and P1.2, while data pins D4 through D7 connect to P1.4 through P1.7. - How is the gate opening mechanism controlled?
The gate is opened or closed using a motor driver L293D connected to PORT pin numbers P2.4 and P2.5. - Where is the buzzer connected in the circuit?
The buzzer is connected to P2.6 on PORT2 and uses a BC547 NPN transistor for alerting. - At what speed does the RFID communication operate?
The RFID operates at a baud rate of 9600 bps during data transmission.

