ESP32-Based RFID Access Control with Servo Lock and Status Indicators
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary of the Circuit
This circuit integrates an ESP32 Devkit V1 microcontroller with several peripherals including an RFID-RC522 module, a servo motor, an LCD I2C display, and two LEDs (one red and one green). The ESP32 Devkit V1 serves as the central processing unit, controlling the RFID reader for tag scanning, driving the servo motor, displaying information on the LCD, and managing the status indication through the LEDs.
Component List
ESP32 Devkit V1
- Description: A microcontroller development board based on the ESP32 chip, featuring Wi-Fi and Bluetooth connectivity.
- Pins: 3V3, GND, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, VIN
RFID-RC522
- Description: An RFID reader/writer module that operates at 13.56 MHz.
- Pins: VCC (3.3V), RST, GND, IRQ, MISO, MOSI, SCK, SDA
Servo
- Description: A rotary actuator or linear actuator that allows for precise control of angular or linear position.
- Pins: GND, VCC, PWM
LCD I2C Display
- Description: A liquid crystal display that communicates over the I2C bus.
- Pins: GND, VCC, SDA, SCL
LED: Two Pin (red)
- Description: A red light-emitting diode for status indication.
- Pins: cathode, anode
LED: Two Pin (green)
- Description: A green light-emitting diode for status indication.
- Pins: cathode, anode
Wiring Details
ESP32 Devkit V1
- 3V3: Supplies power to the RFID-RC522 module.
- GND: Common ground for RFID-RC522, both LEDs, LCD I2C Display, and Servo.
- D15: Connected to MISO of RFID-RC522.
- D5: Connected to MOSI of RFID-RC522.
- D18: Connected to SCK of RFID-RC522.
- D19: Connected to SDA of RFID-RC522.
- D21: Connected to SDA of LCD I2C Display.
- D22: Connected to SCL of LCD I2C Display.
- D23: Connected to RST of RFID-RC522.
- D14: Connected to the anode of the green LED.
- D12: Connected to the anode of the red LED.
- D13: Connected to PWM of Servo.
- VIN: Supplies power to the LCD I2C Display and Servo.
RFID-RC522
- VCC (3.3V): Receives power from the ESP32 Devkit V1.
- RST: Connected to D23 of ESP32 Devkit V1.
- GND: Connected to the common ground.
- MISO: Connected to D15 of ESP32 Devkit V1.
- MOSI: Connected to D5 of ESP32 Devkit V1.
- SCK: Connected to D18 of ESP32 Devkit V1.
- SDA: Connected to D19 of ESP32 Devkit V1.
Servo
- GND: Connected to the common ground.
- VCC: Receives power from the VIN of ESP32 Devkit V1.
- PWM: Controlled by D13 of ESP32 Devkit V1.
LCD I2C Display
- GND: Connected to the common ground.
- VCC: Receives power from the VIN of ESP32 Devkit V1.
- SDA: Connected to D21 of ESP32 Devkit V1.
- SCL: Connected to D22 of ESP32 Devkit V1.
LED: Two Pin (red)
- cathode: Connected to the common ground.
- anode: Controlled by D12 of ESP32 Devkit V1.
LED: Two Pin (green)
- cathode: Connected to the common ground.
- anode: Controlled by D14 of ESP32 Devkit V1.
Documented Code
No code has been provided for the microcontroller. The documentation of the code would typically include a description of the functionality, setup and loop functions, and any functions or libraries used to control the peripherals. Since no code is available, this section cannot be completed.