Motor spins inconsistently

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?

PWM turns on/off an output (analogWrite(pin,x)) , google duty cycle.

Your motor may need a certain on time to get moving.

Show us a good schematic of your circuit.
Show us a good image of your wiring.
Give links to components.

Posting images:
https://forum.arduino.cc/index.php?topic=519037.0

What motor? How is it connected? What happens at low PWM rates if you manually spin the motor?

Steve

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.

...R

Sounds like your motor is either underpowered or has a lot of static friction.

You must post all the details of your hardware to get meaningful replies - link to datasheet or product page
as a minimum. Both motor and H-bridge.