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

One phase voltage missing? #182

Closed
dagbdagb opened this issue Jan 2, 2022 · 6 comments
Closed

One phase voltage missing? #182

dagbdagb opened this issue Jan 2, 2022 · 6 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@dagbdagb
Copy link

dagbdagb commented Jan 2, 2022

Describe the bug
The web UI shows three phase currents, but only phase voltage L1 and L3.

To Reproduce
Steps to reproduce the behavior:

  1. Go to web UI

Expected behavior
I'd expect to see an equal amount of currents and voltages.
Network is 3-phase 230V (TT)

Hardware information:

  • Meter: Kaifa
  • AMS reader: Pow-U

Relevant firmware information:

  • Version: 2.0.2

Additional context
Network is 3-phase 230V (TT)

@dagbdagb
Copy link
Author

dagbdagb commented Jan 2, 2022

So, this appears to be a result of the exact meter model not providing this voltage directly. MA304H3E will always report 0 for the L2 phase voltage. L2 must be calculated from L1 and L3. This URL spells it out:

https://www.hjemmeautomasjon.no/forums/topic/7543-ams-han-port-hvilke-verdier-m%C3%A5ler-de-foreskjellige-str%C3%B8mm%C3%A5lerene/

IIUIC:
L2 = sqrt( (L1 - 0.5*L3)^2 + (0.866*L3)^2 )

If I have ever learnt this, it is most definitely forgotten now. Hence, no clue about conditions for this calculation to be true.
But results do check out as 'sane'.

@gskjold
Copy link
Member

gskjold commented Jan 3, 2022

Try this:
esp8266.zip

@gskjold gskjold self-assigned this Jan 3, 2022
@gskjold gskjold added the bug Something isn't working label Jan 3, 2022
@gskjold gskjold added this to the v2.0.3 milestone Jan 3, 2022
@dagbdagb
Copy link
Author

dagbdagb commented Jan 3, 2022

Either my formula is wrong, or your implementation. L2 is currently reported as 463.29V.

@gskjold
Copy link
Member

gskjold commented Jan 3, 2022

I kind of forgot how cos and sin works, lets try another one:
esp8266.zip

@dagbdagb
Copy link
Author

dagbdagb commented Jan 3, 2022

The value for L2 looks sane now. Thanks.

@gskjold
Copy link
Member

gskjold commented Jan 3, 2022

Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants