Circuit Documentation
Summary
This circuit integrates various components including sensors, a microcontroller, input/output devices, and power management modules to create a complex system. The central processing unit is an ESP32 microcontroller, which interfaces with a PIR sensor, a laser emitter and receiver, a keypad, an IO expander, an RFID module, and display and alerting devices such as an OLED display, LEDs, and a buzzer. Power management is handled by buck converters, a solar panel with a charge controller, and a UPS battery. The circuit also includes a relay module for controlling an electric lock, indicating a potential application in security or access control systems.
Component List
KY-008 Laser Emitter
- Pins: SIG, 5v, GND
- Description: A module that emits a laser beam.
PIR Sensor
- Pins: VDD, SIG, GND
- Description: A motion sensor that detects changes in infrared radiation.
Laser Receiver Module
- Pins: VCC, OUTPUT, GROUND
- Description: A module that detects the laser beam emitted by the KY-008.
ESP32 (30 pin)
- Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, Vin, D23, D22, TX0, RX0, D21, D19, D18, D5, TX2, RX2, D4, D2, D15, 3V3
- Description: A powerful microcontroller with Wi-Fi and Bluetooth capabilities.
4X4 Membrane Matrix Keypad
- Pins: R1, R2, R3, R4, C1, C2, C3, C4
- Description: An input device with 16 buttons arranged in a matrix.
PCF8575 IO Expander
- Pins: GND, VDD, P00 to P07, P10 to P17, INT, SCL, SDA, VCC
- Description: An integrated circuit that expands the number of IO pins available to the microcontroller.
RFID-RC522
- Pins: VCC (3.3V), RST, GND, IRQ, MISO, MOSI, SCK, SDA
- Description: A module for reading RFID tags.
Buzzer
- Pins: PIN, GND
- Description: An audio signaling device.
LED: Two Pin (green)
- Pins: cathode, anode
- Description: A green light-emitting diode.
LED: Two Pin (red)
- Pins: cathode, anode
- Description: A red light-emitting diode.
Resistor
- Pins: pin1, pin2
- Description: A passive two-terminal electrical component that implements electrical resistance.
KY-019 Relay Module 1 Channel
- Pins: S, 5V, GND, NC, COM, NO
- Description: A module that allows a low-power signal to switch a higher power circuit.
Solar Panel
- Pins: +, -
- Description: A panel designed to absorb the sun's rays as a source of energy for generating electricity.
AC Source
- Pins: -, +
- Description: A source of alternating current (AC) power.
Solar Charge Controller
- Pins: Solar Cell +, Solar Cell -, Battery +, Battery -, Load +, Load -
- Description: A device that controls the charging of a battery from a solar panel and manages power to the load.
UPS Battery
- Pins: GND, VCC
- Description: An uninterruptible power supply battery that provides backup power.
Buck Converter
- Pins: IN+, IN-, OUT+, OUT-
- Description: A power converter that steps down voltage from its input to its output.
OLED Display 2.42"
- Pins: GND, VCC, SCK, SDA, RES, DC, CS
- Description: A small display screen for visual output.
Centralized Power Supply
- Pins: L, N, com, DC -, dc -, dc +
- Description: A power supply unit that provides centralized power distribution.
Electric Lock
- Pins: GND, VCC
- Description: An electromechanical lock that can be controlled electronically.
Custom 1
- Pins: vcc, gnd
- Description: A custom component with power connections.
Wiring Details
KY-008 Laser Emitter
- SIG: Connected to PCF8575 IO Expander P03
- 5v: Connected to Buck Converter OUT+
- GND: Connected to Buck Converter OUT-
PIR Sensor
- VDD: Connected to Buck Converter OUT+
- SIG: Connected to ESP32 D35
- GND: Connected to Buck Converter OUT-
Laser Receiver Module
- VCC: Connected to Buck Converter OUT+
- OUTPUT: Connected to PCF8575 IO Expander P01
- GROUND: Connected to Buck Converter OUT-
ESP32 (30 pin)
- D34: Connected to OLED Display SDA
- D35: Connected to PIR Sensor SIG
- D32: Connected to 4X4 Keypad C3
- D33: Connected to 4X4 Keypad C2
- D25: Connected to 4X4 Keypad C1
- D26: Connected to 4X4 Keypad R4
- D27: Connected to 4X4 Keypad R3
- D14: Connected to 4X4 Keypad R2
- D12: Connected to 4X4 Keypad R1
- D13: Connected to 4X4 Keypad C4
- GND: Common ground with multiple components
- Vin: Connected to Buck Converter OUT+
- D23: Connected to OLED Display SCK
- D22: Connected to PCF8575 IO Expander SCL
- D21: Connected to PCF8575 IO Expander SDA
- D19: Connected to KY-019 Relay Module S
- D18: Connected to RFID-RC522 SCK
- D5: Connected to RFID-RC522 SDA
- D4: Connected to RFID-RC522 RST
- D2: Connected to RFID-RC522 MISO
- D15: Connected to RFID-RC522 MOSI
- 3V3: Connected to PCF8575 IO Expander VCC and RFID-RC522 VCC (3.3V)
4X4 Membrane Matrix Keypad
- R1: Connected to ESP32 D12
- R2: Connected to ESP32 D14
- R3: Connected to ESP32 D27
- R4: Connected to ESP32 D26
- C1: Connected to ESP32 D25
- C2: Connected to ESP32 D33
- C3: Connected to ESP32 D32
- C4: Connected to ESP32 D13
PCF8575 IO Expander
- P03: Connected to KY-008 Laser Emitter SIG
- P01: Connected to Laser Receiver Module OUTPUT
- SCL: Connected to ESP32 D22
- SDA: Connected to ESP32 D21
- GND: Common ground with multiple components
- VCC: Connected to ESP32 3V3
- P16: Connected to Buzzer PIN
- P15: Connected to Resistor pin1 (instance d8eba0ef)
- P14: Connected to Resistor pin1 (instance a6029834)
RFID-RC522
- SCK: Connected to ESP32 D18
- SDA: Connected to ESP32 D5
- RST: Connected to ESP32 D4
- MISO: Connected to ESP32 D2
- MOSI: Connected to ESP32 D15
- GND: Common ground with multiple components
- VCC (3.3V): Connected to ESP32 3V3
Buzzer
- PIN: Connected to PCF8575 IO Expander P16
- GND: Common ground with multiple components
LED: Two Pin (green)
- cathode: Common ground with multiple components
- anode: Connected to Resistor pin2 (instance d8eba0ef)
LED: Two Pin (red)
- cathode: Common ground with multiple components
- anode: Connected to Resistor pin2 (instance a6029834)
Resistor (instance d8eba0ef)
- pin1: Connected to PCF8575 IO Expander P15
- pin2: Connected to LED (green) anode
Resistor (instance a6029834)
- pin1: Connected to PCF8575 IO Expander P14
- pin2: Connected to LED (red) anode
KY-019 Relay Module 1 Channel
- S: Connected to ESP32 D19
- 5V: Connected to Buck Converter OUT+
- GND: Common ground with multiple components
- COM: Connected to Buck Converter IN+
- NO: Connected to Electric Lock VCC
Solar Panel
- +: Connected to Solar Charge Controller Solar Cell +
- -: Connected to Solar Charge Controller Solar Cell -
AC Source
- -: Connected to Centralized Power Supply N
- +: Connected to Centralized Power Supply L
Solar Charge Controller
- Solar Cell +: Connected to Solar Panel +
- Solar Cell -: Connected to Solar