Giter VIP home page Giter VIP logo

esp8266_jbd_bms_monitor's Introduction

ESP8266_JBD_BMS_Monitor

This project provides Platform.io code for building an ESP8266 based monitor for JBD BMS.

  • Sends read commands to the JBD BMS and receives all key statistics, including battery voltage, current, remaining capacity, number of cycles, BMS protection status, state of charge, NTC temperatures, individual cell voltages and cell delta voltage.
  • Sends these statistics to InfluxDB and displays the key metrics on a TFT screen.
  • Turns an optional external active cell balancer (e.g. Hankzor) on and off when certain cell voltage thresholds are met (by default it will turn on when any cell is above 3.4v, and off when the highest cell drops below 3.35v).

Notes

  • The file include/secrets.h should be populated with information relevant to your setup (WiFi SSID, password, and InfluxDB details)
  • Data can be sent to InfluxDB using the HTTP API or UDP. Both can be disabled by commenting out the DEFINE statements at the top of main.cpp
  • A generic ILI9341 TFT screen can be connected through the ESP's standard SPI interface. The TFT's reset pin should be connected to the ESP's reset pin.
  • The active-high input for a relay connected across the balancer's "run" pads should be connected to D0/GPIO16. Note this pin is high at boot time, so may turn the balancer on briefly when the ESP is reset.
  • This is designed to work in conjunction with my UART multiplexer, allowing simultaneous Bluetooth connectivity and ESP monitoring: https://github.com/octal-ip/STM32_JBD_UART_Mux
  • The code includes TelnetPrint, which can be used to view realtime statistics through telnet port 23 of the ESP.
  • SoftwareSerial is implemented for the interface to the JBD BMS on ports D1 (TX) and D2 (RX), leaving the hardware serial available for debugging.
  • The variables maxCurrent, minVoltage and maxVoltage should be adjusted in the code to suit your battery to ensure the ring meters render with a useful scale.
  • The TFT_eSPI library must be configured to suit your display. Instructions for the generic SPI ILI9341 are included inline with the code.

TFT Statistics

BMS_TFT

Grafana Output

Grafana statistics

The Bluetooth module, STM32 multiplexer and ESP8266 side-by-side

BT STM32 and ESP8266

Credits:

RobTillaart for RunningAverage

JAndrassy for TelnetStream

Peter Lerup for ESPSoftSerial

Bodmer for TFT_eSPI

esp8266_jbd_bms_monitor's People

Contributors

octal-ip avatar

Stargazers

trikie avatar

Watchers

 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.