Pwm on a DC motor

thats ormal..
Torque isnt linear, more quadratic with voltage.
Try change output to follow potposition^2