Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offset current without load #95

Open
manutoky opened this issue Jul 14, 2019 · 9 comments

Comments

@manutoky
Copy link

commented Jul 14, 2019

All four current sensors give me a reading of -0.1 A without load. This means a power offset of about 20 W. Reading through the forum I have the impression that this a bug regarding the setup of the measurement hardware. Because of this (and because I cannot post on the forum since nobody clears my registration) I opened this issue.
SmartPi 1.0

@frankrichter

This comment has been minimized.

Copy link

commented Jul 14, 2019

The current offset we discussed in the forum recently doesn't affect the power reading (at least in my case).

@manutoky

This comment has been minimized.

Copy link
Author

commented Jul 15, 2019

How is this possible? Power should be calculated using the measurements of current, voltage and phase. This is why I get around 20W of power when reading 0.1A current at 230V.

@frankrichter

This comment has been minimized.

Copy link

commented Jul 15, 2019

Power is calculated internally by the ADE7878 DSP.

@manutoky

This comment has been minimized.

Copy link
Author

commented Jul 15, 2019

This is not a contradiction. ADE7878 only measures currents, voltages and phases. Power will be calculated using these. Offsets in current will result in offsets in power.

@frankrichter

This comment has been minimized.

Copy link

commented Jul 15, 2019

Before I changed the ade7878.go as discussed in the forum my SmartPi displayed -0,07A on all phases, but the power reading was about 0W with small fluctuations. With the changes applied all currents are very near to 0 now, but the power readings didn't change at all. The xIRMSOS calibration only affects the xRMS registers, not the power registers.

Do you use the newest Software on your SmartPi? Then this should be the same for you.

@frankrichter

This comment has been minimized.

Copy link

commented Jul 15, 2019

Btw: I wrote an email to info@enerserve.eu to get my forum account activated.

@manutoky

This comment has been minimized.

Copy link
Author

commented Jul 15, 2019

Yes, I'm using SmartPi 1.0 which I downloaded on saturday. There were no updates using apt-get. I will take a look at the software since there are a couple things I want to change. (Running X.org and chromium processes smashing my raspi for example, update frequency of MQTT too high, etc.). But I should probably discuss those topics in the forum once I have access.

@manutoky

This comment has been minimized.

Copy link
Author

commented Jul 22, 2019

My solution for now is to change the line
outcome = outcome - 7300
to
outcome = outcome - 3200

@frankrichter

This comment has been minimized.

Copy link

commented Jul 22, 2019

This will not have the same effect, because the xIRMSOS offset are added before the square root is executed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.