Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

ESP32-Based Smart Power Monitoring and Control System with Relay and Current Sensors

View and Edit Project In Cirkit DesignerImage of ESP32-Based Smart Power Monitoring and Control System with Relay and Current Sensors

Circuit Documentation

Summary

This circuit involves an ESP32 microcontroller interfacing with two current sensors and a 2-channel relay module. The circuit also includes two 120V outlets and two 220V power sources. The ESP32 reads current values from the sensors and controls the relay module to manage the power to the outlets.

Component List

  1. 2 Channel Relay Module

    • Description: A relay module with two channels, used to control high voltage devices.
    • Pins: N.O. 2, COM 2, N.C. 2, N.O. 1, COM 1, N.C. 1, pin 7, pin 8, pin 9, pin 10, pin 11, pin 12, VCC+, VCC- (GND), IN 1, IN 2
  2. Current Sensor 5A

    • Description: A sensor to measure current up to 5A.
    • Pins: 1, 2, GND, OUT, VCC
  3. Power 220V

    • Description: A 220V power source.
    • Pins: hot wire, neutral wire
  4. 120V Outlet

    • Description: A standard 120V electrical outlet.
    • Pins: AC Neutral, AC Hot, GND
  5. GND

    • Description: Ground connection.
    • Pins: GND
  6. ESP32 (30 pin)

    • Description: A 30-pin ESP32 microcontroller.
    • 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

Wiring Details

2 Channel Relay Module

Current Sensor 5A (Instance 1)

Current Sensor 5A (Instance 2)

Power 220V (Instance 1)

Power 220V (Instance 2)

120V Outlet (Instance 1)

120V Outlet (Instance 2)

GND

ESP32 (30 pin)

Code

No code provided for this circuit.


This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and code section. Each component and its connections are clearly described to ensure proper understanding and implementation.