Potentiometer regulating motor...noot easy

This should be < 1

Perhaps the variable types need to be changed.