Circuit Documentation
Summary of the Circuit
This circuit integrates an ESP32 microcontroller with a 4-channel 5V relay module. The ESP32 is responsible for controlling the relay module, which can switch up to four separate circuits with both normally open (NO) and normally closed (NC) connections available for each channel. The ESP32 provides the control signals to the relay module through its GPIO pins, and it is also connected to the relay module's power and ground to provide the necessary power for the relay's operation.
Component List
ESP32 (30 pin)
- Description: A microcontroller with Wi-Fi and Bluetooth capabilities, featuring a wide range of GPIO pins for interfacing with various peripherals and sensors.
- Purpose: Acts as the central processing unit of the circuit, controlling the relay module and potentially interfacing with other devices or sensors.
- 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
Relay 4 Channel 5v
- Description: A relay module with four independent relay channels, each capable of switching a separate circuit.
- Purpose: Allows the ESP32 to control high power devices or circuits that require isolation from the microcontroller.
- Pins: GND, IN1, IN2, IN3, IN4, VCC, COM1, COM2, COM3, COM4, NO1, NO2, NO3, NO4, NC1, NC2, NC3, NC4
Wiring Details
ESP32 (30 pin)
- GND connected to Relay 4 Channel 5v GND
- Vin connected to Relay 4 Channel 5v VCC
- D23 connected to Relay 4 Channel 5v IN4
- D22 connected to Relay 4 Channel 5v IN3
- D21 connected to Relay 4 Channel 5v IN2
- D19 connected to Relay 4 Channel 5v IN1
Relay 4 Channel 5v
- GND connected to ESP32 (30 pin) GND
- VCC connected to ESP32 (30 pin) Vin
- IN1 connected to ESP32 (30 pin) D19
- IN2 connected to ESP32 (30 pin) D21
- IN3 connected to ESP32 (30 pin) D22
- IN4 connected to ESP32 (30 pin) D23
- COM1, COM2, COM3, COM4 - Common pins for relay channels (not connected in this circuit)
- NO1, NO2, NO3, NO4 - Normally Open pins for relay channels (not connected in this circuit)
- NC1, NC2, NC3, NC4 - Normally Closed pins for relay channels (not connected in this circuit)
Documented Code
No code has been provided for the microcontroller. The documentation for the code would typically include a description of the functionality, setup and loop functions, and any functions or libraries used to control the relay module and other peripherals. Since no code is available, this section cannot be completed at this time.
