Updated Setup current and speed limits (markdown)

Candas1
2022-01-02 10:02:57 +01:00
parent 1ee65bd39e
commit 542447709e

@@ -1,7 +1,16 @@
## Current Limit
You can adjust I_MOT_MAX/I_DC_MAX parameters in config.h file to decrease/increase current limit(Amps). I_DC_MAX should be equal to I_MOT_MAX + 2A.
## Speed Limit
You can adjust N_MOT_MAX in config.h file to decrease/increase the speed limit(RPMs).<br>
Be aware that the firmware has a hard limit of 2000 RPMs to prevent overflows.<br>
The speed can overshoot the limit, this is a know [issue](https://github.com/EFeru/hoverboard-firmware-hack-FOC/issues/132).<br>
## Setting up the Current and Speed limits on the go
This feature let's you change the Max Current(I_MOT_MAX) and Max Speed(N_MOT_MAX) on the go without having to modify [config.h](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Inc/config.h) and flash the board
* press the power button for more than 5 sec and immediately after the beep sound press one more time shortly
* move and hold the pots to a desired limit position for Max Current(INPUT1) and Max Speed(INPUT2), maximum being the values you have put in config.h
* press the power button to confirm or wait for the 10 sec timeout
The settings will be stored in flash memory and will be erased only if you fully delete memory before flashing.<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).