-
Notifications
You must be signed in to change notification settings - Fork 25
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
disable PWM does not work #64
Comments
I tried to use SetEnable(RESET); with the same method as above. in main.c I've commented SetEnable(enable); out, to make sure that this one doesn't turn on the PWM again. |
I still do not know what you want to achieve. If you want pure silence you may have to study |
Ok, I'll check. |
mosfet do not need current to stay on |
Correct, Mosfets do not need current to stay on. |
I also do not like this ever ongoing pwm. I have lots of signal noise on my i2c bus ... |
actually i do not understand what the problem is |
I tried to turn off the PWM outputs but it seems that it doesn't have an effect.
My approach was to force timer_automatic_output_disable(TIMER_BLDC); in CalculateBLDC(void) as below
https://github.com/RoboDurden/Hoverboard-Firmware-Hack-Gen2.x-GD32/blob/839d1ab7ff600f73b3853bb75097d5406cfda1bf/HoverBoardGigaDevice/Src/bldc.c#L184
The PWM is still present and the wheels can spin as normally.
The text was updated successfully, but these errors were encountered: