RFID Based Security System Using Microcontroller AT89C52

RFID Based Security System Using Microcontroller AT89C52

Different concepts of security systems have flourished along with different techniques and different types of equipment. RFID; Radio-Frequency identification (RFID) is another achievement we are relying on for optimum security facility in multiple projects. It makes use of electromagnetic fields to detect unique tags assigned to objects in the vicinity. There is a reason why it has mustered more popularity in comparison to other security systems that use bar codes and conventional methods.

It is because RFID traces tags hidden inside objects, unlike bar codes. This is why people opt out of RFID-based security systems. Considering this fact, we developed a security system using RFID techniques that permits the entry of an authorized individual in the area where this system is installed. The system uses unique tags assigned to each individual to distinguish between authorized and unauthorized access.

Other project-based on RFID posted in bestengineeringprojects.com

  1. Arduino and RFID based Door Access System
  2. Arduino and RFID Based Attendance System

Circuit description RFID Based Security System Using Microcontroller AT89C52

The core component of the project RFID-based security system is the microcontroller AT89C52. The RFID module works as a sensor and displays the information concluded on the LCD fixed wherever appropriate. To control the opening of the door, a relay is included in the circuit. A complete layout of the overall security circuit with a microcontroller as the central component is depicted in figure 1.  There are multiple reasons why we recommend the AT89C52 microcontroller; low-power consumption along with a high level of performance.

This CMOS 8-bit microcomputer comprises 8 kB Flash programmable and erasable read-only memory (PEROM) which is enough for the project we are working on. Other features like 256 bytes of RAM, 32 input/output (I/O) lines, three 16-bit timers/ counters, a six-vector two-level interrupt architecture, a full-duplex serial port, an on-chip oscillator, and clock circuitry extends its flexibility. We cannot ignore the vital role of the system clock in operating the microcontroller.

rfid-based-security-system-using-microcontroller-at89c52

LCD Connection | RFID Based Security System Using Microcontroller AT89C52

Through pins 18 and 19 of the microcontroller, we feed in the basic clock signal to the circuit with the help of an 11.0592MHz quartz crystal. The combination of capacitor C4 and resistor R1 provides a Power-on reset. To perform the manual reset task, we have included a switch S1. LCD is interfaced to the microcontroller by connecting all pins from port 2(P2.0-P2.7) to data pins (D0-D7) of LCD. Similarly, pins 3.7 and 3.6 from port 3 of the microcontroller are connected to RS and E pins of LCD. RW pin of LCD is grounded to perform a write operation on LCD.

Commands are sent in hex form and other data from the microcontroller are sent in ASCII format to the LCD. For data signals, the RS pin has a high value and for command RS is null. Preset VR1 is used to adjust the contrast setting of the LCD. Resistor R6 is incorporated as a current limiter component by controlling the backlight of the LCD. The two pins P3.0 and 3.1 of the microcontroller Port pins P3.0 (RXD) and P3.1 (TXD) of the microcontroller are used to interface with the RFID reader.

RFID Connection | RFID Based Security System Using Microcontroller AT89C52

The RFID field is set up by the RFID reader such that whenever a certified person enters that field along with the unique tag assigned to him/her, the RFID reader produces a signal. We call that signal an RF signal and energy travels to the tag and extracts details from the tag. As per the communication medium, TXD and RXD pins of microcontrollers are used to interact with the RFID readers.

Working of RFID Based Security System Using Microcontroller AT89C52

Let’s talk in detail about how the circuit RFID Based Security System Using Microcontroller AT89C52 works. When this system clarifies the authorized access, port pin P3.2 of the microcontroller reaches a high state. As a result of which, the transistor T2 falls into saturation. Then consequently, relay RL1 gets energized and the door gets unlocked indicating authorized access. To notify people about this situation, LCDs a meaningful message like “access granted” and at the same time, a piezo-buzzer connected at the end of pin P1.7 is triggered via transistor T1.

In cases where the attempts are unauthorized, LCDs the message; “access denied” and the door remains closed. Additional LEDs like LED2 and LED3 are included in the circuit to assure the existence of a tag in the RFID reader’s electromagnetic field.

The total power required for this circuit is 15V, 500 mA. And for this, a step-down transformer is employed in the circuit that transforms a 230V, 50 Hz AC mains to the power required for the circuit. The output generated by the transformer is then fed to the full-wave rectifier that comprises four diodes; D1-D4. It is then filtered by a capacitor C1 and is then regulated by two ICs; 7812 (IC2) and 7805 (IC3). To eliminate the ripples effect in the regulated power supply, another capacitor C2 is included. Few other components like LED1 and resistor R2 are used as power indicators and current limiting devices respectively.

To make the implementation of this circuit easier, we have also included a single-side PCB design layout for this circuit. If you want to save time, you can assemble the circuit directly on the PCB board and avoid possible errors during assembling. Be careful while arranging components on the board and don’t forget to check the circuit twice to consider accidental errors.

Software for RFID Based Security System Using Microcontroller AT89C52

The software designed for this project is included here Click here to download the complete package of code. Since it is programmed in ‘C’ language, it can be simply understood. Initially, the code is compiled using the Keil μVision4 compiler and a hex file is generated. That hex file is burnt into the microcontroller through a suitable programmer.

PARTS LIST OF RFID BASED SECURITY SYSTEM USING MICROCONTROLLER AT89C52

Resistors (all ¼-watt, ± 5% Carbon)
R1 = 10 KΩ

R2, R5 = 330 Ω

R3, R4 = 1 KΩ

R6 = 33 Ω

VR1 = 10 KΩ

Capacitors
C1 = 0.1 µF (Ceramic Disc)

C2, C3 = 22 Pf (Ceramic Disc)

Semiconductors
IC1 = 7805 (Series 5 Volt regulator)

IC2 = AT89C52 (Microcontroller)

IC3 = RFID READER

T1 = BC558 (Silicon PNP Transistor)

T2 = BC547 (Silicon NPN Transistor)

D1 = 1N4007 (Rectifier Diode)

LED1, LED3 = 5mm RED COLOR LED

LED2 = 5mm GREEN COLOR LED

Miscellaneous
PZ1 = PIEZO BUZZER

LCD = 16X2 LCD MODULE

RL1 = 12V, 1C/O RELAY

SW1 = PUSH TO ON SWITCH

XTAL1 = 11.0592 MHz CRYSTAL

DOOR LOCK ACTUATOR

 

Leave a Comment