Circuit Documentation
Summary
This document provides a comprehensive overview of a circuit designed to integrate various components including sensors, a microcontroller, a relay module, LEDs, a buzzer, and other peripherals. The circuit is likely purposed for security or automation, given the presence of a PIR sensor, RFID module, and an electric lock. The ESP32 microcontroller serves as the central processing unit, interfacing with input devices like the PIR sensor and keypad, and controlling output devices such as the laser emitter, LEDs, and the electric lock through a relay module. Power management is handled by buck converters and a solar charge controller, indicating a system designed for energy efficiency and possibly off-grid operation.
Component List
KY-008 Laser Emitter
PIR Sensor
Laser Receiver Module
- Pins: VCC, OUTPUT, GROUND
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
4X4 Membrane Matrix Keypad
- Pins: R1, R2, R3, R4, C1, C2, C3, C4
PCF8575 IO Expander
- Pins: GND, VDD, P00, P01, P02, P03, P04, P05, P06, P07, P17, P16, P15, P14, P13, P12, P11, P10, INT, SCL, SDA, VCC
RFID-RC522
- Pins: VCC (3.3V), RST, GND, IRQ, MISO, MOSI, SCK, SDA
Buzzer
LED: Two Pin (green)
LED: Two Pin (red)
Resistor (220 Ohms)
KY-019 Relay Module 1 Channel
- Pins: S, 5V, GND, NC, COM, NO
Solar Panel
AC Source
Solar Charge Controller
- Pins: Solar Cell +, Solar Cell -, Battery +, Battery -, Load +, Load -
UPS Battery
Diode
Buck Converter
- Pins: IN+, IN-, OUT+, OUT-
OLED Display 2.42"
- Pins: GND, VCC, SCK, SDA, RES, DC, CS
Custom Component 1
Centralized Power Supply
- Pins: L, N, com, DC -, dc -, dc +
Electric Lock
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 RFID-RC522 SCK
- D35 connected to PIR Sensor SIG
- D32 connected to 4X4 Membrane Matrix Keypad C3
- D33 connected to 4X4 Membrane Matrix Keypad C2
- D25 connected to 4X4 Membrane Matrix Keypad C1
- D26 connected to 4X4 Membrane Matrix Keypad R4
- D27 connected to 4X4 Membrane Matrix Keypad R3
- D14 connected to 4X4 Membrane Matrix Keypad R2
- D12 connected to 4X4 Membrane Matrix Keypad R1
- D13 connected to 4X4 Membrane Matrix Keypad C4
- GND connected to various components' ground pins
- 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 OLED Display SDA
- 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
- C3 connected to ESP32 D32
- C2 connected to ESP32 D33
- C1 connected to ESP32 D25
- R4 connected to ESP32 D26
- R3 connected to ESP32 D27
- R2 connected to ESP32 D14
- R1 connected to ESP32 D12
- C4 connected to ESP32 D13
PCF8575 IO Expander
- GND connected to various components' ground pins
- VDD connected to ESP32 3V3
- 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
- P16 connected to Buzzer PIN
- P15 connected to Resistor pin1 (c60e4e55-f07d-4f5b-a589-50d1d30bb6c8)
- P14 connected to Resistor pin1 (06a63150-f12c-400c-b5b5-1ebe375c9c1a)
RFID-RC522
- VCC (3.3V) connected to ESP32 3V3
- RST connected to ESP32 D4
- GND connected to various components' ground pins
- SCK connected to ESP32 D34
- MISO connected to ESP32 D2
- MOSI connected to ESP32 D15
- SDA connected to ESP32 D5
Buzzer
- PIN connected to PCF8575 IO Expander P16
- GND connected to various components' ground pins
LED: Two Pin (green)
- cathode connected to various components' ground pins
- anode connected to Resistor pin2 (c60e4e55-f07d-4f5b-a589-50d1d30bb6c8)
LED: Two Pin (red)
- cathode connected to various components' ground pins
- anode connected to Resistor pin2 (06a63150-f12c-400c-b5b5-1ebe375c9c1a)
Resistor (220 Ohms)
- pin1 (c60e4e55-f07d-4f5b-a589-50d1d30bb6c8) connected to PCF8575 IO Expander P15
- pin2 (c60e4e55-f07d-4f5b-a589-50d1d30bb6c8) connected to LED: Two Pin (green) anode
- pin1 (06a63150-f12c-400c-b5b5-1ebe375c9c1a) connected to PCF8575 IO Expander P14
- pin2 (06a63150-f12c-400c-b5b5-1ebe375c9c1a) connected to LED: Two Pin (red) anode
KY-019 Relay Module 1 Channel
- S connected to ESP32 D19
- 5V connected to Buck Converter OUT+
- GND connected to various components' ground pins
- COM connected to Buck Converter IN+
- NO connected to Electric Lock VCC
Solar Panel
- connected to Diode anode (dd431ab6-f1af-4ad8-be98-45ac2d621f73)
- 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 Diode cathode (dd431ab6-f1af-4ad8-be98-45ac2d621f73)
- Solar Cell - connected to Solar Panel -
- Battery + connected to Diode anode (2b0e02dd-8eca-4f42-a42d-fd9560e5dd09)
- Battery - connected to UPS Battery GND