New with using PZEM 004T with 1000/1 open current transformer. I am using it with an arduino mega. The energy reading seems off.
I stole the code from miliohm.com just to test if the pzem is working or not.
The code is in the following text file: pzem_testing-code.txt (1.4 KB)
It can also be seen as the first sample code on: https://miliohm.com/pzem-sensor-tutorial-read-current-voltage-power-factor-power-frequency-on-mains/
Now, the sample data from the serial monitor shows the following readings:
Voltage: 241.80V
Current: 0.23A
Power: 55.90W
Energy: 0.894kWh
Frequency: 59.9Hz
PF: 0.98
This is the part where the energy reading seems off, 55.90 watt-second when converted to kwh should be "0.00001555556 kWh" but the pzem reading is 0. 894 kWh, is there something wrong with my logic? Or is there something with the pzem i don't understand. Maybe the pzem uses a different unit for electrical energy?