The foxBMS secondary mcu API documentation
BATTERYSYSTEM User configuration

Macros

#define BS_NR_OF_MODULES   1
 
#define BS_NR_OF_BAT_CELLS_PER_MODULE   12
 
#define BS_NR_OF_TEMP_SENSORS_PER_MODULE   8
 
#define BS_NR_OF_VOLTAGES_FROM_CURRENT_SENSOR   3
 
#define BS_NR_OF_VOLTAGES_FROM_MCU_ADC   2
 
#define BS_NR_OF_CONTACTORS   6
 
#define BS_SEPARATE_POWERLINES   1
 

Detailed Description

Contains the configuration settings of the battery system, e.g. number of cells and modules or which monitoring chip is used.

Macro Definition Documentation

◆ BS_NR_OF_BAT_CELLS_PER_MODULE

#define BS_NR_OF_BAT_CELLS_PER_MODULE   12

number of battery cells per battery module (parallel cells are counted as one)

Type:
int
Default:
12

◆ BS_NR_OF_CONTACTORS

#define BS_NR_OF_CONTACTORS   6

number of contactors On the foxBMS Basic Board 6 contactors are supported. On the foxBMS Basic Extension board one can use 3 more contactors.

Type:
int
Default:
3

◆ BS_NR_OF_MODULES

#define BS_NR_OF_MODULES   1

number of modules in battery pack

Type:
int
Default:
2

◆ BS_NR_OF_TEMP_SENSORS_PER_MODULE

#define BS_NR_OF_TEMP_SENSORS_PER_MODULE   8

number of temperature sensors per battery module

Type:
int
Default:
6

◆ BS_NR_OF_VOLTAGES_FROM_CURRENT_SENSOR

#define BS_NR_OF_VOLTAGES_FROM_CURRENT_SENSOR   3

number of pack voltage inputs measured by current sensors (like IVT-MOD)

Type:
int
Default:
3

◆ BS_NR_OF_VOLTAGES_FROM_MCU_ADC

#define BS_NR_OF_VOLTAGES_FROM_MCU_ADC   2

number of voltages measured by MCU internal ADC

Type:
int
Default:
3

◆ BS_SEPARATE_POWERLINES

#define BS_SEPARATE_POWERLINES   1

separation of charge and discharge power line

Type:
select(2)
Default:
1