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

How to Use PZEM-004T V3: Examples, Pinouts, and Specs

Image of PZEM-004T V3
Cirkit Designer LogoDesign with PZEM-004T V3 in Cirkit Designer

Introduction

The PZEM-004T V3 is a multifunctional energy monitoring module manufactured by Peacefair. It is designed to measure key electrical parameters in AC circuits, including voltage, current, power, energy, frequency, and power factor. The module communicates via UART (Universal Asynchronous Receiver-Transmitter), making it easy to integrate with microcontrollers and other devices for real-time energy monitoring.

This module is widely used in energy management systems, home automation, industrial monitoring, and other applications where accurate measurement of electrical parameters is essential.

Explore Projects Built with PZEM-004T V3

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 PZEM-004T V3 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-Based Smart Power Monitoring and Control System with Wi-Fi Connectivity
Image of SIM: A project utilizing PZEM-004T V3 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
ESP8266 NodeMCU Based Energy Monitoring Display with PZEM004T and OLED Screen
Image of Energy Consumption Monitoring: A project utilizing PZEM-004T V3 in a practical application
This circuit is designed to monitor electrical parameters using the PZEM004t sensor and display the data on a 0.96" OLED screen. The esp8266 nodemcu serves as the central controller, interfacing with the PZEM004t sensor via serial communication (RX/TX) and with the OLED display through an I2C connection (SCK/SDA). A 5V adapter provides power to the circuit, with the nodemcu regulating down to 3.3V for the OLED display and the PZEM004t sensor receiving 5V directly.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Controlled AC Lighting System with Power Monitoring
Image of Smart Energy Meter: A project utilizing PZEM-004T V3 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

Explore Projects Built with PZEM-004T V3

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 PZEM-004T V3 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 SIM: A project utilizing PZEM-004T V3 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 Energy Consumption Monitoring: A project utilizing PZEM-004T V3 in a practical application
ESP8266 NodeMCU Based Energy Monitoring Display with PZEM004T and OLED Screen
This circuit is designed to monitor electrical parameters using the PZEM004t sensor and display the data on a 0.96" OLED screen. The esp8266 nodemcu serves as the central controller, interfacing with the PZEM004t sensor via serial communication (RX/TX) and with the OLED display through an I2C connection (SCK/SDA). A 5V adapter provides power to the circuit, with the nodemcu regulating down to 3.3V for the OLED display and the PZEM004t sensor receiving 5V directly.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Smart Energy Meter: A project utilizing PZEM-004T V3 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

Technical Specifications

Below are the key technical details of the PZEM-004T V3 module:

General Specifications

  • Input Voltage Range: 80V to 260V AC
  • Current Measurement Range: 0A to 100A (with external current transformer)
  • Power Measurement Range: 0W to 22kW
  • Energy Measurement Range: 0kWh to 9999kWh
  • Frequency Range: 45Hz to 65Hz
  • Power Factor Range: 0.00 to 1.00
  • Communication Interface: UART (9600 baud rate, 8N1 format)
  • Operating Temperature: -10°C to 60°C
  • Dimensions: 48mm x 23mm x 22mm

Pin Configuration

The PZEM-004T V3 module has a 4-pin interface for power and communication. The pin configuration is as follows:

Pin Number Pin Name Description
1 VCC Power supply input (5V DC)
2 GND Ground
3 RX UART Receive (connect to TX of MCU)
4 TX UART Transmit (connect to RX of MCU)

External Current Transformer (CT)

The module comes with an external current transformer (CT) for current measurement. The CT has a maximum current rating of 100A and is connected to the module via a dedicated port.

Usage Instructions

Connecting the PZEM-004T V3

  1. Power Supply: Connect the VCC pin to a 5V DC power source and the GND pin to ground.
  2. UART Communication: Connect the RX pin of the module to the TX pin of your microcontroller (e.g., Arduino UNO) and the TX pin of the module to the RX pin of the microcontroller.
  3. Current Transformer: Attach the external CT to the load wire you want to monitor. Ensure the CT is properly oriented as indicated on the device.
  4. AC Voltage Input: Connect the AC voltage input terminals of the module to the live and neutral wires of the circuit you want to monitor.

Important Considerations

  • Ensure the module is powered with a stable 5V DC supply.
  • The module is designed for AC circuits only and should not be used with DC circuits.
  • Avoid exceeding the maximum current rating of the CT (100A) to prevent damage.
  • Use proper isolation and safety precautions when working with high-voltage AC circuits.

Example: Using PZEM-004T V3 with Arduino UNO

Below is an example Arduino sketch to read data from the PZEM-004T V3 module using the SoftwareSerial library:

#include <SoftwareSerial.h>

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

// PZEM-004T V3 communication commands
byte readCommand[] = {0xB0, 0xC0, 0xA8, 0x01, 0x01, 0x00, 0x1A};

void setup() {
  Serial.begin(9600); // Initialize Serial Monitor
  pzemSerial.begin(9600); // Initialize PZEM communication
  Serial.println("PZEM-004T V3 Energy Monitor");
}

void loop() {
  // Send read command to PZEM-004T V3
  pzemSerial.write(readCommand, sizeof(readCommand));
  delay(100); // Wait for response

  // Check if data is available
  if (pzemSerial.available()) {
    Serial.print("Data received: ");
    while (pzemSerial.available()) {
      byte data = pzemSerial.read();
      Serial.print(data, HEX); // Print data in hexadecimal format
      Serial.print(" ");
    }
    Serial.println();
  } else {
    Serial.println("No data received.");
  }

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

Notes on the Code

  • The readCommand array contains the command to request data from the PZEM-004T V3 module.
  • The response from the module will include voltage, current, power, and other parameters in a specific format. You will need to parse the response to extract meaningful data.

Troubleshooting and FAQs

Common Issues

  1. No Data Received

    • Cause: Incorrect wiring or baud rate mismatch.
    • Solution: Verify the RX and TX connections. Ensure the baud rate is set to 9600.
  2. Incorrect Measurements

    • Cause: Improper connection of the current transformer (CT).
    • Solution: Ensure the CT is properly clamped around the load wire and oriented correctly.
  3. Module Not Powering On

    • Cause: Insufficient or unstable power supply.
    • Solution: Use a stable 5V DC power source with sufficient current capacity.
  4. Communication Errors

    • Cause: Electrical noise or long UART cable.
    • Solution: Use shorter cables and ensure proper grounding.

FAQs

  1. Can the PZEM-004T V3 measure DC circuits?

    • No, the module is designed for AC circuits only.
  2. What is the maximum current the module can measure?

    • The module can measure up to 100A using the included current transformer.
  3. Can I use multiple PZEM-004T V3 modules with a single microcontroller?

    • Yes, you can use multiple modules by assigning unique addresses to each module and connecting them to different UART ports or using a multiplexer.
  4. Is the module safe to use with high-voltage circuits?

    • Yes, but proper isolation and safety precautions must be followed when working with high-voltage AC circuits.

By following this documentation, you can effectively integrate the PZEM-004T V3 module into your energy monitoring projects.