Circuit Documentation
Summary
This circuit integrates various components including an ESP32 microcontroller, sensors (PIR, RFID-RC522, Laser Receiver Module), input devices (4X4 Membrane Matrix Keypad), output devices (LCD Display 16x2, KY-008 Laser Emitter), a camera module (ESP32 - CAM), and an I/O expander (PCF8575). The circuit is designed to interact with the environment through sensors, receive user input via the keypad, display information on the LCD, and communicate with peripheral devices using the ESP32 microcontroller. The ESP32 - CAM provides image capture capabilities, and the I/O expander increases the number of available I/O pins.
Component List
ESP32 (30 pin)
A microcontroller with Wi-Fi and Bluetooth capabilities, featuring a wide range of GPIO pins for interfacing with various peripherals.
PIR Sensor
A motion sensor that detects changes in infrared radiation levels, commonly used for motion detection applications.
RFID-RC522
An RFID reader/writer module for contactless communication using radio frequency identification.
4X4 Membrane Matrix Keypad
An input device with 16 buttons arranged in a 4x4 matrix, used for user input.
ESP32 - CAM
A small camera module with Wi-Fi capabilities, suitable for surveillance and image processing applications.
PCF8575 IO Expander
An I2C bus expander that provides additional digital I/O pins for microcontrollers with limited GPIO.
KY-008 Laser Emitter
A module that emits a laser beam, often used in electronic projects for object detection or distance measurement.
Laser Receiver Module
A sensor that detects laser light, typically used in conjunction with a laser emitter for various sensing applications.
LCD Display 16x2
A liquid crystal display that can show 16 characters per line on 2 lines, used for displaying text or simple graphics.
Resistor
A passive two-terminal electrical component that implements electrical resistance as a circuit element.
Wiring Details
ESP32 (30 pin)
- D35 connected to Laser Receiver Module OUTPUT
- D32 connected to 4X4 Membrane Matrix Keypad C4
- D33 connected to 4X4 Membrane Matrix Keypad C3
- D25 connected to 4X4 Membrane Matrix Keypad C2
- D26 connected to 4X4 Membrane Matrix Keypad C1
- D27 connected to 4X4 Membrane Matrix Keypad R4
- D14 connected to 4X4 Membrane Matrix Keypad R3 and RFID-RC522 SCK
- D12 connected to 4X4 Membrane Matrix Keypad R2
- D13 connected to 4X4 Membrane Matrix Keypad R1 and PIR Sensor SIG
- GND connected to multiple components (common ground)
- Vin connected to KY-008 Laser Emitter 5v, Laser Receiver Module VCC, PIR Sensor VDD
- D23 connected to LCD Display 16x2 RS
- D22 connected to PCF8575 IO Expander SCL and LCD Display 16x2 E
- TX0 connected to ESP32 - CAM VOR
- RX0 connected to ESP32 - CAM VOT
- D21 connected to PCF8575 IO Expander SDA and LCD Display 16x2 DB4
- D19 connected to LCD Display 16x2 DB5
- D18 connected to LCD Display 16x2 DB6
- D5 connected to LCD Display 16x2 DB7 and RFID-RC522 SDA
- D4 connected to RFID-RC522 RST
- D2 connected to RFID-RC522 MISO
- D15 connected to RFID-RC522 MOSI
- 3V3 connected to Resistor pin1, PCF8575 IO Expander VCC, LCD Display 16x2 VDD, RFID-RC522 VCC (3.3V)
PIR Sensor
- SIG connected to 4X4 Membrane Matrix Keypad R1 and ESP32 (30 pin) D13
- GND connected to common ground
- VDD connected to ESP32 (30 pin) Vin
RFID-RC522
- SCK connected to 4X4 Membrane Matrix Keypad R3 and ESP32 (30 pin) D14
- RST connected to ESP32 (30 pin) D4
- GND connected to common ground
- IRQ not connected
- MISO connected to ESP32 (30 pin) D2
- MOSI connected to ESP32 (30 pin) D15
- SDA connected to ESP32 (30 pin) D5
- VCC (3.3V) connected to ESP32 (30 pin) 3V3
4X4 Membrane Matrix Keypad
- C4 connected to ESP32 (30 pin) D32
- C3 connected to ESP32 (30 pin) D33
- C2 connected to ESP32 (30 pin) D25
- C1 connected to ESP32 (30 pin) D26
- R4 connected to ESP32 (30 pin) D27
- R3 connected to ESP32 (30 pin) D14
- R2 connected to ESP32 (30 pin) D12
- R1 connected to ESP32 (30 pin) D13 and PIR Sensor SIG
ESP32 - CAM
- VOR connected to ESP32 (30 pin) TX0
- VOT connected to ESP32 (30 pin) RX0
- GND connected to common ground
- IO12 connected to PCF8575 IO Expander P00
- IO13 connected to PCF8575 IO Expander P01
- 3V3 connected to PCF8575 IO Expander VDD
PCF8575 IO Expander
- SCL connected to ESP32 (30 pin) D22
- SDA connected to ESP32 (30 pin) D21
- GND connected to common ground
- VCC connected to ESP32 (30 pin) 3V3
- P00 connected to ESP32 - CAM IO12
- P01 connected to ESP32 - CAM IO13
- P02 connected to KY-008 Laser Emitter SIG
KY-008 Laser Emitter
- SIG connected to PCF8575 IO Expander P02
- 5v connected to ESP32 (30 pin) Vin
- GND connected to common ground
Laser Receiver Module
- OUTPUT connected to ESP32 (30 pin) D35
- VCC connected to ESP32 (30 pin) Vin
- GROUND connected to common ground
LCD Display 16x2
- LEDK connected to common ground
- LEDA connected to Resistor pin2
- DB7 connected to ESP32 (30 pin) D5
- DB6 connected to ESP32 (30 pin) D18
- DB5 connected to ESP32 (30 pin) D19
- DB4 connected to ESP32 (30 pin) D21
- E connected to ESP32 (30 pin) D22
- RW connected to common ground
- RS connected to ESP32 (30 pin) D23
- VO not connected
- VDD connected to ESP32 (30 pin) 3V3
- VSS connected to common ground
Resistor
- pin1 connected to ESP32 (30 pin) 3V3
- pin2 connected to LCD Display 16x2 LEDA
Documented Code
No code has been provided for the microcontrollers in the circuit. Therefore, this section is not applicable for the current documentation.