I am using L298 motor driver to drive motors (12v , 900mA),I am using PWM to control motor speed but the problem is
1.When I set PWM frequency to 100 Hz motor work with jerks no noise at all.
2.When I set PWM frequency to 500 Hz motor work with little jerks and little noise.
3.When I set PWM frequency to 1000 Hz motor work with noise and no jerks at all.
4.When I set PWM frequency to 20 kHz motor dosen't work at all.
what should I do?