I'm commanding a motor with a simple analogWrite(pin,x). When testing the motor with a different value of x (from 0-255), I've noticed some weird tendencies.
The motor will always start turning at an x value of above 200. Anything below, it will sometimes start, and sometimes it won't start (I've found that it never starts below 140, but above, it's inconsistent). At first, I assumed that it was below it's minimum required voltage. However, the inconsistency makes me think it could be something else? Also, sometimes sitting the motor down onto the table with some force will cause it to start running.
Anyone have any ideas what could be causing this or how to solve the issue?
jacobengland16:
The motor will always start turning at an x value of above 200. Anything below, it will sometimes start, and sometimes it won't start (I've found that it never starts below 140, but above, it's inconsistent).
That sounds normal to me. If you have a sensor that can detect when the motor is rotating then you can gradually increase the PWM value until it rotates.