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

How to Use CT PZEM004T: Examples, Pinouts, and Specs

Image of CT PZEM004T
Cirkit Designer LogoDesign with CT PZEM004T in Cirkit Designer

Introduction

The CT PZEM004T is a multifunctional energy meter designed to measure key electrical parameters such as voltage, current, power, energy, frequency, and power factor. It is commonly used in conjunction with a current transformer (CT) to monitor AC electrical systems. This component is ideal for applications requiring real-time energy monitoring, such as home automation, industrial energy management, and renewable energy systems.

Explore Projects Built with CT PZEM004T

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
ESP32-Based Smart Environmental Monitoring System with Relay Control
Image of SOCOTECO: A project utilizing CT PZEM004T in a practical application
This is a smart environmental monitoring and control system featuring an ESP32 microcontroller interfaced with a PZEM004T for power monitoring, relay modules for actuating bulbs and a fan, and an LCD for user interface. It includes flame, gas, and vibration sensors for safety monitoring purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Controlled AC Lighting System with Power Monitoring
Image of Smart Energy Meter: A project utilizing CT PZEM004T in a practical application
This circuit features an ESP32 microcontroller interfaced with a PZEM004T power monitoring module and a 4-channel relay module controlling multiple AC LED bulbs. The ESP32 uses GPIO pins to control the relays, which in turn switch the LED bulbs on and off. The PZEM004T is connected to the ESP32 for communication and to a current sensor for monitoring power consumption of the connected load through the relay contacts.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Smart Power Monitoring and Control System with Wi-Fi Connectivity
Image of SIM: A project utilizing CT PZEM004T in a practical application
This circuit is a smart power monitoring and control system using an ESP32 microcontroller. It features multiple sensors and components, including PZEM-004T AC modules for voltage and current measurement, DS18B20 temperature sensors, an LCD for display, and solid-state relays for controlling power outlets. The system is integrated with Blynk for remote monitoring and control, and includes pushbuttons for local interaction.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32 and PZEM004T-Based Smart Light Control with Current Sensing
Image of Smart Energy Meter: A project utilizing CT PZEM004T in a practical application
This circuit is designed for monitoring and controlling AC loads using an ESP32 microcontroller. It includes a PZEM004T module for measuring voltage, current, and power, and a 4-channel relay module to switch three LED bulbs. The ESP32 communicates with the PZEM004T via UART and controls the relays to manage the connected loads.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with CT PZEM004T

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of SOCOTECO: A project utilizing CT PZEM004T in a practical application
ESP32-Based Smart Environmental Monitoring System with Relay Control
This is a smart environmental monitoring and control system featuring an ESP32 microcontroller interfaced with a PZEM004T for power monitoring, relay modules for actuating bulbs and a fan, and an LCD for user interface. It includes flame, gas, and vibration sensors for safety monitoring purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Smart Energy Meter: A project utilizing CT PZEM004T in a practical application
ESP32-Controlled AC Lighting System with Power Monitoring
This circuit features an ESP32 microcontroller interfaced with a PZEM004T power monitoring module and a 4-channel relay module controlling multiple AC LED bulbs. The ESP32 uses GPIO pins to control the relays, which in turn switch the LED bulbs on and off. The PZEM004T is connected to the ESP32 for communication and to a current sensor for monitoring power consumption of the connected load through the relay contacts.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of SIM: A project utilizing CT PZEM004T in a practical application
ESP32-Based Smart Power Monitoring and Control System with Wi-Fi Connectivity
This circuit is a smart power monitoring and control system using an ESP32 microcontroller. It features multiple sensors and components, including PZEM-004T AC modules for voltage and current measurement, DS18B20 temperature sensors, an LCD for display, and solid-state relays for controlling power outlets. The system is integrated with Blynk for remote monitoring and control, and includes pushbuttons for local interaction.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Smart Energy Meter: A project utilizing CT PZEM004T in a practical application
ESP32 and PZEM004T-Based Smart Light Control with Current Sensing
This circuit is designed for monitoring and controlling AC loads using an ESP32 microcontroller. It includes a PZEM004T module for measuring voltage, current, and power, and a 4-channel relay module to switch three LED bulbs. The ESP32 communicates with the PZEM004T via UART and controls the relays to manage the connected loads.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications:

  • Home energy monitoring systems
  • Industrial equipment energy analysis
  • Renewable energy systems (e.g., solar inverters)
  • Smart grid and IoT-based energy management
  • Power consumption tracking for appliances

Technical Specifications

The CT PZEM004T is a compact and efficient energy meter with the following key specifications:

