mirror of
https://github.com/EFeru/hoverboard-firmware-hack-FOC.git
synced 2025-08-04 01:54:27 +02:00
Updated Input Calibration (markdown)
@@ -10,8 +10,8 @@ Setting the type of input:
|
|||||||
|
|
||||||
Setting Minimum, Middle and Maximum position:
|
Setting Minimum, Middle and Maximum position:
|
||||||
* Connect FTDI RX to blue wire from right sensor board cable to read USART DEBUG values, baud rate should be 38400
|
* Connect FTDI RX to blue wire from right sensor board cable to read USART DEBUG values, baud rate should be 38400
|
||||||
* Turn the potis to minimum position, write value 1: to **INPUT1_MIN** and value 2: to **INPUT2_MIN** in config.h
|
* Turn the potis to minimum position, write value 1: to **INPUT1_MIN** and value 2: to **INPUT2_MIN** in [config.h](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Inc/config.h)
|
||||||
* Turn the potis to maximum position, write value 1: to **INPUT1_MAX** and value 2: to **INPUT2_MAX** in config.h
|
* Turn the potis to maximum position, write value 1: to **INPUT1_MAX** and value 2: to **INPUT2_MAX** in [config.h](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Inc/config.h)
|
||||||
* For middle resting potis, let the potis in the middle resting position, write value 1: to **INPUT1_MID** and value 2: to **INPUT2_MID**
|
* For middle resting potis, let the potis in the middle resting position, write value 1: to **INPUT1_MID** and value 2: to **INPUT2_MID**
|
||||||
|
|
||||||
[Config.h](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Inc/config.h) values will be ignored if you have already used the auto-calibration procedure below.
|
[Config.h](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Inc/config.h) values will be ignored if you have already used the auto-calibration procedure below.
|
||||||
@@ -29,8 +29,8 @@ If you haven't moved one of the inputs, if it's floating or is grounded, it will
|
|||||||
If min and mid values are close, the inputs will be identified as normal potis(type=1).<br />
|
If min and mid values are close, the inputs will be identified as normal potis(type=1).<br />
|
||||||
Otherwise the inputs will be identified as middle resting potis(type=2).<br />
|
Otherwise the inputs will be identified as middle resting potis(type=2).<br />
|
||||||
|
|
||||||
For inputs with type 3 (AUTO) in config.h, auto-calibration will automatically identify the right input type.
|
For inputs with type 3 (AUTO) in [config.h](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Inc/config.h), auto-calibration will automatically identify the right input type.
|
||||||
If input type 0,1,2 has been selected in config.h, auto-calibration will fail if identified input type is not matching and disable the input.
|
If input type 0,1,2 has been selected in [config.h](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Inc/config.h), auto-calibration will fail if identified input type is not matching and disable the input.
|
||||||
|
|
||||||
If you use [Debug Serial](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/wiki/Debug-Serial), you can see the results of auto-calibration procedure:
|
If you use [Debug Serial](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/wiki/Debug-Serial), you can see the results of auto-calibration procedure:
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user