From 4fa850ac05e2d4432e1e72801360e1ec932613db Mon Sep 17 00:00:00 2001 From: Candas1 Date: Tue, 3 May 2022 17:03:08 +0200 Subject: [PATCH] Updated Firmware Compatibility (markdown) --- Firmware-Compatibility.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Firmware-Compatibility.md b/Firmware-Compatibility.md index d62b260..4c9803d 100644 --- a/Firmware-Compatibility.md +++ b/Firmware-Compatibility.md @@ -8,11 +8,15 @@ For those you can use the alternate mapping by changing parameter BOARD_VARIANT It could be that your mainboard was designed differently, please check if the pin mapping is matching with the one in this [section](https://github.com/EFeru/hoverboard-firmware-hack-FOC/wiki/Firmware-Compatibility#pin-mapping). +In general, if you have doubts about you mainboard's compatibility: +* Try sinusoidal control type with ADC variant first for your tests, this will prove phases/halls are mapped to the right pins +* Then try FOC control type with ADC variant, this will prove phase current sensing is also working fine, this is mandatory for FOC +* Then you can try FOC control type and Speed control mode with ADC variant, this will prove the phases/hall sensor sequence is correct and speed/direction measurement is accurate + ## :toolbox: Troubleshooting * Motors are cogging/not running in a smooth way - please try to swap the phases. Usually, color-correct mapping (blue to blue, green to green, yellow to yellow) works fine. However, some hoverboards have a different layout then others, and this might be the reason your motor isn't spinning well * In speed mode, wheels are running at maximum speed - find the right mapping for hall sensors, firmware probably measures a speed with opposite sign * With hovercar variant in torque mode, braking actually accelerates - find the right mapping for hall sensors, firmware probably measures a speed with opposite sign -* In general, if you have doubts about you mainboard, please first use sinusoidal control type for your tests, and then use more advanced control type or control mode ## 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