摘要 |
PROBLEM TO BE SOLVED: To provide a motor controller accurately controlling the place of an object to be moved so as not to count improper pulses output from an encoder detecting motor revolution when the moving range of the article to be moved driven by a motor is determined by a mechanical place control section. SOLUTION: In an AF camera, in which focusing is conducted by moving an internal body 12, an infinite-end switch 31 and a close-up switch 32 changed from off to on by the abutting of the internal body 12 are fitted at each place at one end and the other end of the moving range of the internal body 12. A CPU 21, in which a focusing mode is obtained in response to the off signals of the switches 31, 32, a motor is controlled according to the count of the pulse signal S1 of a photo-interrupter 30, a non-focusing mode is acquired in response to the on signals of these switches 31, 32, and the motor is controlled by counting the pulse signal S1, is mounted. |