Arduino UNO-Based RFID Access Control System with Dual RFID Readers and Servo Mechanism
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller interfacing with multiple components including RFID readers, servos, an IR sensor, and an I2C LCD display. The circuit is designed to read RFID tags, display information on an LCD, and control servos based on IR sensor inputs.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
RFID-RC522
- Description: A low-cost RFID reader module.
- Pins: VCC (3.3V), RST, GND, IRQ, MISO, MOSI, SCK, SDA
Servo
- Description: A motor that can be controlled to move to a specific position.
- Pins: gnd, vcc, pulse
16x2 I2C LCD
- Description: A 16x2 character LCD display with I2C interface.
- Pins: GND, VCC, SDA, SCL
IR Sensor
- Description: An infrared sensor used for detecting objects.
- Pins: out, gnd, vcc
Comment
- Description: Placeholder for comments in the circuit.
- Pins: None
Wiring Details
Arduino UNO
- 3.3V: Connected to VCC (3.3V) of both RFID-RC522 modules.
- 5V: Connected to VCC of both Servos, both IR sensors, and the 16x2 I2C LCD.
- GND: Connected to GND of both RFID-RC522 modules, both Servos, both IR sensors, and the 16x2 I2C LCD.
- A4: Connected to SDA of the 16x2 I2C LCD.
- A5: Connected to SCL of the 16x2 I2C LCD.
- D13: Connected to SCK of both RFID-RC522 modules.
- D12: Connected to MISO of both RFID-RC522 modules.
- D11: Connected to MOSI of both RFID-RC522 modules.
- D10: Connected to SDA of one RFID-RC522 module.
- D9: Connected to RST of one RFID-RC522 module.
- D8: Connected to SDA of the other RFID-RC522 module.
- D7: Connected to RST of the other RFID-RC522 module.
- D5: Connected to out of one IR sensor.
- D4: Connected to out of the other IR sensor.
- D3: Connected to pulse of one Servo.
- D2: Connected to pulse of the other Servo.
RFID-RC522
- VCC (3.3V): Connected to 3.3V of the Arduino UNO.
- GND: Connected to GND of the Arduino UNO.
- SCK: Connected to D13 of the Arduino UNO.
- MISO: Connected to D12 of the Arduino UNO.
- MOSI: Connected to D11 of the Arduino UNO.
- SDA: Connected to D10 (one module) and D8 (other module) of the Arduino UNO.
- RST: Connected to D9 (one module) and D7 (other module) of the Arduino UNO.
Servo
- gnd: Connected to GND of the Arduino UNO.
- vcc: Connected to 5V of the Arduino UNO.
- pulse: Connected to D3 (one Servo) and D2 (other Servo) of the Arduino UNO.
16x2 I2C LCD
- GND: Connected to GND of the Arduino UNO.
- VCC: Connected to 5V of the Arduino UNO.
- SDA: Connected to A4 of the Arduino UNO.
- SCL: Connected to A5 of the Arduino UNO.
IR Sensor
- out: Connected to D5 (one sensor) and D4 (other sensor) of the Arduino UNO.
- gnd: Connected to GND of the Arduino UNO.
- vcc: Connected to 5V of the Arduino UNO.
Code Documentation
Arduino UNO Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This code is a basic template for the Arduino UNO. The setup() function is where you initialize your components and settings, and the loop() function is where the main logic of your program runs repeatedly.