How to make an Access control system using RFID technology?

by Dec 3, 2020Communication Protocols

What is an RFID Technology?

RFID stands for Radio Frequency Identification. Basically, RFID based components work on Radio-frequency or Radio-waves. It is used to track or identify a particular object, for instance, books in the library, inventory in the warehouse, tracking animals or birds or students or workers, etc.

Source: RFID Technology

Components

Generally, it is consists of two major components.

  1. RFID Reader
  2. RFID Tags/Cards

1. RFID Reader

There are many types of readers available in the market for RFID technology from which users can purchase as per the requirements and budget.

RFID Readers

Block-diagram of RFID Reader

RFID Reader comprises three main elements, RF Signal Generator, Receiver or Feedback Signal Detector and lastly the Microcontroller.

  • RF Signal Generator It continuously transmits Radio Frequency signals and creates a magnetic field around the Reader.
  • Receiver or Feedback Signal Detector It receives a feedback signal from the object if the object is present in the magnetic field of the RFID Reader.
  • Microcontroller It processes the data which is received as a feedback signal to track or identify the particular object.

Reader Block-diagram

2. RFID Tags/Cards

There are three kinds of RFID Tags, which are Active Tag, Passive Tag and Semi-passive Tag.

RFID Tags and Cards

  • Active Tag It has its own power supply as an energy source, which renders supply for sending feedback signal to Reader.
  • Passive Tag Due to it does not consist of its own power supply, it relies on radio waves transmitting from Reader for the source of energy. Consequently, the range of these cards is small comparatively.
  • Semi-passive Tag It has its own power supply as an energy source. However, to send the feedback signal it requires Radio frequency signals from RFID Reader.

Block Diagram of RFID Tag/Card

RFID tag BD
  • Transponder Firstly Tag/Card receives Radio waves from RFID Reader and sends a feedback signal to the RFID Reader consecutively.
  • Rectifier Circuit After that, the passive and semi-passive tags are rely on Reader RF Signal for power supply. Subsequently, energy is stored in the capacitors of rectifier circuit so that it can provide energy as an energy source.
  • Controller At the end Controller processes the data similarly which is received from the transponder and uses a power supply from the rectifier circuit.
  • Memory The unique ID or Tag serial number, location, manufacturer, photo, use history, a maintenance schedule, and much more are stored in the memory in the binary form (1 or 0). In addition, the server accesses the stored data from the memory to identify or track the object.

How does it work?

The working principle is based on Inductive coupling. The reader antenna and the tag/card antenna consist of a coil. When the reader is powered up it will start transmitting an RF signal using an RF signal generator and will generate a magnetic field using a coil. Meanwhile, if the Tag/Card is in the range of the reader then there will be a mutual induction between two coils. As a result, there will be an induced emf generated in the tag/card coil. Some portion of the emf will be used as a power supply for the controller and the memory element. This would take place after induced emf getting rectified through the rectifier circuit. The remaining portion of the emf is used for data transmission.

Working Principle

Subsequently, as the induced emf passes across the load, the current will be generated through the load. The data transmission takes place using Load Modulation. Switching On and Off of the load is known as a Load Modulation. Most importantly, the load will change the rate of the current as per the data stored in the memory element of the Tag. Consequently, changing the rate of the current will generate a feedback signal for the reader, and hence the data of the tag/card is shared.

Architecture of the RFID based an Access control system

Access Control

Architecture is consists of three elements.

  1. RFID Reader and Tag/Card
  2. Controller
  3. Database

Circuit Diagram

Circuit Diagram

To sum up, the admin can connect peripherals like a DC motor to open the door and give access to the authorized entry. In addition, as an alert Red LED and Buzzer can be connected too.

Source Code

<code>int count = 0;                                          // count = 0
char input[12];                                         // character array of size 12 
boolean flag = 0;                                       // flag =0
void setup()
{
   Serial.begin(9600);                                  // begin serial port with baud rate 9600bps
   pinMode(0,INPUT)
}
void loop()
{
   if(Serial.available())
   {
      count = 0;
      while(Serial.available() && count < 12)          // Read 12 characters and store them in input array
      {
         input[count] = Serial.read();
         count++;
         delay(5);
      }
      Serial.print(input);                             // Print RFID tag number 
      
      if((input[0] ^ input[2] ^ input[4] ^ input[6] ^ input[8] == input[10]) && 
         (input[1] ^ input[3] ^ input[5] ^ input[7] ^ input[9] == input[11]))
            Serial.println("No Error");
      else
            Serial.println("Error");      
   }
}</code>

Source: ALL ABOUT ELECTRONICS, electroSome

Conclusion

Access control is a fundamental component of security compliance programs that ensures security technology. Most importantly, RFID technology gives contactless and appropriate results regarding access control. Above all, It is easy to install, quickly responsive, and less power consuming system.

Modern technology for access control includes fingerprint identification which is not the best solution for situations like the corona pandemic. Also, face identification which is not able to track the position of the person. In other words, RFID technology renders access control over unauthorized entries and tracks the location of the tag/card-holder simultaneously at the same time. Moreover, The applications of the convergence of the RFID technology and the Internet of Things is wide. For example, smart attendance system, access control system, Electronic toll tax collection, tracking of objects like cars, students, workers, books, etc.

