Updated Battery (markdown)

Candas1
2021-02-26 09:39:31 +01:00
parent e8865fe94d
commit d0c8c100b2

@@ -18,7 +18,7 @@ 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
* Turn the board on and wait for a few minutes for the Battery ADC to stabilize * 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 * Read value BatAdc or 5 from Debug Serial Output and write it to parameter BAT_CALIB_ADC in config.h
* Save, compile and flash the board * Save, compile and flash the board
* Value BatV or 6 in Debug Serial should match with the measured battery voltage now * Value BatV or 6 in Debug Serial should match with the measured battery voltage now