EFeru / hoverboard-firmware-hack-FOC

With Field Oriented Control (FOC)
GNU General Public License v3.0
1.15k stars 953 forks source link

The wheels rotate at different speeds. #347

Closed vaavdeev closed 1 year ago

vaavdeev commented 2 years ago

Variant

USART

Control type

FOC

Control mode

Speed

Description

The wheels rotate at different speeds.

UART control via arduino

Motion testing.

steer = 0 speed=200

The scheme is working. There is a problem.

The monitor shows a slight difference in wheel rotation. For example, the left wheel is - 199, the right wheel is +106

A slight difference in rotation is visually visible.

Is it possible to make wheel rotation correction in configuration files?

Thank you.

Candas1 commented 2 years ago

Hi,

199 and 206 you mean ? Are you sure Steering is zero ? Have you done auto calibration by mistake ? It's not needed for USART, you can erase the chip in ST-LINK Utility before flashing to be on the safer side

What's your use case ? I don't speed will always be perfectly 200 anyway