# fededc88/bms_unr architecture

> Architecture diagram of the GitHub repository fededc88/bms_unr, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/fededc88/bms_unr
- Repository: https://github.com/fededc88/bms_unr

## Overview

This repository is a battery-management-system project for electric vehicles. Its documented product goals are to estimate battery state of charge, balance cells, protect the pack, and report battery status over RS232 and CAN. The tree identifies separate hardware, firmware, simulation, and documentation modules, but no source excerpts were provided, so implementation-level calls and links between those modules cannot be verified. Capability links below reflect the README’s stated goals, not inspected firmware flow.

Main entry points: [`bms_firmware`](https://github.com/fededc88/bms_unr/tree/main/bms_firmware) (Status reporting)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_firmware["BMS capabilities"]
  node_soc["SoC estimation"]
  node_balance["Cell balancing"]
  node_protect["Pack protection"]
  node_report["Status reporting"]
end

subgraph group_engineering["Project modules"]
  node_hardware["Hardware design"]
  node_simulations["Battery model"]
  node_documentation["Project documentation"]
end

node_battery[("Battery pack")]
node_vehicle(("On-board computer"))

node_battery -->|"estimate SoC"| node_soc
node_battery -->|"equalize cells"| node_balance
node_battery -->|"protect pack"| node_protect
node_report -->|"report status"| node_vehicle

click node_soc "https://github.com/fededc88/bms_unr/tree/main/bms_firmware"
click node_balance "https://github.com/fededc88/bms_unr/tree/main/bms_firmware"
click node_protect "https://github.com/fededc88/bms_unr/tree/main/bms_firmware"
click node_report "https://github.com/fededc88/bms_unr/tree/main/bms_firmware"
click node_hardware "https://github.com/fededc88/bms_unr/tree/main/bms_hardware"
click node_simulations "https://github.com/fededc88/bms_unr/tree/main/bms_simulations"
click node_documentation "https://github.com/fededc88/bms_unr/tree/main/bms_documentation"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_soc,node_balance,node_protect,node_report toneBlue
class node_hardware,node_simulations,node_documentation,node_battery toneAmber
class node_vehicle toneIndigo
```

## Components

### BMS capabilities

- [SoC estimation](https://github.com/fededc88/bms_unr/tree/main/bms_firmware): `bms_firmware`
- [Cell balancing](https://github.com/fededc88/bms_unr/tree/main/bms_firmware): `bms_firmware`
- [Pack protection](https://github.com/fededc88/bms_unr/tree/main/bms_firmware): `bms_firmware`
- [Status reporting](https://github.com/fededc88/bms_unr/tree/main/bms_firmware): `bms_firmware`

### Project modules

- [Hardware design](https://github.com/fededc88/bms_unr/tree/main/bms_hardware): `bms_hardware`
- [Battery model](https://github.com/fededc88/bms_unr/tree/main/bms_simulations): `bms_simulations`
- [Project documentation](https://github.com/fededc88/bms_unr/tree/main/bms_documentation): `bms_documentation`

### Other components

- **Battery pack**
- **On-board computer**

## Connections

- Battery pack → SoC estimation: estimate SoC (evidence: `README.md`)
- Battery pack → Cell balancing: equalize cells (evidence: `README.md`)
- Battery pack → Pack protection: protect pack (evidence: `README.md`)
- Status reporting → On-board computer: report status (evidence: `README.md`)
