Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Smart Energy Monitoring and Control System with Wi-Fi Connectivity and Visual Feedback

Image of Smart Energy Monitoring and Control System with Wi-Fi Connectivity and Visual Feedback

Circuit Documentation

Summary

The circuit in question appears to be a control and monitoring system that utilizes an ESP32 microcontroller to interface with various components including a relay module, a DC-DC step-down converter, a power monitoring module (PZEM004t), a NeoPixel LED ring, a TFT display, and a circuit breaker. The ESP32 controls the relay, communicates with the PZEM004t for power monitoring, drives the TFT display, and controls the NeoPixel ring. The circuit is powered by a DC power source and also includes an AC supply connected through a circuit breaker.

Component List

5v 2-Relay JD-VCC

  • Description: A relay module with two relays that can be controlled independently.
  • Pins: JD-VCC, VCC, GND, IN1, IN2, NO, COM, NC

XL4015 5A DC Buck Step-down

  • Description: A DC-DC step-down (buck) converter capable of handling up to 5A of current.
  • Pins: Output +, Output -, Input +, Input -

DC Power Source

  • Description: A source of DC power for the circuit.
  • Pins: Ground, Positive

Ac Supply

  • Description: An AC power supply.
  • Pins: +ve, -ve

Adafruit 12 NeoPixel Ring

  • Description: A ring of 12 individually addressable RGB LEDs.
  • Pins: OUT, VDD, IN, GND

PZEM004t

  • Description: A power monitoring module capable of measuring voltage, current, power, and energy.
  • Pins: VCC, RX, TX, GND, IN, OUT

Socket

  • Description: An electrical socket for connecting devices to AC power.
  • Pins: Earth, Life, Neutral

ST7735 128x128 1.44 TFT I2C Color

  • Description: A small TFT display with a resolution of 128x128 pixels.
  • Pins: BL, C5, DC, RES, SDA, SCL, GND, VCC

ESP32 (30 pin)

  • Description: A microcontroller with Wi-Fi and Bluetooth capabilities.
  • 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

Circuit Breaker

  • Description: A safety device designed to protect an electrical circuit from damage caused by excess current.
  • Pins: -, +

Wiring Details

5v 2-Relay JD-VCC

  • VCC: Connected to ESP32 Vin
  • GND: Connected to ESP32 GND
  • IN1: Connected to ESP32 D14
  • IN2: Connected to ESP32 D27
  • COM: Connected to PZEM004t IN
  • NO: Connected to socket life

XL4015 5A DC Buck Step-down

  • Output +: Connected to ESP32 Vin
  • Output -: Connected to ESP32 GND
  • Input +: Connected to DC Power Source Positive
  • Input -: Connected to DC Power Source Ground

DC Power Source

  • Positive: Connected to XL4015 Input +
  • Ground: Connected to XL4015 Input -

Ac Supply

  • +ve: Connected to Circuit Breaker +
  • -ve: Connected to Circuit Breaker -

Adafruit 12 NeoPixel Ring

  • IN: Connected to PZEM004t IN
  • OUT: Connected to PZEM004t OUT
  • VDD: Not connected in the provided net list
  • GND: Not connected in the provided net list

PZEM004t

  • VCC: Connected to ESP32 Vin
  • GND: Connected to ESP32 GND
  • RX: Connected to ESP32 TX2
  • TX: Connected to ESP32 RX2
  • IN: Connected to Circuit Breaker + and Adafruit 12 NeoPixel Ring IN
  • OUT: Connected to socket neutral and Adafruit 12 NeoPixel Ring OUT

Socket

  • Neutral: Connected to PZEM004t OUT
  • Life: Connected to 5v 2-Relay JD-VCC NO
  • Earth: Not connected in the provided net list

ST7735 128x128 1.44 TFT I2C Color

  • BL: Connected to ESP32 3V3
  • C5: Connected to ESP32 D5
  • DC: Connected to ESP32 D2
  • RES: Connected to ESP32 D4
  • SDA: Connected to ESP32 D23
  • SCL: Connected to ESP32 D18
  • GND: Connected to ESP32 GND
  • VCC: Connected to ESP32 3V3

ESP32 (30 pin)

  • Vin: Connected to XL4015 Output + and 5v 2-Relay JD-VCC VCC
  • GND: Connected to XL4015 Output -, 5v 2-Relay JD-VCC GND, PZEM004t GND, and ST7735 GND
  • D27: Connected to 5v 2-Relay JD-VCC IN2
  • D14: Connected to 5v 2-Relay JD-VCC IN1
  • D23: Connected to ST7735 SDA
  • D18: Connected to ST7735 SCL
  • D5: Connected to ST7735 C5
  • TX2: Connected to PZEM004t RX
  • RX2: Connected to PZEM004t TX
  • D4: Connected to ST7735 RES
  • D2: Connected to ST7735 DC
  • 3V3: Connected to ST7735 BL and VCC

Circuit Breaker

  • +: Connected to Ac Supply +ve and PZEM004t IN
  • -: Connected to Ac Supply -ve and PZEM004t OUT

Documented Code

No code was provided for the microcontroller(s) in the circuit. Therefore, this section is not applicable.