On this challenge, we’ll construct a easy Entry Management System utilizing RC522 RFID Module, Arduino and MG 996R Servo Motor. Authenticate folks utilizing their RFID Sensible Playing cards or Key Fobs and permit them entry i.e., open or shut the Servo (gate) provided that they’ve permission.
To maintain issues clear and easy, I used a Servo Motor to symbolize a gate opening and shutting. If you’re focused on a extra skilled set up however maintaining it DIY, then you should use a Solenoid Door Lock or an electromagnetic door lock. If price is an element, then I counsel you to make use of a Solenoid Door Lock.
Entry Management is a crucial approach within the area of Safety, the place personnel might have restricted entry to enter a spot, use an object or devour one thing. Authorization is the method of verifying the credentials of an individual and granting permission to entry the useful resource.
Electronics Entry Management or EAC is a straightforward idea which makes use of a pc system to beat the constraints of bodily lock and keys. In EAC, we have now three sorts of authentication. They’re:
Utilizing a keypad to enter a PIN or a password.
Scan sensible card or key fob
Use a biometric system like fingerprints or iris
On this easy DIY Venture, we’ll use an RFID based mostly entry management system which authenticates individuals utilizing Sensible Playing cards and Key Fobs.
Anatomy of an Entry Management System
A typical Entry Management System consists of the next parts. These are the minimal parts required to implement a working Entry Management System. However the complexity of the Entry Management System might range from system to system.
Controller: A Microcontroller or Microprocessor able to interfacing with a scanner / reader Module.
Managed Entry: Like a door or a gate.
Scanner / Reader: A Module used for accepting enter from the consumer, like a keypad or an RFID Scanner or a fingerprint reader.
Locking Mechanism: Like a solenoid door lock or a motor – managed door strike.
RC522 RFID Module
MFRC522 IC based mostly RC522 RFID Module is an affordable but dependable RFID Module for Arduino. The equipment consists of the primary RFID Scanner / Reader Module (with embedded PCB Antenna), a Sensible Card and a Key Fob (each are of sort MIFARE 1K Basic).
I made a devoted tutorial on Interfacing RC522 RFID Module with Arduino. Test it out.
MG 996R Servo Motor
Tower Professional’s MG 996R is a digital steel gear servo with a excessive stall torque and may rotate as much as 120 levels (60 levels in every route). At an working voltage of four.8V, MG 996R Servo can present a stalling torque of 9.four kgf.cm.
NOTE: Don’t energy MG 996R Servo Motor from Arduino because the working present may be very excessive (usually, between 500mA to 900mA for 6V provide). The stalling present, relying on the load, can attain 2.5A (at 6V).
So, use a separate energy provide for Servo and make the bottom frequent between this exterior energy provide and Arduino.
PCF8574 I2C LCD Module
One of many very helpful modules out there for Arduino is the PCF8574 I2C LCD Module. It converts an everyday 16×2 LCD Show into an I2C interfaced system so as to management the show with simply two wires (SDA and SCL of I2C).
I made a devoted tutorial on Interfacing PCF8574 I2C LCD with Arduino. Test it out.
Arduino RC522 RFID Module based mostly Entry Management System
I selected Arduino UNO as the primary controller for this challenge. To just accept enter from customers, we’ll use the RC522 RFID Reader Module. The customers can be given RFID sensible playing cards and key fobs as their credentials.
A 16×2 LCD Show together with a PCF8574 I2C LCD Module can be related to Arduino to show related textual content for the consumer (like welcome message or UID).
The connection between Arduino and RC522 RFID Module makes use of SPI Interface whereas the communication between Arduino and PCF8574 I2C LCD Module (and subsequently, the 16×2 LCD) relies on I2C interface.
Join the Servo Motor to a PWM pin of Arduino and supply an exterior energy provide in case you are utilizing the identical highly effective MG 996R Servo Motor as I did.
RC522 RFID Module
RFID Sensible Card
RFID Key Fob
MG 996R Servo Motor
16×2 LCD Show
PCF8574 I2C LCD Module
Breadboard Energy Provide
The next picture reveals all the mandatory connections for Arduino RC522 RFID Module based mostly Entry Management System.
Earlier than continuing with the construct of Arduino RC522 RFID Module based mostly Entry Management System, there are some things you could put together.
Set up Libraries
The very first thing you could do is to test if all the mandatory libraries are put in or not. If you’re constructing an RC522 RFID Module based mostly Entry Management System utilizing Arduino as talked about on this challenge, then you definately require the next libraries:
On this, SPI and Servo libraries are already put in with Arduino IDE. So, ensure you set up the opposite two.
UID of Grasp Card(s)
The subsequent factor to do is get the UID (Distinctive ID) of all of the grasp playing cards, which can have permission to entry the useful resource (on this case, the gate will open). Use the ‘DumpInfo’ instance from the ‘MFRC522’ library to get the UID of grasp RFID playing cards and key fobs.
Slave Handle for I2C LCD Module
Lastly, since we’re utilizing an I2C LCD Module with 16×2 LCD Show, we have now to know the I2C handle of the PCF8574 IC. Join solely the PCF8574 I2C Module to Arduino (by I2C bus) and use the next code to get the slave handle.
We are actually prepared to jot down the primary code for the Arduino RC522 RFID Module based mostly Entry Management System. The code may be very easy. Maintain a listing of all of the RFID card / key fob UIDs, that are thought-about to be masters i.e., which have entry.
Scan an RFID card or key fob utilizing RC522 RFID Module, which is related to Arduino. If the scanned card’s UID matches with one within the record, then open the gate i.e., activate the MG 996R Servo and show welcome textual content on the LCD.
If the scanned card doesn’t have permission, don’t open the gate and show an entry denied textual content on the LCD.
After displaying all of the intro textual content, Arduino will say ‘Scan Your Card’ on the LCD and is now prepared for studying / scanning RFID playing cards or key fobs. I programmed the RFID Card because the grasp card i.e., solely RFID card has entry and the important thing fob doesn’t.
Once I scan the RFID sensible card, the Servo will activate which represents opening a gate or unlocking a door.
The LCD shows ‘Entry Granted’ message and in addition the UID of the cardboard.
If I scan the important thing fob, the Servo stays within the closed place as it isn’t a grasp card.
An ‘Entry Denied’ message can be displayed on the LCD.
A easy Entry Management System DIY Venture is demonstrated right here utilizing Arduino, RC522 RFID Module, MG 996R Servo, PCF8574 I2C LCD and a few RFID sensible playing cards and key fobs. You discovered the necessary parts required for this challenge and in addition the straightforward implementation of Arduino RC522 RFID Module based mostly Entry Management System.