Simple PWM control with potentiometer