Updated Battery (markdown)

Candas1
2021-04-12 17:45:08 +02:00
parent df57c6913b
commit f5290c62d3

@@ -1,10 +1,10 @@
Most of the Hoverboard mainboards use a 10S2P LIPO Batteries (36v Nominal - 42v Charged ).<br /> Most of the Hoverboard mainboards use a 10S2P LIPO Batteries (36v Nominal - 42v Charged ).<br />
If you want to use a battery with less or more cells in series, change BAT_CELLS parameter in config.h (10 by default).<br /> If you want to use a battery with less or more cells in series, change BAT_CELLS parameter in [config.h](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Inc/config.h) (10 by default).<br />
Batteries up to 12S have been used safely in the community, but do it at your own risk. Batteries up to 12S have been used safely in the community, but do it at your own risk.
## Battery level low alerts: ## Battery level low alerts:
You can adjust the levels to your needs in config.h. You can adjust the levels to your needs in [config.h](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Inc/config.h).
|Level|Single Cell Voltage|Beeps|On/Off|Sideboard Led| |Level|Single Cell Voltage|Beeps|On/Off|Sideboard Led|
|---|---|---|---|---| |---|---|---|---|---|
|LVL5|3.9v|||Green blink| |LVL5|3.9v|||Green blink|
@@ -16,15 +16,15 @@ You can adjust the levels to your needs in config.h.
## Calibration: ## 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 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 * Measure battery voltage with a multimeter and write the value * 100 to parameter BAT_CALIB_REAL_VOLTAGE in [config.h](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Inc/config.h)
* Turn the board on and wait a minute for the Battery ADC to stabilize * 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 * Read value BatAdc(5) from Debug Serial Output and write it to parameter BAT_CALIB_ADC in [config.h](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Inc/config.h)
* Save, compile and flash the board * Save, compile and flash the board
* Value BatV(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: ## Troubleshooting:
If the board is beeping 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 * Make sure you have updated the number of cells in [config.h](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Inc/config.h) if you use a battery with less cells in series
* 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 * 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 If the board shuts down and won't restart