Creating a multiplication Skill in Alexa using python

Written By Monisha Macharla

Hi, I'm Monisha. I am a tech blogger and a hobbyist. I am eager to learn and explore tech related stuff! also, I wanted to deliver you the same as much as the simpler way with more informative content. I generally appreciate learning by doing, rather than only learning. Thank you for reading my blog! Happy learning!

RELATED POSTS

How to use a GSM/GPRS Module as an IoT device?

How to use a GSM/GPRS Module as an IoT device?

The convergence of physical objects and the digital world is known as IoT. IoT stands for the Internet of Things. It has been a trending field in the world of technology. In addition, the IoT describes the network of physical objects known as “things” that are...

Longwave Wireless Communication

Longwave Wireless Communication

Longwave wireless communication acts as a foundation for a Low power Wide Area Network. Mostly low energy is consumed in these types of networks. The reason is that most sensors are used for extracting data. These data are used for transmitting in long-range...

Architecture of a Bluetooth IoT Application

Architecture of a Bluetooth IoT Application

What is Bluetooth? To understand the architecture of Bluetooth first lets understand what actually Bluetooth is. Bluetooth is a radio-wave technology that is mainly designed to enable wireless communications over short distances. The frequency of these waves ranges...

Most Commonly Used Web Frameworks

Most Commonly Used Web Frameworks

Web Frameworks are software frameworks that are designed to help create Web apps, Web APIs and other resources. Web Frameworks help us solve two of the major hurdles of developing web apps - templates and routing. Now that we know what web frameworks are, lets get...

Communication between XBee modules

Communication between XBee modules

The wireless networking device, XBee is a user friendly, popular and is a technology worth knowing about. It can transmit and receive data wirelessly, and thus can be used for many IoT applications. As the popularity of the XBee module has grown massively, there are...

Role of WiFi in IoT

Role of WiFi in IoT

Internet of Things(IoT) applications has diverse connectivity requirements in terms of range, data throughput, energy efficiency, and device cost. WiFi is often an obvious choice in-building WiFi coverage is almost ubiquitous. It is not always an appropriate...

VIDEOS – FOLLOW US ON YOUTUBE

EXPLORE OUR IOT PROJECTS

IoT Smart Gardening System – ESP8266, MQTT, Adafruit IO

Gardening is always a very calming pastime. However, our gardens' plants may not always receive the care they require due to our active lifestyles. What if we could remotely keep an eye on their health and provide them with the attention they require? In this article,...

How to Simulate IoT projects using Cisco Packet Tracer

In this tutorial, let's learn how to simulate the IoT project using the Cisco packet tracer. As an example, we shall build a simple Home Automation project to control and monitor devices. Introduction Firstly, let's quickly look at the overview of the software. Packet...

All you need to know about integrating NodeMCU with Ubidots over MQTT

In this tutorial, let's discuss Integrating NodeMCU and Ubidots IoT platform. As an illustration, we shall interface the DHT11 sensor to monitor temperature and Humidity. Additionally, an led bulb is controlled using the dashboard. Besides, the implementation will be...

All you need to know about integrating NodeMCU with Ubidots over Https

In this tutorial, let's discuss Integrating NodeMCU and Ubidots IoT platform. As an illustration, we shall interface the DHT11 sensor to monitor temperature and Humidity. Additionally, an led bulb is controlled using the dashboard. Besides, the implementation will be...

How to design a Wireless Blind Stick using nRF24L01 Module?

Introduction Let's learn to design a low-cost wireless blind stick using the nRF24L01 transceiver module. So the complete project is divided into the transmitter part and receiver part. Thus, the Transmitter part consists of an Arduino Nano microcontroller, ultrasonic...

Sending Temperature data to ThingSpeak Cloud and Visualize

In this article, we are going to learn “How to send temperature data to ThingSpeak Cloud?”. We can then visualize the temperature data uploaded to ThingSpeak Cloud anywhere in the world. But "What is ThingSpeak?” ThingSpeak is an open-source IoT platform that allows...

Amaze your friend with latest tricks of Raspberry Pi and Firebase

Introduction to our Raspberry Pi and Firebase trick Let me introduce you to the latest trick of Raspberry Pi and Firebase we'll be using to fool them. It begins with a small circuit to connect a temperature sensor and an Infrared sensor with Raspberry Pi. The circuit...

How to implement Machine Learning on IoT based Data?

Introduction The industrial scope for the convergence of the Internet of Things(IoT) and Machine learning(ML) is wide and informative. IoT renders an enormous amount of data from various sensors. On the other hand, ML opens up insight hidden in the acquired data....

Smart Display Board based on IoT and Google Firebase

Introduction In this tutorial, we are going to build a Smart Display Board based on IoT and Google Firebase by using NodeMCU8266 (or you can even use NodeMCU32) and LCD. Generally, in shops, hotels, offices, railway stations, notice/ display boards are used. They are...

Smart Gardening System – GO GREEN Project

Automation of farm activities can transform agricultural domain from being manual into a dynamic field to yield higher production with less human intervention. The project Green is developed to manage farms using modern information and communication technologies....