dalathegreat / BYD-Battery-Emulator-For-Gen24
- пятница, 26 мая 2023 г. в 00:00:06
This software converts the LEAF CAN into Modbus RTU registers understood by solar inverters that take the BYD 11kWh HVM battery
This software converts the LEAF CAN into Modbus RTU registers understood by solar inverters that accept the BYD 11kWh HVM battery. This enables a very easy way to use EV batteries for plug'n'play storage solutions.
This code fits on the LilyGo ESP32 T-CAN485 devboard , see https://github.com/Xinyuan-LilyGO/T-CAN485
You will also need a Nissan LEAF battery, any model year will do
Finally, you will need a hybrid solar inverter that accepts the BYD battery communication standard, for example the Fronius Gen24
Here's how to wire up the communication between the components.
Here's how to connect the high voltage lines
Here's how to wire up battery low voltage wiring
For more examples showing wiring, see the Example#####.jpg pictures in the 'Images' folder https://github.com/dalathegreat/BYD-Battery-Emulator-For-Gen24/tree/main/Images
This code uses two libraries, ESP32-Arduino-CAN (https://github.com/miwagner/ESP32-Arduino-CAN/) slightly modified for this usecase, and the eModbus library (https://github.com/eModbus/eModbus). Both these are already located in the Software folder for an easy start.
It is also based on the info found in the following excellent repositories:
Leave a