Updated Firmware Compatibility (markdown)

Candas1
2021-04-12 17:56:56 +02:00
parent d8c1447444
commit a1ee551bd0

@@ -8,44 +8,46 @@ For AT32F403RCT6 or AT32F413RCT7 chips please check following [Firmware](https:/
## Pin Mapping ## Pin Mapping
This is the pin mapping this firmware is using, you might have to adapt it to your board variant in [defines.h](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Inc/defines.h) file This is the pin mapping this firmware is using, you might have to adapt it to your board variant in [defines.h](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Inc/defines.h) file
|Port|Pin| Some boards have 6 wires on the hall sensors cable, with an additional white wire. For those you can use the alternate mapping by changing parameter BOARD_VARIANT in [config.h](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Inc/config.h)
|---|---|
|SWCLK|PA14| |Port|Pin|Alternate Mapping|
|SWDIO|PA13| |---|---|---|
|TX/ADC1|PA2| |SWCLK|PA14||
|RX/ADC2/PPM|PA3| |SWDIO|PA13||
|TX/SCL|PB10| |TX/ADC1|PA2||
|RX/SDA|PB11| |RX/ADC2/PPM|PA3||
|LED|PB2| |TX/SCL|PB10||
|BUZZER|PA4| |RX/SDA|PB11||
|HALL LEFT U|PB5| |LED|PB2||
|HALL LEFT V|PB6| |BUZZER|PA4|PC13|
|HALL LEFT W|PB7| |HALL LEFT U|PB5||
|HALL RIGHT U|PC10| |HALL LEFT V|PB6||
|HALL RIGHT V|PC11| |HALL LEFT W|PB7||
|HALL RIGHT W|PC12| |HALL RIGHT U|PC10||
|LEFT UH|PC6| |HALL RIGHT V|PC11||
|LEFT UL|PA7| |HALL RIGHT W|PC12||
|LEFT VH|PC7| |LEFT UH|PC6||
|LEFT VL|PB0| |LEFT UL|PA7||
|LEFT WH|PC8| |LEFT VH|PC7||
|LEFT WL|PB1| |LEFT VL|PB0||
|RIGHT UH|PA8| |LEFT WH|PC8||
|RIGHT UL|PB13| |LEFT WL|PB1||
|RIGHT VH|PA9| |RIGHT UH|PA8||
|RIGHT VL|PB14| |RIGHT UL|PB13||
|RIGHT WH|PA10| |RIGHT VH|PA9||
|RIGHT WL|PB15| |RIGHT VL|PB14||
|LEFT_DC_CUR|PC0| |RIGHT WH|PA10||
|LEFT_U_CUR|PA0| |RIGHT WL|PB15||
|LEFT_V_CUR|PC3| |LEFT_DC_CUR|PC0||
|RIGHT_DC_CUR|PC1| |LEFT_U_CUR|PA0||
|RIGHT_U_CUR|PC4| |LEFT_V_CUR|PC3||
|RIGHT_V_CUR|PC5| |RIGHT_DC_CUR|PC1||
|DCLINK|PC2| |RIGHT_U_CUR|PC4||
|OFF|PA5| |RIGHT_V_CUR|PC5||
|BUTTON|PA1| |DCLINK|PC2|PA1|
|CHARGER|PA12| |OFF|PA5|PC15|
|BUTTON|PA1|PB9|
|CHARGER|PA12|PA11|
## Troubleshooting ## Troubleshooting
* Motors are cogging/not running in a smooth way - please try to swap the phases * Motors are cogging/not running in a smooth way - please try to swap the phases