Arduino UNO RFID Access Control System with I2C LCD Feedback and Keypad Input
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that integrates an Arduino UNO microcontroller with several peripheral components including an RFID-RC522 module, a 3xAA battery pack, a 4x4 membrane matrix keypad, and an I2C LCD 16x2 screen. The circuit is designed to leverage the Arduino UNO's digital and analog I/O pins to interface with the peripherals for various input/output operations. The RFID-RC522 module is used for RFID reading capabilities, the keypad serves as a user input device, and the LCD screen displays information. The 3xAA battery pack powers the Arduino UNO.
Component List
Arduino UNO
- Microcontroller board based on the ATmega328P
- Features digital and analog I/O pins
- Includes power supply pins and communication interfaces
RFID-RC522
- RFID reader/writer module
- Operates at 13.56 MHz for contactless communication
- Utilizes SPI interface for communication with microcontroller
3xAA Battery
- Power source for the circuit
- Provides a nominal voltage suitable for powering the Arduino UNO
4x4 Membrane Matrix Keypad
- Input device with 16 buttons arranged in a 4x4 grid
- Each button press connects a row and column, detectable by the microcontroller
I2C LCD 16x2 Screen
- Alphanumeric liquid crystal display with 16 characters by 2 lines
- Uses I2C communication protocol for interfacing with the microcontroller
Wiring Details
Arduino UNO
3.3Vconnected to RFID-RC522 VCC (3.3V)5Vconnected to I2C LCD 16x2 Screen VCC (5V)GNDconnected to RFID-RC522 GND, I2C LCD 16x2 Screen GND, and 3xAA Battery GNDVinconnected to 3xAA Battery VCCSCLconnected to I2C LCD 16x2 Screen SCLSDAconnected to I2C LCD 16x2 Screen SDAD13connected to RFID-RC522 SCKD12connected to RFID-RC522 MISOD11connected to RFID-RC522 MOSID10connected to RFID-RC522 RSTD9connected to 4x4 Membrane Matrix Keypad C4 (also connected to RFID-RC522 SDA)D8connected to 4x4 Membrane Matrix Keypad C3D7connected to 4x4 Membrane Matrix Keypad C2D6connected to 4x4 Membrane Matrix Keypad C1D5connected to 4x4 Membrane Matrix Keypad R4D4connected to 4x4 Membrane Matrix Keypad R3D3connected to 4x4 Membrane Matrix Keypad R2D2connected to 4x4 Membrane Matrix Keypad R1
RFID-RC522
VCC (3.3V)connected to Arduino UNO 3.3VRSTconnected to Arduino UNO D10GNDconnected to Arduino UNO GNDIRQnot connectedMISOconnected to Arduino UNO D12MOSIconnected to Arduino UNO D11SCKconnected to Arduino UNO D13SDAconnected to Arduino UNO D9 (also connected to 4x4 Membrane Matrix Keypad C4)
3xAA Battery
VCCconnected to Arduino UNO VinGNDconnected to Arduino UNO GND
4x4 Membrane Matrix Keypad
R1connected to Arduino UNO D2R2connected to Arduino UNO D3R3connected to Arduino UNO D4R4connected to Arduino UNO D5C1connected to Arduino UNO D6C2connected to Arduino UNO D7C3connected to Arduino UNO D8C4connected to Arduino UNO D9 (also connected to RFID-RC522 SDA)
I2C LCD 16x2 Screen
SCLconnected to Arduino UNO SCLSDAconnected to Arduino UNO SDAVCC (5V)connected to Arduino UNO 5VGNDconnected to Arduino UNO GND
Documented Code
Arduino UNO Code (sketch.ino)
#include <Key.h>
#include <Keypad.h>
void setup() {
// Initialization code here
}
void loop() {
// Main code to run repeatedly
}
RFID-RC522 Code (sketch.ino)
void setup() {
// Initialization code here
}
void loop() {
// Main code to run repeatedly
}
3xAA Battery Code (sketch.ino)
void setup() {
// Initialization code here
}
void loop() {
// Main code to run repeatedly
}
4x4 Membrane Matrix Keypad Code (sketch.ino)
void setup() {
// Initialization code here
}
void loop() {
// Main code to run repeatedly
}
I2C LCD 16x2 Screen Code (sketch.ino)
void setup() {
// Initialization code here
}
void loop() {
// Main code to run repeatedly
}
Note: The provided code snippets are placeholders and should be replaced with the actual implementation code for each component's functionality.