2020-03-25, 10:02 AM
Quote:What hbridge and setup are you using? Do you know the PWM frequency? My controllers normally use a 16khz frequency below 98%, and at 100% a lower frequency which is not audible at full duty.
So, you would only hear the noise maybe when speeding up and slowing down, but it's difficult to hear for most people, but maybe your motor resonates at 16khz to make lower audible frequencies?
If you are using pwm_mode==2 I think it uses 1khz which is very annoying whine, but a lot of those controllers overheat and don't work correctly at higher frequencies. You could try it, but the default in the code is safer.
I am using this h-bridge and it drives a liniair actuator something like this.
Indeed I am using pwm_mode=2 and the actuator whines constantly, so not only at the start.
It has a two-way 25kHZ highest frequency PWM input.
So the trick is to try a higher frequency in the motor.ino, I'll give it a try and monitor the temperature closely.
Thanks for the description of "whine" that descibes it in the best way I suppose