The CT PZEM-004T 100A is a multifunctional energy meter designed for AC systems. It is capable of measuring key electrical parameters such as voltage, current, power, energy, and frequency. With a maximum current handling capacity of 100A, this device is ideal for monitoring and managing electrical consumption in residential, commercial, and industrial applications. Its compact design and real-time data output make it a popular choice for energy monitoring systems.
Explore Projects Built with CT 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!
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.
This circuit is designed for monitoring and controlling AC loads using an ESP32 microcontroller. It includes a PZEM004T module for measuring voltage, current, and power, and a 4-channel relay module to switch three LED bulbs. The ESP32 communicates with the PZEM004T via UART and controls the relays to manage the connected loads.
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.
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.
Below are the key technical details of the CT PZEM-004T 100A:
Parameter
Specification
Voltage Range
80V - 260V AC
Current Range
0A - 100A (via external current transformer)
Power Range
0W - 22kW
Energy Range
0kWh - 9999kWh
Frequency Range
45Hz - 65Hz
Communication
TTL (UART)
Baud Rate
9600 bps
Accuracy
±0.5%
Operating Temperature
-10°C to 60°C
Dimensions
48mm x 29mm x 21mm
Pin Configuration
The CT PZEM-004T 100A has a 4-pin interface for communication and power. Below is the pin configuration:
Pin
Name
Description
1
VCC
Power supply input (5V DC)
2
GND
Ground
3
RX
UART Receive (connect to TX of microcontroller)
4
TX
UART Transmit (connect to RX of microcontroller)
Usage Instructions
Connecting the CT PZEM-004T 100A
Power Supply: Connect the VCC pin to a 5V DC power source and the GND pin to ground.
UART Communication: Connect the RX pin of the PZEM-004T to the TX pin of your microcontroller (e.g., Arduino UNO) and the TX pin of the PZEM-004T to the RX pin of the microcontroller.
Current Transformer (CT): Place the external CT around the live wire of the AC circuit you want to monitor. Ensure the CT is oriented correctly as indicated by the arrow on the CT housing.
Voltage Measurement: Connect the AC voltage input terminals of the PZEM-004T to the live and neutral wires of the AC circuit.
Important Considerations
Safety First: Always ensure the circuit is powered off before making connections to avoid electric shock.
Isolation: Use proper electrical isolation techniques when working with high-voltage AC systems.
Baud Rate: Ensure the microcontroller's UART baud rate is set to 9600 bps to communicate with the PZEM-004T.
CT Placement: The CT should only enclose the live wire, not both live and neutral wires, to ensure accurate current measurement.
Example Code for Arduino UNO
Below is an example Arduino sketch to read data from the CT PZEM-004T 100A 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 communication commands
byte readCommand[] = {0xB0, 0xC0, 0xA8, 0x01, 0x01, 0x00, 0x1A};
// Buffer to store response
byte response[7];
void setup() {
Serial.begin(9600); // Initialize Serial Monitor
pzemSerial.begin(9600); // Initialize PZEM-004T communication
Serial.println("PZEM-004T 100A Energy Meter");
}
void loop() {
// Send read command to PZEM-004T
pzemSerial.write(readCommand, sizeof(readCommand));
delay(100); // Wait for response
// Read response from PZEM-004T
if (pzemSerial.available() >= 7) {
for (int i = 0; i < 7; i++) {
response[i] = pzemSerial.read();
}
// Extract voltage, current, and power from response
float voltage = (response[2] << 8 | response[3]) / 10.0; // Voltage in volts
float current = (response[4] << 8 | response[5]) / 100.0; // Current in amps
float power = (response[6] << 8 | response[7]) / 10.0; // Power in watts
// Print values to 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");
Serial.println("-----------------------");
}
delay(1000); // Wait 1 second before next reading
}
Notes on the Code
Replace 10 and 11 in SoftwareSerial pzemSerial(10, 11) with the desired pins for RX and TX on your Arduino.
Ensure the PZEM-004T is properly connected to the Arduino before uploading the code.
The code assumes the PZEM-004T is configured with its default address. If the address has been changed, update the readCommand array accordingly.
Troubleshooting and FAQs
Common Issues
No Data Received:
Ensure the RX and TX pins are correctly connected between the PZEM-004T and the microcontroller.
Verify the baud rate is set to 9600 bps.
Check the power supply to the PZEM-004T.
Incorrect Readings:
Ensure the CT is properly clamped around the live wire only.
Verify the AC voltage input connections are secure and correct.
Communication Errors:
Check for loose or damaged wires in the UART connection.
Ensure no other devices are interfering with the UART communication.
FAQs
Q: Can the PZEM-004T measure DC voltage or current?
A: No, the PZEM-004T is designed specifically for AC systems and cannot measure DC parameters.
Q: How do I reset the energy reading to zero?
A: The energy reading can be reset by sending a specific command via UART. Refer to the PZEM-004T datasheet for the reset command.
Q: Can I use multiple PZEM-004T modules with one microcontroller?
A: Yes, you can use multiple modules by assigning unique addresses to each module and communicating with them sequentially.
Q: Is the PZEM-004T compatible with ESP8266 or ESP32?
A: Yes, the PZEM-004T can be used with ESP8266 or ESP32, but you may need to use hardware or software UART depending on your setup.