Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

current sensing and measurement #118

Open
flute2k3 opened this issue Aug 12, 2021 · 4 comments
Open

current sensing and measurement #118

flute2k3 opened this issue Aug 12, 2021 · 4 comments

Comments

@flute2k3
Copy link

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?

@Candas1
Copy link

Candas1 commented Aug 12, 2021

Why do you assume this repo does FOC control?

@flute2k3
Copy link
Author

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?

@Candas1
Copy link

Candas1 commented Aug 16, 2021

I am not familiar with this repo but I believe this one is the only one with foc control

@flute2k3
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants