sijones / DiyBatteryBMS

Integration of Victron to Pylontech supported inverters with DIY Batteries
Other
10 stars 0 forks source link
battery-management-system lifepo4 pylontech solar-energy victronenergy

This is the new V2 version of https://github.com/sijones/VE.DirectMQTTCANBUS, this will be the version for the future and is actively being developed.

The new UI means no coding knowledge is required, just flash and set up.

DiyBatteryBMS takes data from a Victron Smart Shunt and sends it to a inverter over CAN using Pylontech protocol allowing for "DIY LifePO4" Batteries to be integrated.

The Victron Smart Shunt provides the actual monitoring data, this software translates it to Pylontech protocol that most Inverters understand, the part that you need to configure is the charging voltage, current that is also sent to the Inverter.

As long as the Inverter accepts Pylontech protocol over CAN Bus this software should work with it, it's tested with Solis Inverters but forum users have reported it working with others.

The data is also sent over MQTT and allows commands to be sent back to control Charge/Discharge/Force Charge.

This software uses a ESP32 developers board with a MCP2515 Can Bus adapter currently developed using Visual Studio code.

See the WIKI for more detailed documentation.

The software sends the data in Pylontech Protocol, most inverters should support this.

With the help of the MQTT server you can integrate the monitoring data to virtually any Home Automation System. I use Home Assistant to automate off peak battery charging (using Force Charge) and can also enable and disable the charging and discharging.

The device itself no longer requires internet as the NTP Servers are now configurable, the web browser accessing this device does need internet access as the framework for the web page is loaded from a Content Delivery Network.

Features

Features to come:

Limitations

Hardware & Software Installation

See the Wiki page

Hardware Recommended

esp32dev or the esp32plus

Links: Disclosure, these are affliate links which will give me some money if you buy using them - this will help fund further development

esp32dev https://amzn.to/3ypBQsv

esp32plus https://amzn.to/3R43zWv

LCD https://amzn.to/3WDjRJb

Isolated CAN Bus Adapter https://amzn.to/45fyzbE

Non-Isolated Adapter - Does work and cheaper but can be blown if not careful. https://amzn.to/3VxEy8F

Victron Smart Shunt https://amzn.to/3JV64q7

Disclaimer

I WILL NOT BE HELD LIABLE FOR ANY DAMAGE THAT YOU DO TO YOU, ONE OF YOUR DEVICES, BURN YOUR HOUSE DOWN, ETC. A CERTAIN LEVEL OF KNOWLEDGE IS EXPECTED, LIKE HOW TO WIRE THINGS AND PROGRAM THE SOFTWARE TO YOUR DEVICE.