Fork: 98 Star: 751 (更新于 2024-05-18 00:22:20)

license: GPL-3.0

Language: C++ .

This software enables EV battery packs to be used for stationary storage in combination with solar inverters.

最后发布版本: v5.10.0 ( 2024-05-14 01:59:28)


Battery-Emulator ⚡🔋

GitHub release (with filter) GitHub Repo stars GitHub forks GitHub actions Static Badge

This software enables EV battery packs to be used for stationary storage. It achieves this by converting the EV battery CAN data into a brand battery format that solar inverters can understand. This makes it extremely cheap and easy to use large EV batteries in a true plug'n'play fashion!


Hardware requirements 📜

This code fits on the LilyGo ESP32 T-CAN485 devboard , see

You will also need a complete EV battery. See the battery compability list on which are supported.

Finally, you will need a compatible hybrid solar inverter, for example the "Fronius Gen24" or "GoodWe ET"

Installation basics 🪛

  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 the battery
  3. Wire up high voltage cable between the Gen24 and the battery
  4. Add a 5-12V power source to power the LilyGo and 12V to the battery (uninterruptible PSU or 12V lead acid recommended in parallel)
  5. Some batteries need manual pre-charge circuit and positive/negative contactor control. Others are automatic. See the wiki for more info.
  6. Enjoy a big cheap grid connected battery!

Wiring example, LEAF battery 💡

Here's how to wire up the communication between the components. Wiring

Here's how to connect the high voltage lines HighVoltageWiring

For more examples showing wiring, see each battery types own Wiki page. For instance the Nissan LEAF page

How to compile the software 💻

  1. Download the Arduino IDE:
  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
  3. Go to "Boards Manager", and install the ESP32 package by Espressif Systems. The latest confirmed compatible version is 2.0.11

⚠️ Make sure to use a 2.x.x version - preferably 2.0.11 - and not a 3.x.x version, as it is not yet supported by the libraries we include with the SW! image

For future migration, see this link:

  1. The arduino settings should be set to "ESP32 Dev Module" with the following settings; alt text
  2. Select which battery type you will use, along with other optional settings. This is done in the USER_SETTINGS.h file.
  3. Press Verify and Upload to send the sketch to the board. NOTE: In some cases, the LilyGo must be powered through the main power connector instead of USB-C when performing the initial firsmware upload. NOTE: On Mac, the following USB driver may need to be installed:

This video explains all the above mentioned steps:

Dependencies 📖

This code uses the following excellent libraries:

It is also based on the information found in the following excellent repositories/websites:

Like this project? 💖

Leave a ⭐ If you think this project is useful. Consider hopping onto my Patreon to encourage more open-source projects!

最近版本更新:(数据更新于 2024-05-18 00:22:05)

2024-05-14 01:59:28 v5.10.0

2024-05-02 02:59:09 v5.9.0

2024-04-26 01:45:27 v5.8.0

2024-04-15 03:07:28 v5.7.1

2024-04-09 02:38:42 v5.7.0

2024-03-31 05:42:52 v5.6.0

2024-03-17 03:34:16 v5.5.0

2024-03-04 03:11:34 v5.4.0

2024-02-26 19:12:38 v5.3.0

2024-02-14 04:29:52 v5.2.0

dalathegreat/Battery-Emulator同语言 C++最近更新仓库

2024-06-20 20:16:30 niedev/RTranslator

2024-06-19 04:41:46 tensorflow/tensorflow

2024-06-15 05:13:49 ml-explore/mlx

2024-06-10 23:03:08 facebook/folly

2024-06-08 15:33:11 MaaAssistantArknights/MaaAssistantArknights

2024-06-06 02:58:59 protocolbuffers/protobuf