Open flute2k3 opened 3 years ago
Why do you assume this repo does FOC control?
Why do you assume this repo does FOC control?
when referring to function blockPWM and blockPhaseCurrent in bldc.c, it isn't talking about FOC control of Hexagon of SVPWM? the block commutation control does not need these at all. is it a simplified FOC control without current loop?
I am not familiar with this repo but I believe this one is the only one with foc control
thanks Candas1, the repo you mentioned is referring to Original firmware: https://github.com/NiklasFauth/hoverboard-firmware-hack, there is a video of original repo talking about FOC control. so the original repo does a simple FOC control considering only 6 rotation position, and without current loop - means the author treat DQ voltage as control target instead of current. by this way I assume there will be unavoidable torque ripple and less efficiency. a true FOC as the repo you mentioned is claimed to "reduced noise and vibrations smooth torque output and improved motor efficiency. Thus, lower energy consumption". it will be very interesting to see the current sensing and calculation detail since there are 3 ops per motor on board for this purpose, two for 2 phase mosfet on-Rds sensing and one for bus current sensing.
I go through the codes but seems there is no phase current measurement codes implemented. the hoverboard applies mosfet on resistance current sensing, the algorithm is kind of complicated to separate the phase current from bus current. without phase current sensing, how to ensure the typical foc control?