Skip to content

spartanracingelectric/Custom-BMS

Repository files navigation

SR-15 Battery Management System Repository


A.k.a the AMS

Environment Setup/ Tools Needed

  • Install STM32CubeIDE
  • Install STM32CubeProgrammer
  • Install STM32CubeMX
  • ST-LINK/V2

Project Overview

Note: Lots of the code is prewritten after setting up the project

  1. main.c and main.h
  2. 6811.c and 6811.h: contains the methods mostly written by analog devices
  3. balance.c and balance.h: conatins the cell balancing code
  4. can.c and can.h: contains the code to send CAN bus messages
  5. module.c and module.h: conatins the code to read voltages (Volt) and to read temperatures (Celsius)
  6. print.c and print.h: contains the methods for printing over serial
  7. safety.c and safety.h: conatins the code for cell summary, faults, warnings, and state

The #defines are in the files listed below, and the picture show what can be modified

main.h:

image

6811.c:

image

module.c:

image

safety.c:

image

can.c:

image

Resources

  1. https://www.analog.com/media/en/technical-documentation/data-sheets/ltc6811-1-6811-2.pdf

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published