Arduino Nano ESP32 Smart Access Control System with RFID, Keypad, and SD Card Logging
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino Nano ESP32, a 16x2 I2C LCD, an SD SDHC module, a 4x4 Keypad, and an RFID-RC522 module. The document includes a list of components, wiring details, and the embedded code used in the microcontrollers.
Component List
Arduino Nano ESP32
- Description: A compact microcontroller board based on the ESP32.
- Pins: D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, GND, RST, RX0, TX1, D13, 3.3V, B0, A0, A1, A2, A3, A4, A5, A6, A7, VBUS, B1, VIN
16x2 I2C LCD
- Description: A 16x2 character LCD display with I2C interface.
- Pins: GND, VCC, SDA, SCL
SD SDHC
- Description: An SD card module for reading and writing data.
- Pins: 3V3, CS, MOSI, CLK, MISO, GND
4x4 Keypad (Simulator)
- Description: A 4x4 matrix keypad for user input.
- Pins: R1, C4, R2, C2, R3, R4, C1, C3
RFID-RC522
- Description: An RFID module for reading RFID tags.
- Pins: VCC (3.3V), RST, GND, IRQ, MISO, MOSI, SCK, SDA
Wiring Details
Arduino Nano ESP32
- D12: Connected to MISO of RFID-RC522 and SD SDHC
- D11: Connected to MOSI of RFID-RC522 and SD SDHC
- D10: Connected to SDA of RFID-RC522
- D9: Connected to R1 of 4x4 Keypad
- D8: Connected to R2 of 4x4 Keypad
- D7: Connected to R3 of 4x4 Keypad
- D6: Connected to R4 of 4x4 Keypad
- D5: Connected to C1 of 4x4 Keypad
- D4: Connected to C2 of 4x4 Keypad
- D3: Connected to C3 of 4x4 Keypad
- D2: Connected to C4 of 4x4 Keypad
- GND: Connected to GND of RFID-RC522, 16x2 I2C LCD, and SD SDHC
- D13: Connected to SCK of RFID-RC522 and SD SDHC
- 3.3V: Connected to VCC (3.3V) of RFID-RC522 and 3V3 of SD SDHC
- A0: Connected to CS of SD SDHC
- A2: Connected to RST of RFID-RC522
- A4: Connected to SDA of 16x2 I2C LCD
- A5: Connected to SCL of 16x2 I2C LCD
- VBUS: Connected to VCC of 16x2 I2C LCD
16x2 I2C LCD
- GND: Connected to GND of Arduino Nano ESP32
- VCC: Connected to VBUS of Arduino Nano ESP32
- SDA: Connected to A4 of Arduino Nano ESP32
- SCL: Connected to A5 of Arduino Nano ESP32
SD SDHC
- 3V3: Connected to 3.3V of Arduino Nano ESP32
- CS: Connected to A0 of Arduino Nano ESP32
- MOSI: Connected to D11 of Arduino Nano ESP32
- CLK: Connected to D13 of Arduino Nano ESP32
- MISO: Connected to D12 of Arduino Nano ESP32
- GND: Connected to GND of Arduino Nano ESP32
4x4 Keypad (Simulator)
- R1: Connected to D9 of Arduino Nano ESP32
- R2: Connected to D8 of Arduino Nano ESP32
- R3: Connected to D7 of Arduino Nano ESP32
- R4: Connected to D6 of Arduino Nano ESP32
- C1: Connected to D5 of Arduino Nano ESP32
- C2: Connected to D4 of Arduino Nano ESP32
- C3: Connected to D3 of Arduino Nano ESP32
- C4: Connected to D2 of Arduino Nano ESP32
RFID-RC522
- VCC (3.3V): Connected to 3.3V of Arduino Nano ESP32
- RST: Connected to A2 of Arduino Nano ESP32
- GND: Connected to GND of Arduino Nano ESP32
- MISO: Connected to D12 of Arduino Nano ESP32
- MOSI: Connected to D11 of Arduino Nano ESP32
- SCK: Connected to D13 of Arduino Nano ESP32
- SDA: Connected to D10 of Arduino Nano ESP32
Code Documentation
Arduino Nano ESP32 Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
16x2 I2C LCD Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This document provides a comprehensive overview of the circuit, including the components used, their wiring details, and the embedded code. This should serve as a useful reference for understanding and replicating the circuit.