Patent ID: 8587236

Claim:
A motor control device comprising: a motor control unit that is configured to control a motor; and a signal output unit that is configured to output a predetermined signal each time the motor rotates by a predetermined amount, wherein: the motor control device is configured to control the motor on the basis of the output signal of the signal output unit to put an object to be driven by the motor in a target state, the motor control unit is configured to function as: a first control unit that is configured to estimate a current upper limit value, which is an upper limit value of a current to be input to the motor, on the basis of the rotation speed of the motor specified from the output signal of the signal output unit and a current decrease caused by back electromotive force, the first control unit configured to determine a control input corresponding to the estimated current upper limit value as a control input to be applied to the motor to control the motor, a second control unit that is configured to determine a control input to be applied to the motor on the basis of an operation amount of the motor specified from the output signal of the signal output unit and a target value of the operation amount to control the motor, and in an early period of driving of the motor, the first control unit is configured to control the motor, and in a late period of driving of the motor, the second control unit is configured to control the motor, such that the object is put in the target state, and the second control unit is configured to function as: a target setting unit configured to, when the motor control unit is switched to motor control by the second control unit, set the target value of the operation amount at each time after the switching time on the basis of the operation amount of the motor at the switching time specified from the output signal of the signal output unit such that the object is put in the target state, a feedback control unit configured to calculate a feedback control input corresponding to a deviation between the target value of the operation amount set by the target setting unit and the operation amount specified from the output signal of the signal output unit, a feedforward control unit configured to calculate a feedforward control input corresponding to the target value of the operation amount of the motor set by the target setting unit in accordance with a predetermined transfer function with the target value as input, a determination unit configured to determine an addition value of the feedforward control input and the feedback control input as the control input, to be applied to the motor, and an adjustment unit configured to adjust a parameter of the transfer function used in calculating the feedforward control input such that the feedforward control input at the switching time becomes a value corresponding to the control input determined by the first control unit immediately before switching.