dalathegreat / Battery-Emulator

This software enables EV battery packs to be used for stationary storage in combination with solar inverters.
GNU General Public License v3.0
1.08k stars 149 forks source link

Double Battery Automatic Contactor Support GPIO #572

Open malcolmputer opened 2 weeks ago

malcolmputer commented 2 weeks ago

Expected Behavior

It would be great for double battery support to also support automatic contactor support utilizing GPIO, something like this:

// Contactor handling

define POSITIVE_CONTACTOR_PIN 32

define NEGATIVE_CONTACTOR_PIN 33

define PRECHARGE_PIN 25

define 2ND_POSITIVE_CONTACTOR_PIN 13

define 2ND_NEGATIVE_CONTACTOR_PIN 16

define 2ND_PRECHARGE_PIN 18

Actual Behavior

Currently this has to be done manually, or utilizing a battery that supports contactor control over CAN, since the 3lb board that's in development supports multiple relays, it makes sense to support this.

dalathegreat commented 1 day ago

PR for this is UP :raised_hands: https://github.com/dalathegreat/Battery-Emulator/pull/619