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

Automatic precharge voltage control #658

Open
mvgalen opened this issue Dec 6, 2024 · 0 comments
Open

Automatic precharge voltage control #658

mvgalen opened this issue Dec 6, 2024 · 0 comments
Labels
enhancement New feature or request hardware Hardware support needed question Further information is requested

Comments

@mvgalen
Copy link
Collaborator

mvgalen commented Dec 6, 2024

Context

The MEB platform and CCS charge ports both need an external voltage applied before closing contactors.
For possible hardware, see this wiki page.
To make this work, the battery needs to be able to measure the external voltage and report this to Battery-Emulator. An alternative is to add an external circuit, like a shunt to measure the voltage.

Goal of this issue is to have some discussion on how to implement this in the Battery-Emulator

I have made a quick and dirty proof of concept implementation in my repo in this commit.

So my ideas:

  • Use the datalayer.shunt.measured_voltage_dV as source for the external voltage. The MEB platform could write its datalayer_extended.meb.BMS_voltage_intermediate_dV value into datalayer.shunt.measured_voltage_dV.
  • Share the PRECHARGE_PIN (io25 )
  • Add a define EXTERNAL_VOLTAGE_CONTROL to enable it
  • Use statemachine comparable to the PRECHARGE CONTACTOR state machine
  • Maybe add battery/inverter dependend maximum?
  • Maybe add a define to setup a start voltage / start frequency?
  • Do we foresee that this will be used with external contactor control?
  • ?

If we have a good idea of what the implementation should look like, I will change the proof-of-concept to the chosen implementation.

@mvgalen mvgalen added enhancement New feature or request question Further information is requested hardware Hardware support needed labels Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hardware Hardware support needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant