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
Open

Offset current without load #95

manutoky opened this issue Jul 14, 2019 · 9 comments

Comments

@manutoky
Copy link

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
Copy link

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

@manutoky
Copy link
Author

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
Copy link

Power is calculated internally by the ADE7878 DSP.

@manutoky
Copy link
Author

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
Copy link

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
Copy link

Btw: I wrote an email to [email protected] to get my forum account activated.

@manutoky
Copy link
Author

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
Copy link
Author

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

@frankrichter
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants