This revolutionary software enables EV battery packs to be easily reused for stationary storage in combination with solar inverters
Find a file
2023-02-26 13:17:55 -08:00
Software Improve CAN handling 2023-02-26 13:17:55 -08:00
LICENSE Initial commit 2023-02-19 21:21:30 +02:00
README.md Update README.md 2023-02-23 22:11:13 +02:00

BYD-Battery-Emulator-For-Gen24

This software converts the LEAF CAN into Modbus RTU registers understood by solar inverters that take the BYD 11kWh HVM battery

Hardware requirements

This code fits on the LilyGo ESP32 T-CAN485 devboard , see https://github.com/Xinyuan-LilyGO/T-CAN485

Installation

  1. Connect one end of the LilyGo RS485 to the Gen24 Modbus
  2. Connect the other end of the LilyGo to the CAN side of a LEAF battery
  3. Wire up high voltage cable between the Gen24 and the LEAF battery
  4. Add a 12V power source to power the LilyGo and the LEAF battery (uninterruptible PSU or 12V lead acid recommended in parallel)
  5. Manually handle pre-charge circuit + positive/negative contactor on LEAF battery for now (circuit will be improved soon)
  6. Enjoy a big cheap grid connected battery!

How to compile the software

  1. Download the Arduino IDE: https://www.arduino.cc/en/software

  2. When the Arduino IDE has been started; Click "File" in the upper left corner -> Preferences -> Additional Development >Board Manager URL -> Enter the URL in the input box https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

  3. Go to "Boards Manager", and install the ESP32 package by Espressif Systems

  4. The arduino settings should be set to "ESP32 Dev Module" with the following settings;

  5. Press Verify and Upload to send the sketch to the board