Updated Battery (markdown)

Candas1
2021-03-25 13:32:12 +01:00
parent 0e49293dbc
commit 6811214c5b

@@ -4,6 +4,7 @@ Batteries up to 12S have been used safely in the community, but do it at your ow
## Battery level low alerts:
You can adjust the levels to your needs in config.h.
|Level|Single Cell Voltage|Beeps|On/Off|Sideboard Led|
|---|---|---|---|---|
|LVL5|3.9v|||Green blink|
@@ -13,20 +14,18 @@ Batteries up to 12S have been used safely in the community, but do it at your ow
|LVL1|3.5v|Fast beeps|BAT_LVL1_ENABLE|Red Blink|
|DEAD|3.37v|Shutdown||Off|
You can adjust the levels to your needs in config.h.
## Calibration:
Battery voltage has to be calibrated to have a more accurate reading, for this you need [Debug Serial](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/wiki/Debug-Serial) to be active
* Measure battery voltage with a multimeter and write the value * 100 to parameter BAT_CALIB_REAL_VOLTAGE in config.h
* Turn the board on and wait for a minute for the Battery ADC to stabilize
* Read value BatAdc or 5 from Debug Serial Output and write it to parameter BAT_CALIB_ADC in config.h
* Turn the board on and wait a minute for the Battery ADC to stabilize
* Read value BatAdc(5) from Debug Serial Output and write it to parameter BAT_CALIB_ADC in config.h
* Save, compile and flash the board
* Value BatV or 6 in Debug Serial should match with the measured battery voltage now
* Value BatV(6) in Debug Serial should match with the measured battery voltage now
## Troubleshooting:
If the board is beeping
* Make sure you have updated the number of cells in config.h if you use a battery with less cells in series
* With a battery of low quality/health, pulling a lot of current will result in a big battery voltage drop and can lead the board to turn off
* With a battery of low quality/bad health, pulling a lot of current will result in a big battery voltage drop and can lead the board to turn off
If the board shuts down and won't restart
* The battery BMS will shut the power off if too much current is being drawn