2020-08-22, 06:09 PM
(2020-08-22, 02:37 AM)seandepagnier Wrote: the pwm frequency doesn't normally determine the speed. The speed is determined by the duty cycle. The exception is that as the frequency is increased, the maximum speed is decreased because of increased time switching. motor.ino gets around this by switching to a very low frequency once you reach maximum duty cycle, and because the duty cycle is mostly on, the current remains continuous and there is no noise generated, but the motor can achieve nearly the same output as a direct dc connection.
Some switching is needed at full duty cycle to refresh the bootstrap capacitors which charge the high-side mosfets.
Thanks, I was confusing FM and PWM.
I took the board back home to the workbench to hook up my scope.
The wave form looks weird with low output and distorted pulses.
Probably another faulty board
At least my H bridge works.