Skip to main content

How to make Access Control System using 8051 Microcontroller by RFID Security

 RFID Security Access Control System using 8051 Microcontroller is an RFID Technology based security system. Using this system, authorization of personnel is carried out with an RFID card and only those with access can enter a secured area.



Components


REQUIRED COMPONENTS


AT89C51 Microcontroller

AT89C51 Programming Board

11.0592 MHz Quartz Crystal

2 x 33pF Ceramic Capacitors

2 x 10KΩ Resistor

10µF Electrolytic Capacitor

Push Button

16 x 2 LCD Display

3 x 1KΩ Resistor

10KΩ POT

EM-18 RFID Reader Module

L293D Motor Driver IC

Motor

Connecting Wires


RFID Description

Radio Frequency Identification or simply RFID is a wireless technology generally used for automatic identification and data collection.


RFID technology is used for accessing data from a uniquely identify RFID card or tag by combining the radio frequency and microchip technologies i.e. the data is retrieved or stored into the RFID cards without making any physical contact.


With the help of RFID technology we can create smart systems that can be used personnel identification, product monitoring, individual or organisation security, transportation, maintenance of inventory and supply chain tracking.


RFID systems usually comprises of three components: an RFID Card, an RFID Reader Module and a host device.


RFID Card or Tag consists of the data in the embedded microchip. RFID Reader is used to read the data from the RFID Card and transfer it to the host device. 


RFID Reader and RFID Cards


The communication between the Reader and Card is using Radio Technology whereas the communication between RFID Reader and the host device like a microcontroller is through serial protocol.


RFID tags are generally classified into two types: Active RFID Tags and Passive RFID Tags.


Active RFID Tags are battery powered and they have an electronically erasable and programmable memory. So, the necessary data can be written in to the memory by the user and read using a RFID Reader.


As they are battery powered devices, Active RFID Tags can communicate with the RFID Reader over distances larger than 100 feet.


Passive RFID Tags on the other hand, do not contain any battery. Passive RFID Tags consists of a coil and a microchip. The coil acts as an antenna as well as the source of power through induction.


The microchip is a read only type memory and the user can only read the data that already stored by the manufacturer. Passive RFID Tags are used for short distance communication, usually 10 feet or less.


The most commonly used RFID reader is EM-18 reader module. This module has a built in antenna which is used to power the RFID Cards and also extract the information from the Card’s microchip. 



Circuit Design

The main components of our project are Microcontroller, RFID Reader, RFID Cards or Tags, an LCD display, L293D Motor Driver IC and a Motor.


For the microcontroller to function properly, we need to connect an 11.0592 MHz oscillator along with two ceramic capacitors of capacitance 33pF to the microcontroller.


Pin 31 of the microcontroller i.e. EA Pin is connected to 5V using a current limiting resistor of resistance 10KΩ.

In order to reset the microcontroller, the RST pin (Pin 9) must be momentarily connected to 5V. Hence, a combination of push button, 10KΩ resistor and 10µF capacitor is used in the reset circuit.


An LCD Display is used in this project to display the details of the card. The data pins of the LCD are connected to PORT1.


The control pins are connected to P3.6, GND and P3.7 and a 10KΩ potentiometer is connected to adjust the contrast.


The next component we need to connect to the microcontroller is the RFID reader module. The communication between the Reader and the microcontroller is using UART protocol.


Hence, we need to use the TX and RX pins for communication. Connect the RXD pin (Pin 3.0) of the microcontroller to the TX pin of the RFID Reader module.


Similarly, connect the TXD pin (P3.1) of the microcontroller to the RX pin of the RFID Reader module.

Finally, we need to connect the motor driver IC to the PORT0 of the microcontroller. 


An important note is that Port 0 pins must be externally pulled high in order to use them as input / output pins.


