Updated Setup current and speed limits (markdown)

Candas1
2022-06-09 15:39:17 +02:00
parent 06f3b33f40
commit 8a3821f3d0

@@ -2,8 +2,15 @@
I_MOT_MAX parameter is the maximum single motor current limit, you can adjust in [config.h](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Inc/config.h) file to decrease/increase current limit(Amps).<br> I_MOT_MAX parameter is the maximum single motor current limit, you can adjust in [config.h](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Inc/config.h) file to decrease/increase current limit(Amps).<br>
I_DC_MAX parameter is the maximum stage2 DC Link current limit for Commutation and Sinusoidal types (This is the final current protection). Above this value, current chopping is applied. To avoid this make sure that should be set it to I_MOT_MAX + 2A.<br> I_DC_MAX parameter is the maximum stage2 DC Link current limit for Commutation and Sinusoidal types (This is the final current protection). Above this value, current chopping is applied. To avoid this make sure that should be set it to I_MOT_MAX + 2A.<br>
⚠ Current and speed limits will be stored in flash memory if you set them up on the go or if you do the auto-calibration, so changing it in config.h file won't have any effect anymore. It will be only erased from flash memory if you fully delete memory before flashing.<br>
An alternative to bypass those settings is to change **FLASH_WRITE_KEY** in [config.h](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Inc/config.h).
## :o: Speed Limit ## :o: Speed Limit
You can adjust N_MOT_MAX in [config.h](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Inc/config.h) file to decrease/increase the speed limit(RPMs).<br> You can adjust N_MOT_MAX in [config.h](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Inc/config.h) file to decrease/increase the speed limit(RPMs).<br>
⚠ Current and speed limits will be stored in flash memory if you set them up on the go or if you do the auto-calibration, so changing it in config.h file won't have any effect anymore. It will be only erased from flash memory if you fully delete memory before flashing.<br>
An alternative to bypass those settings is to change **FLASH_WRITE_KEY** in [config.h](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Inc/config.h).
This is only limiting the speed, the speed you will actually reach depends on: This is only limiting the speed, the speed you will actually reach depends on:
* The [battery](https://github.com/EFeru/hoverboard-firmware-hack-FOC/wiki/Battery) you are using * The [battery](https://github.com/EFeru/hoverboard-firmware-hack-FOC/wiki/Battery) you are using
* [Control type/Control mode](https://github.com/EFeru/hoverboard-firmware-hack-FOC#foc-firmware) * [Control type/Control mode](https://github.com/EFeru/hoverboard-firmware-hack-FOC#foc-firmware)