Emontx shield no negative values when reversing CT !?!


I’m setting up a emontx shield on top of a Arduino uno

I’m confused about the fact that I always get POSITIVE values, no matter what the CT position is

226 0 0 0
223 0 0 0
224 0 0 0
86 0 0 0 → this is when I reversed the CT
224 0 0 0
225 0 0 0
215 0 0 0
214 0 0 0

I have some PV panels and I would like to know if I import/export current to/from the grid

Do you have any idea why this happens?

I’m using YHDC SCT013 100A:50mA CT


Are you using a AC:AC adapter to sense voltage?

Have you installed a sketch that uses that AC reference?

If it is apparent power that you are reading rather than real power, it doesn’t know the direction of flow, it only knows the magnatude of the current and multiplies that by the defined voltage, which is positive x positive = positive values.

1 Like

I am not using a adapter, yet
I am using Shield_CT1234 sketch

So…what I am reading, apparent or real power?

You are reading “apparent power”.

ok, so I googled and found that
With the addition of an AC-AC adapter to provide an AC voltage sample the shield can monitor real power, AC RMS voltage and power factor.

I get it how an AC-AC adapter will let me know the AC voltage, but how does it help with real power. How does it tell the direction of the flow?

The position of the waveforms relative to each other. Assuming a pure resistive load (PF 1.0) in one (forward?) direction the voltage and current waveforms will be aligned and in the other (reverse?) direction the waveforms will be at 180° to each other. From this the sketch can determine the direction.