I am trying to setup individual cell monitoring i have crius aiop v2 and my setup is as follows:
V bat is connected to A0 using an dividider make of 51k(high side) and 33k(low side) as suggested in the firmware, by v bat i mean the 3rd cel - 11.1V
Second cell(7.4 V) is connected to A1 using a divider made of 114.9k (high side) and 94.7 k(low side)
third cell(3.7V) is connected directly to A2 pin .
This is how is setup the code in config.h
Code: Select all
#define VBAT // uncomment this line to activate the vbat code
#define VBATSCALE 131 // (*) (**) change this value if readed Battery voltage is different than real voltage
#define VBATNOMINAL 126 // 12,6V full battery nominal voltage - only used for lcd.telemetry
#define VBATLEVEL_WARN1 107 // (*) (**) 10,7V
#define VBATLEVEL_WARN2 99 // (*) (**) 9.9V
#define VBATLEVEL_CRIT 93 // (*) (**) 9.3V - critical condition: if vbat ever goes below this value, permanent alarm is triggered
#define NO_VBAT 16 // Avoid beeping without any battery
#define VBAT_OFFSET 0 // offset in 0.1Volts, gets added to voltage value - useful for zener diodes
/* for V BAT monitoring of individual cells
* enable both VBAT and VBAT_CELLS
*/
#define VBAT_CELLS
#define VBAT_CELLS_NUM 3 // set this to the number of cells you monitor via analog pins
#define VBAT_CELLS_PINS {A2, A1, A0} // set this to the sequence of analog pins
#define VBAT_CELLS_OFFSETS {83, 50, 0} // in 0.1 volts, gets added to voltage value - useful for zener diodes
#define VBAT_CELLS_DIVS {98 , 122, 75 } // divisor for proportional part according to resistors - larger value here gives smaller voltage
Can anybody please help how i should setup the FW so that is measures correctly? i cannot figure out how to set the parameters so that it measures correctly the cell voltages, until now i have only measured crap and also the battery monitoring which was working correctly before now is not working anymore after uncommenting #define VBAT_CELLS.