A method for predicting and detecting a failure in a compressor in an air conditioner including a heat exchanger, the compressor having a motor, piping connecting the heat exchanger and the compressor, and a controller connected to the compressor, the method comprising the steps of:
- detecting a driving current for driving the motor of the compressor;
- obtain a mechanical angle phase of the motor from the detected driving current;
- and
- detecting a pulsation in the detected driving current based on a q-axis current feedback value of the detected driving current and the obtained mechanical angle phase;
- and
- predicting or detecting a failure in the compressor based on a magnitude and a duration of the detected pulsation in the detected driving current.