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

How to Use PZEM-004T V4 (10A): Examples, Pinouts, and Specs

Image of PZEM-004T V4 (10A)Design with PZEM-004T V4 (10A) in Cirkit Designer

Introduction

The PZEM-004T V4 (10A), manufactured by Peacefair (Part ID: PZEM-004T-10A), is a multifunctional energy monitoring module designed for AC circuits. It is capable of measuring key electrical parameters such as voltage, current, power, energy, frequency, and power factor. This module is widely used in applications requiring real-time energy monitoring, such as home automation, industrial equipment monitoring, and power management systems.

Explore Projects Built with PZEM-004T V4 (10A)

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 ESP32-Based Smart Power Monitoring and Control System with Wi-Fi Connectivity: A project utilizing PZEM-004T V4 (10A) 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.

Open Project in Cirkit Designer
Image of ESP32-Controlled AC Lighting System with Power Monitoring: A project utilizing PZEM-004T V4 (10A) 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.

Open Project in Cirkit Designer

Common Applications

Technical Specifications

Key Specifications

Parameter Value
Operating Voltage 80V - 260V AC
Current Measurement 0A - 10A
Power Measurement 0W - 2.3kW
Energy Measurement 0kWh - 9999kWh
Frequency Range 45Hz - 65Hz
Power Factor Range 0.00 - 1.00
Communication Interface TTL (3.3V logic level)
Baud Rate 9600 bps
Accuracy ±0.5%
Dimensions 48mm x 23mm x 15mm

Pin Configuration

The PZEM-004T V4 (10A) module has a 4-pin interface for communication and power. Below is the pin configuration:

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

Usage Instructions

Connecting the PZEM-004T V4 (10A) to a Circuit

  1. Power Supply: Connect the VCC pin to a 5V DC power source and the GND pin to ground.
  2. AC Input: Connect the AC live and neutral wires to the module's input terminals. Ensure proper insulation and safety precautions when handling AC connections.
  3. Communication: Use the RX and TX pins to interface with a microcontroller (e.g., Arduino UNO) or a UART-to-USB converter for PC communication.

Important Considerations

Example: Using PZEM-004T V4 (10A) with Arduino UNO

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

#include <SoftwareSerial.h>

// Define RX and TX pins for SoftwareSerial
#define PZEM_RX 10  // Connect to TX pin of PZEM-004T
#define PZEM_TX 11  // Connect to RX pin of PZEM-004T

SoftwareSerial pzemSerial(PZEM_RX, PZEM_TX);

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

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

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

  delay(100);  // Wait for response

  // Read response from PZEM-004T
  while (pzemSerial.available()) {
    byte response = pzemSerial.read();
    Serial.print(response, HEX);  // Print response in HEX format
    Serial.print(" ");
  }
  Serial.println();

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

Notes:

Troubleshooting and FAQs

Common Issues

  1. No Data Received:

    • Ensure the RX and TX pins are correctly connected (crossed: RX to TX and TX to RX).
    • Verify the baud rate is set to 9600 bps.
    • Check the power supply to the module (5V DC).
  2. Incorrect Readings:

    • Ensure the AC input connections are secure and properly insulated.
    • Verify that the current does not exceed the 10A limit.
    • Check for electromagnetic interference from nearby devices.
  3. Module Not Powering On:

    • Confirm the VCC pin is receiving 5V DC.
    • Check for loose or damaged wires.

FAQs

Q1: Can the PZEM-004T V4 measure DC circuits?
A1: No, the module is designed specifically for AC circuits and cannot measure DC parameters.

Q2: Is it possible to reset the energy counter?
A2: Yes, the energy counter can be reset using a specific UART command as per the module's protocol.

Q3: Can I use the module with a Raspberry Pi?
A3: Yes, the module can be interfaced with a Raspberry Pi using its UART pins. Use a logic level converter to match the 3.3V logic level of the PZEM-004T.

Q4: What is the maximum cable length for UART communication?
A4: For reliable communication, keep the UART cable length under 1 meter. Use shielded cables for longer distances.

By following this documentation, users can effectively integrate the PZEM-004T V4 (10A) module into their projects for accurate energy monitoring and management.