1. Field of the Invention
The present invention relates to a focus controller and an optical apparatus using the same.
2. Description of the Related Art
Conventionally, Japanese Patent Laid-Open Nos. and 05-064056 disclose mountain climbing driving as an autofocus (“AF”) for an optical apparatus, such as a video camera or a TV camera. The mountain climbing driving is a method that detects a definition of a photography screen from a high frequency component in a video signal obtained from an image pickup lens, and controls a position of a focus lens in an optical-axis direction so that the definition can become maximum. The conventional position control finely reciprocates (wobbles) the focus lens in the optical-axis direction at a constant period through an open loop control using a stepping motor.
However, the stepping motor loses synchronization between a control pulse and a motor's rotation in the high-speed rotation or with an excessively large load, (stepping out). In order to solve this problem, Japanese Patent Laid-Open No. 10-150798 proposes use of a blushless DC motor instead of the stepping motor. Since the blushless DC motor detects a rotor's position by using a sensor, it has an advantage in maintaining synchronization between the instruction signal and the rotor's position and in preventing stepping out.
Nevertheless, the open loop control using the blushless DC motor cannot control a lens's position, and has a problem in that the wobbling amplitude becomes inaccurate. A closed loop is needed for accurate positioning control with the blushless DC motor, but thereby causes a problem in which a circuit becomes complex.
The present invention provides a focus controller and an optical system configured to prevent stepping out and to provide highly precise positioning with a comparatively simple configuration.
A focus controller according to one aspect of the present invention configured to control focus of an optical element includes a sensor configured to detect an image formed by the optical element and to output an image signal, a focus state detector configured to detect a focus state based on a contrast value of the image obtained from the image signal output from the sensor, and a driving mechanism configured to move one of the optical element and the sensor relative to the other in controlling the focus, wherein the driving mechanism includes a motor that includes a rotor having a magnet, and a stator having a coil configured to provide a rotational force to the magnet, a position sensor configured to detect a position of the rotor in the motor, and a driving controller configured to select, in accordance with the contrast value, first driving configured to switch an electrization to the coil in accordance with an output of the position senor, or second driving configured to switch the electrization to the coil in the motor in accordance with a determined time interval.
Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
Referring now to the accompanying drawings, a description will be given of a focus controller according to the present invention and an optical apparatus using the same.
The optical element 1 is a lens group or the like, and includes a focus lens (or lenses) 1a. An image magnification hardly changes even when the focus lens 1a finely reciprocates or wobbles in an optical-axis direction D, and only a focal length changes. Therefore, the focus of an image formed on an image sensor 2 can be controlled by moving the focus lens 1a in the optical-axis direction D.
The focus state detector detects a focus state based on a contrast value of an image formed by the optical element 1. The focus state detector includes the image sensor 2 and a signal processor 3. The image sensor 2 includes a photoelectric conversion element, such as a CCD or a C-MOS sensor, which converts light that has passed the optical element into an electric signal. The signal processor 3 detects a contrast value of a screen based on a signal that has been converted into an electric signal by the image sensor 2. Thereby, a focus state of the focus lens 1a can be recognized. The focus state detector obtains a contrast value of an image formed by the optical element 1 by detecting a high frequency component of an electric signal obtained by the image sensor 2, and detects the focus state based on the contrast value.
The driving mechanism 4 shown in
While this embodiment controls the focus of the image formed on the image sensor 2 by moving the focus lens 1a in the optical-axis direction D, the driving mechanism may move one of the optical element 1 and the focus state detector relative to the other. In other words, the image sensor 2 may be moved in the optical-axis direction instead of the focus lens 1a. The focus of the image formed on the image sensor 2 by the optical element 1 can be controlled by changing a relative position between the focus lens 1a and the image sensor 2 in the optical-axis direction.
The motor 5 is a two-phase stepping motor with two coils, i.e., A phase and B phase, and can be rotated by one step corresponding to a predetermined angle by sequentially switching the electrization direction to the coil. More specifically, the motor 5 has a rotor 5a having a magnet 5a1 and a stator 5b having a coil 5b1 configured to provide a rotational force to the magnet 5a1.
The position sensor 6 includes, as shown in
The motor driver 7 electrifies the motor 5, and enables the current in a predetermined direction to flow in each coil of the motor 5. The driving switch 8 drives the motor 5 through a first driver 9 or a second driver 10 in accordance with an instruction from the controller 11.
The first driver 9 drives the motor 5 through feedback electrization switching mode. The feedback electrization switching mode is a mode that switches the electrization to the coil 5b1 in the motor 5 in accordance with a pulsed signal from the position sensor 6, and is the same driving method as the blushless DC motor. The feedback electrization switching mode is used to move the focus lens 1a in the constant direction (for example, toward the on-focus point) at a high speed (first speed).
The second driver 10 drives the motor 5 through the step mode. The step mode is a mode that switches the electrization to the coil 5b1 in the motor 5 in accordance with a determined time interval, and is the same driving method as the stepping motor. The step mode is used to reciprocate (wobble) the focus lens 1a in the optical-axis direction D at a low speed (which is a second speed smaller than the first speed) at a constant period.
The controller 11 sends a switching signal to the driving switch 8 in accordance with a contrast value obtained by the signal processor 3. A description will be given later of a more specific switching signal generation method.
The driving switch 8 and the controller 11 constitute a driving controller. In accordance with the contrast value, the driving controller switches the electrization to the coil in the motor 5 between the first driver 9 and the second driver 10.
Next follows a description of the feedback electrization switching mode and the step mode as an operational mode of the motor 5.
The feedback electrization switching mode is a method that switches the electrization direction to the motor 5 in accordance with the signal of the position sensor 6. Referring to
The step mode is a method that changes to the next electrization step after a predetermined time period has passed irrespective of the rotation state of the motor 5. The motor 5 rotates by every predetermined angle by switching between the electrization direction to the A phase coil and the electrization direction to the B phase. Therefore, the open loop control can easily rotate the motor to a target position. However, switching to the next electrization without detecting the rotating state of the motor may cause stepping out.
Referring now to
Initially, assume that the focus lens 1a is located at an A point shown in
In order to set the wobbling amplitude equal to or smaller than one step of the motor, one or two-phase driving that switches the electrization to the coil 5b1 of the motor 5 for each phase or the micro step driving that gradually changes a ratio of the current to each coil 5b1 is performed. Thereby, the amplitude of the motor 5 can be made equal to or smaller than one step, and the motor can be reciprocated with small amplitude that is not available in the feedback electrization switching mode.
When the controller 11 can recognize the direction (step 105), the controller 11 selects the feedback electrization switching mode (step 106) and mountain-climbs the focus lens 1a in that direction (step 107). The feedback electrization switching mode can avoid stepping out of the motor 5 at the high-speed operation time. The contrast value increases from A to C in
This embodiment uses two motor driving modes, i.e., the feedback electrization switching mode and the step mode. Since the motor does not step out even when it is driven at a high speed in the feedback electrization switching mode, a speed of the motor can be increased so as to shorten a time period necessary to obtain the on-focus state. In addition, the torque is smaller than that of the step mode, and thus the feedback electrization switching mode can use a smaller motor for driving and promote a miniaturization of the whole apparatus. On the other hand, the step mode can easily determine a speed and a position through the open loop control. In addition, one or two-phase electrization driving or micro step driving can provide a motor position with higher resolution than that of the feedback electrization switching mode. Thus, a switch between the feedback electrization switching mode and the step mode can provide precise positioning without stepping out of the motor in the focusing operation, shortening the focusing time period.
Referring now to
In driving the focus lens 1a, the focus lens 1a is wobbled in the step mode similar to the first embodiment so as to find the direction in which the contrast value increases. Therefore, the flow from the step 101 to the step 105 (including the step 104 to the step 112) is similar to that shown in
According to the relationship shown in
When detecting the peak (step 210), the controller 11 selects the step mode (step 211). In addition, this selection of the operational mode when having a hysteresis characteristic is also effective to antihunting of the focus lens 1a. In addition, when the load fluctuation to the motor 5 is sufficiently small and a speed of the motor 5 little changes, the determination criteria of the operational mode switching can use whether a time change amount of the contrast value is larger than a predetermined value instead of the gradient of the contrast value to the lens position. The load applied to the calculation can lessen because it is unnecessary to divide the change amount of the contrast value by the moving distance.
The second embodiment provides an effect of shortening the focusing time period in addition to the effect of the first embodiment. In other words, the first embodiment switches from the feedback electrization switching mode to the step mode when the contrast value of the screen once exceeds the peak, and thus it is likely to take a long time to obtain the on-focus state when the lens goes past the on-focus point far. On the other hand, this embodiment can reduce going of the lens too far from the on-focus point. When the contrast value of the screen approaches to the peak as the on-focus point, a change amount of the contrast value becomes small. Since the feedback electrization switching mode can be switched to the step mode when the change amount of the contrast value becomes small, the deceleration starts in front of the on-focus point and effectively shortens the focusing time period.
Referring now to
After driving starts (step 301), the wobbling amplitude is calculated (step 302). The DOF closely depends upon a focal length of the optical element 1 and an F value of the stop, and a ratio between the deepest DOF and the shallowest DOF is about dozens of times. Therefore, the wobbling amplitude calculated in the step 302 also becomes a difference of dozens of times between the minimum value and the maximum value.
When the moving amount of the motor 5 is small, the step mode is advantageous because it has good controllability. When the moving amount of the motor 5 is large, the motor 5 can be driven at a high speed by using the feedback electrization switching mode. When the amplitude is equal to or larger than a predetermined value in accordance with the wobbling amplitude determined by the DOF of the focus lens 1a (step 303), the feedback electrization switching mode is used for driving (step 304). On the other hand, when the amplitude is smaller than the predetermined value (step 303), the step mode is used for driving (step 305). Thereby, the wobbling becomes faster (step 306).
Thereafter, the controller 11 determines whether it can recognize the on-focus state (step 307), and if so stops the focus lens 1a (step 313). When determining that the controller 11 cannot recognize the on-focus state (step 307), the controller 11 checks the direction in which the signal for detecting the contrast value increases (step 308). When the controller 11 cannot recognize the direction (step 308), the flow returns to the step 303.
When the controller 11 can recognize the direction (step 308), the controller 11 mountain-climbs the focus lens 1a in that direction (step 309). Next, the controller 11 determines that the lens passes the on-focus point based on whether the contrast value crosses the peak (step 310), inverts the moving direction, and moves the focus lens 1a to the on-focus point (steps 311 and 312). After the step 312, the flow moves to the step 303 or 306.
This embodiment does not limit a driving mode in the mountain climbing driving after wobbling ends (step 309). The lens may be always moved by the step mode, or the step mode and the feedback electrization switching mode may be switched under some conditions as in the other embodiment.
Referring now to
In driving the focus lens 1a, the focus lens 1a is wobbled in the step mode similar to the first embodiment so as to find a direction in which the contrast value increases. Therefore, the flow from the step 101 to the step 105 (including the step 104 to the step 112) is similar to that shown in
As shown in
Next, the controller 11 determines that the lens has passed the on-focus point based on whether contrast value has crossed the peak (step 410), and the controller 11 selects the step mode (step 109). The flow after the step 109 is similar to that of the first embodiment.
Since this embodiment detects that the lens approaches to the on-focus point before the lens crosses the peak, selects the step mode, and starts decelerating, this embodiment can reduce an amount by which the lens goes too far from the on-focus point.
The absolute value of the contrast value closely depends upon the subject and the DOF of the focus lens 1a. Therefore, the threshold closely depends upon the subject and the lens's DOF. More specifically, the threshold is varied based on at least one of the focal length of the focus lens 1a, the stop amount, and the brightness of the subject. The threshold at that time can vary within a range between 50% and 90% of the contrast value at the on-focus position. In addition, the antihunting effect of the motor 5 can also be maintained at this time by providing the switch between the modes, with the hysteresis characteristic.
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
This application claims the benefit of Japanese Patent Application No. 2008-013326, filed on Jan. 24, 2008, which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2008-013326 | Jan 2008 | JP | national |