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

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

Image of PZEM-004T 100ADesign with PZEM-004T 100A in Cirkit Designer

Introduction

The PZEM-004T 100A is a multifunctional energy meter designed for monitoring and managing electrical parameters in AC circuits. It measures key metrics such as voltage, current, power, energy, and frequency, providing real-time data through a serial communication interface. With its ability to handle up to 100A of current, this module is ideal for applications requiring precise energy monitoring.

Explore Projects Built with PZEM-004T 100A

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 100A 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 100A 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

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

Parameter Specification
Voltage Range 80V - 260V AC
Current Range 0A - 100A (with external CT sensor)
Power Range 0W - 22kW
Energy Range 0kWh - 9999kWh
Frequency Range 45Hz - 65Hz
Communication Interface TTL Serial (3.3V/5V compatible)
Baud Rate 9600 bps
Accuracy ±0.5%
Operating Temperature -10°C to 60°C
Dimensions 48mm x 29mm x 22mm

Pin Configuration

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

Pin Name Description
1 VCC Power supply input (5V DC)
2 GND Ground connection
3 RX Serial data receive pin (connect to TX of MCU)
4 TX Serial data transmit pin (connect to RX of MCU)

Additionally, the module includes an external current transformer (CT) sensor for current measurement.

Usage Instructions

Connecting the PZEM-004T 100A

  1. Power Supply: Connect the VCC pin to a 5V DC power source and the GND pin to ground.
  2. Serial 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 (CT): Place the CT sensor around the live wire of the AC circuit you want to monitor. Ensure the arrow on the CT sensor aligns with the current flow direction.
  4. Voltage Measurement: Connect the AC voltage input terminals of the module to the live and neutral wires of the circuit.

Important Considerations

Example Code for Arduino UNO

Below is an example Arduino sketch to interface with the PZEM-004T 100A module:

#include <SoftwareSerial.h>

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

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

// Function to send a command to the PZEM-004T
void sendCommand(byte *command, int length) {
  for (int i = 0; i < length; i++) {
    pzemSerial.write(command[i]);
  }
}

void setup() {
  Serial.begin(9600);          // Initialize Serial Monitor
  pzemSerial.begin(9600);      // Initialize SoftwareSerial for PZEM-004T
  Serial.println("PZEM-004T Test");
}

void loop() {
  sendCommand(readCommand, sizeof(readCommand)); // Send read command
  delay(100); // Wait for response

  // Check if data is available from the PZEM-004T
  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();
  }

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

Notes on the Code

Troubleshooting and FAQs

Common Issues

  1. No Data Received

    • Ensure the RX and TX pins are correctly connected between the module and the microcontroller.
    • Verify the baud rate is set to 9600 bps in your code.
    • Check the power supply to the module (5V DC).
  2. Inaccurate Readings

    • Confirm the CT sensor is properly clamped around the live wire.
    • Ensure the CT sensor is not damaged or loosely connected.
    • Verify the AC voltage input terminals are securely connected.
  3. Communication Errors

    • Check for loose or incorrect wiring between the module and the microcontroller.
    • Ensure the microcontroller and module share a common ground.

FAQs

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

Q: Can I extend the CT sensor cable?
A: Yes, but ensure the extension does not introduce significant resistance or noise, which could affect accuracy.

Q: Is the module compatible with 3.3V microcontrollers?
A: Yes, the TTL serial interface is compatible with both 3.3V and 5V logic levels.

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

By following this documentation, you can effectively integrate the PZEM-004T 100A into your projects for accurate energy monitoring and management.