mandulaj / PZEM-004T-v30

Arduino library for the Updated PZEM-004T v3.0 Power and Energy meter
MIT License
256 stars 108 forks source link

Lamp cannot dim by TRIAC when connect with PZEM 004T #123

Open Kosaki01 opened 1 month ago

Kosaki01 commented 1 month ago

I have a triac-dimmer circuit like below with load is incandescent lamp, when i connect the N and L to 2 terminals of lamp, they cannot dim and work at max power - maximum brightness althought i just made they dim about 50% of max brightness. image

How can i fix this? Pls give me some advice for this. Thank you so much.

mandulaj commented 1 month ago

Are you attaching the PZEM after the triac? If so, please attach it before the triac! The measurement will be the same.

Kosaki01 commented 1 month ago

image Hi, you mean this right?

mandulaj commented 1 month ago

LOAD is your lamp right, and the Power Triac is connected in series with the AC Line.... Can you attach the PZEM here where the power comes in? 329289937-a748ce0b-79e9-43df-a979-2a895be9766f

Kosaki01 commented 1 month ago

I tried, lamp can be dimmed, but the results pzem gave were wrong. They measure input's voltage value (220VAC power supply), not the voltage drop across load.

mandulaj commented 1 month ago

Ahh, but then if you are interested in the voltage, PZEM is not the right sensor to use! PZEM is good for measuring the power/energy! The AC input is a continuous sine wave, but the triac will chop it up (which is how it achieves the power modulation)

Kosaki01 commented 1 month ago

Yeah the main reason i used pzem is for measuring power, but with the fault of voltage, they cannot give right value of power :(

mandulaj commented 1 month ago

But if you do as I told you and attach the PZEM before the Triac and put the current probe around one of the wires, the power measurement should be done correctly. The PZEM will take the correct integrated product of voltage and current over time.

Kosaki01 commented 1 month ago

image Yeah i did it, and i compared pzem's value with VOM's value, they had difference power and voltage value when lamp is dimmed, and same value when lamp is at max brighness - max power comsumption.

mandulaj commented 1 month ago

With your multimeter, did you measure voltage and current independently? Because if yes, their product is not the actual power for a AC system. A dimmed light will not have a power factor of 1. The Voltage and Current are not in phase! Thus if you only look at the magnitude of the Voltage and Current and their product, you won't get the Real power (There is some reactive power) https://en.wikipedia.org/wiki/AC_power

Kosaki01 commented 1 month ago

So if i measure with an oscilloscope, i will get the real power, right?