Patent ID: 7560885

Claim:
An apparatus for controlling a motor applied to an electrical compressor of a vehicle, the apparatus comprising: a rotor a plurality of switching elements configured to switch energizing phases of the motor successively for driving the motor; and a drive controller configured to drive at least one of the switching elements, wherein when the motor the drive controller is configured to drive a predetermined switching element used for the latest alignment of the rotor, wherein when stopping the motor the drive controller is further configured to align the rotor to a predetermined position by driving a predetermined switching element excluding the switching element used for the latest alignment, wherein the drive controller includes: a drive signal generating unit configured to generate a signal synchronized with rotation of the rotor of the motor; a position-alignment-signal generating unit configured to generate a position-alignment signal for aligning a stop position of the rotor, wherein the stop position of the rotor is configured to be aligned, as a part of stopping procedure of the motor, after a predetermined time elapses after driving of the motor is stopped; and a stop-position storing unit for storing the position-alignment signal generated by the position-alignment signal generating unit.