Double Battery - dalathegreat/Battery-Emulator GitHub Wiki

[!CAUTION] Working with high voltage is dangerous. Always follow local laws and regulations regarding high voltage work. If you are unsure about the rules in your country, consult a licensed electrician for more information.

What is this feature?

Double Battery means running two battery packs at the same time. This doubles the capacity of the system. Incase you need more energy than one EV pack can provide, this functionality is for you.

Good info on running multiple packs and associated risks: https://www.orionbms.com/manuals/pdf/parallel_strings.pdf

If you need more capacity than Double Battery provides, you can also go Triple Battery

How does parallel operation work?

The batteries get connected in parallel. This means the voltage stays the same, but the capacity doubles.

[!IMPORTANT]
The batteries need to be of the same model and size, and preferably as close as possible in state of health. Do not connect battery packs with too much variation in condition, this lowers overall efficiency significantly!

[!CAUTION] Do not connect packs in series. There are no safeties implemented for operation in series connection!

Which inverters are supported?

Double-Battery can be run on all inverters. The inverter will think that there is just one large battery attached.

[!Note]
Double-Battery should not be confused with Dual Input inverters. Dual input can have 2 separate batteries operating at the same time (Foxess or Sofar for instance). lookup how to in your inverter type/brand Wiki for more information about Dual input.

Which batteries are supported?

Double battery support is only available for highly stable battery types. The ones with checkmark have been confirmed working well.

CAN communication

:information_source: If your inverter does not support seeing automotive CAN messages and need a separate channel, you need a CAN-Filter. https://github.com/dalathegreat/Battery-Emulator/wiki/CAN-filter-hardware

If you are using LilyGo:

image

If you are using Stark CMR:

  • The first battery connects to CAN
  • The second battery connects to CANFD

image

High voltage connection diagram

:warning: Dealing with one EV battery pack can be dangerous. Using two batteries increases the risks associated with lithium batteries with 100%. Accidentally connecting together the DC side of two batteries at varying SOC% will cause massive amounts of current to be dumped between the packs. Always use fuses to limit the risk and avoid melting wires.

There are two types of EV battery packs:

  • Externally powered contactors
  • CAN activated contactors

Externally powered contactors behave deterministically based on Battery-Emulator status. Contactors get connected directly to GPIO pins on the Battery-Emulator hardware, and the batteries are started up in a controlled manner. The second battery is allowed to join if the voltages are close enough (<3V).

When using batteries with CAN controlled contactors (Tesla/Kia/Hyundai etc.), since CAN control acts on its own by the BMS, it can be very hard to troubleshoot these systems, and figure out why a specific pack is not closing contactors properly, or why it is opening them.

CAN-controlled contactors

Connect the high voltage lines like in this diagram. Remember to place fuses both between the Inverter and packs, and the interconnect between the packs.

After battery 1 is started, the system will automatically close the interconnect contactor for Battery 2 (Cont ext), if it falls within 1.5V of the Battery 1. Note that if you skip the interconnect contactor and rely on only closing via CAN, you need to manually sync up the system first, otherwise you will blow the fuses

To control the second battery, you need to install an extra contactor in series with it. Secondary battery does not use precharge, thus you can switch both positive and negative at the same time. Consult the appropriate board hardware description for which GPIO pin controls this contactor.

Enable "Double-Battery Contactor control via GPIO:" in the Settings page. When Battery #2 voltage matches Battery #1 the extra relay will engage and combine the two batteries into one large battery.

Taking Double Battery into use.

Example configuration, Stark CMR + Fronius Gen24 + 2x Nissan LEAF batteries, controlled via GPIO contactors

Example wiring diagram - Stark Box + 2x BMW i3 + Fronius Gen24