This revolutionary software enables EV battery packs to be easily reused for stationary storage in combination with solar inverters
Find a file
2025-10-01 20:01:52 +03:00
.github Switch T-2CAN back to dio, and try 16mb 2025-09-12 09:01:28 +01:00
boards Add workflow for T-2CAN 2025-08-31 15:45:15 +03:00
Software Increase buffer size to 32, same as other interface 2025-10-01 20:01:52 +03:00
test Include CAN interface number in logs (with distinct TX/RX) 2025-09-12 15:31:44 +01:00
.clang-format add .clang-format file, pre-commit configuration file and GitHub Action to run pre-commit with clang-format 2023-11-08 23:11:46 +01:00
.gitignore Update gitignore for local test execution 2025-08-31 11:48:21 +03:00
.pre-commit-config.yaml [pre-commit.ci] pre-commit autoupdate 2025-09-01 16:29:53 +00:00
cmake_clean.bat Explicit event initialization, local unit test execution 2024-02-09 23:23:16 +01:00
CODE_OF_CONDUCT.md Update CODE_OF_CONDUCT.md 2024-02-07 14:13:07 +02:00
CONTRIBUTING.md Update CONTRIBUTING.md 2025-09-11 18:38:29 +03:00
LICENSE Initial commit 2023-02-19 21:21:30 +02:00
min_spiffs.csv Replacing non maintained mqtt library with ESP-MQTT 2025-01-14 21:06:25 +00:00
platformio.ini Enable QIO and 80MHZ flash on Stark CMR 2025-09-23 09:38:28 +03:00
README.md Update README.md 2025-09-21 21:02:45 +03:00

Battery-Emulator 🔋

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

What is Battery Emulator?

Many manufacturers sell home battery systems to enable homeowners to store power collected from the grid, or renewable sources, to use at times when electricity demand is higher. However almost all of these home battery systems charge a high cost for every kilowatt hour (kWh) of capacity you buy.

At the same time, EV manufacturers have been putting high capacity battery packs into their cars, with no firm plan for what should happen to those batteries if the car is damaged in a crash, or reaches the end of its life as a vehicle.

Battery Emulator enables EV battery packs to be repurposed for stationary storage. It acts as a translation layer between the EV battery and the home inverter. This makes it extremely cheap and easy to use large EV batteries in a true plug'n'play fashion!

Caution

Working with high voltage is dangerous. Always follow local laws and regulations regarding high voltage work. If you are unsure about the rules in your country, consult a licensed electrician for more information.

Quickstart guide 📜

Installation basics 🪛

  1. Connect your Battery Emulator hardware to your EV battery
  2. Connect your Battery Emulator hardware to your inverter
  3. Wire up high voltage cable between the inverter and the battery
  4. Add a low voltage power supply to your Battery Emulator hardware
  5. Configure any additional requirements to allow Battery Emulator to switch on your EV battery (also referred to as 'closing contactors')
  6. Enjoy a big cheap grid connected battery!

For examples showing wiring, see each battery type's own Wiki page. For instance the Nissan LEAF page

How to install the software 💻

Start by watching this quickstart guide

IMAGE ALT TEXT HERE

  1. Open the webinstaller page
  2. Follow the instructions on that page to install the software
  3. After successful installation, connect to the wireless network (Battery-Emulator , password: 123456789)
  4. Go to setup page and configure component selection
  5. (OPTIONAL, connect the board to your home Wifi)
  6. Connect your battery and inverter to the board and you are done! 🔋

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! As a bonus, you will get access to the Discord server, where we hangout, develop, support, share, discuss etc. all things related to DIY EV storage solutions. See you on the server? ;)

<------ Click here to learn more!

image