Summary of the invention
The present invention is proposed in view of the problems referred to above.The invention provides a kind of circuit for controlling motor and motor controlling party
Method.
According to an aspect of the present invention, it is provided that a kind of circuit for controlling motor.This circuit for controlling motor includes: one or more
Adjustable signal output circuit, described adjustable signal output circuit is used for exporting adjustable signal, being sized to of described adjustable signal
Regulate the change of situation with the optics of camera lens and change;And one or more drive circuit, adjustable with the one or more
Signal output apparatus connects one to one, and described drive circuit is used for receiving described adjustable signal, utilizes described adjustable signal raw
Become and drive signal, and export described driving signal for driving the camera lens motor rotation of correspondence.
Described circuit for controlling motor farther includes the process being connected with the one or more adjustable signal output circuit
Device, described adjustable signal output circuit includes DC-to-dc circuit,
Described processor is used for exporting initial signal extremely described adjustable signal output circuit, and regulates shape according to described optics
Condition adjusts the change being sized to regulate situation with described optics being sized such that described adjustable signal of described initial signal
And change;
Described DC-to-dc circuit is used for receiving described initial signal, and is converted to described adjustable by described initial signal
Signal.
Exemplarily, one adjustable signal output circuit is zoom signal output circuit, and described initial signal is to become
Burnt initial signal, described adjustable signal is zoom adjustable signal, and one drive circuit is zoom drive circuit, described camera lens
Motor is zoom motor, and described optics regulation situation is the zoom condition of described camera lens.
Exemplarily, the ratio that described zoom condition is occupied in the image that described camera lens gathers with target object is relative
Should, described processor is further used for performing zoom operation, and described zoom operation includes: at the beginning of the described zoom of output initial size
Beginning signal, to start to drive described zoom motor to operate, monitors described target object occupied in the image that described camera lens gathers
Ratio, adjust the initial signal of described zoom according to the ratio that described target object is occupied in the image that described camera lens gathers
Size, and in the range of the ratio that described target object is occupied in the image that described camera lens gathers is in preset ratio
Time, stop the output initial signal of described zoom to stop driving the operating of described zoom motor.
Exemplarily, described processor in the following manner according to described target object in the image that described camera lens gathers
The size of the occupied ratio adjustment initial signal of described zoom:
When the ratio and described preset ratio scope occupied in the image that described camera lens gathers of described target object it
Between gap more than preset zoom gap time, the size of initial for described zoom signal is set as the first zoom preset value, and
Gap between ratio and described preset ratio scope that described target object is occupied in the image that described camera lens gathers
During less than or equal to described default zoom gap, the size of initial for described zoom signal is set as the second zoom preset value.
Exemplarily, described processor in the following manner according to described target object in the image that described camera lens gathers
The size of the occupied ratio adjustment initial signal of described zoom:
The ratio occupied in the image that described camera lens gathers along with described target object and described preset ratio scope
Between gap reduce and reduce the initial signal of described zoom, or the image gathered at described camera lens along with described target object
The gap between ratio and described preset ratio scope occupied by reduces and increases the initial signal of described zoom.
Exemplarily, described processor is further used for stopping the output initial signal of described zoom to stop described in driving
After zoom motor operating, perform following steps until detecting that described target object is shared in the image that described camera lens gathers
According to ratio be in the range of described preset ratio till: detect described target object in the image that described camera lens gathers shared
According to ratio, if the ratio occupied in the image that described camera lens gathers of described target object is in described preset ratio model
Outside enclosing, then re-execute described zoom operation.
Exemplarily, one adjustable signal output circuit is focus signal output circuit, and described initial signal is poly-
Burnt initial signal, described adjustable signal is to focus on adjustable signal, and one drive circuit is focus drive circuit, described camera lens
Motor is focus motor, and described optics regulation situation is the exposing condition of described camera lens.
Exemplarily, described exposing condition is corresponding with the definition of the image that described camera lens gathers, and described processor enters
One step is used for performing focusing operation, and described focusing operation includes: the initial signal of described focusing of output initial size is to start to drive
Dynamic described focus motor operating, monitors the definition of the image that described camera lens gathers, the image gathered according to described camera lens clear
Clear degree adjusts the size of the initial signal of described focusing, and works as the definition of the image that described camera lens gathers more than or equal to clear
During degree threshold value, stop the output initial signal of described focusing to stop driving the operating of described focus motor.
Exemplarily, the definition of the image that described processor gathers according to described camera lens in the following manner adjusts described
Focus on the size of initial signal:
Gap between definition and the described clarity threshold of the image gathered when described camera lens more than preset focus on poor
Away from time, the size of initial for described focusing signal is set as the first focusing preset value, and the image that gathers when described camera lens
When gap between definition and described clarity threshold is less than or equal to described default focusing gap, described focusing is initially believed
Number size be set as the second focusing preset value.
Exemplarily, the definition of the image that described processor gathers according to described camera lens in the following manner adjusts described
Focus on the size of initial signal:
Gap between definition and the described clarity threshold of the image gathered along with described camera lens reduces and reduces institute
State the initial signal of focusing, or the gap between definition and the described clarity threshold of the image gathered along with described camera lens subtracts
Little and increase the initial signal of described focusing.
Exemplarily, described processor is further used for stopping the output initial signal of described focusing to stop described in driving
After focus motor operating, perform following steps until detecting that the definition of the image that described camera lens gathers is more than or equal to institute
Till stating clarity threshold: detect the definition of the image that described camera lens gathers, if the image of described camera lens collection is clear
Degree less than described clarity threshold, then re-executes described focusing operation.
Exemplarily, the plurality of adjustable signal output circuit includes zoom signal output circuit and focus signal output electricity
Road, described initial signal include the initial signal of zoom and focus on initial signal, described adjustable signal include zoom adjustable signal and
Focusing on adjustable signal, the plurality of drive circuit includes that zoom drive circuit and focus drive circuit, described camera lens motor include
Zoom motor and focus motor, the optics regulation situation of described camera lens includes the zoom condition of described camera lens and the poly-of described camera lens
Coke-like condition.
Exemplarily, the ratio that described zoom condition is occupied in the image that described camera lens gathers with target object is relative
Should, described exposing condition is corresponding with the definition of the image that described camera lens gathers,
Described processor is further used for performing zoom operation and focusing operation, and described zoom operation includes: output is initial
The initial signal of described zoom of size, to start to drive described zoom motor to operate, monitors described target object and adopts at described camera lens
Ratio occupied in the image of collection, adjusts according to the ratio that described target object is occupied in the image that described camera lens gathers
The size of the initial signal of described zoom, and at the ratio that described target object is occupied in the image that described camera lens gathers
Time in the range of preset ratio, stop the output initial signal of described zoom to stop driving the operating of described zoom motor;
Described focusing operation includes: stopping the output initial signal of described zoom to stop driving the operating of described zoom motor
Afterwards, the initial signal of described focusing of output initial size, to start to drive described focus motor to operate, monitors described camera lens and adopts
The definition of image of collection, the definition of the image gathered according to described camera lens adjusts the size of the initial signal of described focusing, and
And when the definition of the image that described camera lens gathers is more than or equal to clarity threshold, stop the output initial signal of described focusing
To stop driving the operating of described focus motor.
Exemplarily, described initial signal is pulse-width signal, and described DC-to-dc circuit includes DC-to-dc core
Sheet and peripheral circuit thereof, described peripheral circuit includes filter resistance, filter capacitor, the first divider resistance and the second divider resistance,
First end of described filter resistance is used for receiving described initial signal, and the second end of described filter resistance connects described filter capacitor
The first end, the second end ground connection of described filter capacitor;First end of described first divider resistance connects described second dividing potential drop electricity
First end of resistance, and directly or connect, via additional resistance, the node that described filter resistance is connected with described filter capacitor, described
Second end ground connection of the first divider resistance, the second end of described second divider resistance is used for exporting described adjustable signal;Described directly
The feedback port of stream-direct current chip connects the node that described first divider resistance is connected with described second divider resistance, described directly
The output switching terminal mouth of stream-direct current chip connects the second end of described second divider resistance via outputting inductance.
Exemplarily, described processor adjusts the big of described initial signal by the dutycycle changing described initial signal
Little.
Exemplarily, described initial signal is digital signal, described DC-to-dc circuit include DC-to-dc chip and
Its peripheral circuit, described peripheral circuit includes D/A converting circuit, the first divider resistance and the second divider resistance, and described modulus turns
Change the input of circuit for receiving described initial signal and described initial signal being converted to analogue signal;Described first dividing potential drop
First end of resistance connects the first end of described second divider resistance, and directly or connects described analog digital conversion via additional resistance
The outfan of circuit, the second end ground connection of described first divider resistance, the second end of described second divider resistance is used for exporting institute
State adjustable signal;The feedback port of described DC-to-dc chip connects described first divider resistance and described second divider resistance
The node connected, the output switching terminal mouth of described DC-to-dc chip connects described second divider resistance via outputting inductance
Second end.
Exemplarily, described drive circuit includes H-bridge drive circuit.
Exemplarily, described H-bridge drive circuit uses H bridge chip to realize.
Exemplarily, described H-bridge drive circuit uses discrete transistor to realize.
According to a further aspect of the invention, it is provided that a kind of motor control method.This motor control method includes: export adjustable letter
Number, being sized to of described adjustable signal regulates the change of situation with the optics of camera lens and changes;Utilize described adjustable signal raw
Become to drive signal;And export described driving signal for driving the camera lens motor rotation of correspondence.
Exemplarily, described initial signal is the initial signal of zoom, and described adjustable signal is zoom adjustable signal, described mirror
Head motor is zoom motor, and described optics regulation situation is the zoom condition of described camera lens.
Exemplarily, the ratio that described zoom condition is occupied in the image that described camera lens gathers with target object is relative
Should, the initial signal of described output is described the most adjustable according to being sized such that of the described optics regulation situation described initial signal of adjustment
Being sized to of signal changes include with the regulation change of situation of described optics: the described zoom of output initial size is initially believed
Number to start to drive described zoom motor to operate;Monitor the ratio that described target object is occupied in the image that described camera lens gathers
Example;The big of the initial signal of described zoom is adjusted according to the ratio that described target object is occupied in the image that described camera lens gathers
Little;And when the ratio that described target object is occupied in the image that described camera lens gathers is in the range of preset ratio,
Stop the output initial signal of described zoom to stop driving the operating of described zoom motor.
Exemplarily, described initial signal is to focus on initial signal, and described adjustable signal is to focus on adjustable signal, described mirror
Head motor is focus motor, and described optics regulation situation is the exposing condition of described camera lens.
Exemplarily, described exposing condition is corresponding with the definition of the image that described camera lens gathers, and described output is initial
Signal and according to described optics regulation situation adjust described initial signal be sized such that being sized to of described adjustable signal
Change include with the change of described optics regulation situation: the initial signal of described focusing of output initial size is to start to drive institute
State focus motor operating;Monitor the definition of the image that described camera lens gathers;Definition according to the image that described camera lens gathers
Adjust the size of the initial signal of described focusing;And when the definition of the image of described camera lens collection is more than or equal to definition threshold
During value, stop the output initial signal of described focusing to stop driving the operating of described focus motor.
Exemplarily, described initial signal includes the initial signal of zoom and focuses on initial signal, and described adjustable signal includes
Zoom adjustable signal and focusing adjustable signal, described camera lens motor includes zoom motor and focus motor, the optics of described camera lens
Regulation situation includes zoom condition and the exposing condition of described camera lens of described camera lens.
Exemplarily, the ratio that described zoom condition is occupied in the image that described camera lens gathers with target object is relative
Should, described exposing condition is corresponding with the definition of the image that described camera lens gathers, the initial signal of described output according to described
Optics regulation situation adjust described initial signal be sized such that described adjustable signal be sized to regulate with described optics
The change of situation and change and include: the initial signal of described zoom of output initial size is to start to drive described zoom motor to transport
Turn;Monitor the ratio that described target object is occupied in the image that described camera lens gathers;According to described target object described
Ratio occupied in the image that camera lens gathers adjusts the size of the initial signal of described zoom;When described target object is at described mirror
Time in the range of occupied ratio is in preset ratio in the image of head collection, stop the output initial signal of described zoom to stop
Described zoom motor is driven to operate;The initial signal of described focusing of output initial size is to start to drive described focus motor to transport
Turn;Monitor the definition of the image that described camera lens gathers;The definition described focusing of adjustment according to the image that described camera lens gathers
The size of initial signal;And when the definition of the image that described camera lens gathers is more than or equal to clarity threshold, stop defeated
Go out the initial signal of described focusing to stop driving the operating of described focus motor.
The circuit for controlling motor provided according to embodiments of the present invention and motor control method, can be regulating in real time
Voltage rather than constant voltage drive camera lens motor rotation.So it is possible not only to improve the optics degree of regulation of camera lens, is greatly shortened optics
The time of regulation, and the complexity of whole optics regulation process can be reduced simultaneously, the especially complexity of algorithm, so that
The optics regulation process of camera lens has qualitative leap.
Detailed description of the invention
So that the object, technical solutions and advantages of the present invention become apparent from, describe root below with reference to accompanying drawings in detail
Example embodiment according to the present invention.Obviously, described embodiment be only a part of embodiment of the present invention rather than this
Bright whole embodiments, it should be appreciated that the present invention is not limited by example embodiment described herein.Described in the present invention
The embodiment of the present invention, all other embodiments that those skilled in the art are obtained in the case of not paying creative work
All should fall under the scope of the present invention.
In order to solve the problem that the velocity of rotation of camera lens motor cannot change according to demand, the present invention proposes one and can give birth to
Become variable driving voltage rather than the circuit for controlling motor of constant drive voltage.
According to an aspect of the present invention, it is provided that a kind of circuit for controlling motor.Circuit for controlling motor includes one or more adjustable
Signal output apparatus and the one or more drive circuits connected one to one with one or more adjustable signal output circuits.Show
Example ground, the camera lens motor of camera lens can include zoom motor and focus motor, be respectively used to realize camera lens zoom function and
Focusing function.Zoom is similar with the ultimate principle of focusing, is all to drive eyeglass module to move by corresponding motor rotation, from
And realize zoom or focusing.Therefore, for the zoom motor and focus motor of camera lens, structure and work can be respectively adopted
The circuit that principle is similar drives.In circuit for controlling motor, an adjustable signal output circuit is corresponding with a drive circuit
Connect, may be constructed the control circuit of a motor.In one example, circuit for controlling motor includes an adjustable signal output
Circuit and a drive circuit, constitute a control circuit, may be used for controlling the operating of zoom motor, the focus motor of camera lens
The circuit that then can use routine controls.In another example, circuit for controlling motor includes an adjustable signal output circuit
With a drive circuit, constituting a control circuit, may be used for controlling the operating of focus motor, the zoom motor of camera lens then may be used
To use conventional circuit to control.In another example, circuit for controlling motor includes two adjustable signal output circuits and two
Individual drive circuit, constitutes two control circuits, is respectively used to control zoom motor and the operating of focus motor.Certainly, above-mentioned electricity
The circuit configuration of machine control circuit is only exemplary rather than limitation of the present invention, and the circuit for controlling motor of the present invention is not limited to
State implementation.
Fig. 2 illustrates the schematic block diagram of circuit for controlling motor 200 according to an embodiment of the invention.For sake of simplicity, Fig. 2
One adjustable signal output circuit and a drive circuit are only shown.Adjustable signal output circuit shown in Fig. 2 and drive circuit
Can be the zoom signal output circuit relevant to zoom motor and zoom drive circuit, it is also possible to relevant to focus motor
Focus signal output circuit and focus drive circuit.By introducing the adjustable signal output circuit 210 shown in Fig. 2 and drive circuit
The structure of 220 and operation principle, it will be appreciated by those skilled in the art that zoom signal output circuit, focus signal output circuit,
Zoom drive circuit and the structure of focus drive circuit and operation principle.
As in figure 2 it is shown, circuit for controlling motor 200 includes adjustable signal output circuit 210 and the drive circuit interconnected
220.Adjustable signal output circuit 210 is used for exporting adjustable signal, adjustable signal be sized to camera lens optics regulate shape
The change of condition and change.Drive circuit 220 is used for receiving adjustable signal, utilizes adjustable signal to generate and drives signal, and output is driven
Dynamic signal is for driving the camera lens motor rotation of correspondence.
Drive circuit 220 can connect with corresponding camera lens motor.In the case of camera lens motor is zoom motor, drive
Circuit 220 is zoom drive circuit, and adjustable signal output circuit 210 is zoom signal output circuit;It is to focus at camera lens motor
In the case of motor, drive circuit 220 is focus drive circuit, and adjustable signal output circuit 210 is focus signal output circuit.
Drive circuit 220 can use any the most existing or motor-drive circuit in the cards in future (such as H bridge driving electricity
Road) realize, this is not limited by the present invention.Drive circuit 220 by drive signal drive in the way of camera lens motor with conventional skill
Art is similar to, and does not repeats this.Unlike the prior art, signal is driven to be determined by adjustable signal, therefore
In the case of adjustable signal is variable, it is also variable for driving signal, is capable of hence with variable adjustable signal with non-
Uniform speed rotates camera lens motor, the most just can be with the eyeglass mould of speed moving lens heterogeneous (such as telephoto lens)
Group.
It is appreciated that camera lens carries out optics regulation can be included camera lens is carried out zoom and/or focusing.The optics of camera lens
Regulation situation can include the zoom condition of camera lens, i.e. camera lens when zoom with the gap of target focal length.Exemplarily, camera lens
Zoom condition can reflect by the ratio that target object is occupied in the image of camera lens collection, say, that the change of camera lens
The ratio occupied in the image that camera lens gathers of coke-like condition and target object is corresponding.The most for convenience of description, sometimes with " mesh
Mark object proportion " replace " ratio that target object is occupied in the image that camera lens gathers ", they represent identical
Implication.Target object refers to need the object of monitoring, such as, the objects such as the house of the condition of a fire, trees occur, and target object can also
It it is certain block monitoring area.The optics regulation situation of camera lens can also include the exposing condition of camera lens, i.e. camera lens when focusing on
The gap of target sharpness.Exemplarily, the exposing condition of camera lens can reflect with the definition of the image of camera lens collection, also
That is, the exposing condition of camera lens is corresponding with the definition of the image that camera lens gathers.
Exemplarily, adjustable signal is voltage signal, and the magnitude of voltage of this voltage signal can regulate shape with the optics of camera lens
The change of condition and change.Such as, just starting zoom or focus on when, adjustable signal output circuit 210 can export bigger
Voltage (the most described adjustable signal) so that drive circuit 220 generates bigger driving voltage (the most described driving signal), thus
Camera lens motor is driven to operate more quickly;Close close to the definition of target focal length or the image of camera lens collection at the focal length of camera lens
During target sharpness, adjustable signal output circuit 210 can export less voltage, so that drive circuit 220 generates less
Driving voltage, thus operate with driving camera lens motor relatively slower.
As described above, the zoom of camera lens and focusing function are to be moved by the position of eyeglass module to realize, and mirror
Head motor is exactly the effect playing mobile eyeglass module.Relevant design in industry simply achieves the merit of zoom and focusing at present
Can, but owing to constant voltage drive circuit cannot regulate the rotating speed of camera lens motor in real time, therefore its optics regulation process relatively slow and
Optics degree of regulation is poor.And circuit for controlling motor according to embodiments of the present invention is owing to can regulate situation with the optics of camera lens
Change adjustable signal so that change drive signal, the most compared with prior art, its can make optics regulation process accelerate and
Optics degree of regulation can be improved.It is described below in detail.
Firstly, since zoom or to focus on (mainly zoom) process rotation path longer, therefore allow electricity in this stage early stage
Machine rotates the pictaresque time that can save target object quickly, finishing phase then can reduce relatively slowly by electric machine rotation by
The pictaresque effect brought in motor inertia is unsatisfied with problem, improves zoom or the First Pass Yield of focusing.So can be further
Zoom or focal time is shortened while optimizing zoom or focusing effect.These careful operations are all that conventional constant voltage drives
Circuit cannot be accomplished.
Secondly, electric machine rotation, due to inertia, can continue to walk a bit of after drive circuit turns off, thus cause optics by mistake
Difference.This situation itself cannot be eradicated, and industry generally can use the methods such as feedback calibration error be minimized.This instead
Although feedback control method can reduce this optical parallax, but algorithm own is complicated.And difference camera lens is due to the difference of damped coefficient
Different, it is impossible to accomplish general, and the continuous regulation of feedback system also can increase optics regulation process time.The use present invention implements
The circuit for controlling motor that example provides can reduce governing speed in the time period that optics regulation process will finish up, thus reduces
Therefore the optical parallax brought due to inertia, when being possible not only to the optics regulation that raising optics degree of regulation can also save preciousness
Between.
Generally speaking, can be with the change of the optics regulation situation of camera lens due to adjustable signal output circuit 210 output
The adjustable signal of change, therefore can with the voltage that can regulate in real time rather than constant voltage drives camera lens motor rotation.The most not only
The optics degree of regulation of camera lens can be improved, be greatly shortened the time of optics regulation, and whole optics can be reduced simultaneously and adjust
The complexity of the complexity of joint process, especially algorithm, so that the optics regulation process of camera lens has qualitative leap.
According to one embodiment of the invention, circuit for controlling motor may further include processor, adjustable signal output electricity
Road can include DC-DC circuit.Fig. 3 illustrates the schematic frame of circuit for controlling motor 300 in accordance with another embodiment of the present invention
Figure.As it is shown on figure 3, circuit for controlling motor 300 includes that processor 310, adjustable signal output circuit 320 include DC-DC circuit
322。
Processor 310 is connected with one or more adjustable signal output circuits 320, is used for exporting initial signal to adjustable letter
Number output circuit 320, and the size energy being sized such that adjustable signal of initial signal is adjusted according to described optics regulation situation
Enough change with the change of described optics regulation situation.DC-DC circuit 322 is used for receiving initial signal, and is turned by initial signal
It is changed to adjustable signal.DC-DC circuit 322 can be to use the circuit of conventional DC-DC chip composition.
Exemplarily, initial signal can be pulsewidth modulation (PWM) signal or digital signal or other any suitable letters
Number.It is understood that the initial signal of desired size can be generated easily by processor, such as, can use volume
Journey mode indicates processor to generate the initial signal of desired size.It addition, be commonly equipped with ready-made in conventional camera lens module
Processor, can directly use the processor that this is ready-made to generate required initial signal.Therefore, utilizing processor to control can
The size adjusting the signal that signal output apparatus generates and then the operating indirectly controlling camera lens motor be a kind of simple, be easily achieved,
High efficiency method.
Certainly, it is to be understood that above-mentioned processor is only exemplary rather than limitation of the present invention, the present invention can use
Any suitably possess the device of signal handling capacity, device or circuitry instead processor and realize corresponding function, such as, can adopt
Realize with field programmable logic array (FPGA), special integrated chip (ASIC), digital signal processing circuit (DSP) etc..
As described above, drive signal to be determined by adjustable signal, therefore in the case of adjustable signal is variable, drive
Signal is also variable.Additionally, in the present embodiment, due to adjustable signal again with initial signal correction, at the beginning of therefore by regulation
The size of beginning signal can finally change the size driving signal such that it is able to realizes rotating camera lens electricity with speed heterogeneous
Machine.
According to one embodiment of the invention, described circuit for controlling motor includes an adjustable signal output circuit 320, and this can
Adjusting signal output apparatus 320 is zoom signal output circuit, and initial signal is the initial signal of zoom, and adjustable signal is that zoom is adjustable
Signal, a drive circuit 330 is zoom drive circuit, and camera lens motor is zoom motor, and optics regulation situation is the change of camera lens
Coke-like condition.
As described above, an adjustable signal circuit and a corresponding connection of drive circuit, may be constructed a motor
Control circuit, its zoom or the focusing that may be used for controlling camera lens.In the case of camera lens motor is zoom motor, corresponding drives
Galvanic electricity road 330 is zoom drive circuit, and corresponding adjustable signal output circuit 320 is zoom signal output circuit.In this feelings
Under condition, processor 310 exports the initial signal of zoom to zoom signal output circuit 320, in zoom signal output circuit 320
DC-DC circuit 322 receives the initial signal of this zoom, and initial for this zoom signal is converted to zoom adjustable signal.Zoom signal
Zoom adjustable signal is exported to zoom drive circuit 330 by output circuit 322, and zoom drive circuit 330 receives the adjustable letter of zoom
Number, utilize zoom adjustable signal to generate zoom drive signal, and zoom drive signal is exported to zoom motor to drive zoom
Motor rotation.
Processor 310 can according to zoom condition adjust the initial signal of zoom be sized such that the big of zoom adjustable signal
Little can change with the change of zoom condition.Zoom adjustable signal is converted by DC-DC circuit 322, zoom adjustable signal
Depending on the initial signal of zoom, can change along with the change of the initial signal of zoom.Zoom drive signal is by zoom drive electricity
Road 330 (such as H-bridge drive circuit) utilizes zoom adjustable signal to generate, therefore, zoom drive signal again can along with zoom can
The change of signal is adjusted to change.Therefore, via zoom signal output circuit 320 and zoom drive circuit 330, processor 310 can
To be controlled the size of zoom drive signal by the initial signal of zoom, and then control the operating of zoom motor.
According to one embodiment of the invention, above-mentioned zoom condition and target object are occupied by the image that camera lens gathers
Ratio is corresponding, and processor 310 can be further used for performing zoom operation, and described zoom operation includes: output initial size
The initial signal of zoom to start to drive zoom motor to operate, the ratio that monitoring objective object is occupied in the image that camera lens gathers
Example, adjusts the size of the initial signal of zoom, and works as mesh according to the ratio that target object is occupied in the image that camera lens gathers
When mark object ratio occupied by the image that described camera lens gathers is in the range of preset ratio, stop output zoom initial
Signal is to stop driving zoom motor operating.
By adjust camera lens focal length (i.e. zoom) can adjust target object in the image that camera lens gathers occupied by
Ratio.Such as, when the condition of a fire occurs, zoom can be first passed through target object is amplified to suitable size, follow-up carry out again
The operations such as focusing, to facilitate monitoring personnel to check.Target object (house of the condition of a fire such as occurs) is in the image that camera lens gathers
Needs occupy suitable ratio, if occupied ratio is too big, then may be not easy the situation seeing clearly around target object, as
Ratio occupied by Guo is the least, then may be not easy to see target object itself clearly.Therefore, it can preset desired, mesh
The ratio that mark object is occupied in the image that camera lens gathers, it can be a scope, preset ratio model the most as herein described
Enclose.Preset ratio scope can be any suitable scope, its can as required depending on, this is not limited by the present invention.
Such as, preset ratio scope can be 40%~60%, if i.e. target object proportion is less than 40% or more than 60%,
Then it is believed that target object proportion is undesirable, need zoom, if target object proportion is more than or equal to
40% and less than or equal to 60%, then it is believed that target object proportion meets the requirements, zoom can not be carried out.
When carrying out zoom operation, first processor 310 can export the initial signal of zoom of initial size to start to drive
Dynamic zoom motor operating.The size of the initial signal of zoom exported when just starting zoom can according to circumstances depending on.Example
Property, the initial signal of zoom can be fixed value, starts zoom the most every time and all uses the initial signal of an equal amount of zoom.Example
Property, the initial signal of zoom can also be revocable value, and such as it can be according to target object proportion during beginning zoom
Determine.Such as, if when starting zoom, the gap between target object proportion and preset ratio scope is less, then
The initial signal of less zoom can be exported to operate with driving zoom motor relatively slower;Whereas if when starting zoom, mesh
Gap between mark object proportion and preset ratio scope is relatively big, then can export the initial signal of bigger zoom to drive
Zoom motor operates more quickly.
In zooming procedure, can monitoring objective object is occupied in the image that camera lens gathers in real time ratio.Described
Monitoring in real time can include monitoring continuously or being monitored at a time interval.In monitoring simultaneously, can be according to target
Object ratio occupied by the image of camera lens collection adjusts the size of the initial signal of zoom in real time.Adjust the initial signal of zoom
Mode can be to adjust continuously or stepping position adjusts, be introduced below in conjunction with specific embodiment, be not repeated herein.
Along with the carrying out of zooming procedure, target object ratio occupied by the image of camera lens collection can increasingly connect
Nearly preset ratio scope.When target object proportion falls in the range of preset ratio, it is believed that target object proportion is full
Foot requirement, i.e. reaches pictaresque effect, now can stop exporting the initial signal of zoom, to stop driving zoom motor operating.Stop
Only the output initial signal of zoom is it can be appreciated that output size is the signal of zero.
By the way, processor 310 can adjust the running speed of zoom motor in zooming procedure in real time, such as
Zoom motor operating can be made very fast in the zoom incipient stage, make zoom motor operating slower at zoom finishing phase.This with
The mode the driving condition that zoom condition adjusts zoom motor can faster reach pictaresque effect, accelerates the process of zoom, can
The optical parallax brought due to motor inertia with reduction.
According to one embodiment of the invention, processor 310 can in the following manner according to target object in camera lens collection
Image in occupied ratio adjust the size of the initial signal of zoom: when target object in the image that camera lens gathers occupied by
Ratio and preset ratio scope between gap more than when presetting zoom gap, the size of initial for zoom signal is set as the
One zoom preset value, and between ratio and the preset ratio scope that target object is occupied in the image that camera lens gathers
The size of initial for zoom signal, less than or equal to when presetting zoom gap, is set as the second zoom preset value by gap.
Can be seen from the foregoing, preset ratio scope can be the scope with maximum and minima.In this situation
Under, the difference according to an example, between ratio and preset ratio scope that target object is occupied in the image that camera lens gathers
Away from determining in the following manner: when target object proportion is less than the minima in preset ratio scope, by target
Object proportion is considered as target object with the difference (or percentage ratio of target object proportion relative minimum) of minima
The gap between ratio and preset ratio scope occupied in the image that camera lens gathers;When target object proportion is more than
During maximum in preset ratio scope, by the difference of target object proportion and maximum (or target object proportion
The percentage ratio of relative maximum) be considered as target object ratio occupied in the image that camera lens gathers and preset ratio scope it
Between gap.According to another example, preset ratio scope can be determined according to the maximum of preset ratio scope and minima
Intermediate value, the gap between ratio and preset ratio scope that target object is occupied in the image of camera lens collection can be passed through
In the following manner determines: by the difference of target object proportion and the intermediate value of preset ratio scope (or target object institute accounting
Example is relative to the percentage ratio of intermediate value) it is considered as target object ratio occupied in the image that camera lens gathers and preset ratio scope
Between gap.Above-mentioned determine between ratio and the preset ratio scope that target object is occupied in the image that camera lens gathers
The mode of gap is only exemplary rather than limiting, and the invention is not restricted to this.
Preset zoom gap can be any suitable value, its can as required depending on, it is not limited by the present invention
System.For example, it is assumed that presetting zoom gap is 15%, preset ratio scope is 40%~60%.Moreover, it is assumed that current object
Body proportion is 80%, and the gap (difference i.e. and between maximum 60%) between itself and preset ratio scope is 20%,
The size of initial for zoom signal, more than presetting zoom gap 15%, now can be set as the first zoom preset value by it.Along with
Zoom motor operates, and target object proportion is more and more less, becomes closer to preset ratio scope, when it arrives 75%,
Gap (difference i.e. and between maximum 60%) between itself and preset ratio scope is 15%, equal to presetting zoom gap
15%, now the size of initial for zoom signal can be set as the second zoom preset value.First zoom preset value and second becomes
Burnt preset value is different.The size of the first zoom preset value and the second zoom preset value all can set as required, and the present invention is not
This is limited.Exemplarily, it is proportionate (i.e. zoom adjustable signal covariant at zoom adjustable signal and the initial signal of zoom
The reduction of burnt initial signal and reduce) in the case of, the first zoom preset value can be more than the second zoom preset value.Can at zoom
Tune signal and the initial signal of zoom are the situation of negative correlation (i.e. zoom adjustable signal increases with the reduction of the initial signal of zoom)
Under, the first zoom preset value can be less than the second zoom preset value.
This mode may be considered a kind of stepping and adjusts mode, and the size of the initial signal of zoom is divided into multiple shelves, passes through
The threshold value of each grade is set, gradually can adjust at the beginning of zoom close to the degree of preset ratio scope along with target object proportion
The size of beginning signal.
Although, describe the first zoom preset value and the second zoom preset value in the present embodiment it should be appreciated that
It is that it is only exemplary rather than limiting, and other any suitable number of zoom preset values are also applied for the present invention.
According to a further embodiment of the invention, processor 310 can be adopted at camera lens according to target object in the following manner
Ratio occupied in the image of collection adjusts the size of the initial signal of zoom: along with target object institute in the image that camera lens gathers
Gap between the ratio and the preset ratio scope that occupy reduces and reduces the initial signal of zoom, or along with target object is at mirror
The gap between ratio and preset ratio scope occupied in the image that head gathers reduces and increases the initial signal of zoom.
Different from a upper embodiment, the present embodiment uses the mode adjusting the initial signal of zoom continuously.In zooming procedure,
Along with the gap between target object proportion and preset ratio scope is gradually reduced, (or increase) zoom can be reduced accordingly
Initial signal, the reduction (or increase) of the initial signal of this zoom can be continuous print change.Exemplarily, at the adjustable letter of zoom
Number signal initial with zoom is proportionate in the case of (i.e. zoom adjustable signal reduces with the reduction of the initial signal of zoom), place
Reason device 310 can along with target object in the image that camera lens gathers occupied by ratio and preset ratio scope between gap
Reduce and reduce the initial signal of zoom.Zoom adjustable signal and the initial signal of zoom be negative correlation (i.e. zoom adjustable signal with
The reduction of the initial signal of zoom and increase) in the case of, processor 310 can be along with target object be in the image that camera lens gathers
The occupied gap between ratio and preset ratio scope reduces and increases the initial signal of zoom.It will be appreciated, of course, that along with
The carrying out of zoom, the gap between target object proportion and preset ratio scope should be gradually reduced, if gap
Increase, illustrate that the operating rotation direction of zoom motor is anti-, in this case, it is possible to use zoom drive circuit 330 drives and becomes
Burnt motor rotates backward.
Gap between target object proportion and preset ratio scope reduces, and illustrates that target object proportion more comes
Closer to required ratio, in this case, initial for zoom signal can be adjusted so as to more and more less (or increasing), make
Obtain zoom motor and turn slower and slower.This mode can reduce the pictaresque time of target object, reduces motor due to the many rotations of inertia
One section of error brought, improves the fineness of zoom.
According to one embodiment of the invention, processor 310 can be further used for stop output the initial signal of zoom with
After stopping driving zoom motor operating, perform following steps until detecting that target object is shared in the image that camera lens gathers
According to ratio be in the range of preset ratio till: detection target object in the image that camera lens gathers occupied by ratio, as
The ratio that really target object is occupied in the image of camera lens collection is in outside preset ratio scope, then re-execute zoom behaviour
Make.
As described above, electric machine rotation due to inertia, can continue to walk a bit of after drive circuit turns off, thus cause light
Learn error.Therefore, after stopping driving zoom motor operating, zoom motor still may continue to operate a bit of, therefore may be used
Can cause target object proportion again beyond preset ratio scope, the most no longer meet requirement.In such a case, it is possible to
After stopping driving zoom motor operating, again detect target object proportion, if now target object institute accounting
In the range of example remains in preset ratio, illustrate that it still meets requirement, the zooming procedure of camera lens can be terminated, otherwise can weigh
Newly start to perform above-mentioned zoom operation, i.e. restart to export the initial signal of zoom of initial size, monitoring objective object institute
Accounting example, adjust the size of the initial signal of zoom according to target object proportion and be in pre-when target object proportion
If stopping output zoom initial signal time in proportion.Detect target object proportion and re-execute above-mentioned a series of
The step of zoom operation can repeat, till final goal object proportion is in the range of preset ratio.Should
When being understood by, during repeating zoom operation, the initial signal of zoom that execution zoom operation is exported every time
Initial size can be change, depending on it can be according to practical situation.Such as, when performing zoom operation for the first time at the beginning of zoom
Beginning signal can be relatively big, although zoom motor has operated one section more after stopping driving zoom motor, but generally will not be with
Target focal length is too wide in the gap, therefore can export the initial signal of more a little bit smaller zoom when second time performs zoom operation, with
After zoom operation be similar to.Therefore, during repeating zoom operation, perform the zoom that zoom operation is exported every time
The initial size of initial signal can be different.In one example, perform the initial signal of zoom that zoom operation is exported every time
Initial size can determine according to the gap between current goal object proportion and preset ratio scope.Additionally, it should
It is understood by, owing to zoom motor is owing to inertia has operated one section when performing zoom operation every time, therefore holds in next time more
Typically requiring during row zoom operation and make zoom motor antiport, this can be by setting the enable signal of zoom drive circuit
Realize.
According to one embodiment of the invention, described circuit for controlling motor includes an adjustable signal output circuit 320, and this can
Adjusting signal output apparatus 320 is focus signal output circuit, and initial signal is to focus on initial signal, and adjustable signal is that focusing is adjustable
Signal, a drive circuit 330 is focus drive circuit, and camera lens motor is focus motor, and optics regulation situation is the poly-of camera lens
Coke-like condition.
As described above, an adjustable signal circuit and a corresponding connection of drive circuit, may be constructed a motor
Control circuit, its zoom or the focusing that may be used for controlling camera lens.In the case of camera lens motor is focus motor, corresponding drives
Galvanic electricity road 330 is focus drive circuit, and corresponding adjustable signal output circuit 320 is focus signal output circuit.In this feelings
Under condition, processor 310 focuses on initial signal, in focus signal output circuit 320 to focus signal output circuit 320 output
DC-DC circuit 322 receives the initial signal of this focusing, and is converted to initial for this focusing signal focus on adjustable signal.Focus signal
Output circuit 322 will focus on adjustable signal and export to focus drive circuit 330, focus drive circuit 330 collectiong focusing is adjustable letter
Number, utilize and focus on adjustable signal generation focus drive signal, and focus drive signal is exported to focus motor to drive focusing
Motor rotation.
Processor 310 can adjust being sized such that of the initial signal of focusing according to exposing condition and focus on the big of adjustable signal
Little can change with the change of exposing condition.Focus on adjustable signal to be converted by DC-DC circuit 322, focus on adjustable signal
Depending on focusing on initial signal, can change along with the change focusing on initial signal.Focus drive signal is by focusing on driving electricity
Road 330 (such as H-bridge drive circuit) utilize focus on adjustable signal generate, therefore, focus drive signal again can along with focus on can
The change of signal is adjusted to change.Therefore, via focus signal output circuit 320 and focus drive circuit 330, processor 310 can
To control the size of focus drive signal by focusing on initial signal, and then control the operating of focus motor.
According to one embodiment of the invention, above-mentioned exposing condition is corresponding with the definition of the image that camera lens gathers, and processes
Device 310 is further used for performing focusing operation, and focusing operation includes: the initial signal of focusing of output initial size is to start to drive
Focus motor operates, the definition of the image that monitoring camera gathers, and adjusts according to the definition of the image of camera lens collection at the beginning of focusing on
The size of beginning signal, and when the definition of the image that camera lens gathers is more than or equal to clarity threshold, stops output and focus on
Initial signal is to stop driving focus motor operating.
By focusing on the definition that can adjust the image that camera lens gathers.After aforementioned zooming procedure, Ke Yi great
But cause obtains magnification level and meets requirement definition not necessarily suitable image.Then by focusing on and can obtain relatively further
Image for definition.Therefore, it can be considered as zooming procedure the coarse tuning process of camera lens, focusing is considered as the fine tuning of camera lens
Process.For focusing on, the definition of the image that camera lens gathers is the highest more good, therefore can preset a definition threshold
It is worth whether the definition as image meets the index required.Clarity threshold can be any suitable value, and it can basis
Depending on needs, this is not limited by the present invention.
The definition of the image of camera lens collection can use the Measurement for Digital Image Definition of routine to determine, the most right
This repeats.
When being focused operation, first processor 310 can export the initial signal of focusing of initial size to start to drive
Dynamic focus motor operating.Exported when just starting and focusing on focus on initial signal size can according to circumstances depending on.Example
Property ground, focusing on initial signal can be fixed value, starts to focus on the most every time and all uses the initial signal of an equal amount of focusing.Example
Property, focusing on initial signal can also be revocable value, and such as it can be according to the image of camera lens collection when starting to focus on
Definition determines.Difference such as, if when starting to focus on, between definition and the clarity threshold of the image that camera lens gathers
Away from less, then can export the initial signal of less focusing to operate with driving focus motor relatively slower;Whereas if starting
During focusing, the gap between definition and the clarity threshold of the image that camera lens gathers is relatively big, then can export bigger focusing
Initial signal operates more quickly with driving focus motor.
In focusing, can monitoring camera gathers in real time the definition of image.Described real-time monitoring can include
Monitor continuously or be monitored at a time interval.In monitoring simultaneously, the image that can gather according to camera lens clear
Degree adjusts the size focusing on initial signal in real time.The mode adjusting the initial signal of focusing can be to adjust continuously or stepping position tune
Whole, it is introduced below in conjunction with specific embodiment, is not repeated herein.
Along with the carrying out of focusing, the definition of the image of camera lens collection can become closer to clarity threshold.When
When the definition of the image that camera lens gathers is more than or equal to clarity threshold, it is believed that the definition of the image that camera lens gathers meets to be wanted
Ask, now can stop output and focus on initial signal, to stop driving focus motor operating.Stop output and focus on initial signal also
Can be understood as exporting size is the signal of zero.
By the way, processor 310 can adjust the running speed of focus motor in focusing in real time, such as
Focus motor operating can be made very fast focusing on the incipient stage, make focus motor operating slower focusing on finishing phase.This with
The mode the driving condition that exposing condition adjusts focus motor can accelerate the process of focusing, can reduce due to motor inertia
The optical parallax brought.
According to one embodiment of the invention, the image that processor 310 can gather according to camera lens in the following manner clear
Clear degree adjusts the size focusing on initial signal: the gap between definition and the clarity threshold of the image of camera lens collection is more than
When presetting focusing gap, the size focusing on initial signal is set as the first focusing preset value, and when the image of camera lens collection
Definition and clarity threshold between gap less than or equal to preset focus on gap time, by focus on initial signal size set
It is set to the second focusing preset value.
Exemplarily, the gap between definition and the clarity threshold of the image that camera lens gathers can be in the following manner
Determine: the definition of image gathered by camera lens is relative clear with the definition of the image that the difference of clarity threshold or camera lens gather
The percentage ratio of clear degree threshold value is considered as the gap between definition and the clarity threshold of the image that camera lens gathers.Above-mentioned determine camera lens
The mode of the gap between definition and the clarity threshold of the image gathered only is exemplary rather than limiting, and the invention is not restricted to
This.
Preset focus on gap can be any suitable value, its can as required depending on, it is not limited by the present invention
System.Assume that the gap between definition and the clarity threshold of the image that current camera lens gathers focuses on gap, then more than presetting
Now the size focusing on initial signal can be set as the first focusing preset value.Along with focus motor operates, camera lens gathers
The definition of image is more and more higher, becomes closer to clarity threshold, the gap between itself and clarity threshold less than or etc.
When default focusing gap, the size focusing on initial signal can be set as the second focusing preset value.First focuses on preset value
Preset value is focused on different with second.First size focusing on preset value and the second focusing preset value can set as required, this
This is not limited by invention.Exemplarily, it is proportionate (i.e. focuses on adjustable letter at focusing adjustable signal and the initial signal of focusing
Number reduce with focusing on the reduction of initial signal) in the case of, first focuses on preset value can be more than the second focusing preset value.?
Focusing on adjustable signal and focusing on initial signal is negative correlation (i.e. focusing on adjustable signal to increase with the reduction focusing on initial signal)
In the case of, first focuses on preset value can be less than the second focusing preset value.
This mode may be considered a kind of stepping and adjusts mode, and the size focusing on initial signal is divided into multiple shelves, passes through
The threshold value of each grade is set, gradually can adjust poly-close to the degree of clarity threshold along with the definition of the image of camera lens collection
The size of burnt initial signal.
Although, describe the first focusing preset value and second in the present embodiment and focus on preset value it should be appreciated that
It is that it is only exemplary rather than limiting, and other any suitable number of focusing preset values are also applied for the present invention.
According to a further embodiment of the invention, the image that processor 310 can gather according to camera lens in the following manner
Definition adjusts the size focusing on initial signal: along with the gap between definition and the clarity threshold of the image of camera lens collection
Reduce and reduce the initial signal of focusing, or along with the gap between definition and the clarity threshold of the image of camera lens collection subtracts
Little and increase focusing initial signal.
Different from a upper embodiment, the present embodiment uses and adjusts the mode focusing on initial signal continuously.In focusing,
Along with the gap between definition and the clarity threshold of the image of camera lens collection is gradually reduced, (or increase) can be reduced accordingly
Focusing on initial signal, the reduction (or increase) of the initial signal of this focusing can be continuous print change.Exemplarily, can in focusing
Adjust signal and focus on initial signal and be proportionate the situation of (i.e. focusing on adjustable signal to reduce with focusing on the reduction of initial signal)
Under, processor 310 can reduce along with the gap between definition and the clarity threshold of the image that camera lens gathers and reduce poly-
Burnt initial signal.It is that negative correlation (i.e. focuses on adjustable signal with focusing on initial signal focusing on adjustable signal and focusing on initial signal
Reduction and increase) in the case of, processor 310 can along with camera lens gather image definition and clarity threshold between
Gap reduce and increase focusing initial signal.It will be appreciated, of course, that along with the carrying out focused on, image clear that camera lens gathers
Gap between clear degree and clarity threshold should be gradually reduced, if gap increases, illustrates that the operating of focus motor turns
Dynamic direction is anti-, in this case, it is possible to use focus drive circuit 330 drives focus motor to rotate backward.
Gap between definition and the clarity threshold of the image that camera lens gathers reduces, and the image that camera lens gathers is described
Definition becomes closer to required definition, in this case, can by focus on initial signal be adjusted so as to more and more less (or
Increasing) so that focus motor turns slower and slower.This mode can reduce motor due to the many rotations of inertia one with focal time
The error that section is brought, improves the fineness focused on.
According to one embodiment of the invention, processor 310 can be further used for stop output focus on initial signal with
After stopping driving focus motor operating, perform following steps until detect the definition of the image that camera lens gathers be more than or etc.
Till clarity threshold: the definition of the image that detector lens gathers, if the definition of the image of camera lens collection is less than clear
Clear degree threshold value, then re-execute focusing operation.
With zooming procedure similarly, after stopping driving focus motor operating, focus motor still may continue to operating
A bit of, it is thus possible to cause the definition of the image that camera lens gathers again to thicken again less than clarity threshold, image.
In such a case, it is possible to after stopping driving focus motor operating, again detect the clear of the image that camera lens gathers
Degree, if now the image that camera lens gathers definition still greater than or equal to clarity threshold, illustrate that it still meets requirement,
The focusing of camera lens can be terminated, otherwise can restart to perform above-mentioned focusing operation, i.e. restart output initial
Size focus on initial signal, monitoring camera gather image definition, according to camera lens gather image definition adjust
Focus on the size of initial signal and stop output when the definition of the image that camera lens gathers is more than or equal to clarity threshold
Focus on initial signal.The definition of the image of detector lens collection and re-execute the step of above-mentioned a series of focusing operation can
To repeat, till the definition of the image of final camera lens collection is more than or equal to clarity threshold.It is to be understood that
It is, during repeating focusing operation, to perform the initial size focusing on initial signal that focusing operation is exported every time
Can be change, depending on it can be according to practical situation.Such as, focusing on initial signal when performing focusing operation for the first time can
With relatively big, although focus motor has operated one section more after stopping driving focus motor, but generally will not be clear with target
Spend too wide in the gap, therefore can export the initial signal of more a little bit smaller focusing when second time performs focusing operation, subsequently poly-
Burnt operation is similar.Therefore, during repeating focusing operation, the focusing that execution focusing operation is exported every time is initially believed
Number initial size can be different.In one example, what each execution focusing operation was exported focuses on the initial of initial signal
Size can determine according to the gap between the definition of the image of camera lens collection and clarity threshold.Additionally, it should be appreciated that
It is, owing to focus motor is owing to inertia has operated one section more when performing focusing operation every time, therefore to perform focusing in next time
Typically requiring during operation and make focus motor antiport, this can realize by setting the enable signal of focus drive circuit.
According to one embodiment of the invention, multiple adjustable signal output circuits 320 can include zoom signal output circuit
With focus signal output circuit, initial signal can include the initial signal of zoom and focus on initial signal, and adjustable signal can wrap
Including zoom adjustable signal and focus on adjustable signal, multiple drive circuits 330 can include zoom drive circuit and focus on driving electricity
Road, camera lens motor can include zoom motor and focus motor, and the optics regulation situation of camera lens can include the zoom shape of camera lens
Condition and the exposing condition of camera lens.
As described above, an adjustable signal circuit and a corresponding connection of drive circuit, may be constructed a motor
Control circuit, its zoom or the focusing that may be used for controlling camera lens.In the control circuit relevant to zoom and relevant with focusing on
In control circuit, can all use adjustable signal to control the operating of camera lens motor.Respectively describe zoom signal
Output circuit and zoom drive circuit and focus signal output circuit and the principle of focus drive circuit and working method, ability
Field technique personnel are appreciated that the implementation of the present embodiment according to foregoing description, repeat no more.
According to one embodiment of the invention, the ratio that zoom condition and target object are occupied in the image that camera lens gathers
Corresponding, exposing condition is corresponding with the definition of the image that camera lens gathers, and processor 310 can be further used for performing zoom
Operation and focusing operation, zoom operation includes: output initial size the initial signal of zoom to start to drive zoom motor to operate,
The ratio that monitoring objective object is occupied in the image that camera lens gathers, according to target object in the image that camera lens gathers shared by
According to ratio adjust the initial signal of zoom size, and when target object in the image that camera lens gathers occupied by ratio at
Time in the range of preset ratio, stop the output initial signal of zoom to stop driving zoom motor operating;Focusing operation includes:
The stopping output initial signal of zoom, after stopping driving zoom motor operating, exports the initial signal of focusing of initial size to open
Begin to drive focus motor operating, the definition of the image that monitoring camera gathers, adjust according to the definition of the image of camera lens collection
Focus on the size of initial signal, and when the definition of the image that camera lens gathers is more than or equal to clarity threshold, stop defeated
Go out to focus on initial signal to stop driving focus motor operating.
When finding target object (trees etc. of the condition of a fire such as occur), for the situation of monitoring objective object, can be first
First camera lens is carried out zoom so that target object reaches desired pictaresque effect, is focused camera lens so that comprise the most again
The image of target object is the most clear.Respectively describe the zooming procedure of camera lens and the implementation of focusing,
Those skilled in the art are appreciated that the implementation of the present embodiment according to foregoing description, repeat no more.
Exemplarily, before performing focusing operation, processor 310 can be further used at stopping output zoom initial
Signal, after stopping driving zoom motor operating, performs following steps until the image that target object gathers being detected at camera lens
Till ratio occupied by is in the range of preset ratio: the ratio that detection target object is occupied in the image that camera lens gathers
Example, if the ratio that target object is occupied by the image of camera lens collection is in outside preset ratio scope, then re-executes change
Burnt operation.Being hereinbefore described the embodiment repeated about zoom operation, those skilled in the art retouch according to above-mentioned
State the implementation being appreciated that the present embodiment, repeat no more.
Exemplarily, processor 310 can be further used for focusing on initial signal to stop driving focusing in stopping output
After motor rotation, perform following steps until detecting that the definition of the image that camera lens gathers is more than or equal to clarity threshold
Till: the definition of the image that detector lens gathers, if the definition of the image of camera lens collection is less than clarity threshold, then weigh
Newly perform focusing operation.The embodiment repeated about focusing operation, people in the art are respectively described
Member is appreciated that the implementation of the present embodiment according to foregoing description, repeats no more.
Fig. 4 illustrates the circuit diagram of DC-DC circuit 322 according to an embodiment of the invention.According to the present embodiment, just
Beginning signal is pwm signal, and DC-DC circuit 322 includes DC-DC chip 410 and peripheral circuit thereof.
DC-DC chip 410 can be any the most existing or DC-DC chip in the cards in future, such as
TPS563200 etc..
In the diagram, C1 and C2 is the shunt capacitance of power input port (IN) of DC-DC chip 410;C3 and R1 is DC-
The driving electric capacity of the transistor within DC chip 410 and driving resistance;C4 is that the soft of DC-DC chip 410 opens electric capacity;C5, C6 and
R2 is the calibration reference circuit of DC-DC chip 410;L1, C11, C12, C13 and C14 are the conversion electricity outside DC-DC chip 410
Road.Above device is similar in conventional DC-DC circuit the peripheral circuit device relevant to DC-DC chip used.In routine
In DC-DC circuit, the peripheral circuit device that different DC-DC chip uses may difference, but internal principle is one
Sample.Emphasis discusses the output voltage V being regulated DC-DC circuit 322 by pwm signal in real time hereinsupply(i.e. adjustable signal)
Principle, above peripheral circuit device does not do concrete discussion.
Enclosing except above-mentioned points outside circuit devcie, the peripheral circuit of DC-DC chip 410 can also include filter resistance R6, filter
Ripple electric capacity C10, the first divider resistance R4 and the second divider resistance R3.
As shown in Figure 4, first end of filter resistance R6 is used for receiving initial signal, and second end of filter resistance R6 connects filter
First end of ripple electric capacity C10, the second end ground connection of filter capacitor C10.First end of the first divider resistance R4 connects the second dividing potential drop
First end of resistance R3, and directly or connect filter resistance R6 and filtering via additional resistance (resistance R5 as shown in Figure 4)
The node that electric capacity C10 connects, the second end ground connection of the first divider resistance R4.Second end of the second divider resistance R3 can for output
Adjust signal, i.e. voltage Vsupply.The feedback port (FB) of DC-DC chip 410 connects the first divider resistance R4 and the second divider resistance
The node that R3 connects, the output switching terminal mouth (SW) of DC-DC chip 410 connects the second divider resistance R3's via outputting inductance L1
Second end, say, that at the end output adjustable signal that outputting inductance L1 and the second divider resistance R3 connects.
Should be appreciated that " first " as herein described and " second " to be only used for the position of electrical part or electrical part and carry out district
Point, it is not offered as any specific order, does not the most have any particular meaning.
Utilize the DC-DC circuit 322 shown in Fig. 4, the pwm signal that processor exports can be converted to adjustable signal
Vsupply.The operation principle of DC-DC circuit 322 is described below.
DC-DC circuit 322 itself is a negative feedback operational amplifier circuit.The pwm signal of different duty is through filtering
Can export in the range of 0~3.3V after the RC low pass filter of ripple resistance R6 and filter capacitor C10 composition is different size of
DC voltage VPWM, this DC voltage is added on the feedback port (FB) of DC-DC chip 410, puts through internal negative feedback computing
Big circuit counting, and then control adjustable signal VsupplyMagnitude of voltage.Exemplarily, it is believed that the dutycycle of pwm signal is corresponding
The size of pwm signal.In the present embodiment, the dutycycle of pwm signal is the biggest, DC voltage VPWMThe biggest.
It is to say, the voltage regulation loop of DC-DC circuit 322 is a degenerative closed loop, when loop stability, deposit
In following relation:
Wherein, VFBBeing the voltage on the feedback port (FB) of DC-DC chip 410, Vref is the reference of DC-DC chip 410
Voltage, Vref is a fixed value.
Knowable to the operation principle of above formula (1), formula (2) and DC-DC chip 410, work as VPWMDuring increase, VFBAlso
Can increase, yet with negative feedback, VsupplyReduce, and then VFBReduce, through repeatedly regulating, final VFBStable, Vsupply
Stable;In like manner, V is worked asPWMDuring reduction, VFBAlso can reduce, yet with negative feedback, VsupplyReduce, and then VFBIncrease, warp
Cross and repeatedly regulate, final VFBStable, VsupplyStable.As can be seen here, in the present embodiment, VPWMWith VsupplyIt is in negative correlation
, i.e. VPWMV during increasesupplyReduce, VPWMV during reductionsupplyIncrease.In conjunction with zoom operation mentioned above or focusing operation,
The size (reducing its dutycycle) of pwm signal can be reduced when needing zoom motor or focus motor to turn very fast, needing
The size (increasing its dutycycle) of pwm signal is increased when wanting zoom motor or focus motor to turn slower.
Therefore by the adjustment of pwm signal can be realized adjustable signal VsupplyChange.Exemplarily, processor can
Adjust the size of initial signal with the dutycycle by changing initial signal, it being understood, however, that, this be only example and
Not limitation of the present invention, the present invention by other means, such as, can change the amplitude of initial signal, adjusts initial letter
Number size.
It should be noted that said method is only example, in addition to using pwm signal to control adjustable signal, exists and pass through
Additive method exports DC voltage VPWMAnd then control adjustable signal VsupplySituation, this is the most still suitable for.
It is exemplified below.Fig. 5 illustrates the circuit diagram of DC-DC circuit 322 in accordance with another embodiment of the present invention.According to this reality
Executing example, initial signal is digital signal, and DC-DC circuit 322 includes DC-DC chip 510 and peripheral circuit thereof.
In Figure 5, DC-DC chip 510 is similar with the structure of the DC-DC chip 410 in Fig. 4 and operation principle, peripheral electricity
The structure of the corresponding device in C1, C2, C3, R1, C4, C5, C6, R2, L1, C11, C12, C13 and the C14 in road and Fig. 4 and work
Make principle to be similar to, repeat no more.
Enclosing except above-mentioned points outside circuit devcie, the peripheral circuit of DC-DC chip 510 also includes digital-to-analogue conversion (DAC) circuit
520, the first divider resistance R4 and the second divider resistance R3.
Should be appreciated that merely illustrative shown in Fig. 5 rather than limitation of the present invention, DAC-circuit 520 can be real at processor end
Existing.
As it is shown in figure 5, the input of DAC-circuit 520 is used for receiving initial signal and initial signal being converted to simulation letter
Number.First end of the first divider resistance R4 connects first end of the second divider resistance R3, and directly or via additional resistance (such as figure
Resistance R5 shown in 5) connect DAC-circuit 520 outfan, the second end ground connection of the first divider resistance R4, the second divider resistance
Second end of R3 is used for exporting adjustable signal.The feedback port (FB) of DC-DC chip 510 connects the first divider resistance R4 and second
The node that divider resistance R3 connects, the output switching terminal mouth (SW) of DC-DC chip 510 connects the second dividing potential drop via outputting inductance L1
Second end of resistance R3.
In the present embodiment, processor can directly export the digital signal representing a certain size, and DAC-circuit 520 should
Digital signal is converted to analogue signal, i.e. DC voltage VPWM.DC voltage V hereinPWMWith the PWM in embodiment illustrated in fig. 4
Signal is the DC voltage V of output after RC filtersPWMUnanimously.It is to say, embodiment illustrated in fig. 4 and embodiment illustrated in fig. 5
Difference essentially consists in DC voltage VPWMGenerating mode or say that generative circuit is different, the circuit structure of remainder and work
Principle is similar.Therefore, according to reference to Fig. 4 and the above-mentioned description for Fig. 4, it will be appreciated by those skilled in the art that Fig. 5 institute
The operation principle of the DC-DC circuit 322 shown, repeats no more.
According to one embodiment of the invention, drive circuit 220 or 330 can include H-bridge drive circuit.Below in conjunction with Fig. 6-
8 operation principles describing H-bridge drive circuit.
Fig. 6 illustrates the circuit diagram of the H-bridge drive circuit according to an example.Circuit is gained the name in " H-bridge drive circuit "
It is because its shape and exactly likes letter H.Four vertical legs of four audion composition H, and motor is exactly the whippletree in H.Need note
Meaning, Fig. 6 and Fig. 7 and Fig. 8 subsequently is only schematic diagram and incomplete circuit diagram, and wherein partial circuit does not draw;H bridge
Drive circuit can include but not limited to that the circuit realized by audion, other transistors or integrated circuit can also realize.
As shown in Figure 6, H-bridge drive circuit can include four audions and a motor.Motor rotation to be made, it is necessary to lead
A pair audion on logical diagonal.According to the conducting situation of different audions pair, electric current may from left to right or from right to left
Ground flows through motor, thus controls turning to of motor.
If needing to make electric machine rotation, it is necessary to make a pair triode ON on H-bridge drive circuit diagonal.Fig. 7 illustrates
The current direction schematic diagram of the H-bridge drive circuit according to an example.As it is shown in fig. 7, as audion Q1And Q4During conducting, electric current
Just from positive source through audion Q1From left to right through motor, it is then passed through audion Q4Return to power cathode.In Fig. 7
Shown in current arrows, driving motor is rotated clockwise by the electric current of this flow direction.As audion Q1And Q4During conducting, electric current from a left side to
Motor is flow through on the right side, thus drives motor to rotate (arrow around motor is designated as clockwise) along specific direction.Fig. 8 illustrates
The current direction schematic diagram of the H-bridge drive circuit according to another example.Fig. 8 is illustrated that another is to audion Q2And Q3Conducting
Situation, electric current will flow through motor from right to left.As audion Q2And Q3During conducting, electric current will flow through motor from right to left, thus
Motor is driven to rotate (arrow around motor is expressed as counterclockwise) in another direction.
The switching frequency of H-bridge drive circuit is relatively low, working stability, therefore uses H-bridge drive circuit to realize above-mentioned driving electricity
Road 220 or 330 can make circuit for controlling motor 200 or 300 work safely and efficiently.
According to one embodiment of the invention, H-bridge drive circuit uses H bridge chip to realize.Fig. 9 illustrates according to the present invention one
The circuit diagram of the H-bridge drive circuit that the employing H bridge chip of embodiment realizes.
H bridge chip as herein described can be any suitable chip, such as DRV8837, L293D, L298N,
TA7257P, SN754410 etc., do not enumerate.H bridge chip shown in Fig. 9 is DRV8837.In fig .9, DCM is motor, H
The output (OUT1, OUT2) of bridge drive circuit controls electric machine rotation.The input voltage VM of H-bridge drive circuit is above-mentioned adjustable signal
The output voltage V of output circuit 210 or 320supply, this voltage VM is for regulating voltage in real time, and it controls electricity by controlling H bridge
The rotation of machine, finally realizes the control (zoom or focus control) to camera lens.
According to a further embodiment of the invention, H-bridge drive circuit uses discrete transistor to realize.Figure 10 illustrates according to this
The circuit diagram of the H-bridge drive circuit using discrete transistor realization of a bright embodiment.The input voltage Vdc of Figure 10 is
The output voltage V of above-mentioned adjustable signal output circuitsupply.Although the most not shown motor, but it is understood that,
At the H bridge transverse arm that motor can be connected between A, B 2.Shown in the control principle of the H-bridge drive circuit shown in Figure 10 and Fig. 9
The control principle of H-bridge drive circuit consistent.It should be understood that above-mentioned with reference to the H-bridge drive circuit described by Fig. 9 and Figure 10 it is only
Example rather than limitation of the present invention, the invention is not restricted to the circuit structure shown in Fig. 9 and Figure 10, existing by electronics unit device
The H-bridge drive circuit that part is built voluntarily may be suitable for the present invention.
According to a further aspect of the invention, it is provided that a kind of motor control method.Figure 11 illustrates according to one embodiment of the invention
The indicative flowchart of motor control method 1100.As shown in figure 11, this motor control method 1100 comprises the following steps.
In step S1110, export adjustable signal, the optics regulation situation with camera lens that is sized to of described adjustable signal
Change and change.
In step S1120, utilize described adjustable signal to generate and drive signal.
In step S1130, export described driving signal for driving the camera lens motor rotation of correspondence.
According to an embodiment, before described output adjustable signal, described motor control method 1100 can be further
Including: export initial signal and according to described optics regulation situation adjust described initial signal be sized such that described adjustable letter
Number be sized to change with the regulation change of situation of described optics;And described initial signal is converted to described adjustable letter
Number.
According to an embodiment, described initial signal is the initial signal of zoom, and described adjustable signal is zoom adjustable signal,
Described camera lens motor is zoom motor, and described optics regulation situation is the zoom condition of described camera lens.
According to an embodiment, the ratio that described zoom condition and target object are occupied in the image that described camera lens gathers
Example is corresponding, the initial signal of described output and according to described optics regulation situation adjust described initial signal be sized such that institute
State being sized to the change with described optics regulation situation and changing and include of adjustable signal: export the described zoom of initial size
Initial signal is to start to drive described zoom motor to operate;Monitor described target object shared in the image that described camera lens gathers
According to ratio;Adjust described zoom according to the ratio that described target object is occupied in the image that described camera lens gathers initially to believe
Number size;And when the ratio that described target object is occupied in the image that described camera lens gathers is in preset ratio scope
Time interior, stop the output initial signal of described zoom to stop driving the operating of described zoom motor.
According to an embodiment, described initial signal is to focus on initial signal, and described adjustable signal is to focus on adjustable signal,
Described camera lens motor is focus motor, and described optics regulation situation is the exposing condition of described camera lens.
According to an embodiment, described exposing condition is corresponding with the definition of the image that described camera lens gathers, described defeated
Go out initial signal and according to described optics regulation situation adjust described initial signal be sized such that the big of described adjustable signal
Little can change include with the regulation change of situation of described optics: the initial signal of described focusing of output initial size is to start
Described focus motor is driven to operate;Monitor the definition of the image that described camera lens gathers;The image gathered according to described camera lens
Definition adjusts the size of the initial signal of described focusing;And when the definition of the image of described camera lens collection is more than or equal to clear
During clear degree threshold value, stop the output initial signal of described focusing to stop driving the operating of described focus motor.
According to an embodiment, described initial signal includes the initial signal of zoom and focuses on initial signal, described adjustable letter
Number including zoom adjustable signal and focus on adjustable signal, described camera lens motor includes zoom motor and focus motor, described camera lens
Optics regulation situation include zoom condition and the exposing condition of described camera lens of described camera lens.
According to an embodiment, the ratio that described zoom condition and target object are occupied in the image that described camera lens gathers
Example is corresponding, and described exposing condition is corresponding with the definition of the image that described camera lens gathers, the initial signal of described output root
It is sized such that being sized to described light of described adjustable signal according to what described optics regulation situation adjusted described initial signal
Learn the change of regulation situation and change and include: the initial signal of described zoom of output initial size is to start to drive described zoom electricity
Machine operates;Monitor the ratio that described target object is occupied in the image that described camera lens gathers;Exist according to described target object
Ratio occupied in the image that described camera lens gathers adjusts the size of the initial signal of described zoom;When described target object is in institute
State in the image of camera lens collection occupied ratio when being in the range of preset ratio, stop the output initial signal of described zoom with
Stop driving the operating of described zoom motor;The initial signal of described focusing of output initial size is to start to drive described focus motor
Operating;Monitor the definition of the image that described camera lens gathers;The definition of the image gathered according to described camera lens adjusts described poly-
The size of burnt initial signal;And when the definition of the image that described camera lens gathers is more than or equal to clarity threshold, stop
Export the initial signal of described focusing to stop driving the operating of described focus motor.
The structure of circuit for controlling motor according to embodiments of the present invention, operation principle is described above already in connection with Fig. 2-10
And advantage etc., those skilled in the art combine Fig. 2-10 and described above is appreciated that each of motor control method 1100 walks
Rapid embodiment and advantage thereof, repeat no more.
The circuit for controlling motor of embodiment of the present invention offer and motor control method, owing to can adjust according to the optics of camera lens
Nodular condition changes the driving voltage of camera lens motor, namely can regulate situation according to the optics of camera lens and adjust turning of camera lens motor
Speed, therefore, it is possible to realize motor speed faster in the incipient stage of optics regulation process, on the ending rank of optics regulation process
The motor speed that Duan Shixian is slower, this can effectively shorten optics regulating time, improve optics degree of regulation, reduces optics regulation
Complexity.In a lot of applications, the such as focal length such as safe city, forest fire protection monitoring field, before having huge application
Scape.In these security fields, find that security threat is for ensureing social stability and people life property safety's tool the most accurately
There are very important value, circuit for controlling motor and motor control method that therefore the embodiment of the present invention provides can produce greatly
Social benefit and economic benefit, there is wide market prospect.
Although describing example embodiment by reference to accompanying drawing here, it should be understood that above-mentioned example embodiment is merely exemplary
, and be not intended to limit the scope of the invention to this.Those of ordinary skill in the art can carry out various change wherein
And amendment, it is made without departing from the scope of the present invention and spirit.All such changes and modifications are intended to be included in claims
Within required the scope of the present invention.
Those of ordinary skill in the art are it is to be appreciated that combine the list of each example that the embodiments described herein describes
Unit and algorithm steps, it is possible to being implemented in combination in of electronic hardware or computer software and electronic hardware.These functions are actually
Perform with hardware or software mode, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel
Each specifically should being used for can be used different methods to realize described function, but this realization is it is not considered that exceed
The scope of the present invention.
In several embodiments provided herein, it should be understood that disclosed equipment and method, can be passed through it
Its mode realizes.Such as, apparatus embodiments described above is only schematically, such as, and the division of described unit, only
Being only a kind of logic function to divide, actual can have other dividing mode, the most multiple unit or assembly to tie when realizing
Close or be desirably integrated into another equipment, or some features can be ignored, or not performing.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that the enforcement of the present invention
Example can be put into practice in the case of not having these details.In some instances, it is not shown specifically known method, structure
And technology, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that one or more in order to simplify that the present invention helping understands in each inventive aspect, exist
To in the description of the exemplary embodiment of the present invention, each feature of the present invention be sometimes grouped together into single embodiment, figure,
Or in descriptions thereof.But, should not be construed to reflect an intention that the most required for protection by the method for this present invention
Application claims feature more more than the feature being expressly recited in each claim.More precisely, such as corresponding power
As profit claim is reflected, its inventive point is can be with the spy of all features of embodiment single disclosed in certain
Levy and solve corresponding technical problem.Therefore, it then follows it is concrete that claims of detailed description of the invention are thus expressly incorporated in this
Embodiment, the most each claim itself is as the independent embodiment of the present invention.
It will be understood to those skilled in the art that in addition to mutually exclusive between feature, any combination can be used right
All features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and the disclosedest any method
Or all processes of equipment or unit are combined.Unless expressly stated otherwise, this specification (includes that adjoint right is wanted
Ask, make a summary and accompanying drawing) disclosed in each feature can be replaced by providing identical, equivalent or the alternative features of similar purpose.
Although additionally, it will be appreciated by those of skill in the art that embodiments more described herein include other embodiments
Some feature included by rather than further feature, but the combination of the feature of different embodiment means to be in the present invention's
Within the scope of and form different embodiments.Such as, in detail in the claims, embodiment required for protection one of arbitrarily
Can mode use in any combination.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference marks that should not will be located between bracket is configured to limitations on claims.Word " comprises " and does not excludes the presence of not
Arrange element in the claims or step.Word "a" or "an" before being positioned at element does not excludes the presence of multiple such
Element.The present invention and can come real by means of including the hardware of some different elements by means of properly programmed computer
Existing.If in the unit claim listing equipment for drying, several in these devices can be by same hardware branch
Specifically embody.Word first, second and third use do not indicate that any order.These word explanations can be run after fame
Claim.
The above, the only detailed description of the invention of the present invention or explanation to detailed description of the invention, the protection of the present invention
Scope is not limited thereto, and any those familiar with the art, can be easily in the technical scope that the invention discloses
Expect change or replace, all should contain within protection scope of the present invention.Protection scope of the present invention should be with claim
Protection domain is as the criterion.