now you set battery alert levels in volt per cell and set number of cells. less annoying battery alert beeps. small cleanup.

This commit is contained in:
larsm
2018-07-21 17:37:02 +02:00
parent dd5a128199
commit 3d0ed7e9c0
3 changed files with 737 additions and 681 deletions

View File

@@ -12,9 +12,10 @@
#define BAT_CALIB_REAL_VOLTAGE 42.0 // input voltage measured by multimeter
#define BAT_CALIB_ADC 1667 // adc-value measured by mainboard (value nr 4 on UART debug output)
#define BAT_LOW_LVL1 36.0 // gently beeps at this voltage level. ~3.6V/cell
#define BAT_LOW_LVL2 33.0 // your battery is almost empty. Charge now! ~3.3V/cell
#define BAT_LOW_DEAD 31.0 // undervoltage lockout. ~3.1V/cell
#define BAT_NUMBER_OF_CELLS 12 // normal Hoverboard battery: 10s
#define BAT_LOW_LVL1 3.6 // gently beeps at this voltage level. [V/cell]
#define BAT_LOW_LVL2 3.5 // your battery is almost empty. Charge now! [V/cell]
#define BAT_LOW_DEAD 3.37 // undervoltage lockout. [V/cell]
// ################################################################################