I'm using an L298N motor driver to control a DC motor. I'm using only a single input pin since I need only a single direction control. I'm using a PWM pin on my Particle Photon (uses Arduino libraries) to control the speed of said DC motor. I have a 12V motor so I supply 14V to the L298N (due to 2V drop by it to get 12V actual on the motor).
analogWrite(PWM_PIN, 0 - 255)
This line will set the speed motor. However, it's not smooth speed control.
Values:
0 - 70: Noise, no movement.
70 - 130: Slow movement not really usable for my case.
130 - 255: Seems to be max speed.
The speed does not increase as I would expect. Additionally the changes in speed are sudden instead of smooth.
Is there a way to make the speed changes smoother and reflective of the value, instead of just having what appears to be Nothing, Slow, Max.? Could this also be an issue with my motors? I'm using a generic DC motor.
I was thinking of maybe upgrading to something of more quality like a A2212 2200KV Brushless DC motor.