Skip to content

Commit

Permalink
Update USER_SETTINGS.h
Browse files Browse the repository at this point in the history
  • Loading branch information
mackelec authored Nov 20, 2023
1 parent 190dbe7 commit e5feb10
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions Software/USER_SETTINGS.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
//#define KIA_HYUNDAI_64_BATTERY
//#define NISSAN_LEAF_BATTERY
//#define RENAULT_ZOE_BATTERY
//#define TESLA_MODEL_3_BATTERY
#define TESLA_MODEL_3_BATTERY
//#define TEST_FAKE_BATTERY
//#define SERIAL_LINK_RECEIVER_FROM_BATTERY //Enable this line to receive battery data over RS485 pins to another Lilygo


/* Select inverter communication protocol. See Wiki for which to use with your inverter: https://github.com/dalathegreat/BYD-Battery-Emulator-For-Gen24/wiki */
#define BYD_CAN //Enable this line to emulate a "BYD Battery-Box Premium HVS" over CAN Bus
Expand All @@ -23,6 +25,23 @@
//#define SMA_CAN //Enable this line to emulate a "BYD Battery-Box H 8.9kWh, 7 mod" over CAN bus
//#define SOFAR_CAN //Enable this line to emulate a "Sofar Energy Storage Inverter High Voltage BMS General Protocol (Extended Frame)" over CAN bus
//#define SOLAX_CAN //Enable this line to emulate a "SolaX Triple Power LFP" over CAN bus
//#define SERIAL_LINK_TRANSMITTER_INVERTER //Enable this line to send battery data over RS485 pins from another Lilygo

/*
* Using SerialDataLink
*
* for example, if inverter is BYD_CAN compatible and Tesla M3 bttery is used
*
* Inverter end:
* #define SERIAL_LINK_RECEIVER_FROM_BATTERY
* #define BYD_CAN
*
* Battery end
* #define TESLA_MODEL_3_BATTERY
* define SERIAL_LINK_TRANSMITTER_INVERTER
*/



/* Battery settings */
#define BATTERY_WH_MAX \
Expand All @@ -43,21 +62,8 @@
//#define PWM_CONTACTOR_CONTROL //Enable this line to use PWM logic for contactors, which lower power consumption and heat generation
//#define DUAL_CAN //Enable this line to activate an isolated secondary CAN Bus using add-on MCP2515 controller (Needed for FoxESS inverters)

#define SERIAL_LINK_RECEIVER_FROM_BATTERY //Enable this line to receive battery data over RS485 pins to another Lilygo
//#define SERIAL_LINK_TRANSMITTER_INVERTER //Enable this line to send battery data over RS485 pins from another Lilygo



#endif

/*
* Using SerialDataLink
*
* for example, if inverter is BYD_CAN compatible and Tesla M3 bttery is used
*
* Inverter end:
* #define SERIAL_LINK_RECEIVER_FROM_BATTERY
* #define BYD_CAN
*
* Battery end
* #define TESLA_MODEL_3_BATTERY
* define SERIAL_LINK_TRANSMITTER_INVERTER
*/

0 comments on commit e5feb10

Please sign in to comment.