This revolutionary software enables EV battery packs to be easily reused for stationary storage in combination with solar inverters
Find a file
Daniel Öster 1641987909
Merge pull request #2892 from nagyrobi/revert-2889-fix/nissan-leaf-hx-scale
Revert "Nissan LEAF 🔋: apply Hx raw-to-percent scale on ZE0/AZE0 too"
2026-08-30 20:18:38 +03:00
.github Update PULL_REQUEST_TEMPLATE.md 2026-08-30 13:05:21 +02:00
boards Add workflow for T-2CAN 2025-08-31 15:45:15 +03:00
Software Merge pull request #2892 from nagyrobi/revert-2889-fix/nissan-leaf-hx-scale 2026-08-30 20:18:38 +03:00
test Merge remote-tracking branch 'upstream/main' into akasol-battery 2026-08-30 18:07:49 +02:00
tools Add BYD Atto 3 cell balance timer page served from flash 2026-08-30 20:48:59 +10:00
web_data/dtc Add DTC 21F151 for BMW iX 2026-08-14 12:03:31 +03: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 Change identify_build.py to generate a header instead of using defines 2026-08-10 15:18:07 +01:00
.pre-commit-config.yaml [pre-commit.ci] pre-commit autoupdate 2026-08-03 16:31:42 +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 2026-08-02 00:39:49 +03:00
default_8MB.csv drop a copy of default_8MB.csv into the repo root 2026-07-18 22:40:01 +02:00
default_16MB.csv Add partition file for S3 boards 2026-07-18 23:50:00 +02: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 Omit -Werror from ESP32S3 2026-08-12 13:52:26 +03:00
README.md Update README.md 2026-08-13 22:27:00 +03:00
sdkconfig.be_size.defaults Test, restore assertions_disable 2026-07-20 00:02:52 +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