Battery-Emulator icon indicating copy to clipboard operation
Battery-Emulator copied to clipboard

Adding support for other batteries

Open torsteinelv opened this issue 1 year ago • 11 comments

What if we want to contribute to add support for other batteries? How can we do that?

Example e golf

torsteinelv avatar Aug 20 '23 08:08 torsteinelv

@torsteinelv

  • Get a CAN log of the battery running in a vehicle
  • Take pictures of HV and LV connectors. Figure out the pinout with manuals. Add to wiki
  • Start battery by applying 12V to it, and CAN H-L pins to a CAN reader / LilyGo
  • Get a CAN log of the battery in standalone operation
  • Start mapping values!
  • Create a battery .cpp and .h header, see the other batteries for how the structure should look like
  • Figure out each value in the CAN messages needed for safe operation

Probably forgot some steps, but that is the basic gist of it!

dalathegreat avatar Aug 20 '23 18:08 dalathegreat

What about batteries with higher voltage like ones from a Hyundai Ioniq 5 (E-GMP 800V architecture) which are >600V nominal? Are there inverters that can handle this high voltage, or would the battery need to be reconfigured (assuming the BMS can be still kept when reconfigured)?

cgalpin avatar Sep 21 '23 12:09 cgalpin

@cgalpin The Huawei SUN2000 inverters can take 800V batteries (or 2x 400V packs)

dalathegreat avatar Sep 26 '23 20:09 dalathegreat

Interesting. I now see the wiki entry, but didnt see any code for it.

I am a noob to this, but everything I look at still says 600V DC input max. What am I missing? I am in the USA, so it has to be single phase 120V AC out as well (afaik).

For example, this show 600V - https://midsummer.ie/pdfs/huawei-sun2000-2-6ktl-l1-datasheet.pdf

cgalpin avatar Sep 27 '23 16:09 cgalpin

@cgalpin afaik the 3-phase Huawei SUN2000 inverters need a higher battery voltage than the 1-phase inverters. Thinking about it... how do they both work with the same battery (LUNA2000) 🤔

kalectro avatar Oct 13 '23 22:10 kalectro

Just a question on that note the Pylon Tech stuff is already supported?

Platin21 avatar Oct 15 '23 11:10 Platin21

Just a question on that note the Pylon Tech stuff is already supported?

Yes, Pylontech CAN protocol is implemented!

dalathegreat avatar Oct 21 '23 19:10 dalathegreat

Hi Dala, I don't see the BYD Atto 3 battery on the list of compatible batteries, yet the repo title is "BYD Battery Emulator..."

What am I missing?

I have a 60kWh Atto 3 battery pack I'd love to integrate.

stretchkerr avatar Nov 21 '23 07:11 stretchkerr

@stretchkerr The project started out as emulating only BYD HVM (solar batteries). Now the project can emulate lots of other brands.

The BYD Atto3 is not a solar battery, it is an automotive battery. To integrate it, follow the steps as explained here: https://github.com/dalathegreat/BYD-Battery-Emulator-For-Gen24/issues/51#issuecomment-1685365046

Lots of work!

dalathegreat avatar Nov 21 '23 09:11 dalathegreat

@stretchkerr The project started out as emulating only BYD HVM (solar batteries). Now the project can emulate lots of other brands.

The BYD Atto3 is not a solar battery, it is an automotive battery. To integrate it, follow the steps as explained here: #51 (comment)

Lots of work!

Thanks for the explanation. BYD solar != BYD Auto. Currently trying to track down a pinout for the Atto3 CAN connector. Will provide an update if I find anything.

stretchkerr avatar Nov 21 '23 10:11 stretchkerr

@cgalpin afaik the 3-phase Huawei SUN2000 inverters need a higher battery voltage than the 1-phase inverters. Thinking about it... how do they both work with the same battery (LUNA2000) 🤔

Yes everything I am seeing shows that 3-phase inverters can take >600V input (including the battery), but 1-phase maxes out at <500V.

I don't know if the battery is the same for both applications.

Can anyone confirm there is a single phase inverter that can be paired with a ~800v battery, and if so which model(s)?

cgalpin avatar Dec 29 '23 20:12 cgalpin

Can anyone confirm there is a single phase inverter that can be paired with a ~800v battery, and if so which model(s)?

I don't think, single phase inverters can take such high voltages. The inverters internal rail voltage should be about 350VDC for 230VAC output. For a 3 Phase 230/400VAC the rail voltage would be 650VDC.

Are there any news on connecting 3rd party battery systems to a Huawei Sun2000 inverter?

KarlZeilhofer avatar Jun 19 '24 04:06 KarlZeilhofer

I am closing this issue. The answer to the original question posted in this thread, "How to add new battery" has a dedicated wiki thread here with info: https://github.com/dalathegreat/Battery-Emulator/wiki/Data-needed-for-new-battery-integration

dalathegreat avatar Jul 01 '24 17:07 dalathegreat