ESP32-Based Smart Access Control System with RFID and IR Sensor
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes various components such as LEDs, an IR sensor, an ESP32 microcontroller, an RFID module, a servo motor, an LCD display, a resistor, and a buzzer. The circuit is designed to interface these components with the ESP32 microcontroller to perform various functions.
Component List
LED: Two Pin (red)
- Pins: cathode, anode
- Description: A red LED used for visual indication.
- Purpose: Visual indicator.
LED: Two Pin (green)
- Pins: cathode, anode
- Description: A green LED used for visual indication.
- Purpose: Visual indicator.
IR Sensor
- Pins: out, gnd, vcc
- Description: An infrared sensor used for detecting objects.
- Purpose: Object detection.
ESP32
- Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, VIN, 3V3, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, BOOT
- Description: A microcontroller with Wi-Fi and Bluetooth capabilities.
- Purpose: Central control unit.
RFID-RC522
- Pins: VCC (3.3V), RST, GND, IRQ, MISO, MOSI, SCK, SDA
- Description: An RFID module used for reading RFID tags.
- Purpose: RFID tag reading.
Servo Motor 9G
- Pins: VCC 5V, PMW, GND
- Description: A small servo motor used for precise control of angular position.
- Purpose: Actuation.
16x2 I2C LCD
- Pins: GND, VCC, SDA, SCL
- Description: A 16x2 character LCD display with I2C interface.
- Purpose: Display information.
Resistor
- Pins: pin1, pin2
- Description: A resistor with a resistance of 220 Ohms.
- Purpose: Current limiting.
Buzzer
- Pins: POSITIVE, NEGATIVE
- Description: A buzzer used for audio indication.
- Purpose: Audio indicator.
Wiring Details
LED: Two Pin (red)
- Cathode: Connected to the cathode of the green LED and pin1 of the resistor.
- Anode: Connected to pin D14 of the ESP32.
LED: Two Pin (green)
- Cathode: Connected to the cathode of the red LED and pin1 of the resistor.
- Anode: Connected to pin D27 of the ESP32.
IR Sensor
- Out: Connected to pin D32 of the ESP32.
- GND: Connected to the GND of the ESP32, GND of the RFID module, GND of the LCD, and pin2 of the resistor.
- VCC: Connected to the 3V3 pin of the ESP32, VCC of the RFID module, and VCC of the LCD.
ESP32
- 3V3: Connected to the VCC of the IR sensor, VCC of the RFID module, and VCC of the LCD.
- GND: Connected to the GND of the IR sensor, GND of the RFID module, GND of the LCD, and pin2 of the resistor.
- D14: Connected to the anode of the red LED.
- D27: Connected to the anode of the green LED.
- D32: Connected to the out pin of the IR sensor.
- D26: Connected to the positive pin of the buzzer.
- D13: Connected to the PMW pin of the servo motor.
- VIN: Connected to the VCC 5V pin of the servo motor.
- D5: Connected to the SDA pin of the RFID module.
- D18: Connected to the SCK pin of the RFID module.
- D19: Connected to the MISO pin of the RFID module.
- D21: Connected to the SDA pin of the LCD.
- D22: Connected to the SCL pin of the LCD.
- D23: Connected to the MOSI pin of the RFID module.
RFID-RC522
- VCC (3.3V): Connected to the 3V3 pin of the ESP32.
- GND: Connected to the GND of the ESP32, GND of the IR sensor, and GND of the LCD.
- SDA: Connected to pin D5 of the ESP32.
- SCK: Connected to pin D18 of the ESP32.
- MISO: Connected to pin D19 of the ESP32.
- MOSI: Connected to pin D23 of the ESP32.
Servo Motor 9G
- GND: Connected to the GND of the ESP32.
- PMW: Connected to pin D13 of the ESP32.
- VCC 5V: Connected to the VIN pin of the ESP32.
16x2 I2C LCD
- GND: Connected to the GND of the ESP32, GND of the IR sensor, and GND of the RFID module.
- VCC: Connected to the 3V3 pin of the ESP32.
- SDA: Connected to pin D21 of the ESP32.
- SCL: Connected to pin D22 of the ESP32.
Resistor
- Pin1: Connected to the cathode of the red LED and the cathode of the green LED.
- Pin2: Connected to the GND of the ESP32, GND of the IR sensor, and GND of the RFID module.
Buzzer
- POSITIVE: Connected to pin D26 of the ESP32.
- NEGATIVE: Connected to the GND of the ESP32.
Code
No code is provided for this circuit.