Important
is an opensource/openhardware project to monitor/control SIMULTANEOUSLY
a PIPsolar/Voltronic Inverter (most of) and a BMS (JKBMS/AntBMS/DalyBMS).
It adds also the possibility to control up to 16 relay allowing for example to control an Automatic Transfert Switch (ATS) (Offgrid<=>return to grid).
The PCB board uses only crossing components or pluging ones in order to have an easy setup/maintenance.
The MCU used is an ESP32 running allowing communication by WiFi to (HA) natively (but MQTT can be added easily). Main features are:
- Direct communication and control with (most) voltronic/pipsolar inverters via a direct ethernet cable (pvbrain got a builtin RS232=>TTL). RS485 communication is also possible for non-voltronic inverters, but not yet tested. Important parameters can be set directly from HA (or the webserver if activated)
- Monitor a BMS (tested with JKBMS but should work with the antBMS or the daly)
- Perform the detection up to 3x AC sources (solar/grid/other) (in order for example to make a soft switching for the ATS part)
- Monitor via 2x PZEM-004T V3 (modbus) both the solar & grid productions
- Control up to 16x Relays, i.e. for an ATS control or the inverter mode of modern voltronic inverter (Axpert max I & II for example)
- Monitor temperature/humidity/pressure of your basement (you can setup alarms in case)
- Free I2C ports available to plug extra I2C sensors
Front | Back |
---|---|
3D View |
---|
Please check this youtube video how to assemble your PVbrain PCB
Please find all gerber files required for the PCB into the following zip file: Gerber
please find all electronic parts required to assemble the PVBrain: BOM
An optional addon card can be pluged to monitor direct voltages of your PV strings (up to two)
Front | Back |
---|---|
3D View |
---|
Please find all gerber files required for the addon PCB into the following zip file: Gerber
Please check this youtube video explaining the operation of the OPTION2 board (in French)
Front | Back |
---|---|
3D View |
---|
The 3 UART outputs are arranged on a terminal block:
- one of the inputs has the RS323/TTL converter option (UART0)
- 3 PZEM connectors + one output on terminal block (UART2)
- one of the inputs has the Linky option (UART3) but also available on a terminal block without the option
A PCF8075 card for 16 I2c bus outputs
- Possibility of attaching a (4) Relay card to this card.
- 2 additional I2c bus outputs on terminal blocks
Options for future development:
- Two Dallas Probe outputs
- A DHT22 sensor output
- A DC clamp input (I added an RC filter following the experience of the solar router).
- Two AC clamp inputs
- All usable GPIOs are output on terminal blocks so as to be able to upgrade as much as possible.
__Gerber files:
Please find all gerber files required for the PCB into the following zip file: Gerber
With additional diagram: Schema
To finish the list of components: BOM
Off-Grid / Grid | Off-Grid / Gried-Tired |
---|---|
You can compile the yaml from a Linux, a Windows machine or from HASSIO with the ESPhome . The arduino library V2.0 is required to increase the loop stack memory and then execute all entities in memory.
Here is a (french) video showhing how to install ESPhome on a windows platform:
- run anaconda powershell prompt (of course after anaconda been installed on your machine)
- create a local folder via the mkdir command, e.g.
>mkdir pvbrain
and enter inside via the command cd, e.g>cd pvbrain
. - please download the pvbrain.yaml in your local folder
- in the same folder, create an empty
secrets.yaml
file where you will write inside:
esphome_ssid: "your_SSID"
esphome_password: "your_wifi_password"
- save the file
From your console, compile and upload via the following command
>esphome run pvbrain.yaml
If you want only to compile the file, please run instead
>esphome compile pvbrain.yaml
In the first header part of the pvbrain.yaml
, you can find in the external section, the place where you can spefify your particular PIPsolar/voltronic inverter.
Actually, the current PVbrain.yaml uses the pip8048 branch (with 2xMPPT strings).
Note
Even with the pip8048 branch, it should work fine with Voltronic with one unique MPPT input.
external_components:
- source: github://syssi/esphome-jk-bms@main
refresh: 0s
- source: github://syssi/esphome-pipsolar@pip8048
refresh: 0s
Most of former models has one mppt and the main branch must be prefered:
external_components:
- source: github://syssi/esphome-jk-bms@main
refresh: 0s
- source: github://syssi/esphome-pipsolar@main
ref
For very old (24V) inverters, another branch can be used
external_components:
- source: github://syssi/esphome-jk-bms@main
refresh: 0s
- source: github://syssi/esphome-pipsolar@hms-3k-24v
ref
After a successful firmware update, Home assistant will auto discover the new integration.
Please add (all) associated entities in your favorarite HA dashboard.
Example of my current PVbrain dashboard with Entities allowing to control some important inverter parameters.
The yaml used last template number/select/switch esphome objects.
Everything is directly imported from ESPhome into HA. No extra HA configuration required.
If you install the two PZEM 004T V3, both have the same modbus adress by factory default.
You need to change the adress for the second one. To do these please refer to this (french) video:
For this you will need the DF-ROBOT WK2132 card (ref.: DFR0627). You will need to modify the code and pass the uart_1 (pin 01 and 03) into a 2nd I2C bus.
Two cards are available for this:
-The 1st (the smallest) is used for serial sensors.
-The 2nd integrates the possibility of installing converters (Rs232/Rs485 and CAN).
The esphome integration was carried out by . A second integration and in progress with another 2UART to SPI expansion card.