Arduino UNO-Based Smart Lock System with RFID and Fingerprint Authentication
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates an Arduino UNO microcontroller with various components including an RFID reader, LEDs, reed switches, a solenoid lock, a relay, a fingerprint sensor, an LCD display, and a battery. The circuit is designed to control access using RFID and fingerprint authentication, with visual feedback provided by LEDs and an LCD display. The solenoid lock is controlled via a relay, and the entire system is powered by a 12V battery.
Component List
Arduino UNO
- Description: 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: RFID reader module.
- Pins: VCC (3.3V), RST, GND, IRQ, MISO, MOSI, SCK, SDA
LED: Two Pin (red)
- Description: Red LED.
- Pins: cathode, anode
Reed Switch
- Description: Magnetic reed switch.
- Pins: pin 1, pin 2
12V Solenoid Lock
- Description: Electromagnetic lock.
- Pins: -, +
AS608
- Description: Fingerprint sensor.
- Pins: VCC, TX, GND, RX
12V SINGLE CHANNEL RELAY
- Description: Relay module.
- Pins: NC, COM, NO, IN, GND, VCC
Resistor
- Description: Resistor with 200 Ohms resistance.
- Pins: pin1, pin2
16x2 I2C LCD
- Description: 16x2 character LCD with I2C interface.
- Pins: GND, VCC, SDA, SCL
12v Battery
- Description: 12V power source.
- Pins: -, +
Wiring Details
Arduino UNO
- 3.3V: Connected to RFID-RC522 VCC (3.3V)
- 5V: Connected to 12V SINGLE CHANNEL RELAY VCC, AS608 VCC, 16x2 I2C LCD VCC
- GND: Connected to RFID-RC522 GND, 16x2 I2C LCD GND, Reed Switch pin 2, LED cathode, 12V SINGLE CHANNEL RELAY GND, AS608 GND
- A4: Connected to 16x2 I2C LCD SDA
- A5: Connected to 16x2 I2C LCD SCL
- D13: Connected to RFID-RC522 SCK
- D12: Connected to RFID-RC522 MISO
- D11: Connected to RFID-RC522 MOSI
- D10: Connected to RFID-RC522 SDA
- D9: Connected to RFID-RC522 RST
- D8: Connected to 12V SINGLE CHANNEL RELAY IN
- D7: Connected to Reed Switch pin 1
- D6: Connected to Reed Switch pin 1
- D5: Connected to Resistor pin1
- D4: Connected to Resistor pin1
- D3: Connected to AS608 TX
- D2: Connected to AS608 RX
- D0: Connected to Resistor pin1
RFID-RC522
- VCC (3.3V): Connected to Arduino UNO 3.3V
- RST: Connected to Arduino UNO D9
- GND: Connected to Arduino UNO GND
- SCK: Connected to Arduino UNO D13
- MISO: Connected to Arduino UNO D12
- MOSI: Connected to Arduino UNO D11
- SDA: Connected to Arduino UNO D10
LED: Two Pin (red)
- cathode: Connected to Arduino UNO GND
- anode: Connected to Resistor pin2
Reed Switch
- pin 1: Connected to Arduino UNO D7, D6
- pin 2: Connected to Arduino UNO GND
12V Solenoid Lock
- +: Connected to 12V SINGLE CHANNEL RELAY COM
- -: Connected to 12v Battery -
AS608
- VCC: Connected to Arduino UNO 5V
- TX: Connected to Arduino UNO D3
- GND: Connected to Arduino UNO GND
- RX: Connected to Arduino UNO D2
12V SINGLE CHANNEL RELAY
- NC: Not connected
- COM: Connected to 12V Solenoid Lock +
- NO: Connected to 12v Battery +
- IN: Connected to Arduino UNO D8
- GND: Connected to Arduino UNO GND
- VCC: Connected to Arduino UNO 5V
Resistor
- pin1: Connected to Arduino UNO D5, D4, D0
- pin2: Connected to LED anode
16x2 I2C LCD
- GND: Connected to Arduino UNO GND
- VCC: Connected to Arduino UNO 5V
- SDA: Connected to Arduino UNO A4
- SCL: Connected to Arduino UNO A5
12v Battery
- +: Connected to 12V SINGLE CHANNEL RELAY NO
- -: Connected to 12V Solenoid Lock -
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.
This documentation provides a comprehensive overview of the circuit, including a detailed list of components, their wiring connections, and the initial code for the Arduino UNO.