Connect the two input pins of the motor driver i.e. IN1 and IN2 (Pins 2 and 7) to Port 0 pins i.e. P0.0 and P0.1 of the microcontroller. A motor is connected to output pins of the motor driver. 

How RFID Security Access Control System Works?

The aim of this project is to design an RFID based security access control system using 8051 microcontroller, in which only authorised personnel are allowed access to a secure area. The working of the project is explained here.


When the circuit is powered ON, the microcontroller will initially display a message as “Swipe the Card” on the LCD display.


When the RFID Card or Tag is swiped against the RFID reader, it will detect the ID card and sends the unique card no. to the microcontroller via serial terminal.


With the help of suitable programming, we need to compare the received card no. with the numbers that are already stored in the microcontroller or any database like external memory unit.


If the received number is matched with the already stored number, then the microcontroller will display the name of the card holder on the LCD and activates the motor driver IC. As a result, the door is opened for a predefined duration after which the door is automatically closed.


If there is no match for the received numbers with the stored numbers, then the microcontroller will not open the door and displays a message as “Access Denied” on the LCD display. 

Advantages and Applications

RFID based Security Access System is designed in this project. As the system uses RFID Technology based identification, it can be used to access secured areas like research centres, defence sites etc.

It is a low power system and also the RFID Cards or Tags used are of passive type.

Limitations

Even though RFID Technology is secure, the security can be increased by integrating other security measures like facial detection, finger print scanner etc.

As the card details are stored in the microcontroller, only a limited number of card details can be stored. This can be increased by implementing a memory unit like EEPROM.


Comments

Popular posts from this blog

Who Else Wants To Know The Mystery Behind C++ Output ?

 C++ Output (Print Text) The cout object, together with the << operator, is used to output values/print text: for example ; #include <iostream> using namespace std; int main() {   cout << "Hello World!";   return 0; } Note: You can add as many cout objects as you want. However, note that it does not insert a new line at the end of the output: #include <iostream> using namespace std; int main() {   cout << "Hello World!";   cout << "I am learning C++";   return 0; }

The Secret of Successful TOP MOBILE BRANDS #bbk electronics

Everything you should know about BBK Electronics, its founder, brands & products, and net worth. The name BBK Electronics might not sound common to many out there, but, if you’ve used an Oppo, Vivo, OnePlus, Realme, or iQOO smartphone before, then you’ve used a BBK Electronics product. What is BBK Electronics? BBK Electronics. It markets smartphones under the Realme, OPPO, Vivo and OnePlus brands, and Blu-ray players, headphones and headphone amplifiers under the OPPO Digital division. BBK Electronics: Meet the world’s 2nd largest smartphone manufacturer you’ve probably never heard. Apple and Samsung are undeniably the most popular smartphone brands today. Shipping almost 300 million units last 2019, Samsung easily beats the pack to become the world’s largest phone manufacturer. All of this is expected because everybody’s heard about Samsung, and everybody either owns a Samsung phone or knows somebody who does. But what do you know about BBK Electronics, the world’s second-largest ...

How to make FM Radio Circuit with simple circuit

 FM Radio circuit is the simple circuit that can be tuned to the required frequency locally. This article describes the circuit of FM radio circuit. This is a pocket sized radio circuit. FM Radio Circuit Principle: Radio is the reception of electromagnetic wave through air. The main principle of this circuit is to tune the circuit to the nearest frequency using the tank circuit. Data to be transmitted is frequency modulated at the transmission and is demodulated at the receiver side. Modulation is nothing but changing the property of the message signal with the respect to the carrier frequency. Frequency range of FM signal is 87.5MHz to 108.0MHz. The output can be heard using  speaker. Circuit Components: LM 386 IC. BF 494 transistor  T1, T2. Variable resistor. Variable capacitor. Inductor coil. FM Radio Circuit Design: The LM386 IC is used extensively in the FM Radio circuit. This is a low-voltage power amplifier for audio. It has a total of eight pins. It requires a sup...