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

Detecting three phase power #123

Closed
faustomilletari opened this issue Sep 29, 2020 · 8 comments
Closed

Detecting three phase power #123

faustomilletari opened this issue Sep 29, 2020 · 8 comments

Comments

@faustomilletari
Copy link

Dear open_evse community. First of all i would like to thank you for your awesome project. really cool.

I was wondering if it would be possible to enable automatic threephase/singlephase power calculation by changing this line

#ifdef THREEPHASE //Multiple L1 current by the square root of 3 to get 3-phase energy

to something that checks the optocoupler status by invoking g_EvseController.ReadACPins() and check if the status is both low, or only one of them low.

Please let me know your thoughts!

@faustomilletari faustomilletari changed the title Measuring threephase power Measuring three phase power Sep 29, 2020
@faustomilletari
Copy link
Author

i guess it should be something along the lines of

if (g_EvseController.ReadACPins() == 0)  {
   // three phase
} else {
  // single phase
}

i think one could also detect error if the function returns 3?

@lincomatic
Copy link
Owner

Sorry the AC pins can't be used to detect 3-phase.

@faustomilletari
Copy link
Author

thank you for your answer. I thought i read in the slides "theory of operation" of open evse hardware that the AC TEST pins, which are connected to a 2-way optocouplers could actually reveal if the power supply was three phase.

I see this here "(1/3 phase detection in Europe)":

@lincomatic lincomatic reopened this Oct 1, 2020
@lincomatic
Copy link
Owner

OK, sorry, I was not aware of the usage of the pins for 1/3 phase detection. As you can see from the truth table in your slide above, there isn't any combination shown which specifies what to expect. I am guessing that if one makes the assumption that L1 is not a possibility, that there is a way to deduce 1/3 phase. However, I am not knowledgeable enough to know how to do this. Perhaps we can get @chris1howell to chime in and clarify.

@lincomatic lincomatic changed the title Measuring three phase power Detecting three phase power Oct 1, 2020
@faustomilletari
Copy link
Author

Fist of all, thank you very much. This project is the most inspiring thing i have come across since long time.

I guess that this way of detecting three phase is only working well in Europe where we don't really have 2 phase systems.

I will try this out and let you know if it works. I don't think it should go in the official code base tho, because for north america it would not work well. Maybe if you are making a distrinction in the firmware based on region, we don't really have 2 phase in eu, so in theory it could be a new feature to add.

many thanks!!

@chris1howell
Copy link
Contributor

chris1howell commented Oct 1, 2020 via email

@faustomilletari
Copy link
Author

i think we can close the issue. thanks chris!

@beikeland
Copy link

Said fork doesn't autodetect single or three phase, its simply has an option of applying *sqrt(3) at compile time, and assumes all loads to be three phase if enabled.

I suppose you could detect three phase voltage by the same logic as split phase, but that only determines the supply not the load, to be able to get the power calculation correct you'd need to monitor the current of each phase and determine if the load was on one, two or three phases. I only added one more CT and ignore two phase charging as its quite rare (only european teslas perhaps?)

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

4 participants