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

remove pwm_margin to get 100% PWM #153

Closed
Rudi84 opened this issue Mar 24, 2021 · 7 comments
Closed

remove pwm_margin to get 100% PWM #153

Rudi84 opened this issue Mar 24, 2021 · 7 comments

Comments

@Rudi84
Copy link

Rudi84 commented Mar 24, 2021

Hi Emanuel,

is it possible to adapt the current measurement to allow 100% PWM. If I am correct currently we are clamped at 89%. With this also the sin3 or sin shape is destroyed at higher input values. In practice this does not matter that much, because inductance of motor seems big enough to smooth this. Getting 100% would have following advantages:

  • get real harmonic shape also for high input
  • gain 11% of speed
  • for FOC also starpoint shift (like sin3 in Sin-mode) can be implemented, which gain theoretically additional 14% more speed and with some clever starpoint shift strategy power losses in FETs can be reduced

Unfortunately I do not the meas equipment by my self and I know this is not a quick fix. But maybe if you have some time and interest, can you try to modify to get 100% PWM running?

Thanks and best regards
Rudi

@EFeru
Copy link
Owner

EFeru commented Mar 24, 2021

Hi Rudi,

Thank you for the feedback. You are right regarding the shape beeing clipped above 89%. For Commutation and Sinusoidal I see no issue to go to full 100% and I will consider it in the next commit. However, for FOC i tried many things to improve current measurements, but they are very unreliable at high PWM values. So i am afraid we cannot increase the max PWM for FOC. Maybe implementing current observers, e.g., Kalman filter can improve the current measurements. But unfortunately at the moment I cannot spend more effort on it.

@Rudi84
Copy link
Author

Rudi84 commented Mar 30, 2021

Hi Emanuel,

thanks for already updating this. "Unfortunately" I am using you FOC-Torque Mode because, you can perfect control the throttle and limit current to not over stress the battery. But I am also using the modified delta motor, so I am also not sure if e.g. a tuned Kalman filter for your motor work on mine. So can be closed for now

@Rudi84 Rudi84 closed this as completed Mar 30, 2021
@Rudi84 Rudi84 reopened this Apr 19, 2021
@Rudi84
Copy link
Author

Rudi84 commented Apr 19, 2021

Hi Emanuel,

I tried to understand the current measurement problem. From Hardware point of view current is measured over LS Fet, so problem appears if LS Fet is off or on to short, so at high PWM. But it should be no problem at low PWM? So in theory, low margin can also be removed? This would already make half the way.
Best regards

@Candas1
Copy link
Collaborator

Candas1 commented Jul 4, 2022

I think this issue can be closed, I am investigating other ways of increase PWM with FOC but it will take a lot of time.

@Candas1 Candas1 closed this as completed Jul 4, 2022
@Candas1
Copy link
Collaborator

Candas1 commented Mar 30, 2023

Took me years to understand but I thought I can still reply here.
Removing the lower margin and shifting the midpoint would definitely allow higher phase voltage.
But it will lead to uneven commutation on low side and high side mosfets.

@Rudi84
Copy link
Author

Rudi84 commented May 13, 2024

Hi,

I finally found some time to try this out. Means shifting midpoint to bottom (bottom clamp) and removing the lower margin. The measured result is more or less like expected:

  • less thermal losses in LS FET --> only 80% thermal power compared to mid clamp
  • ~2% more no load speed (should be in theory 5%)
  • motors seems to run bit more noisy, not a lot, but recognizable a t low speed

Conclusion: If you do not want to squeeze out the last % of performance and do not have a problem with cooling your electronic, keep the implemented mid clamp version

@Candas1
Copy link
Collaborator

Candas1 commented May 13, 2024

Hi,

That's also called null_v0, it's being discussed here for VESC.
The reason for the noise could be the deadtime, for a small pwm duty cycle the mosfet might not even have time to open.

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

3 participants