GithubHelp home page GithubHelp logo

adminius / bsc_fw Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shining-man/bsc_fw

0.0 0.0 0.0 6.16 MB

Firmware battery safety controller (BSC)

License: MIT License

C++ 31.62% Python 0.32% C 68.05% Makefile 0.01%

bsc_fw's Introduction

Battery safety controller (BSC)

Herzlichen Dank an alle Sponsoren, die das Projekt unterstützen. Zum Sponsoring geht es hier 😃

Energie-Pionier

Solarfackel

Koffein-Komplize

The Battery Safety Controller (BSC) is a freely configurable controller that can be used for a wide range of control and monitoring tasks for DIY batteries. The BSC can take over the central control of the Energy-Sorange system and can be used to implement a second safety level in addition to the BMS.

The BSC consists of two components. The BSC hardware and the corresponding software.

  1. The BSC Hardware, which is used as middleware between the BMS and the inverter. One advantage of the BSC hardware is its secure operation. The components and design are such that all physical interfaces are galvanically isolated.

  2. The BSC software, which makes the Battery Safety Controller hardware a freely configurable controller that can be used for a wide range of control and monitoring tasks in DIY battery systems.

The BSC software can also be used independently of the BSC hardware on ESP32 DevKit modules. In this case, for example, the NEEY balancer data can be transmitted to MQTT.

The BSC display can also be used for visualization.

Use cases of the BSC

1. Monitoring of connected devices (serial, Bluetooth)

For this purpose, the BSC can send the data from the connected devices (BMS, balancer, temperature sensors) via MQTT to a broker to display them graphically with Grafana, for example, or to further process the data from an automation system (ioBroker, NodRed, Home Assistant, ...).

It is possible to use the VenusOS dbus driver (dbus-bsc-can) to transfer the extended data (cell voltages, temperatures, ...) via the CAN bus to the Victron system.

2. Charge control

For this, the BSC takes the data from the connected devices to control the inverter (Victron, Solis, DEYE, ...) connected via the CAN bus. Here are several functions available to adapt the charge control to your own DIY battery.

  • Cell voltage dependent throttling of the charge current
  • Reduce charge current in case of cell drift
  • SoC dependent charge current reduction
  • Charge current cut-off: prevents continuous recharging when the battery is full
  • Combining data from the individual physical battery packs into an overall virtual battery pack, with consideration of many parameters, such as can/does the battery pack charge/discharge at all.

3. Second safety level besides the BMS.

The BSC can monitor various configurable parameters on connected devices (serial, Bluetooth) to create a second level of security.
Parameters that can be monitored include:

  • Does the connected BMS respond regularly
  • Cell voltages (min/max)
  • Total voltage (min/max)
  • Temperatures

This can be used, for example, to control the relay outputs to trigger a load break switch.

4. Temperature monitoring

Up to 64 OneWire temperature sensors (DS18B20) can be connected and monitored. There are different regulations for monitoring the temperature:

  • Maximum value monitoring
  • Maximum value monitoring with one sensor as reference value
  • Differential value monitoring

All settings can be freely parameterized via a web interface.
As an example a part of the Inverter Settings:
bsc_inverter_settings

Supported BMS (RS485)

  • JBD (Jiabaida)
  • JK
  • Seplos, Seplos V3 [1]
  • DALY
  • Sylcin [1]
  • Gobel [1]

[1]: With the Seplos and the Sylcin BMS, up to 8 devices can be connected to one serial port.

Supported Inverter

  • Victron
  • Pylontech protocol (Solis, DEYE, ...)
  • BYD protocol (only tested with SolarEdge RWS)

Supported Bluetooth devices

  • NEEY (up to 7 pieces) [2]
  • JK-BMS (Test phase)

[2]: Special function: With the NEEY Balancer, not only can the data be read, it can also be configured via the BSC.

Features der BSC-Hardware

  • 6x Relay outputs
  • 4x Digital inputs (isolated)
  • 3x Serial interface (isolated) [3]
  • Onewire (64x DS18B20)
  • CAN (isolated)
  • Bluetooth
  • WLAN

[3]: With the Serial Extension the BSC can be extended by 8 additional physical and galvanically isolated serial ports.

First steps

A lot of further information about commissioning, supported devices, information about the WebUI can be found in the Wiki.

Use with an ESP32 DevKit

GPIOs

Interface RX TX
Serial 0 GPIO 16 GPIO 17
Serial 1 GPIO 23 GPIO 25
Serial 2 GPIO 35 GPIO 33
CAN GPIO 5 GPIO 4

More information

Status display

To show the status of the BSC and the connected BMSes there is a status display for the BSC.
More details are in the Github project of the display. GitHub project Display

VenusOS dbus driver

To display more data in VenusOS (Victron) like the cell voltages of the connected BMS or the temperatures of the OneWire sensors, there is a dbus driver. Here the data is not transmitted via WLAN to the VenusOS, but via the CAN bus.
For more info see the github project: dbus-bsc-can

bsc_fw's People

Contributors

shining-man avatar meikjaeckle avatar nsc2001 avatar drakesoft avatar do13 avatar sladetheleveller avatar thagenmaier avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.