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, manufactured by Peacefair, is a multifunctional energy monitoring module designed for AC circuits. It is capable of measuring key electrical parameters such as voltage, current, power, energy, and frequency. The module communicates via UART (Universal Asynchronous Receiver-Transmitter), making it easy to interface with microcontrollers, such as Arduino, Raspberry Pi, and other embedded systems.

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

Common Applications and Use Cases

  • Home energy monitoring systems
  • Industrial power consumption analysis
  • Smart energy meters
  • Renewable energy systems (e.g., solar or wind power monitoring)
  • IoT-based energy management solutions

Technical Specifications

The following table outlines the key technical specifications of the PZEM-004T V3:

Parameter Specification
Operating Voltage 5V DC
Measurement Voltage 80V - 260V AC
Measurement Current 0 - 100A (with external current transformer)
Power Measurement 0 - 22kW
Energy Measurement 0 - 9999 kWh
Frequency Range 45Hz - 65Hz
Communication Protocol UART (9600 baud rate, 8N1 format)
Accuracy ±0.5%
Dimensions 48mm x 24mm x 25mm

Pin Configuration and Descriptions

The PZEM-004T V3 has a 4-pin interface for communication and power, as well as terminals for AC input and the current transformer (CT). The pin configuration is as follows:

UART Interface

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

AC Input and Current Transformer

Terminal Name Description
L Line (Live) Connect to the live wire of the AC circuit
N Neutral Connect to the neutral wire of the AC circuit
CT Current Transformer Connect to the external CT clamp

Usage Instructions

How to Use the PZEM-004T V3 in a Circuit

  1. Power the Module: Connect the VCC and GND pins to a 5V DC power source.
  2. Connect the AC Circuit:
    • Attach the live (L) and neutral (N) wires of the AC circuit to the respective terminals on the module.
    • Place the external current transformer (CT) around the live wire of the AC circuit.
  3. Establish UART Communication:
    • Connect the RX pin of the PZEM-004T V3 to the TX pin of your microcontroller.
    • Connect the TX pin of the PZEM-004T V3 to the RX pin of your microcontroller.
  4. Configure the Microcontroller:
    • Use a UART library or serial communication functions to send and receive data from the module.
    • Ensure the UART settings are configured to 9600 baud rate, 8 data bits, no parity, and 1 stop bit (8N1).

Important Considerations and Best Practices

  • Safety First: Always handle AC circuits with care. Ensure the circuit is powered off before making connections.
  • Current Transformer Placement: The CT clamp must be placed around the live wire only, not both live and neutral wires.
  • Voltage Range: Ensure the AC voltage is within the module's measurement range (80V - 260V AC).
  • Isolation: Use proper electrical isolation techniques when interfacing the module with microcontrollers to prevent damage.

Example Code for Arduino UNO

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

#include <SoftwareSerial.h>

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

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

  Serial.println("PZEM-004T V3 Energy Monitor");
}

void loop() {
  // Request data from the PZEM-004T V3
  byte request[] = {0xB0, 0xC0, 0xA8, 0x01, 0x01}; // Example request packet
  pzemSerial.write(request, sizeof(request));

  delay(100); // Wait for the module to respond

  // Read response from the module
  byte response[7];
  int bytesRead = pzemSerial.readBytes(response, 7);

  if (bytesRead == 7) {
    // Parse the response (example: voltage, current, power, etc.)
    float voltage = (response[1] << 8 | response[2]) / 10.0;
    float current = (response[3] << 8 | response[4]) / 100.0;
    float power = (response[5] << 8 | response[6]) / 10.0;

    // Print the values to the Serial Monitor
    Serial.print("Voltage: ");
    Serial.print(voltage);
    Serial.println(" V");

    Serial.print("Current: ");
    Serial.print(current);
    Serial.println(" A");

    Serial.print("Power: ");
    Serial.print(power);
    Serial.println(" W");
  } else {
    Serial.println("Failed to read data from PZEM-004T V3");
  }

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

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Data Received from the Module:

    • Ensure the RX and TX pins are correctly connected (crossed: RX to TX, TX to RX).
    • Verify the UART settings (9600 baud rate, 8N1 format).
    • Check the power supply to the module (5V DC).
  2. Incorrect Measurements:

    • Ensure the CT clamp is properly placed around the live wire only.
    • Verify that the AC voltage is within the specified range (80V - 260V AC).
  3. Module Not Responding:

    • Check the wiring connections for loose or incorrect connections.
    • Ensure the microcontroller's UART pins are not being used by other peripherals.

FAQs

Q: Can the PZEM-004T V3 measure DC circuits?
A: No, the module is designed specifically for AC circuits and cannot measure DC voltage or current.

Q: Can I use the module with a 3.3V microcontroller?
A: Yes, but you may need a level shifter to safely interface the 5V UART signals with the 3.3V logic levels.

Q: How do I reset the energy counter?
A: The energy counter can be reset by sending a specific command via UART. Refer to the module's communication protocol documentation for details.