Тёмный

How accurate is the Peacefair PZEM-004T AC Comms Module? 

TheHWcave
Подписаться 7 тыс.
Просмотров 9 тыс.
50% 1

This is kind of a continuation of the previous video on modifying the PZEM-004T module, providing the promised information on accuracy and some usage hints for the software.
00:15 Voltage accuracy
03:29 Current accuracy
07:08 Frequency accuracy
07:50 Power factor comparison with DL69-2048
08:11 Power factor using phase shift
16:12 Summary on power factor
17:40 Using the software
21:58 Using the PZEM-004T
My previous video on modifying the PZEM-004T: • Modifying the Peacefai...
The schematics and software is here: github.com/TheHWcave/Peacefai...
The other panel meter (a DL69-2048): • Modifying (and repairi...
Building the power resistors: • Home Lab Equipment: Ma...
You can support the channel by becoming a patron. www.patreon.com/user?u=45604138
As a patron you get early access to all my videos as well as exclusive content.

Наука

Опубликовано:

 

16 апр 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 40   
@samuelwozinski2585
@samuelwozinski2585 3 года назад
Thankyou so much for posting this! I was considering using the pzem-004t for a personal project to measure small changes in current, and I had my doubts about the accuracies listed in the spec sheet. This has been super helpful.
@googoostoned
@googoostoned 2 месяца назад
Ein gutes Video. Vielen Dank.
@Jack82836
@Jack82836 2 года назад
Very interesting. Thank you. Double thanks for the subtitles!!!
@useris0987650
@useris0987650 Год назад
Maybe accuracy differences are caused by different current density? 10 turns will have 10 times smaller current density. It definitely improves transformer efficiency, maybe somehow impact output current current too, can't find anything. You could try repeat the accuracy test with single loop of ten wires. Also, if seeking accuracy, comparison with 10A shunt version would be interesting, that should be more accurate in general.
@laverdadapesta100pre
@laverdadapesta100pre 2 месяца назад
Hello, thanks for that great video, I would just like to ask you if it is possible to access the data of the function you measured.
@TheHWcave
@TheHWcave 2 месяца назад
Sorry, I did not keep the data.
@MassimoFantinato
@MassimoFantinato 10 месяцев назад
Thank you very much for this useful video. Just one question, regarding ups. Is this module a viable solution when they are included? A lot of switching UPS generate a lot of noise and have some current dispersion. Is this module still a viable solution? If not, do you know any other cheap solution for power measurements for ups? Thank you.
@TheHWcave
@TheHWcave 10 месяцев назад
I am not sure I understand the question. If you are concerned if the module can measure power draw from noisy devices, like SMPS, the answer is yes. I have never seen any issues
@pepethefrog7193
@pepethefrog7193 3 года назад
Great content. Kudos! I need to measure the power direction. Negative amps or negative powerfactor. I use to prevent grid-tie solar power feeding into the grid (and paying for it). Unluckily this seems not possible with this meter and there is no hack as there was with the older variant of this meter. Any idea?
@TheHWcave
@TheHWcave 3 года назад
No, unfortunately not. It does not care about which way you orientate the current transformer. You would need something that is made for solar installations, I suspect the majority of power/energy meters do not support direction.
@irfansensoy5901
@irfansensoy5901 6 месяцев назад
The same situation applies to me. Have you found a method to measure energy to prevent energy going back to the grid?
@pepethefrog7193
@pepethefrog7193 6 месяцев назад
@@irfansensoy5901 shelly 3EM
@BjornV78
@BjornV78 3 года назад
6:11 I guess that the current transformer is not optimized for low currents, but more for high current 10A and more. 1A or 1.4A is still 1 to 1,4% of the range this current transformer use. At the moment, i'm building a isolation transformer with buildin "dim bulb current limiter" with 4 halogen G9 bulbs to make it very compact. At the output, i'm gonna use a selfmade "electronic circuit breaker" where the trippoint can be set from 1mA to 3A. For measuring the current, i use the same current transformer as yours, that came with one of the Peacefair meters that i have, and i discovered that the accuracy to set this trippoint is much better when i use 4 to 5 turns on the primairy side of this current transformer. My i ask, what type of amplifier you used for amplifying the output of the signal generator ? Is it a "simple" audio amplifier or so ?
@TheHWcave
@TheHWcave 3 года назад
Its a 100W mono audio amp board using a TPA3116D2 chip from Ebay. It is actually surprisingly good for the price. It needs a fairly beefy power supply if you draw a lot of current on the output or it will start distorting the wave form. Otherwise it is very efficient (class D). It is linear from 60Hz to 2kHz, The 3db points are at
@BjornV78
@BjornV78 3 года назад
@@TheHWcave thx for the reply. I have a JOY-iT JDS6600 60Mhz signal generator, and that one has also a very low current output, but now i have a idea to amplify it. A have one more tip, you mentioned that it can be dangerous to switch between x10 and x1 , for a workarround, you can use the multiple turns as fixed primary, and switch the burden resistor between x10 and x1. For the x1 position, you can use a fixed burden resistor value, and for the x10, you can use the switch to parallel a lower resistor value. That way you only switch the secundairy side of the current transformer, that carry a low current, and also the x10 and x1 use the same amount of primary windings and the accuracy will become better for the x1 position. Grtz
@TheHWcave
@TheHWcave 3 года назад
@@BjornV78 A good idea and and I actually did something like that before ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Lf5nhBLmJ-c.html . but in this case there are some problems. Firstly the x10 resistor needs to be 10x higher not lower. Since a current transformer must never be operated without load, you need to wire the x10 mode resistor hard in (0.5 Ohm in this case) and use the switch to add the lower resistor (a 0.05555 ohm resistor in this case) in parallel. Tricky to find / make such a value (e.g. from resistance wire) and then the unpredictable contact resistance of the switch is already in the same region. A better way is to use a make-before-break switch with a 0.5 Ohm (x10) and the stock 0.05 Ohm (x1) resistor. The switch contact resistance may still spoil it, but this may work. Unfortunately the chip is calibrated for the 0.05 ohm resistor and the filter network, so you can't just use higher resistor values. Without these constraints, your idea is definitely valid.
@audiodiy154
@audiodiy154 2 года назад
HI , WHAT IS THE MINIMUM RESPONSE TIME FOR THE MODULE TO DETECT VARIATION IN VOLTAGE, FREQUENCY, A, WH? ETC
@TheHWcave
@TheHWcave 2 года назад
From the datasheet the V9881D seems to collect and process data at speeds of several tens of kilohertz to do all kinds of signal processing and zero-crossing detection and parameters such as volts, current and power are internally available at least every 10ms or even more often. However, the firmware doing the serial connection over USB and sending the data using the MODBUS protocol with checksum etc is much slower and sends updates only about every 1 to 1.5 seconds. That means a fast change may be registered but you may not learn about it until up to 1.5s later. Worse, if a spike comes and goes within the 1.5s window, you may not get any information about that event.
@isabido
@isabido Год назад
Fantastic precision exam and very good documentation of the entire procedure, I learned many ideas and concepts from it. I still have doubts as to how the PZEM-004T calculates the PF value, if not by controlling the phase angle. Could you give me a better explanation? I am trying to solve some problems in a Shelly EM that is not able to measure a reactive load of two ducted air conditioning machines, which in standby has a P=20W V=235 CosPhi=0.1 I=1A (it is the reading that the digital meter from my electric company returns me), the shelly EM indicates P= -5W V=236 PF= -0.02 Thanks again for the shared knowledge! You already have a new subscriber.
@TheHWcave
@TheHWcave Год назад
You are correct in suspecting that the PF shown by the PZEM-004T is not very accurate for very small PF values. The reason is hard to explain in a RU-vid comment, but I try. Please check the V9881D datasheet. In chapter 10 it explains its inner workings very detailed. The signal processing part of the chip measures active (P) and reactive (Q) power but it does not measure or calculate PF. This is done in the firmware. PF can be calculated using pf = cos(arctan(Q/P)). So, how does it measure P and Q? There is a lot going on in the signal processing part of the chip but in essence the trick is that for active power P, it multiplies volts and currents while for reactive power Q, it first phase-shifts the current by 90 degrees before multiplying. If you consider the 2 extreme cases: first current and volts are in phase. The multiplication produces a (power) wave form that is always positive and the RMS average of that is active power. At the same time the Q calculation takes the same current and voltage and does the same multiplication but first phase shifts the current by 90 degrees. The result is a power wave that is always symmetrical around 0 (same amounts are positive and negative) so the average Q is simply zero. Plugged into the formula you get a PF = 1. If the current is phase shifted by nearly 90 degrees already, the then active power would be mostly symmetrical around zero with a tiny non-zero rest, and Q will now be a large negative average. This gives a large negative value of P/Q and an arctan of -89.9999 deg and cos(89.9999) is a PF of nearly zero. Obviously this method has increasing accuracy problems (because of arctan) the lower the PF gets but the P and Q values themselves are still very accurate. The problem in calculating very small PFs might well explain the discrepancies you see because both meters indicate show very small PFs.
@isabido
@isabido Год назад
@@TheHWcave Infinite thanks for taking your time to give me this splendid summary explanation. I had been checking the datasheet of this v9881d and also of the ADE7953 (www.analog.com/media/en/technical-documentation/data-sheets/ADE7953.pdf, they seem very similar. they apply an HPF before the multiplication (this is where I understand according to your explanation that it is where the 90º phase shift occurs due to the high pass filter?) and then an LPF to eliminate harmonics. What I don't understand is why it does for PF=cos(arctan(Q/P)) instead of something simpler like PF=P/S. If S = V x I and the P extracts it with the displacement trick. Also at the beginning of your explanation you say that P=V x I, wouldn't this be S? Excuse me if I'm talking nonsense, I'm starting to understand this fabulous world of AC! Thanks again for your effort to make me understand.
@TheHWcave
@TheHWcave Год назад
@@isabido Yes AC is complicated especially if it is no longer sinusoidal.. Anyway, no the 90 deg. shift is done only for the current channel and after the HPF and LPF which are used for both. Also there is a phase compensation (delay) circuit but that gets really into details. These chips were made to meet the standards for electricity (smart) meters so they are doing a lot of wonderful signal processing to get the best accuracy for P and Q. Note that apparent power S is not V x I. S is a vector (as are P and Q) and the magnitude of S is the vector sum of P and Q, in other words S = SQRT(P^2 + Q^2) (Pythagoras)
@isabido
@isabido Год назад
@@TheHWcave I knew of the formula S = SQRT(P^2 + Q^2) , but this would also be valid, right? S= Vrms x Irms. Thanks!
@TheHWcave
@TheHWcave Год назад
​@@isabido Yes that is correct
@neail5466
@neail5466 3 года назад
Man, you are rocking. ❤️+1 I remember you have shown that the accuracy range is unreliable under 200mA, is that the cause ? Use a pi4 as laptop. It would be better for Ubuntu, you can also use multi os / boot even with ssd, but make sure to have a ups connected.
@TheHWcave
@TheHWcave 3 года назад
Not sure why it isn't as accurate as expected at
@bjornroesbeke
@bjornroesbeke 2 года назад
With my device, 3 out of 4 requests go unanswered and the software (any software, not just your python script) complains about the timeout. When it does respond, it seems to be as accurate as you've shown. I'm happy to have this cheap monitoring device. Were you able to reprogram its address by any chance? I can't even read those registers.
@TheHWcave
@TheHWcave 2 года назад
How strange. Mine works like clockwork. I had another viewer asking me about the update rate and I ran a test polling the module as fast as possible using only the AC_COMBOX.py command line interface with --time 0 parameter. This managed about 10 polls per second but we found that the firmware only sends new data about every 1.2 to 1.5 seconds (i.e. you get 10-15 times the same data packet if you poll 10 times /s). Normally I don't see timeouts or any other issue and I think that other viewer also did not see timeouts on his module. No I never attempted to change the slave address Could you try running just AC_COMBOX.py ? Try other USB ports, maybe USB2.0 instead USB3.x . Another possibility is interference. I do get a timeout or even sometimes a reset of the module if I use the x1/x10 hardware switch under load. In my built the current transformer with the x10 coil is right next to the module and can apparently cause some issues when the switch is moved. This should not be the case with a x1 and a single wire going through the core. In general it could be that your environment/mains is very noisy causing interference on the USB cable? If you are using the original PZEM-004T with the capacitor-dropper power supply there must be enough mains voltage to power the board and the opto-couplers (more than 60V-70V if I remember). Last tip, if you poll for example every second, you should be able to see the RX LED on the module light up periodically. If the message decodes correctly (checksum...) the TX LED should light at the same rate. If the RX doesn't light regularly at the poll rate, messages from the PC don't get to the module. If it does light regularly but the TX LED doesn't or not at the same rate, then the PC message contained errors and the microcontroller could not understand it. If they both light regularly then there is a problem in the PC
@DEMOxSPL
@DEMOxSPL 11 месяцев назад
Hey, is it possible to measure 15-100hz ac voltage with this and read kind of accurate readings?
@TheHWcave
@TheHWcave 11 месяцев назад
Sadly no. The module datasheet says 45 to 65Hz.. The chip datasheet itself says 35 to 75Hz and I measured that on my unit, 30 to around 400Hz is usable, but that may be an exception.
@DEMOxSPL
@DEMOxSPL 11 месяцев назад
@@TheHWcave So from your tests anything under 30hz is unaccurate? Do you have an idea how get accurate measurements 15-100hz? With different circuit or ic? Thanks
@TheHWcave
@TheHWcave 11 месяцев назад
@@DEMOxSPL I am not entirely sure what you are trying to measure. I am guessing AC voltage at 15-100Hz like for a VFD (Variable Frequency Drive)? The problem is the low frequency. Most meters do not go below 45 or 40Hz. From my own collection, the only 2 handheld meters that would work are the Brymen BM235 and BM869s because they have a VFD mode that goes from 10Hz. Bench meters go even lower. The Agilent 34401A goes down to 3Hz . The OWON XDM 1041 goes down to 20Hz. These are just meters I have. There are many more out there...
@DEMOxSPL
@DEMOxSPL 11 месяцев назад
@@TheHWcave I want to measure power output from car audio amplifier (sub level range) I want to make my own circuit.
@TheHWcave
@TheHWcave 11 месяцев назад
@@DEMOxSPL Ok, that's different then. Its an interesting project. If you have a reasonably smart scope, one way to do this would be to attach a resistor R as dummy load as speaker and use the scope to measure the voltage V over R and perform the math operation (V*V)/R on the signal which gives you a power graph
@Carlos-id7my
@Carlos-id7my 2 года назад
the voltage range is 80-260V, do you think it can read 280V?
@TheHWcave
@TheHWcave 2 года назад
The original capacitor-dropper is rated 250VAC max 275VAC. Using the modification powering it instead from a safe(!) DC-2-DC converter and using multiple resistors for R17, it might be possible but its risky. I only tested it to 250VAC
@Carlos-id7my
@Carlos-id7my 2 года назад
@@TheHWcave thank you very much, I'm thinking of using it to measure energy from an inverter that reaches 275 VAC, and a maximum amp of 1.8
@Carlos-id7my
@Carlos-id7my 2 года назад
@@TheHWcave Mmm... do you think that I can only supply the meter with 110V or 220V and on the other hand expose the CT to 275 VAC? Do you think the measurement will works? I ask you if it has happened to you, anyway, I will have to try to see how it goes. Thanks, buddy
@TheHWcave
@TheHWcave 2 года назад
@@Carlos-id7my Inverters often don't have proper sine wave output, which means the capacitor dropper could well be overloaded even at lower voltage. For this use, you should definitely get rid of it and replace it with power from the fully isolated(!!!) DC-2-DC converter from USB. Once the dropper is gone, make sure R17 is split into multiple resistors in series to increase the overall voltage rating. One resistor is definitely not good enough, use at least 2, better 3 or more in series. With all this, consider this is mains voltage and you do this at your own risk
Далее
PZEM-004T V3.0 (Raspberry Pi)
14:21
Просмотров 12 тыс.
The Clever Way to Count Tanks - Numberphile
16:45
Просмотров 750 тыс.
Is it the volts or amps that kill?
20:50
Просмотров 4,2 млн
How to Soldering wire in Factory ?
0:10
Просмотров 13 млн
КРАХ WINDOWS 19 ИЮЛЯ 2024 | ОБЪЯСНЯЕМ
10:04