Coder Social home page Coder Social logo

zzfd97 / openxpbms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from t3chn0mad/openxpbms

0.0 0.0 0.0 648 KB

Open Source BMS(Battery Management System) for Valence XP Batteries

License: GNU General Public License v3.0

C++ 85.86% Python 14.14%

openxpbms's Introduction

OpenXPBMS

An Open Source BMS(Battery Management System) for Valence XP Batteries that communicates with the built-in modules over the factory communication cables. The goal of this project is not to reproduce all of the functionality available through the vendor diagnostic app. The BMS only has to read a very small subset of the total data available from the built in modules to determine if it should continue to allow the battery or batteries to maintain connected to the system. The BMS does NOT make any write changes to the module; it is only listening.

Status : Early Development

This repo has three main sections

BMS

Arduino sketch to run the actual BMS. At this point, it is in early stages on development. Full functionality for monitoring (1) battery has been implemented! CRC HAS NOW BEEN IMPLEMENTED! Please post feedback on use with multiple batteries! Hop over to [https://diysolarforum.com/threads/interfacing-with-valence-built-in-monitoring.2183/] for more information.

PCB

This directory now has a basic KiCad schematic showing how the modules should be connected together. In the future there will also be KiCad PCB design files in order to solder everything to one board.

Utilities

Scripts and other tools to run from a PC for diagnostic or research purposes. There is one script here currently. It allows you to obtain voltage and temperature readings from a battery assigned to ID 1 using python.

The general gist of how to communicate with the built-in modules

Each battery communicates using a protocol similar to MODBUS over RS485. First a wake up command is broadcast over RS485 to wake up any battery modules on the line. Immediately after the broadcast command is sent, a request has to be made. In this projects's case, we make requests to a specific battery to read holding registers that contain the voltage and temperature information for that battery. The built in modules listen to the request and the module that is being requested responds with it's information.

openxpbms's People

Contributors

t3chn0mad 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.