Parameter Specification
Voltage Range 80V - 260V AC
Current Range 0A - 100A (with external CT)
Power Range 0W - 22kW
Energy Range 0kWh - 9999kWh
Frequency Range 45Hz - 65Hz
Power Factor Range 0.00 - 1.00
Communication Protocol Modbus RTU (RS485)
Baud Rate 9600 bps
Operating Temperature -10°C to 60°C
Dimensions 71mm x 43mm x 25mm
Power Consumption < 1W

Pin Configuration and Descriptions

The CT PZEM004T module has a simple pinout for easy integration into circuits:

Pin Name Description
1 VCC Power supply input (5V DC)
2 GND Ground connection
3 TX UART Transmit pin for data communication
4 RX UART Receive pin for data communication
5 RS485-A RS485 communication line A
6 RS485-B RS485 communication line B

Usage Instructions

How to Use the CT PZEM004T in a Circuit

  1. Power Supply: Connect the VCC pin to a 5V DC power source and the GND pin to ground.
  2. Current Transformer (CT) Connection: Attach the external CT to the AC line you wish to monitor. Ensure the CT is properly oriented to measure current flow.
  3. Voltage Measurement: Connect the AC voltage input terminals of the PZEM004T to the live and neutral wires of the AC system.
  4. Communication: Use the TX and RX pins for UART communication or RS485-A and RS485-B for Modbus RTU communication. Ensure proper termination for RS485 lines.
  5. Data Reading: Use a microcontroller (e.g., Arduino UNO) or a PC with an RS485-to-USB converter to read data from the module.

Important Considerations and Best Practices

  • Safety First: Always handle AC connections with care. Ensure the circuit is powered off during installation.
  • CT Orientation: The current transformer must be installed in the correct direction to ensure accurate readings.
  • Isolation: Use proper electrical isolation when interfacing with high-voltage systems.
  • Communication Protocol: Configure the baud rate and Modbus address correctly to avoid communication errors.
  • Calibration: Verify the accuracy of the module by comparing its readings with a calibrated energy meter.

Example: Using CT PZEM004T with Arduino UNO

Below is an example Arduino sketch to read data from the CT PZEM004T using UART communication:

#include <SoftwareSerial.h>

// Define RX and TX pins for SoftwareSerial
SoftwareSerial pzemSerial(10, 11); // RX = Pin 10, TX = Pin 11

// Include PZEM004T library (install via Arduino Library Manager)
#include <PZEM004Tv30.h>

// Initialize PZEM004T object
PZEM004Tv30 pzem(&pzemSerial);

void setup() {
  Serial.begin(9600); // Initialize Serial Monitor
  pzemSerial.begin(9600); // Initialize PZEM communication
  Serial.println("PZEM004T Energy Meter Example");
}

void loop() {
  // Read voltage
  float voltage = pzem.voltage();
  if (!isnan(voltage)) {
    Serial.print("Voltage: ");
    Serial.print(voltage);
    Serial.println(" V");
  } else {
    Serial.println("Error reading voltage!");
  }

  // Read current
  float current = pzem.current();
  if (!isnan(current)) {
    Serial.print("Current: ");
    Serial.print(current);
    Serial.println(" A");
  } else {
    Serial.println("Error reading current!");
  }

  // Read power
  float power = pzem.power();
  if (!isnan(power)) {
    Serial.print("Power: ");
    Serial.print(power);
    Serial.println(" W");
  } else {
    Serial.println("Error reading power!");
  }

  // Read energy
  float energy = pzem.energy();
  if (!isnan(energy)) {
    Serial.print("Energy: ");
    Serial.print(energy);
    Serial.println(" kWh");
  } else {
    Serial.println("Error reading energy!");
  }

  // Wait 1 second before next reading
  delay(1000);
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Data Output:

    • Ensure the module is powered correctly (5V DC to VCC and GND).
    • Verify the UART or RS485 connections are secure and correctly configured.
    • Check the baud rate (default is 9600 bps) and Modbus address.
  2. Incorrect Readings:

    • Verify the CT is installed in the correct orientation.
    • Ensure the voltage input terminals are securely connected to the AC system.
    • Check for electrical noise or interference in the system.
  3. Communication Errors:

    • Ensure proper termination resistors are used for RS485 communication.
    • Verify the TX and RX pins are correctly connected to the microcontroller.

FAQs

Q: Can the CT PZEM004T measure DC systems?
A: No, the CT PZEM004T is designed for AC systems only.

Q: What is the maximum current it can measure?
A: The module can measure up to 100A when used with the appropriate current transformer.

Q: Can I use multiple PZEM004T modules in the same system?
A: Yes, but each module must have a unique Modbus address to avoid communication conflicts.

Q: How do I reset the energy counter?
A: The energy counter can be reset via a Modbus command. Refer to the module's datasheet for details.

Q: Is the module compatible with 3-phase systems?
A: The CT PZEM004T is designed for single-phase systems. For 3-phase systems, multiple modules can be used, one for each phase.