4.3.15. RFID Access Logging System
| Description In Project 135, learners will build an expert wireless and automation system titled 'RFID Access Logging System'. This manual details the synthesis of RFID Module + IIC 1602 LCD + 4x4 Matrix Keypad + Active Buzzer into an industrial IoT automation solution.|------------------|----------------------------------------------------------------| | Use case |This project connects to real-world industrial and IoT applications such as: Project 135 provides master-level competency in wireless communication, industrial IoT architecture, and automated system integration.|
Components (Things You will need)
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|---|---|---|---|---|---|---|---|---|---|
Building the circuit
Things Needed:
- Arduino Uno Core Board = 1
- RFID Module = 1
- IIC 1602 LCD = 1
- 4x4 Matrix Keypad = 1
- USB Cable & Jumper Wires = 1
- Bread Board
- Relay Module
- Real Time Clock
Mounting the component on the breadboard and wiring the circuit
Step 1: Inventory all modules listed in the Required Components table.
Step 2: Connect line [Wireless / RTC / RFID Bus] to [UART / SPI / I2C Pins] — (Primary telemetry and security bus.).
Step 3: Connect line [Control & Actuator Lines] to [Digital / PWM Pins] — (Relay, motor, and display driver bus.).
Step 4: Connect line [Power Rails] to [5V / 3.3V / GND] — (System power and ground rails.).
Step 5: Double-check all VCC, 5V, 3.3V, and GND polarities to prevent electrical shorts.
Step 6: Connect USB programming cable only after verifying all signal path wiring.

Make sure to connect the Arduino USB cable to the Arduino board.
PROGRAMMING
Step 1: Open your Arduino IDE. See how to set up here: Getting Started.
Step 2: Write the complete program implementing the system logic with appropriate pin definitions, setup configuration, and the main control loop.
#include <SPI.h>
#include <MFRC522.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <Keypad.h>
MFRC522 mfrc522(10, 9);
LiquidCrystal_I2C lcd(0x27, 16, 2);
const byte ROWS = 4; const byte COLS = 4;
char keys[ROWS][COLS] = {{'1','2','3','A'},{'4','5','6','B'},{'7','8','9','C'},{'*','0','#','D'}};
byte rowPins[ROWS] = {2, 3, 4, 5}; byte colPins[COLS] = {6, 7, 8, A0};
Keypad keypad = Keypad(makeKeymap(keys), rowPins, colPins, ROWS, COLS);
String inputPIN = "";
String correctPIN = "1234"; // Set your desired PIN
void setup() {
SPI.begin(); mfrc522.PCD_Init();
lcd.init(); lcd.backlight();
lcd.print("Scan RFID Tag...");
}
void loop() {
if (mfrc522.PICC_IsNewCardPresent() && mfrc522.PICC_ReadCardSerial()) {
lcd.clear(); lcd.print("Enter PIN:");
inputPIN = "";
while(inputPIN.length() < 4) {
char key = keypad.getKey();
if (key) {
inputPIN += key;
lcd.setCursor(inputPIN.length()-1, 1); lcd.print("*");
}
}
if (inputPIN == correctPIN) {
lcd.clear(); lcd.print("Access Granted!");
} else {
lcd.clear(); lcd.print("Access Denied!");
}
delay(2000); lcd.clear(); lcd.print("Scan RFID Tag...");
mfrc522.PICC_HaltA();
}
}
Step 7: Save your code. See the Getting Started section
Step 8: Select the arduino board and port See the Getting Started section:Selecting Arduino Board Type and Uploading your code.
Step 9: Upload your code. See the Getting Started section:Selecting Arduino Board Type and Uploading your code
CONCLUSION
The system processes telemetry signals and security credentials in real time, driving relays, motors, and displays reliably.









