Smart car with PWM wave control speed