8000 GitHub - dalathegreat/Battery-Emulator: This revolutionary software enables EV battery packs to be easily reused for stationary storage in combination with solar inverters
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dalathegreat/Battery-Emulator

Repository files navigation

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 compile the software πŸ’»

Start by watching this quickstart guide

IMAGE ALT TEXT HERE

  1. Download the Arduino IDE: https://www.arduino.cc/en/software
  2. Open the Arduino IDE.
  3. Click File menu -> Preferences -> Additional Development -> Additional Board Manager URLs -> Enter the URL in the input box: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json and click OK.
  4. Click Tools menu -> Board: "...." -> Boards Manager..., install the esp32 package by Espressif Systems (not Arduino ESP32 Boards), then press Close.

NOTE: The ESP32 version depends on which release of Battery-Emulator you are running! See the Release Notes for more info on which version to use with the current version (Suggested ESP32 version X.Y.Z)

bild

  1. The Arduino board should be set to ESP32 Dev Module and Partition Scheme to Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS) (under Tools -> Board -> ESP32 Arduino) with the following settings:

ArduinoSettings

  1. Select which battery type you will use, along with other optional settings. This is done in the USER_SETTINGS.h file.
  2. Copy the USER_SECRETS.TEMPLATE.h file to USER_SECRETS.h and update connectivity settings inside this 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 firmware upload. NOTE: On Mac, the following USB driver may need to be installed: https://github.com/WCHSoftGroup/ch34xser_macos

NOTE: If you see garbled messages on the serial console, change the serial console to match the baud rate to the code, currently 115200.

NOTE: If you see the error Sketch too big then check you set the Partition Scheme above correctly.

This video explains all the above mentioned steps: https://youtu.be/_mH2AjnAjDk

Linux Development Environment Setup

In addition to the steps above, ESP32 requires a dependency for a Python module, pyserial install using the cli.
python3 -m pip install pyserial

If you're using Ubuntu , use apt to manage the dependencies of arduino:
pyserial install: sudo apt install python3-serial

Arduino AppImage must be set as executable after downloading to run correctly
example: chmod 775 arduino-ide_2.3.3_Linux_64bit.AppImage

Also you might need to install FUSE to run appimages sudo apt install libfuse2

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!

About

This revolutionary software enables EV battery packs to be easily reused for stationary storage in combination with solar inverters

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

0