Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Add Support for BMS Tiltback 2.0 #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Relys
Copy link
Contributor

@Relys Relys commented Mar 10, 2025

Rewritten to use variables in Refloat configuration for all parameters as an alternative to #27 . Made lisp portion much smaller and am just going to do processing in C (need to anyways to access float_conf). Since it's so small I felt that moving it to it's own bms.lisp was unnecessary and am just spinning up a thread in package.lisp. Lisp takes up eeprom space and is not compiler optimized like C.

There are no hard coded parameters now. All comments were addressed from other PR with this rewrite. All features tested and confirmed working.

Requires 6.06+ firmware. After thinking about it a lot I don't want to have to support 6.05 forever. It really adds a lot of lisp code as you have to parse all individual cell voltages and not just space but function call overhead as well. 6.06 has easy methods that I merged upstream:

(get-bms-val 'bms-v-cell-min)
(get-bms-val 'bms-v-cell-max)

It will also attempt to get the actual minimum cell temperature (as opposed to just using the max cell temperature as a fall back) as well as the bms mosfet temperature. This relies on the BMS being updated to the new protocol which can be checked with (get-bms-val 'bms-data-version). If you want to learn more please refer to LispBM manual.

Everything will provide tiltback except the cell balance. It will start beeping 1 second after disengage (giving it time to settle) before alerting if criteria is met.

@Relys Relys force-pushed the feature/bms-tiltback-2.0 branch from df595fb to 82fd050 Compare March 10, 2025 00:20
@Relys Relys force-pushed the feature/bms-tiltback-2.0 branch from 82fd050 to 2ee12a4 Compare March 10, 2025 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant