Arduino UNO and ESP32-CAM Based Smart Lock System with Fingerprint and Keypad Access
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates an Arduino UNO microcontroller with various components including a 4x4 Membrane Matrix Keypad, a 12V Blue LED, a 12V solenoid lock, a Fingerprint Scanner, a buzzer, a 5V relay, and an ESP32-CAM. The circuit is powered by a 12V power supply and is designed to control a solenoid lock based on inputs from the keypad and fingerprint scanner, with visual and auditory feedback provided by the LED and buzzer.
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
4X4 Membrane Matrix Keypad
- Description: A keypad with 16 buttons arranged in a 4x4 matrix.
- Pins: R1, R2, R3, R4, C1, C2, C3, C4
12V Blue LED
- Description: A blue LED that operates at 12V.
- Pins: GND, VCC
12V Power Supply
- Description: A power supply that provides 12V DC.
- Pins: +, -
12V Solenoid Lock
- Description: An electromechanical lock that operates at 12V.
- Pins: VCC, GND
Fingerprint Scanner
- Description: A biometric sensor for fingerprint recognition.
- Pins: VCC, TX, RX, GND
Buzzer
- Description: An audio signaling device.
- Pins: PIN, GND
5V Relay
- Description: A relay module that operates at 5V.
- Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
ESP32-CAM
- Description: A camera module based on the ESP32 microcontroller.
- Pins: 5V, GND, IO12, IO13, IO15, IO14, IO2, IO4, VOT, VOR, VCC, IO0, IO16, 3V3
Wiring Details
Arduino UNO
- 3.3V: Connected to Fingerprint Scanner VCC
- 5V: Connected to 5V Relay VCC, ESP32-CAM 5V
- GND: Connected to 12V Solenoid Lock GND, 12V Power Supply -, 12V Blue LED GND, Fingerprint Scanner GND, Buzzer GND, 5V Relay GND, ESP32-CAM GND
- Vin: Connected to 12V Power Supply +
- D13: Connected to 4X4 Membrane Matrix Keypad C4
- D12: Connected to 4X4 Membrane Matrix Keypad C3
- D11: Connected to 4X4 Membrane Matrix Keypad C2
- D10: Connected to 4X4 Membrane Matrix Keypad C1
- D9: Connected to 4X4 Membrane Matrix Keypad R4
- D8: Connected to 4X4 Membrane Matrix Keypad R3
- D7: Connected to 4X4 Membrane Matrix Keypad R2
- D6: Connected to 4X4 Membrane Matrix Keypad R1
- D5: Connected to Buzzer PIN
- D4: Connected to 5V Relay In
- D3: Connected to Fingerprint Scanner RX
- D2: Connected to Fingerprint Scanner TX
- D1: Connected to ESP32-CAM VOT
- D0: Connected to ESP32-CAM VOR
4X4 Membrane Matrix Keypad
- C4: Connected to Arduino UNO D13
- C3: Connected to Arduino UNO D12
- C2: Connected to Arduino UNO D11
- C1: Connected to Arduino UNO D10
- R4: Connected to Arduino UNO D9
- R3: Connected to Arduino UNO D8
- R2: Connected to Arduino UNO D7
- R1: Connected to Arduino UNO D6
12V Blue LED
- GND: Connected to 12V Power Supply -
- VCC: Connected to 12V Power Supply +
12V Power Supply
- +: Connected to 12V Blue LED VCC, 5V Relay Common terminal, Arduino UNO Vin
- -: Connected to 12V Solenoid Lock GND, 12V Blue LED GND, Fingerprint Scanner GND, Arduino UNO GND, Buzzer GND
12V Solenoid Lock
- GND: Connected to 12V Power Supply -
- VCC: Connected to 5V Relay Normally Open
Fingerprint Scanner
- VCC: Connected to Arduino UNO 3.3V
- TX: Connected to Arduino UNO D2
- RX: Connected to Arduino UNO D3
- GND: Connected to 12V Power Supply -
Buzzer
- PIN: Connected to Arduino UNO D5
- GND: Connected to 12V Power Supply -
5V Relay
- Normally Open: Connected to 12V Solenoid Lock VCC
- Common terminal: Connected to 12V Power Supply +
- In: Connected to Arduino UNO D4
- GND: Connected to Arduino UNO GND
- VCC: Connected to Arduino UNO 5V
ESP32-CAM
- 5V: Connected to Arduino UNO 5V
- GND: Connected to Arduino UNO GND
- VOT: Connected to Arduino UNO D1
- VOR: Connected to Arduino UNO D0
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Documentation (documentation.txt)