pv-baxi / esp32ess

GNU General Public License v3.0
10 stars 2 forks source link

Victron Multiplus 2 ESS using ESP32 controlling VE.Bus

Implements an ESS system with Victron Multiplus II and Pylontech batteries. Instead by a Cerbo GX, the Multiplus is directly controlled by the ESP32 via the VE.Bus.

ESP32ESS hardware photo

Description

This ESS control code works for two famous Multiplus II wiring configurations: For systems where the Multiplus is only connected with ACin, as well as for systems with emergency power where the Multiplus is connected to ACin and ACout2.

In ACout2 configuration, input from an elecric meter might not even be required, as the ESS assistant inside the Multiplus will automatically compensate energy on ACout2 from/into the battery to always maintain 0W power at ACin if possible. Assuming it gets periodic 0W commands from this code via the VE.Bus.

Input from an electric meter is needed if power is also sourced (or feed-in) in front of the Multiplus device, meaning in parallel to ACin or connected to other electrical phases, if one whishes to also compensate this energy to let a totalizing power meter show zero.

In a conventional ESS system an additional electric meter is required to be installed. This code can use the optical 1/10000kWh impulse output that most official digital meters already have.

Note that currently this code only supports a single Multiplus device (single- phase). In the future it might be extended to also control a three-phase Multiplus system. If interested in this, read here.

Video

Here you can see the system in action:

Short explanation and view of the power meter while cancelling out 600W: https://www.youtube.com/watch?v=5YttD_S421Q

View of the control circuit display: https://www.youtube.com/watch?v=WXgG3uDJ3_o

VE.Bus

For hardware details read my documentation here.

For software details read my documentation here.

Getting Started

Dependencies

Currently there are no additional dependencies. All used libraries are included in the Arduino IDE. The author was using Arduino IDE version 2.2.1 on Windows 10 to compile this code.

Installing

Authors

Contributors names and contact info

Baxi (pv-baxi@gmx.de)

Version History

License

This project is licensed under the GNU General Public License v3.0 or later - see the LICENSE.md file for details

Acknowledgments