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

How to Use PZEM-016: Examples, Pinouts, and Specs

Image of PZEM-016Design with PZEM-016 in Cirkit Designer

Introduction

The PZEM-016 is a multifunctional energy meter designed for monitoring and measuring key electrical parameters in AC circuits. Manufactured by PZEM, this device provides accurate readings of voltage, current, power, energy consumption, and frequency. It is equipped with a digital display for real-time monitoring and supports communication via Modbus RTU (RS485), making it suitable for integration into automated systems.

Explore Projects Built with PZEM-016

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-Controlled AC Lighting System with Power Monitoring: A project utilizing PZEM-016 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
Image of ESP32-Based Smart Power Monitoring and Control System with Wi-Fi Connectivity: A project utilizing PZEM-016 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 ESP8266 NodeMCU Based Energy Monitoring Display with PZEM004T and OLED Screen: A project utilizing PZEM-016 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.

Open Project in Cirkit Designer

Common Applications and Use Cases


Technical Specifications

Key Technical Details

Parameter Specification
Operating Voltage 80V - 260V AC
Measurement Voltage Range 80V - 260V AC
Current Measurement Range 0A - 100A (with external current transformer)
Power Measurement Range 0W - 22kW
Energy Measurement Range 0kWh - 9999kWh
Frequency Range 45Hz - 65Hz
Communication Protocol Modbus RTU (RS485)
Baud Rate 9600 bps
Accuracy ±0.5%
Operating Temperature -10°C to 60°C
Dimensions 96mm x 58mm x 24mm

Pin Configuration and Descriptions

The PZEM-016 has a set of terminals for power input, load connection, and RS485 communication. Below is the pin configuration:

Power and Load Terminals

Terminal Label Description
L (Line) Connect to the live wire of the AC input
N (Neutral) Connect to the neutral wire of the AC input
CT (Current Transformer) Connect to the external current transformer for current measurement

RS485 Communication Terminals

Terminal Label Description
A RS485 communication line A
B RS485 communication line B

Usage Instructions

How to Use the PZEM-016 in a Circuit

  1. Power Connection: Connect the live (L) and neutral (N) wires of the AC input to the corresponding terminals on the PZEM-016.
  2. Current Transformer (CT) Connection: Attach the external current transformer to the CT terminals. Ensure the CT is properly clamped around the live wire of the load.
  3. RS485 Communication: Connect the A and B terminals to an RS485-to-USB converter or an RS485 interface on a microcontroller for data communication.
  4. Load Connection: Connect the load to the output terminals of the PZEM-016.

Important Considerations and Best Practices

Example: Connecting PZEM-016 to Arduino UNO

The PZEM-016 can be interfaced with an Arduino UNO using an RS485-to-TTL converter. Below is an example code snippet for reading data from the PZEM-016:

#include <ModbusMaster.h>

// Create an instance of ModbusMaster
ModbusMaster node;

// Define RS485 communication pins
#define RE_DE 2  // Pin to control RS485 direction

void preTransmission() {
  digitalWrite(RE_DE, HIGH); // Enable RS485 transmission
}

void postTransmission() {
  digitalWrite(RE_DE, LOW);  // Enable RS485 reception
}

void setup() {
  Serial.begin(9600);        // Initialize serial communication
  pinMode(RE_DE, OUTPUT);    // Set RS485 control pin as output
  digitalWrite(RE_DE, LOW);  // Set RS485 to reception mode

  node.begin(1, Serial);     // Initialize Modbus communication (ID: 1)
  node.preTransmission(preTransmission);
  node.postTransmission(postTransmission);
}

void loop() {
  uint8_t result;
  uint16_t data[6];

  // Read voltage (register 0x0000)
  result = node.readInputRegisters(0x0000, 1);
  if (result == node.ku8MBSuccess) {
    Serial.print("Voltage: ");
    Serial.print(node.getResponseBuffer(0) / 10.0); // Convert to volts
    Serial.println(" V");
  }

  // Add similar code for current, power, energy, and frequency
  delay(1000); // Wait 1 second before next reading
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Data on RS485 Communication

    • Cause: Incorrect wiring or baud rate mismatch.
    • Solution: Verify the A and B connections and ensure the baud rate is set to 9600 bps.
  2. Inaccurate Measurements

    • Cause: Improper current transformer installation or incorrect wiring.
    • Solution: Ensure the CT is clamped around the live wire and the connections are secure.
  3. Device Not Powering On

    • Cause: Faulty power connection or insufficient voltage.
    • Solution: Check the live and neutral connections and ensure the input voltage is within the 80V-260V range.
  4. Intermittent Communication Failures

    • Cause: Long RS485 cable or missing termination resistors.
    • Solution: Use termination resistors (120Ω) at both ends of the RS485 bus and minimize cable length.

FAQs


This concludes the documentation for the PZEM-016 multifunctional energy meter.