In an electric compressor integrally comprising a compression mechanism, a motor
and an electric circuit (inverter) for driving the motor, the electric circuit
is protected from thermal damage.
When an actual number of revolutions is not more than a fixed number of revolutions
and the temperature of an electric circuit 13 exceeds a fixed temperature,
the temperature Tm of a motor 12 and the temperature Ti of the electric
circuit 13 are lowered by increasing the number of revolutions of the motor,
and when the actual number of revolutions is more than a fixed number of revolutions
and the temperature of the electric circuit 13 exceeds a fixed temperature,
the temperature Tm of the motor 12 and the temperature Ti of the electric
circuit 13 are lowered by decreasing the number of revolutions of the motor.