摘要 |
A camera includes a movable unit. A motor drives the movable unit. A memory stores a drive target position of the movable unit. A pulse generator generates pulses according to a movement of the movable unit. A first detector detects the remaining number of pulses up to a target position on the basis of the number of generated pulses, and the drive target position. A second detector detects a moving speed of the movable unit on the basis of an interval of the generated pulses. Based on the detected moving speed, a prediction circuit predicts the number of pulses which will be generated by the pulse generator until the movable unit is stopped when the motor is in an open state. A calculation circuit calculates a difference between the predicted number of pulses and the remaining number of pulses. A controller controls the motor by selecting, based on the difference, one of a motor ON mode for applying a power supply voltage to the motor, a motor open mode for applying no power supply voltage to the motor to drive it by inertia, and a motor brake mode for short-circuiting the motor to brake it.
|