How do I control motor speed on a smart car using just a PWM with potentiometer?