This is an old revision of the document!
A brief presentation of my project:
Block Diagram:
Hardware Modules:
- Arduino UNO Acts as the central controller, reading input data from the RFID reader and controlling output devices like the servo motor, LCD, and LEDs.
- RFID Module (RC522) Scans RFID cards using SPI communication. The Arduino compares the scanned UID with a predefined list of authorized UIDs.
- Servo Motor Simulates a door latch. It rotates to unlock the door when a valid card is detected and locks it again afterward.
- LCD with I2C Module Displays access status messages such as “Access Granted” or “Access Denied”.
- LEDs (Green and Red) Provide quick visual feedback:
- Iron Latch Connected to the servo, simulates the actual door locking mechanism.
Softare Flow
1. The user scans an RFID card using the RC522 module.
2. The UID is sent to the Arduino via SPI.
3. The Arduino checks if the UID matches one from the authorized list: If authorized: The servo motor rotates to unlock the latch. Green LED turns on. LCD displays: Access Granted. If unauthorized: Servo remains in locked position. Red LED turns on. LCD displays: Access Denied.
4. After a short delay, the system resets the servo to the locked position and turns off the LED.
Component | Quantity | Arduino Pin Connections | Description / Role |
—————————— | ———- | ——————————————————————————– | ——————————————— |
Arduino Uno | 1 | – | Central microcontroller |
RFID-RC522 | 1 | VCC→3.3 V, GND→GND, SDA→D10, SCK→D13, MOSI→D11, MISO→D12, RST→D9 | Reads RFID card UID via SPI |
SG90 Servo Motor | 1 | VCC→5 V, GND→GND, Signal→D3 | Rotates to simulate locking/unlocking |
16×2 LCD w/ I²C Backpack | 1 | VCC→5 V, GND→GND, SDA→A4, SCL→A5 | Displays access status messages |
Green LED | 1 | Anode→D6 (via 220 Ω), Cathode→GND | Indicates “Access Granted” |
Red LED | 1 | Anode→D7 (via 220 Ω), Cathode→GND | Indicates “Access Denied” |
220 Ω Resistors | 2 | In series with each LED | Limits current through LEDs |
Iron Latch / Metal Bar | 1 | Connected mechanically to the servo | Simulates physical locking mechanism |
Breadboard | 1 | – | Used for prototyping connections |
Jumper Wires | ~25 | – | Connects components to the Arduino |
Fişierele se încarcă pe wiki folosind facilitatea Add Images or other files. Namespace-ul în care se încarcă fişierele este de tipul :pm:prj20??:c? sau :pm:prj20??:c?:nume_student (dacă este cazul). Exemplu: Dumitru Alin, 331CC → :pm:prj2009:cc:dumitru_alin.