Updated Setup current and speed limits (markdown)

Candas1
2022-03-30 13:20:23 +02:00
parent f56a73fe83
commit a1d5cbcd98

@@ -4,6 +4,7 @@ I_DC_MAX should be set to I_MOT_MAX + 2A.<br>
## Speed Limit ## 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>
This is only limiting the speed, the speed you will actually reach depends on control type, control mode, phase advance/field weakening settings, speed coefficient, and current limit.<br>
Be aware that the firmware has a hard limit of 2000 RPMs to prevent overflows.<br> Be aware that the firmware has a hard limit of 2000 RPMs to prevent overflows.<br>
This [issue](https://github.com/EFeru/hoverboard-firmware-hack-FOC/issues/86) explains how to reach high speeds, but use it at your own risk.<br> This [issue](https://github.com/EFeru/hoverboard-firmware-hack-FOC/issues/86) explains how to reach high speeds, but use it at your own risk.<br>
The speed can overshoot the limit, this is a known [issue](https://github.com/EFeru/hoverboard-firmware-hack-FOC/issues/132).<br> The speed can overshoot the limit, this is a known [issue](https://github.com/EFeru/hoverboard-firmware-hack-FOC/issues/132).<br>
@@ -15,4 +16,7 @@ This feature let's you change the Max Current(I_MOT_MAX) and Max Speed(N_MOT_MAX
* press the power button to confirm or wait for the 10 sec timeout * press the power button to confirm or wait for the 10 sec timeout
⚠ 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> ⚠ 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). 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).
## Debug Protocol
Another way to change those settings without flashing the board is the [debug protocol](https://github.com/EFeru/hoverboard-firmware-hack-FOC/wiki/Debug-Serial#debug-protocol). You will be able to change the settings via commands through the serial port.