CN106301109B - Circuit for controlling motor and motor control method - Google Patents

Circuit for controlling motor and motor control method Download PDF

Info

Publication number
CN106301109B
CN106301109B CN201610835983.XA CN201610835983A CN106301109B CN 106301109 B CN106301109 B CN 106301109B CN 201610835983 A CN201610835983 A CN 201610835983A CN 106301109 B CN106301109 B CN 106301109B
Authority
CN
China
Prior art keywords
zoom
camera lens
signal
motor
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610835983.XA
Other languages
Chinese (zh)
Other versions
CN106301109A (en
Inventor
程凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xuzhou Kuang Shi Data Technology Co., Ltd.
Beijing Maigewei Technology Co Ltd
Original Assignee
Xuzhou Kuang Shi Data Technology Co Ltd
Beijing Megvii Technology Co Ltd
Beijing Maigewei Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xuzhou Kuang Shi Data Technology Co Ltd, Beijing Megvii Technology Co Ltd, Beijing Maigewei Technology Co Ltd filed Critical Xuzhou Kuang Shi Data Technology Co Ltd
Priority to CN201610835983.XA priority Critical patent/CN106301109B/en
Publication of CN106301109A publication Critical patent/CN106301109A/en
Application granted granted Critical
Publication of CN106301109B publication Critical patent/CN106301109B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P7/00Arrangements for regulating or controlling the speed or torque of electric DC motors
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P7/00Arrangements for regulating or controlling the speed or torque of electric DC motors
    • H02P7/06Arrangements for regulating or controlling the speed or torque of electric DC motors for regulating or controlling an individual dc dynamo-electric motor by varying field or armature current
    • H02P7/18Arrangements for regulating or controlling the speed or torque of electric DC motors for regulating or controlling an individual dc dynamo-electric motor by varying field or armature current by master control with auxiliary power
    • H02P7/24Arrangements for regulating or controlling the speed or torque of electric DC motors for regulating or controlling an individual dc dynamo-electric motor by varying field or armature current by master control with auxiliary power using discharge tubes or semiconductor devices
    • H02P7/28Arrangements for regulating or controlling the speed or torque of electric DC motors for regulating or controlling an individual dc dynamo-electric motor by varying field or armature current by master control with auxiliary power using discharge tubes or semiconductor devices using semiconductor devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Lens Barrels (AREA)

Abstract

The embodiment provides a kind of circuit for controlling motor and motor control methods.The circuit for controlling motor includes: one or more adjustable signal output circuits, and the adjustable signal output circuit can adjust the variation of situation with the optics of camera lens and change for exporting adjustable signal, the size of adjustable signal;And one or more driving circuits, it connects one to one with one or more adjustable signal output circuits, the driving circuit generates driving signal for receiving adjustable signal, using adjustable signal, and output drive signal is for driving corresponding camera lens motor to operate.The optics degree of regulation of camera lens can be improved in circuit for controlling motor and motor control method according to an embodiment of the present invention, greatly shortens the time of optics adjusting, and can reduce the complexity of entire optics adjustment process simultaneously.

Description

Circuit for controlling motor and motor control method
Technical field
The present invention relates to control circuit field, relate more specifically to a kind of circuit for controlling motor and motor control method.
Background technique
With the development of the times, demand of the China in the focal length monitoring side such as safe city, forest fire protection face requires also more next It is higher.For example, field of forest fire prevention mainly uses double spectrum (double spectrum refer to thermal imaging spectrum and visible light) Heavy monopod equipment how faster more clearly to see suspected sites clearly when there is suspicious fire behavior as monitoring equipment Image to it is maximum save people's property be it is vital, when quickly seeing that image can strive for more for the disaster relief Between, even clearer picture effect also functions to conclusive effect to the accuracy of Disaster relief countermeasure.These require to grow by improving Zoom (or zoom) speed and focusing accuracy of zoom lens is realized.
For opposite common electric camera lens, focal length motor-driven lens can see several kilometers of outer 1 square metre or so of images clearly, be The refractive index of eyeglass is improved, eyeglass size itself is larger and mould group is complicated, higher cost.In order to reduce to lens module inside sky Between the service life occupied and improve camera lens motor, focal length motor-driven lens are all made of direct current generator to drive the eyeglass in camera lens at present Mould group is mobile, to realize the function of zoom and focusing.
Currently on the market mainly using the driving voltage driving camera lens motor rotation (operating) of constant magnitude.Motor turns Speed is directly proportional with driving voltage, and under constant pressure driving, the revolving speed of camera lens motor is constant, so as to cause zoom and the focusing of camera lens Speed is constant.Illustrate with reference to the accompanying drawing.Direct current generator can be equivalent to a Resistance model for prediction during rotation.Fig. 1 Schematically show the equivalent-circuit model in conventional motor rotation process.As can be seen from FIG. 1, in directional rotating, work as driving Voltage VdriveWhen constant, the available power of motor is also constant, and the speed of such motor rotation will not change.This design Speed change can not be done according to the actual situation to meet the needs of more complicated.
Summary of the invention
The present invention is proposed in view of the above problem.The present invention provides a kind of circuit for controlling motor and motor control sides Method.
According to an aspect of the present invention, a kind of circuit for controlling motor is provided.The circuit for controlling motor includes: one or more Adjustable signal output circuit, for the adjustable signal output circuit for exporting adjustable signal, the size of the adjustable signal can The variation of situation is adjusted with the optics of camera lens and is changed;And one or more driving circuits, and it is one or more of adjustable Signal output apparatus connects one to one, and the driving circuit is raw using the adjustable signal for receiving the adjustable signal At driving signal, and the driving signal is exported for driving corresponding camera lens motor to operate.
The circuit for controlling motor further comprises the processing connecting with one or more of adjustable signal output circuits Device, the adjustable signal output circuit include DC-DC circuit,
The processor adjusts shape for exporting initial signal to the adjustable signal output circuit, and according to the optics The size for being sized such that the adjustable signal that condition adjusts the initial signal can adjust the variation of situation with the optics And change;
The DC-DC circuit is converted to the initial signal described adjustable for receiving the initial signal Signal.
Illustratively, one adjustable signal output circuit is zoom signal output circuit, and the initial signal is to become Burnt initial signal, the adjustable signal are zoom adjustable signals, and one driving circuit is zoom drive circuit, the camera lens Motor is zoom motor, and the optics adjusts the zoom condition that situation is the camera lens.
Illustratively, the zoom condition and target object ratio occupied in the image that the camera lens acquires are opposite It answers, the processor is further used for executing zoom operation, and the zoom operation includes: at the beginning of exporting the zoom of initial size It is occupied in the image that the camera lens acquires to monitor the target object to start to drive the zoom motor to operate for beginning signal Ratio, the zoom initial signal is adjusted according to target object ratio occupied in the image that the camera lens acquires Size, and when the target object in the image that the camera lens acquire occupied by ratio be within the scope of preset ratio When, stop exporting the zoom initial signal to stop driving the zoom motor to operate.
Illustratively, the processor is in the following manner according to the target object in the image that the camera lens acquires Occupied ratio adjusts the size of the zoom initial signal:
When the target object in the image that the camera lens acquires occupied ratio and the preset ratio range it Between gap when being greater than default zoom gap, the size of the zoom initial signal is set as the first zoom preset value, and When gap of the target object between ratio and the preset ratio range occupied in the image that the camera lens acquires When less than or equal to the default zoom gap, the size of the zoom initial signal is set as the second zoom preset value.
Illustratively, the processor is in the following manner according to the target object in the image that the camera lens acquires Occupied ratio adjusts the size of the zoom initial signal:
With the target object ratio and the preset ratio range occupied in the image that the camera lens acquires Between gap reduce and reduce the zoom initial signal, or the image acquired with the target object in the camera lens In gap between occupied ratio and the preset ratio range reduce and increase the zoom initial signal.
Illustratively, the processor is further used for stopping exporting the zoom initial signal to stop described in driving After zoom motor operating, following steps are executed until detecting that the target object is shared in the image that the camera lens acquires According to ratio be within the scope of the preset ratio until: it is shared in the image that the camera lens acquires to detect the target object According to ratio, if target object ratio occupied in the image that the camera lens acquires is in the preset ratio model Outside enclosing, then the zoom operation is re-executed.
Illustratively, one adjustable signal output circuit is focus signal output circuit, and the initial signal is poly- Burnt initial signal, the adjustable signal are to focus adjustable signal, and one driving circuit is focus drive circuit, the camera lens Motor is focus motor, and the optics adjusts the exposing condition that situation is the camera lens.
Illustratively, the exposing condition is corresponding with the clarity for the image that the camera lens acquires, the processor into One step includes: to export the focusing initial signal of initial size to start to drive for executing focusing operation, the focusing operation The focus motor operating is moved, the clarity of the image of the camera lens acquisition is monitored, according to the clear of the image of camera lens acquisition Clear degree adjusts the size for focusing initial signal, and when the clarity of the image of camera lens acquisition is greater than or equal to clearly When spending threshold value, stop exporting the focusing initial signal to stop driving the focus motor to operate.
Illustratively, described in the clarity adjustment for the image that the processor is acquired according to the camera lens in the following manner Focus the size of initial signal:
When the gap between the clarity and the clarity threshold of the image of camera lens acquisition is poor greater than default focusing Away from when, the size for focusing initial signal is set as the first focusing preset value, and when the image of camera lens acquisition When gap between clarity and the clarity threshold is less than or equal to the default focusing gap, by the initial letter of the focusing Number size be set as the second focusing preset value.
Illustratively, described in the clarity adjustment for the image that the processor is acquired according to the camera lens in the following manner Focus the size of initial signal:
As the gap between the clarity and the clarity threshold of the image of camera lens acquisition reduces and reduce institute Focusing initial signal is stated, or as the gap between the clarity and the clarity threshold of the image of camera lens acquisition subtracts It is small and increase the focusing initial signal.
Illustratively, the processor is further used for stopping exporting the focusing initial signal to stop described in driving After focus motor operating, following steps are executed until detecting that the clarity of the image of the camera lens acquisition is greater than or equal to institute Until stating clarity threshold: the clarity of the image of the camera lens acquisition is detected, if the image of camera lens acquisition is clear Degree is less than the clarity threshold, then re-executes the focusing operation.
Illustratively, the multiple adjustable signal output circuit includes zoom signal output circuit and focus signal output electricity Road, the initial signal include zoom initial signal and focus initial signal, the adjustable signal include zoom adjustable signal and Adjustable signal is focused, the multiple driving circuit includes zoom drive circuit and focus drive circuit, and the camera lens motor includes Zoom motor and focus motor, the optics adjusting situation of the camera lens include the zoom condition of the camera lens and gathering for the camera lens Coke-like condition.
Illustratively, the zoom condition and target object ratio occupied in the image that the camera lens acquires are opposite It answers, the exposing condition is corresponding with the clarity for the image that the camera lens acquires,
The processor is further used for executing zoom operation and focusing operation, and the zoom operation includes: that output is initial The zoom initial signal of size monitors the target object and adopts in the camera lens to start to drive the zoom motor to operate Occupied ratio in the image of collection is adjusted according to target object ratio occupied in the image that the camera lens acquires The size of the zoom initial signal, and at target object ratio occupied in the image that the camera lens acquires When within the scope of preset ratio, stop exporting the zoom initial signal to stop driving the zoom motor to operate;
The focusing operation includes: to stop exporting the zoom initial signal to stop driving the zoom motor to operate Later, the focusing initial signal of initial size is exported to start to drive the focus motor to operate, and is monitored the camera lens and is adopted The clarity of the image of collection adjusts the size for focusing initial signal according to the clarity of the image of camera lens acquisition, and And when the clarity of the image of camera lens acquisition is greater than or equal to clarity threshold, stop exporting the focusing initial signal To stop driving the focus motor operating.
Illustratively, the initial signal is pulse-width signal, and the DC-DC circuit includes DC-DC core Piece and its peripheral circuit, the peripheral circuit include filter resistance, filter capacitor, the first divider resistance and the second divider resistance, The first end of the filter resistance connects the filter capacitor for receiving the initial signal, the second end of the filter resistance First end, the filter capacitor second end ground connection;The first end connection of first divider resistance the second partial pressure electricity The first end of resistance, and directly or connect the node that the filter resistance is connect with the filter capacitor via additional resistance, it is described The second end of first divider resistance is grounded, and the second end of second divider resistance is for exporting the adjustable signal;It is described straight Stream-direct current chip feedback port connects the node that first divider resistance is connect with second divider resistance, described straight Stream-direct current chip output switching terminal mouth connects the second end of second divider resistance via outputting inductance.
Illustratively, the processor adjusts the big of the initial signal by changing the duty ratio of the initial signal It is small.
Illustratively, the initial signal is digital signal, the DC-DC circuit include DC-DC chip and Its peripheral circuit, the peripheral circuit include D/A converting circuit, the first divider resistance and the second divider resistance, and the modulus turns The input terminal of circuit is changed for receiving the initial signal and the initial signal being converted to analog signal;First partial pressure The first end of resistance connects the first end of second divider resistance, and directly or via additional resistance connects the analog-to-digital conversion The output end of circuit, the second end ground connection of first divider resistance, the second end of second divider resistance is for exporting institute State adjustable signal;The feedback port of the DC-DC chip connects first divider resistance and second divider resistance The output switching terminal mouth of the node of connection, the DC-DC chip connects second divider resistance via outputting inductance Second end.
Illustratively, the driving circuit includes H-bridge drive circuit.
Illustratively, the H-bridge drive circuit is realized using H bridge chip.
Illustratively, the H-bridge drive circuit is realized using discrete transistor.
According to a further aspect of the invention, a kind of motor control method is provided.The motor control method includes: the adjustable letter of output Number, the size of the adjustable signal can adjust the variation of situation with the optics of camera lens and change;It is raw using the adjustable signal At driving signal;And the output driving signal is for driving corresponding camera lens motor to operate.
Illustratively, the initial signal is zoom initial signal, and the adjustable signal is zoom adjustable signal, the mirror Head motor is zoom motor, and the optics adjusts the zoom condition that situation is the camera lens.
Illustratively, the zoom condition and target object ratio occupied in the image that the camera lens acquires are opposite It answers, the output initial signal simultaneously adjusts situation according to the optics to adjust being sized such that for the initial signal described adjustable The size of signal can with the optics adjust situation variation and change include: export initial size the zoom initially believe Number to start to drive the zoom motor to operate;Monitor target object ratio occupied in the image that the camera lens acquires Example;According to the target object, ratio occupied in the image that the camera lens acquires adjusts the big of the zoom initial signal It is small;And when target object ratio occupied in the image that the camera lens acquires is within the scope of preset ratio, Stop exporting the zoom initial signal to stop driving the zoom motor to operate.
Illustratively, the initial signal is to focus initial signal, and the adjustable signal is to focus adjustable signal, the mirror Head motor is focus motor, and the optics adjusts the exposing condition that situation is the camera lens.
Illustratively, the exposing condition is corresponding with the clarity for the image that the camera lens acquires, and the output is initial Signal is simultaneously sized such that the size of the adjustable signal can according to what the optics adjusted that situation adjusts the initial signal Adjusting the variation of situation with the optics and change includes: to export the focusing initial signal of initial size to start to drive institute State focus motor operating;Monitor the clarity of the image of the camera lens acquisition;According to the clarity of the image of camera lens acquisition Adjust the size for focusing initial signal;And when the clarity of the image of camera lens acquisition is greater than or equal to clarity threshold When value, stop exporting the focusing initial signal to stop driving the focus motor to operate.
Illustratively, the initial signal includes zoom initial signal and focuses initial signal, and the adjustable signal includes Zoom adjustable signal and focusing adjustable signal, the camera lens motor includes zoom motor and focus motor, the optics of the camera lens Adjusting situation includes the zoom condition of the camera lens and the exposing condition of the camera lens.
Illustratively, the zoom condition and target object ratio occupied in the image that the camera lens acquires are opposite It answers, the exposing condition is corresponding with the clarity for the image that the camera lens acquires, the output initial signal and according to described The size for being sized such that the adjustable signal that optics adjusting situation adjusts the initial signal can be adjusted with the optics The variation of situation and to change include: to export the zoom initial signal of initial size to start to drive the zoom motor to transport Turn;Monitor target object ratio occupied in the image that the camera lens acquires;According to the target object described Occupied ratio adjusts the size of the zoom initial signal in the image of camera lens acquisition;When the target object is in the mirror When occupied ratio is within the scope of preset ratio in the image of head acquisition, stop exporting the zoom initial signal to stop The zoom motor is driven to operate;The focusing initial signal of initial size is exported to start to drive the focus motor to transport Turn;Monitor the clarity of the image of the camera lens acquisition;The focusing is adjusted according to the clarity of the image of camera lens acquisition The size of initial signal;And when the clarity of the image of camera lens acquisition is greater than or equal to clarity threshold, stop defeated The focusing initial signal is out to stop driving the focus motor to operate.
The circuit for controlling motor and motor control method that there is provided according to embodiments of the present invention, can be that can adjust in real time Voltage rather than constant pressure driving camera lens motor operating.The optics degree of regulation that camera lens not only can be improved, greatly shortens optics The time of adjusting, and the complexity of entire optics adjustment process, the especially complexity of algorithm can be reduced simultaneously, to make The optics adjustment process of camera lens has qualitative leap.
Detailed description of the invention
The embodiment of the present invention is described in more detail in conjunction with the accompanying drawings, the above and other purposes of the present invention, Feature and advantage will be apparent.Attached drawing is used to provide to further understand the embodiment of the present invention, and constitutes explanation A part of book, is used to explain the present invention together with the embodiment of the present invention, is not construed as limiting the invention.In the accompanying drawings, Identical reference label typically represents same parts or step.
Fig. 1 schematically shows the equivalent-circuit model in conventional motor rotation process;
Fig. 2 shows the schematic block diagrams of circuit for controlling motor according to an embodiment of the invention;
Fig. 3 shows the schematic block diagram of circuit for controlling motor in accordance with another embodiment of the present invention;
Fig. 4 shows the circuit diagram of DC-DC according to an embodiment of the invention (DC-DC) circuit;
Fig. 5 shows the circuit diagram of DC-DC circuit in accordance with another embodiment of the present invention;
Fig. 6 shows the circuit diagram according to an exemplary H-bridge drive circuit;
Fig. 7 shows the current flow diagram according to an exemplary H-bridge drive circuit;
Fig. 8 shows the current flow diagram according to another exemplary H-bridge drive circuit;
The circuit that Fig. 9 shows the H-bridge drive circuit according to an embodiment of the invention realized using H bridge chip is illustrated Figure;
The circuit that Figure 10 shows the H-bridge drive circuit according to an embodiment of the invention realized using discrete transistor shows It is intended to;And
Figure 11 shows the schematic flow chart of motor control method according to an embodiment of the invention.
Specific embodiment
In order to enable the object, technical solutions and advantages of the present invention become apparent, root is described in detail below with reference to accompanying drawings According to example embodiments of the present invention.Obviously, described embodiment is only a part of the embodiments of the present invention, rather than this hair Bright whole embodiments, it should be appreciated that the present invention is not limited by example embodiment described herein.Based on described in the present invention The embodiment of the present invention, those skilled in the art's obtained all other embodiment in the case where not making the creative labor It should all fall under the scope of the present invention.
In order to solve the problems, such as that the velocity of rotation of camera lens motor can not change according to demand, the present invention proposes that one kind can give birth to At variable driving voltage rather than the circuit for controlling motor of constant drive voltage.
According to an aspect of the present invention, a kind of circuit for controlling motor is provided.Circuit for controlling motor includes one or more adjustable Signal output apparatus and the one or more driving circuits to connect one to one with one or more adjustable signal output circuits.Show Example property, the camera lens motor of camera lens may include zoom motor and focus motor, be respectively used to realize the zoom function of camera lens and Focusing function.Zoom is similar with the basic principle of focusing, is all to drive eyeglass mould group mobile by corresponding motor operating, from And realize zoom or focusing.Therefore, for the zoom motor of camera lens and focus motor, construction and work can be respectively adopted Principle similar circuit drives.In circuit for controlling motor, an adjustable signal output circuit is corresponding with a driving circuit Connection, may be constructed the control circuit of a motor.In one example, circuit for controlling motor includes an adjustable signal output Circuit and a driving circuit, constitute a control circuit, can be used for controlling the operating of zoom motor, the focus motor of camera lens It can then be controlled using conventional circuit.In another example, circuit for controlling motor includes an adjustable signal output circuit With a driving circuit, a control circuit is constituted, can be used for controlling the operating of focus motor, the zoom motor of camera lens then may be used To be controlled using conventional circuit.In another example, circuit for controlling motor includes two adjustable signal output circuits and two A driving circuit constitutes two control circuits, is respectively used to the operating of control zoom motor and focus motor.Certainly, above-mentioned electricity The circuit configuration of machine control circuit is only exemplary rather than limitation of the present invention, and circuit for controlling motor of the invention is not limited to State implementation.
Fig. 2 shows the schematic block diagrams 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 driving circuit are only shown.Fig. 2 shows adjustable signal output circuit and driving circuit It can be zoom signal output circuit relevant to zoom motor and zoom drive circuit, be also possible to relevant to focus motor Focus signal output circuit and focus drive circuit.By introducing adjustable signal output circuit 210 and driving circuit shown in Fig. 2 220 construction and working principle, it will be appreciated by those skilled in the art that zoom signal output circuit, focus signal output circuit, The construction and working principle of zoom drive circuit and focus drive circuit.
As shown in Fig. 2, circuit for controlling motor 200 includes the adjustable signal output circuit 210 and driving circuit interconnected 220.Adjustable signal output circuit 210 can adjust shape with the optics of camera lens for exporting adjustable signal, the size of adjustable signal The variation of condition and change.Driving circuit 220 generates driving signal for receiving adjustable signal, using adjustable signal, and exports drive Dynamic signal is for driving corresponding camera lens motor to operate.
Driving circuit 220 can be connected with corresponding camera lens motor.In the case where camera lens motor is zoom motor, driving Circuit 220 is zoom drive circuit, and adjustable signal output circuit 210 is zoom signal output circuit;It is to focus in camera lens motor In the case where motor, driving circuit 220 is focus drive circuit, and adjustable signal output circuit 210 is focus signal output circuit. Driving circuit 220 can be using any suitable existing or motor-drive circuit in the cards (such as H bridge driving electricity in the future Road) it realizes, the present invention limits not to this.Driving circuit 220 in such a way that driving signal drives camera lens motor with conventional skill Art is similar, is repeated herein not to this.Unlike the prior art, driving signal is determined by adjustable signal, therefore In the case where adjustable signal is variable, driving signal is also variable, therefore be can be realized using variable adjustable signal with non- Uniform speed rotates camera lens motor, also can be with the eyeglass mould of speed moving lens (such as telephoto lens) heterogeneous Group.
It is appreciated that carrying out optics adjusting to camera lens may include carrying out zoom and/or focusing to camera lens.The optics of camera lens Adjusting situation may include the zoom condition of camera lens, i.e. the camera lens gap with target focal length when zooming.Illustratively, camera lens Zoom condition can be reflected with target object ratio occupied in the image that camera lens acquires, that is to say, that the change of camera lens Coke-like condition and target object ratio occupied in the image that camera lens acquires are corresponding.Hereafter for convenience of description, " mesh is used sometimes Mark object proportion " replaces " target object in the image that camera lens acquire occupied ratio ", their expressions are identical Meaning.Target object refers to the object that needs monitor, such as the objects such as house, trees that fire behavior occurs, and target object can also be with It is certain block monitoring area.The optics of camera lens adjusts the exposing condition that situation can also include camera lens, i.e., camera lens when focusing with The gap of target sharpness.Illustratively, the exposing condition of camera lens can be reflected with the clarity of the image of camera lens acquisition, That is the exposing condition of camera lens is corresponding with the clarity for the image that camera lens acquires.
Illustratively, adjustable signal is voltage signal, and the voltage value of the voltage signal can adjust shape with the optics of camera lens The variation of condition and change.For example, adjustable signal output circuit 210 can export larger when just starting zoom or focusing Voltage (the i.e. described adjustable signal) so that driving circuit 220 generates biggish driving voltage (the i.e. described driving signal), thus Driving camera lens motor more quickly operates;It is close in the clarity of focal length close to the target focal length or the image of camera lens acquisition of camera lens When target sharpness, adjustable signal output circuit 210 can export lesser voltage so that driving circuit 220 generate it is lesser Driving voltage, to operate with driving camera lens motor relatively slower.
As described above, the zoom of camera lens and focusing function are realized by the way that the position of eyeglass mould group is mobile, and mirror Head motor is exactly to play the role of mobile eyeglass mould group.The relevant design in industry is the function for realizing zoom and focusing at present Can, but since constant voltage drive circuit can not adjust the revolving speed of camera lens motor in real time, optics adjustment process it is relatively slow and Optics degree of regulation is poor.And circuit for controlling motor according to an embodiment of the present invention is due to that can adjust situation with the optics of camera lens Change and adjustable signal and then change driving signal, therefore compared with prior art, can make optics adjustment process accelerate and Optics degree of regulation can be improved.It is described below in detail.
Firstly, since zoom or to focus (mainly zoom) process rotation path longer, therefore allow electricity early period at this stage Machine quickly rotates the pictaresque time that can save target object, and finishing phase rotate by motor relatively can then reduce slowly by Problem is unsatisfied in the pictaresque effect of motor inertia bring, improves the First Pass Yield of zoom or focusing.It in this way can be further Shorten zoom or focal time while optimizing zoom or focusing effect.These careful operations are all conventional constant pressure drivings What circuit can not be accomplished.
Secondly, motor rotation due to inertia, can continue to walk after driving circuit shutdown it is a bit of, so that optics be caused to miss Difference.Such case itself can not be eradicated, and can be generally minimized error using the methods of feedback calibration in industry.It is this anti- Although feedback adjusting method can reduce this optical parallax, algorithm itself is complicated.And different camera lenses are due to the difference of damped coefficient Different, it is impossible to be use universally, and feedback system constantly regulate the time that also will increase optics adjustment process.Implemented using the present invention The circuit for controlling motor that example provides can reduce adjustment speed in the period that optics adjustment process will finish up, to reduce Due to inertia bring optical parallax, when optics degree of regulation, which not only can be improved, can also save valuable optics adjusting Between.
Generally speaking, due to adjustable signal output circuit 210 output can with the optics of camera lens adjust situation variation and The adjustable signal of variation, thus can with the voltage that can adjust in real time rather than constant pressure driving camera lens motor operating.So not only The optics degree of regulation that camera lens can be improved, greatly shortens the time of optics adjusting, and can reduce entire optics tune simultaneously The complexity of the complexity of section process, especially algorithm, so that making the optics adjustment process of camera lens has qualitative leap.
According to an embodiment of the present invention, circuit for controlling motor may further include processor, adjustable signal output electricity Road may include DC-DC circuit.Fig. 3 shows the schematic frame of circuit for controlling motor 300 in accordance with another embodiment of the present invention Figure.As shown in figure 3, circuit for controlling motor 300 includes processor 310, adjustable signal output circuit 320 includes DC-DC circuit 322。
Processor 310 is connect with one or more adjustable signal output circuits 320, for exporting initial signal to adjustable letter Number output circuit 320, and adjust according to the optics size energy for being sized such that adjustable signal of situation adjustment initial signal It is enough to adjust the variation of situation with the optics and change.DC-DC circuit 322 turns for receiving initial signal, and by initial signal It is changed to adjustable signal.DC-DC circuit 322 can be the circuit using conventional DC-DC chip composition.
Illustratively, initial signal can be pulsewidth modulation (PWM) signal or digital signal or other any suitable letters Number.It is understood that can easily generate the initial signal of desired size by processor, such as can be using volume Journey mode indicates that processor generates the initial signal of desired size.In addition, being commonly equipped in conventional lens module ready-made Processor, the ready-made processor can be directly used to generate required initial signal.It therefore, can using processor control The size for the signal for adjusting signal output apparatus to generate and then the operating for indirectly controlling camera lens motor be it is a kind of simple, be easily achieved, Efficient method.
Certainly, it is to be understood that above-mentioned processor is only exemplary rather than limitation of the present invention, and the present invention can use Any suitable device for having signal handling capacity, device or circuitry instead processor realize corresponding function, such as can adopt It is realized with Field Programmable Logic Array (FPGA), special integrated chip (ASIC), digital signal processing circuit (DSP) etc..
As described above, driving signal is to be determined by adjustable signal, therefore in the case where adjustable signal is variable, drive Signal is also variable.In addition, in the present embodiment, since adjustable signal is again related to initial signal, by adjusting just The size of beginning signal can finally change the size of driving signal, electric to rotate camera lens with speed heterogeneous so as to realize Machine.
According to an embodiment of the present invention, the circuit for controlling motor includes an adjustable signal output circuit 320, this can Adjusting signal output apparatus 320 is zoom signal output circuit, and initial signal is zoom initial signal, and adjustable signal is that zoom is adjustable Signal, a driving circuit 330 are zoom drive circuits, and camera lens motor is zoom motor, and optics adjusts the change that situation is camera lens Coke-like condition.
As described above, an adjustable signal circuit is correspondingly connected with a driving circuit, may be constructed a motor Control circuit can be used for controlling zoom or the focusing of camera lens.In the case where camera lens motor is zoom motor, corresponding drive Dynamic circuit 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 zoom initial signal to zoom signal output circuit 320, in zoom signal output circuit 320 DC-DC circuit 322 receives the zoom initial signal, and the zoom initial signal is converted to zoom adjustable signal.Zoom signal Output circuit 322 exports zoom adjustable signal to zoom drive circuit 330, and zoom drive circuit 330 receives the adjustable letter of zoom Number, zoom drive signal is generated using zoom adjustable signal, and zoom drive signal is exported to zoom motor to drive zoom Motor operating.
Processor 310 can be sized such that the big of zoom adjustable signal according to zoom condition adjustment zoom initial signal It is small to change with the variation of zoom condition.Zoom adjustable signal is converted by DC-DC circuit 322, zoom adjustable signal Depending on zoom initial signal, it can change with the variation of zoom initial signal.Zoom drive signal is by zoom drive electricity Road 330 (such as H-bridge drive circuit) is generated using zoom adjustable signal, and therefore, zoom drive signal again can be as zoom can It adjusts the variation of signal and changes.Therefore, via zoom signal output circuit 320 and zoom drive circuit 330, processor 310 can To control the size of zoom drive signal by zoom initial signal, and then control the operating of zoom motor.
According to an embodiment of the present invention, above-mentioned zoom condition and target object are occupied in the image that camera lens acquires Ratio is corresponding, and processor 310 can be further used for executing zoom operation, and the zoom operation includes: output initial size Zoom initial signal with start drive zoom motor operating, monitoring objective object in the image that camera lens acquire occupied by ratio Example according to the size of target object ratio adjustment zoom initial signal occupied in the image that camera lens acquires, and works as mesh When mark object ratio occupied in the image that the camera lens acquires is within the scope of preset ratio, it is initial to stop output zoom Signal is to stop driving zoom motor operating.
It is occupied in the image that camera lens acquires by adjusting focal length (i.e. zoom) adjustable target object of camera lens Ratio.For example, target object can be amplified to by suitable size by zoom first when fire behavior occurs, it is subsequent to carry out again The operation such as focusing, to facilitate monitoring personnel to check.Target object (house that fire behavior such as occurs) is in the image of camera lens acquisition It needs to occupy suitable ratio, if occupied ratio is too big, may be not easy the case where seeing clearly around target object, such as Ratio occupied by fruit is too small, then may be not easy to see target object itself clearly.Therefore, desired, mesh can be preset Object ratio occupied in the image that camera lens acquires is marked, can be a range, i.e., preset ratio model as described herein It encloses.Preset ratio range can be any suitable range, and depending on can according to need, the present invention limits not to this. For example, preset ratio range can be 40%~60%, i.e., if target object proportion is less than 40% or greater than 60%, It may be considered that target object proportion is undesirable, zoom is needed, if target object proportion is greater than or equal to 40% and it is less than or equal to 60%, it, can be without zoom it may be considered that target object proportion meets the requirements.
When carrying out zoom operation, processor 310 can export the zoom initial signal of initial size first to start to drive Dynamic zoom motor operating.The size of zoom initial signal exported when just starting zoom can according to circumstances depending on.Example Property, zoom initial signal can be fixed value, i.e., starts zoom every time and all use an equal amount of zoom initial signal.Example Property, zoom initial signal is also possible to revocable value, such as it can be according to target object proportion when beginning zoom To determine.For example, if the gap between target object proportion and preset ratio range is smaller, then when starting zoom Lesser zoom initial signal can be exported to operate with driving zoom motor relatively slower;, whereas if when starting zoom, mesh The gap marked between object proportion and preset ratio range is larger, then can export biggish zoom initial signal to drive Zoom motor more quickly operates.
In zooming procedure, target object ratio occupied in the image that camera lens acquires can be monitored in real time.It is described Real time monitoring may include continuously monitoring or being monitored at a time interval.It is monitoring simultaneously, it can be according to target Object ratio occupied in the image that camera lens acquires adjusts the size of zoom initial signal in real time.Adjust zoom initial signal Mode can be continuous adjustment or the adjustment of stepping position, be introduced below in conjunction with specific embodiment, this will not be repeated here.
With the progress of zooming procedure, target object ratio occupied in the image that camera lens acquires can increasingly be connect Nearly preset ratio range.When target object proportion is fallen within the scope of preset ratio, it is believed that target object proportion is full Foot requires, that is, reaches pictaresque effect, can stop exporting zoom initial signal at this time, to stop driving zoom motor operating.Stop Only output zoom initial signal is it can be appreciated that the signal that output size is zero.
By the above-mentioned means, processor 310 can adjust the running speed of zoom motor in real time in zooming procedure, such as Zoom motor operating can be kept very fast in the zoom incipient stage, keep zoom motor operating slower in zoom finishing phase.It is this with The mode of driving condition of zoom condition adjustment zoom motor can faster reach pictaresque effect, accelerate the process of zoom, can To reduce due to motor inertia bring optical parallax.
According to an embodiment of the present invention, processor 310 can be acquired according to target object in camera lens in the following manner Image in occupied ratio adjustment zoom initial signal size: when target object in the image that camera lens acquire occupied by Ratio and preset ratio range between gap when being greater than default zoom gap, the size of zoom initial signal is set as the One zoom preset value, and when target object is between ratio and preset ratio range occupied in the image that camera lens acquires When gap is less than or equal to default zoom gap, the size of zoom initial signal is set as the second zoom preset value.
It can be seen from the foregoing, preset ratio range can be the range with maximum value and minimum value.In such case Under, according to an example, difference of the target object between ratio and preset ratio range occupied in the image that camera lens acquires Away from can determine in the following manner: when target object proportion is less than the minimum value in preset ratio range, by target The difference (or percentage of target object proportion relative minimum) of object proportion and minimum value is considered as target object Gap between ratio and preset ratio range occupied in the image of camera lens acquisition;When target object proportion is greater than When maximum value in preset ratio range, by the difference of target object proportion and maximum value (or target object proportion The percentage of relative maximum) be considered as target object ratio occupied in the image that camera lens acquires and preset ratio range it Between gap.According to another example, preset ratio range can be determined according to the maximum value and minimum value of preset ratio range Median, gap of the target object between ratio and preset ratio range occupied in the image that camera lens acquires can pass through Following manner determines: by the difference of target object proportion and the median of preset ratio range (or target object institute accounting The percentage of the opposite median of example) it is considered as target object ratio and preset ratio range occupied in the image that camera lens acquires Between gap.Above-mentioned determining target object is between ratio and preset ratio range occupied in the image that camera lens acquires The mode of gap is only exemplary rather than limitation, and the invention is not limited thereto.
Default zoom gap can be any suitable value, and depending on can according to need, the present invention is not limited it System.For example, it is assumed that default zoom gap is 15%, preset ratio range is 40%~60%.Moreover, it is assumed that current object Gap (difference i.e. maximum value 60% between) of the body proportion between 80%, with preset ratio range is 20%, It is greater than default zoom gap 15%, and the size of zoom initial signal can be set as to the first zoom preset value at this time.With Zoom motor operating, target object proportion is smaller and smaller, becomes closer to preset ratio range, when it reaches 75%, Its gap (difference i.e. between maximum value 60%) between preset ratio range is 15%, is equal to default zoom gap 15%, the size of zoom initial signal can be set as to the second zoom preset value at this time.First zoom preset value and second becomes Burnt preset value is different.The size of first zoom preset value and the second zoom preset value can be set as needed, and the present invention is not This is limited.Illustratively, it is positively correlated (i.e. zoom adjustable signal covariant in zoom adjustable signal and zoom initial signal The reduction of burnt initial signal and reduce) in the case where, the first zoom preset value can be greater than the second zoom preset value.Zoom can The case where adjusting signal and zoom initial signal negatively correlated (i.e. zoom adjustable signal increases with the reduction of zoom initial signal) Under, the first zoom preset value can be less than the second zoom preset value.
This mode may be considered a kind of stepping adjustment mode, and the size of zoom initial signal is divided into multiple shelves, passes through Each grade of threshold value is set, at the beginning of gradually can adjusting zoom with the degree of target object proportion close to preset ratio range The size of beginning signal.
Although describing the first zoom preset value and the second zoom preset value in the present embodiment it should be appreciated that It is only to be exemplary rather than limitation, 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 according to target object in camera lens in the following manner The size of occupied ratio adjustment zoom initial signal in the image of collection: with target object in the image that camera lens acquires institute Gap between the ratio occupied and preset ratio range reduces and reduces zoom initial signal, or as target object is in mirror Gap in the image of head acquisition between occupied ratio and preset ratio range reduces and increases zoom initial signal.
Different from a upper embodiment, the present embodiment is by the way of continuously adjustment zoom initial signal.In zooming procedure, As the gap between target object proportion and preset ratio range is gradually reduced, it can accordingly reduce (or increase) zoom The reduction (or increase) of initial signal, this zoom initial signal can be continuous variation.Illustratively, in the adjustable letter of zoom It number is positively correlated in the case where (i.e. zoom adjustable signal reduces with the reduction of zoom initial signal) with zoom initial signal, place Managing device 310 can be with gap of the target object between ratio and preset ratio range occupied in the image that camera lens acquires Reduce and reduces zoom initial signal.Zoom adjustable signal and zoom initial signal it is negatively correlated (i.e. zoom adjustable signal with The reduction of zoom initial signal and increase) in the case where, processor 310 can be as target object be in the image that camera lens acquires Gap between occupied ratio and preset ratio range reduces and increases zoom initial signal.It will be appreciated, of course, that with The progress of zoom, the gap between target object proportion and preset ratio range should be gradually reduced, if gap Increase, illustrate that the operating rotation direction of zoom motor is anti-, in this case, can use the driving of zoom drive circuit 330 and become Burnt motor rotates backward.
Gap between target object proportion and preset ratio range reduces, and illustrates that target object proportion is more next Zoom initial signal can be adjusted so as to smaller and smaller (or increasing), made in this case closer to required ratio It obtains zoom motor and the more turns the more slow.This mode can reduce the pictaresque time of target object, reduce motor since inertia rotates more One section of bring error, improves the fineness of zoom.
According to an embodiment of the present invention, processor 310 can be further used for stop output zoom initial signal with After stopping driving zoom motor operating, following steps are executed until detecting that target object is shared in the image that camera lens acquires According to ratio be within the scope of preset ratio until: detection target object in the image that camera lens acquire occupied by ratio, such as Fruit target object ratio occupied in the image that camera lens acquires is in outside preset ratio range, then re-executes zoom behaviour Make.
As described above, motor rotation is due to inertia, can continue to walk after driving circuit shutdown it is a bit of, to cause light Learn error.Therefore, after stopping driving zoom motor operating, zoom motor still may continue to operate it is a bit of, therefore can Target object proportion can be caused to exceed preset ratio range again, i.e., no longer met the requirements.In such a case, it is possible to After stopping driving zoom motor operating, target object proportion is detected again, if target object institute accounting at this time Example is still within the scope of preset ratio, is illustrated that it still meets requirement, can be terminated the zooming procedure of camera lens, otherwise can weigh Newly start to execute above-mentioned zoom operation, that is, restarts the zoom initial signal, the monitoring objective object institute that export initial size Accounting example, the size that zoom initial signal is adjusted according to target object proportion and when target object proportion is in pre- If stopping output zoom initial signal when in proportional region.It detects target object proportion and re-executes above-mentioned a series of The step of zoom operation, can repeat, until final goal object proportion is within the scope of preset ratio.It answers When understanding, during repeating zoom operation, the zoom initial signal that zoom operation is exported is executed every time Initial size can be variation, can according to the actual situation depending on.For example, when first time executing zoom operation at the beginning of zoom Beginning signal can be larger, although stopping that zoom motor after zoom motor is driven to operate one section, it usually will not be with. more Target focal length is too wide in the gap, therefore can export more a little bit smaller zoom initial signal when executing zoom operation second, with Zoom operation afterwards is similar.Therefore, during repeating zoom operation, the zoom that zoom operation is exported is executed every time The initial size of initial signal can be different.In one example, the zoom initial signal that zoom operation is exported is executed every time Initial size can according to the gap between current goal object proportion and preset ratio range determine.Additionally, it should Understand, since zoom motor is to have operated one section due to inertia when executing zoom operation every time, is held in next time more Usually require to make zoom motor antiport when row zoom operation, this can by set zoom drive circuit enable signal come It realizes.
According to an embodiment of the present invention, the circuit for controlling motor includes an adjustable signal output circuit 320, this can Adjusting signal output apparatus 320 is focus signal output circuit, and initial signal is to focus initial signal, and adjustable signal is that focusing is adjustable Signal, a driving circuit 330 are focus drive circuits, and camera lens motor is focus motor, and it is the poly- of camera lens that optics, which adjusts situation, Coke-like condition.
As described above, an adjustable signal circuit is correspondingly connected with a driving circuit, may be constructed a motor Control circuit can be used for controlling zoom or the focusing of camera lens.In the case where camera lens motor is focus motor, corresponding drive Dynamic circuit 330 is focus drive circuit, and corresponding adjustable signal output circuit 320 is focus signal output circuit.In this feelings Under condition, processor 310 is exported to focus signal output circuit 320 focuses initial signal, in focus signal output circuit 320 DC-DC circuit 322 receives the focusing initial signal, and the focusing initial signal is converted to focusing adjustable signal.Focus signal Output circuit 322 is exported adjustable signal is focused to focus drive circuit 330,330 collectiong focusing of focus drive circuit is adjustable letter Number, focus drive signal is generated using adjustable signal is focused, and focus drive signal is exported to focus motor to drive and focus Motor operating.
Processor 310 can adjust being sized such that for focusing initial signal according to exposing condition and focus the big of adjustable signal It is small to change with the variation of exposing condition.It focuses adjustable signal to be converted by DC-DC circuit 322, focuses adjustable signal Depending on focusing initial signal, it can change with the variation for focusing initial signal.Focus drive signal is by focusing driving electricity Road 330 (such as H-bridge drive circuit) using focus adjustable signal generate, therefore, focus drive signal again can with focusing can It adjusts the variation of signal and changes.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 initial signal, and then control the operating of focus motor.
According to an embodiment of the present invention, above-mentioned exposing condition is corresponding with the clarity for the image that camera lens acquires, processing Device 310 is further used for executing focusing operation, and focusing operation includes: to export the focusing initial signal of initial size to start to drive Focus motor operating, the clarity of the image of monitoring camera acquisition focus just according to the clarity adjustment of the image of camera lens acquisition The size of beginning signal, and when the clarity of the image of camera lens acquisition is greater than or equal to clarity threshold, stop output and focuses Initial signal is to stop driving focus motor operating.
By the clarity for focusing the image of adjustable camera lens acquisition.After by aforementioned zooming procedure, Ke Yi great Cause to obtain magnification level meet the requirements but clarity not necessarily suitable image.Then by focus can further obtain compared with For the image of clarity.Therefore, zooming procedure can be considered as to the coarse tuning process of camera lens, focusing is considered as to the fine tuning of camera lens Process.For focusing, the higher the better for the clarity of the image of camera lens acquisition, therefore can preset a clarity threshold The index whether value meets the requirements as the clarity of image.Clarity threshold can be any suitable value, can basis Depending on needing, the present invention limits not to this.
The clarity of the image of camera lens acquisition can be determined using conventional Measurement for Digital Image Definition, not right herein This is repeated.
When being focused operation, processor 310 can export the focusing initial signal of initial size first to start to drive Dynamic focus motor operating.The size of focusing initial signal exported when just starting and focusing can according to circumstances depending on.Example Property, focusing initial signal can be fixed value, i.e., starts to focus every time all using an equal amount of focusing initial signal.Example Property, focusing initial signal is also possible to revocable value, such as it can be according to the image of camera lens acquisition when starting to focus Clarity determines.For example, if start focus when, camera lens acquisition image clarity and clarity threshold between difference Away from smaller, then lesser focusing initial signal can be exported to operate with driving focus motor relatively slower;, whereas if starting When focusing, the gap between the clarity and clarity threshold of the image of camera lens acquisition is larger, then can export biggish focusing Initial signal is to drive focus motor more quickly to operate.
In focusing, the clarity of the image of camera lens acquisition can be monitored in real time.The real time monitoring may include It continuously monitors or is monitored at a time interval.It is monitoring simultaneously, it can be according to the clear of the image that camera lens acquires Degree adjustment in real time focuses the size of initial signal.The mode that adjustment focuses initial signal can be continuous adjustment or stepping position tune It is whole, it is introduced below in conjunction with specific embodiment, this will not be repeated here.
With the progress of focusing, the clarity of the image of camera lens acquisition can become closer to clarity threshold.When When the clarity of the image of camera lens acquisition is greater than or equal to clarity threshold, it is believed that the clarity satisfaction of the image of camera lens acquisition is wanted It asks, output can be stopped at this time and focus initial signal, to stop driving focus motor operating.Stop output and focuses initial signal It can be understood as the signal that output size is zero.
By the above-mentioned means, processor 310 can adjust the running speed of focus motor in real time in focusing, such as Focus motor operating can be kept very fast focusing the incipient stage, keep focus motor operating slower focusing finishing phase.It is this with Exposing condition adjustment focus motor driving condition mode can accelerate focus process, can reduce due to motor inertia Bring optical parallax.
According to an embodiment of the present invention, processor 310 can be in the following manner according to the clear of the image of camera lens acquisition Clear degree adjustment focuses the size of initial signal: when the gap between the clarity and clarity threshold of the image of camera lens acquisition is greater than When default focusing gap, the size for focusing initial signal is set as the first focusing preset value, and when the image of camera lens acquisition Clarity and clarity threshold between gap be less than or equal to default when focusing gap, the size for focusing initial signal is set It is set to the second focusing preset value.
Illustratively, the gap between the clarity and clarity threshold of the image of camera lens acquisition can be in the following manner Determine: the clarity of image that the clarity of image of camera lens acquisition is acquired with the difference of clarity threshold or camera lens is opposite clear Gap between the clarity and clarity threshold of the image that the percentage of clear degree threshold value is considered as camera lens acquisition.Above-mentioned determining camera lens The mode of gap between the clarity and clarity threshold of the image of acquisition is only exemplary rather than limitation, the present invention is not limited to This.
The default gap that focuses can be any suitable value, and depending on can according to need, the present invention is not limited it System.Assuming that the gap between the clarity and clarity threshold of the image that current camera lens acquires is greater than default focusing gap, then The size for focusing initial signal can be set as to the first focusing preset value at this time.As focus motor operates, camera lens acquisition The clarity of image is higher and higher, becomes closer to clarity threshold, when its gap between clarity threshold is less than or waits When default focusing gap, the size for focusing initial signal can be set as to the second focusing preset value.First focuses preset value It is different that preset value is focused with second.The size of first focusing preset value and the second focusing preset value can be set as needed, this Invention is limited not to this.Illustratively, it is positively correlated in focusing adjustable signal and focusing initial signal and (focuses adjustable letter Number with focus initial signal reduction and reduce) in the case where, first focus preset value can be greater than second focus preset value.? It focuses adjustable signal and focusing initial signal is negatively correlated (i.e. focusing adjustable signal increases with the reduction for focusing initial signal) In the case where, first focuses preset value can focus preset value less than second.
This mode may be considered a kind of stepping adjustment mode, and the size for focusing initial signal is divided into multiple shelves, pass through Each grade of threshold value is set, and the degree of clarity close to the clarity threshold of the image that can be acquired with camera lens gradually adjusts poly- The size of burnt initial signal.
Although describing the first focusing preset value and second in the present embodiment focuses preset value it should be appreciated that It is only to be exemplary rather than limitation, other any suitable number of focusing preset values are also applied for the present invention.
According to a further embodiment of the invention, processor 310 can be in the following manner according to the image of camera lens acquisition Clarity adjustment focuses the size of initial signal: with the gap between the clarity and clarity threshold of the image of camera lens acquisition Reduce and reduce and focus initial signal, or as the gap between the clarity and clarity threshold of the image of camera lens acquisition subtracts It is small and increase focus initial signal.
Different from a upper embodiment, the present embodiment is focused using continuous adjustment by the way of initial signal.In focusing, As the gap between the clarity and clarity threshold of the image of camera lens acquisition is gradually reduced, it can accordingly reduce (or increase) Initial signal is focused, this reduction (or increase) for focusing initial signal can be continuous variation.Illustratively, focus can It adjusts signal and focuses the case where initial signal is positively correlated and (focuses adjustable signal to reduce with the reduction for focusing initial signal) Under, processor 310 can reduce with the gap between the clarity and clarity threshold of the image that camera lens acquires and reduce poly- Burnt initial signal.Focus adjustable signal and focus initial signal it is negatively correlated (i.e. focusing adjustable signal with focus initial signal Reduction and increase) in the case where, processor 310 can with camera lens acquire image clarity and clarity threshold between Gap reduce and increase focus initial signal.It will be appreciated, of course, that with the progress of focusing, the image of camera lens acquisition it is clear Gap between clear degree and clarity threshold should be gradually reduced, if gap increases, illustrate that the operating of focus motor turns Dynamic direction is anti-, in this case, can use focus drive circuit 330 and focus motor is driven to rotate backward.
Gap between the clarity and clarity threshold of the image of camera lens acquisition reduces, and illustrates the image of camera lens acquisition Clarity becomes closer to required clarity, in this case, can will focus initial signal be adjusted so as to it is smaller and smaller (or It is increasing) so that focus motor the more turns the more slow.This mode can reduce motor since inertia rotates one more with focal time Section bring error, improves the fineness of focusing.
According to an embodiment of the present invention, processor 310 can be further used for stop export focus initial signal with After stopping driving focus motor operating, following steps are executed until detecting that the clarity of the image of camera lens acquisition is greater than or waits Until clarity threshold: the clarity of the image of detector lens acquisition, if the clarity of the image of camera lens acquisition is less than clearly Clear degree threshold value, then re-execute focusing operation.
Similarly with zooming procedure, after stopping driving focus motor operating, focus motor still may continue to operate It is a bit of, it is thus possible to which that again less than clarity threshold, image thickens the clarity for the image for causing camera lens to acquire again. In such a case, it is possible to detect the clear of the image of camera lens acquisition again after stopping driving focus motor operating Degree illustrates that it still meets requirement if the clarity of the image of camera lens acquisition at this time is still greater than or is equal to clarity threshold, It can terminate the focusing of camera lens, otherwise can restart to execute above-mentioned focusing operation, that is, it is initial to restart output Focusing initial signal, the clarity of the image of monitoring camera acquisition, the clarity of the image acquired according to camera lens of size adjust It focuses the size of initial signal and stops output when the clarity of the image of camera lens acquisition is greater than or equal to clarity threshold Focus initial signal.The clarity of the image of detector lens acquisition and the step of re-executing a series of above-mentioned focusing operations, can To repeat, until the clarity of the image of final camera lens acquisition is greater than or equal to clarity threshold.It should be understood that It is during repeating focusing operation, to execute the initial size for the focusing initial signal that focusing operation is exported every time Can be variation, can according to the actual situation depending on.It can for example, focusing initial signal when first time executing focusing operation With larger, although stopping that focus motor after focus motor is driven to operate one section, it usually will not be clear with target. more It spends too wide in the gap, therefore more a little bit smaller focusing initial signal can be exported when second executes focusing operation, subsequent is poly- Coke operation is similar.Therefore, during repeating focusing operation, the focusing that focusing operation is exported is executed every time and is initially believed Number initial size can be different.In one example, the initial of the focusing initial signal that focusing operation is exported is executed every time Size can be determined according to the gap between the clarity and clarity threshold of the image that camera lens acquires.Additionally, it should be appreciated that It is, since focus motor is to have operated one section due to inertia more when executing focusing operation every time, to execute focusing in next time It usually requires to make focus motor antiport when operation, this can be realized by setting the enable signal of focus drive circuit.
According to an embodiment of the present invention, multiple adjustable signal output circuits 320 may include zoom signal output circuit With focus signal output circuit, initial signal may include zoom initial signal and focus initial signal, and adjustable signal can wrap It includes zoom adjustable signal and focuses adjustable signal, multiple driving circuits 330 may include zoom drive circuit and focusing driving electricity Road, camera lens motor may include zoom motor and focus motor, and the optics of camera lens adjusts the zoom shape that situation may include camera lens The exposing condition of condition and camera lens.
As described above, an adjustable signal circuit is correspondingly connected with a driving circuit, may be constructed a motor Control circuit can be used for controlling zoom or the focusing of camera lens.Control circuit relevant to zoom and with focus it is relevant In control circuit, adjustable signal can be all made of to control the operating of camera lens motor.Zoom signal has been respectively described above The principle and working method of output circuit and zoom drive circuit and focus signal output circuit and focus drive circuit, ability Field technique personnel are understood that the implementation of the present embodiment according to foregoing description, repeat no more.
According to an embodiment of the present invention, zoom condition and target object ratio occupied in the image that camera lens acquires Corresponding, exposing condition is corresponding with the clarity for the image that camera lens acquires, and processor 310 can be further used for executing zoom Operation and focusing operation, zoom operation include: to export the zoom initial signal of initial size to start to drive zoom motor operating, Monitoring objective object ratio occupied in the image that camera lens acquires, it is shared in the image that camera lens acquires according to target object According to ratio adjustment zoom initial signal size, and when target object in the image that camera lens acquire occupied by ratio at When within the scope of preset ratio, stop output zoom initial signal to stop driving zoom motor operating;Focusing operation include: After stopping output zoom initial signal to stop driving zoom motor operating, the focusing initial signal of initial size is exported to open Begin to drive focus motor operating, the clarity of the image of monitoring camera acquisition is adjusted according to the clarity of the image of camera lens acquisition The size of initial signal is focused, and when the clarity of the image of camera lens acquisition is greater than or equal to clarity threshold, is stopped defeated Focus initial signal out to stop driving focus motor operating.
It, can be first the case where for monitoring objective object when finding the target object trees etc. of fire behavior (such as occur) First zoom is carried out to camera lens to be then again focused camera lens so that target object reaches desired pictaresque effect, so that comprising The image of target object is clear enough.The zooming procedure of camera lens and the implementation of focusing have been respectively described above, Those skilled in the art are understood that the implementation of the present embodiment according to foregoing description, repeat no more.
Illustratively, before executing focusing operation, processor 310 can be further used for initial in stopping output zoom After signal is to stop driving zoom motor operating, following steps are executed until detecting the image that target object is acquired in camera lens In until occupied ratio be in preset ratio within the scope of: detect target object in the image that camera lens acquires occupied by ratio Example, if target object in the image that camera lens acquire occupied by ratio be in outside preset ratio range, re-execute change Coke operation.The embodiment repeated about zoom operation is hereinbefore described, those skilled in the art retouch according to above-mentioned The implementation for being understood that the present embodiment is stated, is repeated no more.
Illustratively, processor 310 can be further used for stopping exporting focusing initial signal to stop driving focusing After motor operating, following steps are executed until detecting that the clarity of the image of camera lens acquisition is greater than or equal to clarity threshold Until: the clarity of the image of detector lens acquisition weighs if the clarity of the image of camera lens acquisition is less than clarity threshold It is new to execute focusing operation.The embodiment repeated about focusing operation, those skilled in the art have been respectively described above Member is understood that the implementation of the present embodiment according to foregoing description, repeats no more.
Fig. 4 shows 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 its peripheral circuit.
DC-DC chip 410 can be any suitable existing or DC-DC chip in the cards in future, such as TPS563200 etc..
In Fig. 4, C1 and C2 are the shunt capacitance of the power input port (IN) of DC-DC chip 410;C3 and R1 is DC- The driving capacitor and driving resistance of transistor inside DC chip 410;C4 is that the soft of DC-DC chip 410 opens capacitor;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.The above device is similar to peripheral circuit device use in conventional DC-DC circuit, relevant to DC-DC chip.In routine In DC-DC circuit, peripheral circuit device that different DC-DC chip uses may difference, but essential principle is one Sample.This paper emphasis discusses the output voltage V for adjusting DC-DC circuit 322 in real time by pwm signalsupply(i.e. adjustable signal) Principle, the above peripheral circuit device do not do specific discussion.
It encloses except circuit devcie except above-mentioned points, the peripheral circuit of DC-DC chip 410 can also include filter resistance R6, filter Wave capacitor C10, the first divider resistance R4 and the second divider resistance R3.
As shown in figure 4, the first end of filter resistance R6 connects filter for receiving initial signal, the second end of filter resistance R6 The first end of wave capacitor C10, the second end ground connection of filter capacitor C10.The second partial pressure of first end connection of first divider resistance R4 The first end of resistance R3, and directly or via additional resistance (resistance R5 as shown in Figure 4) connection filter resistance R6 and filtering The node of capacitor C10 connection, the second end ground connection of the first divider resistance R4.The second end of second divider resistance R3 can for exporting 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 of R3 connection, the output switching terminal mouth (SW) of DC-DC chip 410 is via outputting inductance L1 the second divider resistance of connection R3's Second end, that is to say, that adjustable signal is exported at one end that outputting inductance L1 is connect with the second divider resistance R3.
It should be appreciated that " first " and " second " as described herein are only used for the position carry out area to electrical part or electrical part Point, it does not indicate any particular order, does not have any particular meaning yet.
Using DC-DC circuit 322 shown in Fig. 4, the pwm signal that processor exports can be converted into adjustable signal Vsupply.The working principle of DC-DC circuit 322 is described below.
DC-DC circuit 322 is a negative feedback operational amplifier circuit in itself.The pwm signal of different duty is through filtering It can be exported after the RC low-pass filter of wave resistance R6 and filter capacitor C10 composition different size of within the scope of 0~3.3V DC voltage VPWM, which is added on the feedback port (FB) of DC-DC chip 410, puts by internal negative-feedback operation Big circuit counting, and then control adjustable signal VsupplyVoltage value.Illustratively, it is believed that the duty ratio of pwm signal is corresponding The size of pwm signal.In the present embodiment, the duty ratio of pwm signal is bigger, DC voltage VPWMAlso bigger.
That is, the voltage regulation loop of DC-DC circuit 322 is the closed loop of a negative-feedback, when loop stability, deposit In following relationship:
Wherein, VFBIt is the voltage on the feedback port (FB) of DC-DC chip 410, Vref is the reference of DC-DC chip 410 Voltage, Vref are a fixed values.
From the working principle of above formula (1), formula (2) and DC-DC chip 410 it is found that working as VPWMWhen increase, VFB? It will increase, however due to negative feedback, VsupplyReduce, and then VFBReduce, by adjusting repeatedly, final VFBStablize, Vsupply Stablize;Similarly, work as VPWMWhen reduction, VFBAlso can reduce, however due to negative feedback, VsupplyReduce, and then VFBIncrease, warp It crosses and adjusts repeatedly, final VFBStablize, VsupplyStablize.It can be seen that in the present embodiment, VPWMWith VsupplyIt is negatively correlated property , i.e. VPWMV when increasesupplyReduce, VPWMV when reductionsupplyIncrease.In conjunction with zoom operation or focusing operation described above, The size (reducing its duty ratio) that pwm signal can be reduced when needing zoom motor or focus motor to turn very fast, is needing Zoom motor or focus motor is wanted to increase the size (increasing its duty ratio) of pwm signal when turning slower.
Therefore adjustable signal V may be implemented by the adjustment to pwm signalsupplyVariation.Illustratively, processor can To adjust the size of initial signal by the duty ratio for 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, to adjust initial letter Number size.
It should be noted that the above method is only example, in addition to using pwm signal control adjustable signal, exists and pass through Other methods export DC voltage VPWMAnd then control adjustable signal VsupplyThe case where, this is still applicable in for purposes of the invention. It is exemplified below.Fig. 5 shows the circuit diagram of DC-DC circuit 322 in accordance with another embodiment of the present invention.According to this reality Example is applied, initial signal is digital signal, and DC-DC circuit 322 includes DC-DC chip 510 and its peripheral circuit.
In Fig. 5, DC-DC chip 510 is similar with the construction of the DC-DC chip 410 in Fig. 4 and working principle, periphery electricity The construction and work of the corresponding device in C1, C2, C3, R1, C4, C5, C6, R2, L1, C11, C12, C13 and C14 and Fig. 4 in road It is similar to make principle, repeats no more.
It encloses except circuit devcie except above-mentioned points, the peripheral circuit of DC-DC chip 510 further includes digital-to-analogue conversion (DAC) circuit 520, the first divider resistance R4 and the second divider resistance R3.
It should be appreciated that merely illustrative rather than limitation of the present invention shown in Fig. 5, DAC circuit 520 can be in processor end reality It is existing.
As shown in figure 5, the input terminal of DAC circuit 520 is for receiving initial signal and initial signal being converted to simulation letter Number.The first end of first divider resistance R4 connects the first end of the second divider resistance R3, and directly or via additional resistance (as schemed Resistance R5 shown in 5) connection DAC circuit 520 output end, the first divider resistance R4 second end ground connection, the second divider resistance The second end of R3 is for exporting adjustable signal.The feedback port (FB) of DC-DC chip 510 connects the first divider resistance R4 and second The output switching terminal mouth (SW) of the node of divider resistance R3 connection, DC-DC chip 510 is divided via outputting inductance L1 connection second The second end of resistance R3.
In the present embodiment, processor can directly export the digital signal for representing a certain size, and DAC circuit 520 should Digital signal is converted to analog signal, i.e. DC voltage VPWM.DC voltage V hereinPWMWith the PWM in embodiment illustrated in fig. 4 The DC voltage V that signal exports after RC filteringPWMUnanimously.That is, 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 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 working principle for the DC-DC circuit 322 shown, repeats no more.
According to an embodiment of the present invention, driving circuit 220 or 330 may include H-bridge drive circuit.Below with reference to Fig. 6- 8 describe the working principle of H-bridge drive circuit.
Fig. 6 shows the circuit diagram according to an exemplary H-bridge drive circuit.Circuit is gained the name in " H-bridge drive circuit " It is because its shape exactly likes alphabetical H.Four vertical legs of four triode composition H, and motor is exactly the whippletree in H.It needs to infuse Meaning, Fig. 6 and subsequent Fig. 7 and Fig. 8 are only schematic diagrames rather than complete circuit diagram, and part of circuit is not drawn;H bridge Driving circuit can include but is not limited to the circuit realized by triode, other transistors or integrated circuit also may be implemented.
As shown in fig. 6, H-bridge drive circuit may include four triodes and a motor.Operate motor, it is necessary to lead A pair of of triode on logical diagonal line.According to the conducting situation of different triodes pair, electric current may from left to right or from right to left Ground flows through motor, to control the steering of motor.
Rotate motor if necessary, it is necessary to make a pair of of triode ON on H-bridge drive circuit diagonal line.Fig. 7 is shown According to the current flow diagram of an exemplary H-bridge drive circuit.As shown in fig. 7, working as triode Q1And Q4When conducting, electric current Just from positive pole through triode Q1Motor is passed through from left to right, then passes through triode Q4Return to power cathode.In Fig. 7 Shown in current arrows, the electric current of the flow direction rotates clockwise driving motor.As triode Q1And Q4When conducting, electric current from a left side to Motor is flowed through on the right side, so that driving motor rotates (arrow around motor is designated as clockwise) along specific direction.Fig. 8 is shown According to the current flow diagram of another exemplary H-bridge drive circuit.Fig. 8 shows another pair triode Q2And Q3Conducting The case where, electric current will flow through motor from right to left.As triode Q2And Q3When conducting, electric current will flow through motor from right to left, thus Driving motor rotates (arrow around motor is expressed as counterclockwise) in another direction.
The switching frequency of H-bridge drive circuit is lower, the operation is stable, therefore realizes above-mentioned driving electricity using H-bridge drive circuit Road 220 or 330 can make circuit for controlling motor 200 or 300 safely and efficiently work.
According to an embodiment of the present invention, H-bridge drive circuit is realized using H bridge chip.Fig. 9 shows one according to the present invention The circuit diagram for the H-bridge drive circuit of embodiment realized using H bridge chip.
H bridge chip as described herein can be any suitable chip, for example, DRV8837, L293D, L298N, TA7257P, SN754410 etc. are not listed one by one.H bridge chip shown in Fig. 9 is DRV8837.In Fig. 9, DCM is motor, H Output (OUT1, OUT2) the control motor rotation of bridge driving circuit.The input voltage VM of H-bridge drive circuit is above-mentioned adjustable signal The output voltage V of output circuit 210 or 320supply, voltage VM is to adjust voltage in real time, controls electricity by control H bridge The rotation of machine, the final control (zoom or focus control) realized to camera lens.
According to a further embodiment of the invention, H-bridge drive circuit is realized using discrete transistor.Figure 10 is shown according to this hair The circuit diagram of the H-bridge drive circuit realized using discrete transistor of bright one embodiment.The input voltage Vdc of Figure 10 is The output voltage V of above-mentioned adjustable signal output circuitsupply.Although motor is not shown in Figure 10, but it is understood that, Motor can connect at the H bridge transverse arm between A, B two o'clock.Shown in the control principle and Fig. 9 of H-bridge drive circuit shown in Fig. 10 H-bridge drive circuit control principle it is consistent.It should be understood that the above-mentioned H-bridge drive circuit with reference to described in Fig. 9 and Figure 10 is only Example rather than limitation of the present invention, it is existing to pass through electronics member device the present invention is not limited to Fig. 9 and circuit structure shown in Fig. 10 The H-bridge drive circuit that part is voluntarily built may be suitable for the present invention.
According to a further aspect of the invention, a kind of motor control method is provided.Figure 11 is shown according to an embodiment of the present invention Motor control method 1100 schematic flow chart.As shown in figure 11, which includes the following steps.
In step S1110, adjustable signal is exported, the size of the adjustable signal can adjust situation with the optics of camera lens Change and changes.
In step S1120, driving signal is generated using the adjustable signal.
In step S1130, the driving signal is exported for driving corresponding camera lens motor to operate.
According to one embodiment, before the output adjustable signal, the motor control method 1100 can be further It include: to export initial signal and be sized such that the adjustable letter according to what the optics adjusted that situation adjusts the initial signal Number size can with the optics adjust situation variation and change;And the initial signal is converted into the adjustable letter Number.
According to one embodiment, the initial signal is zoom initial signal, and the adjustable signal is zoom adjustable signal, The camera lens motor is zoom motor, and the optics adjusts the zoom condition that situation is the camera lens.
According to one embodiment, the zoom condition and target object ratio occupied in the image that the camera lens acquires Example is corresponding, and the output initial signal is simultaneously sized such that institute according to what the optics adjusted that situation adjusts the initial signal It includes: the zoom for exporting initial size that the size for stating adjustable signal can adjust the variation of situation and change with the optics Initial signal is to start to drive the zoom motor to operate;It is shared in the image that the camera lens acquires to monitor the target object According to ratio;The zoom is adjusted according to target object ratio occupied in the image that the camera lens acquires initially to believe Number size;And when target object ratio occupied in the image that the camera lens acquires is in preset ratio range When interior, stop exporting the zoom initial signal to stop driving the zoom motor to operate.
According to one embodiment, the initial signal is to focus initial signal, and the adjustable signal is to focus adjustable signal, The camera lens motor is focus motor, and the optics adjusts the exposing condition that situation is the camera lens.
According to one embodiment, the exposing condition is corresponding with the clarity for the image that the camera lens acquires, described defeated Out initial signal and the big of the adjustable signal is sized such that according to what the optics adjusted that situation adjusts the initial signal Small can change with the variation of optics adjusting situation includes: to export the focusing initial signal of initial size to start The focus motor is driven to operate;Monitor the clarity of the image of the camera lens acquisition;According to the image of camera lens acquisition Clarity adjusts the size for focusing initial signal;And when the clarity of the image of camera lens acquisition is greater than or equal to clearly When clear degree threshold value, stop exporting the focusing initial signal to stop driving the focus motor to operate.
According to one embodiment, the initial signal includes zoom initial signal and focusing initial signal, the adjustable letter Number include zoom adjustable signal and focus adjustable signal, the camera lens motor includes zoom motor and focus motor, the camera lens Optics adjust situation include the zoom condition of the camera lens and the exposing condition of the camera lens.
According to one embodiment, the zoom condition and target object ratio occupied in the image that the camera lens acquires Example is corresponding, and the exposing condition is corresponding with the clarity for the image that the camera lens acquires, the output initial signal and root It can be with the light according to the size for being sized such that the adjustable signal that optics adjusting situation adjusts the initial signal Learning the variation of adjusting situation and changing includes: to export the zoom initial signal of initial size to start to drive the zoom electricity Machine operating;Monitor target object ratio occupied in the image that the camera lens acquires;Existed according to the target object Occupied ratio adjusts the size of the zoom initial signal in the image of the camera lens acquisition;When the target object is in institute When stating ratio occupied in the image of camera lens acquisition and be within the scope of preset ratio, stop the output zoom initial signal with Stop driving the zoom motor operating;The focusing initial signal of initial size is exported to start to drive the focus motor Operating;Monitor the clarity of the image of the camera lens acquisition;It is described poly- according to the clarity adjustment of the image of camera lens acquisition The size of burnt initial signal;And when the clarity of the image of camera lens acquisition is greater than or equal to clarity threshold, stop The focusing initial signal is exported to stop driving the focus motor to operate.
Having been combined Fig. 2-10 describes the construction of circuit for controlling motor according to an embodiment of the present invention, working principle above And its advantage etc., those skilled in the art are understood that each step of motor control method 1100 in conjunction with Fig. 2-10 and description above Rapid embodiment and its advantage, repeats no more.
Circuit for controlling motor and motor control method provided in an embodiment of the present invention, due to can be according to the optics tune of camera lens Nodular condition changes the driving voltage of camera lens motor, that is, turning for situation adjustment camera lens motor can be adjusted according to the optics of camera lens Speed, therefore faster motor speed can be realized in the incipient stage of optics adjustment process, in the ending rank of optics adjustment process Duan Shixian slower motor speed, this can effectively shorten optics regulating time, improve optics degree of regulation, reduce optics and adjust Complexity.In the focal length monitoring field such as many application fields, such as safe city, forest fire protection, before there is huge application Scape.In these security fields, accurately discovery security threat has guarantee social stability and people life property safety in time There is very important value, therefore circuit for controlling motor provided in an embodiment of the present invention and motor control method can produce greatly Social benefit and economic benefit, have a vast market foreground.
Although describing example embodiment by reference to attached drawing here, it should be understood that above example embodiment are only 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 changes wherein And modification, it is made without departing from the scope of the present invention and spiritual.All such changes and modifications are intended to be included in appended claims Within required the scope of the present invention.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the 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 device and method can pass through it Its mode is realized.For example, apparatus embodiments described above are merely indicative, for example, the division of the unit, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied Another equipment is closed or is desirably integrated into, or some features can be ignored or not executed.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the present invention and help to understand one or more of the various inventive aspects, To in the description of exemplary embodiment of the present invention, each feature of the invention be grouped together into sometimes single embodiment, figure, Or in descriptions thereof.However, the method for the invention should not be construed to reflect an intention that i.e. claimed The present invention claims features more more than feature expressly recited in each claim.More precisely, such as corresponding power As sharp claim reflects, inventive point is that the spy of all features less than some disclosed single embodiment can be used Sign is to solve corresponding technical problem.Therefore, it then follows thus claims of specific embodiment are expressly incorporated in this specific Embodiment, wherein each, the claims themselves are regarded as separate embodiments of the invention.
It will be understood to those skilled in the art that any combination pair can be used other than mutually exclusive between feature All features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed any method Or all process or units of equipment are combined.Unless expressly stated otherwise, this specification (is wanted including adjoint right Ask, make a summary and attached drawing) disclosed in each feature can be replaced with an alternative feature that provides the same, equivalent, or similar purpose.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Can in any combination mode come using.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
The above description is merely a specific embodiment or to the explanation of specific embodiment, protection of the invention Range is not limited thereto, and anyone skilled in the art in the technical scope disclosed by the present invention, can be easily Expect change or replacement, should be covered by the protection scope of the present invention.Protection scope of the present invention should be with claim Subject to protection scope.

Claims (28)

1. a kind of circuit for controlling motor, comprising:
One or more adjustable signal output circuits, the adjustable signal output circuit are described adjustable for exporting adjustable signal The size of signal can adjust the variation of situation with the optics of camera lens and change, wherein it includes described that the optics, which adjusts situation, What the exposing condition of the zoom condition of camera lens and/or the camera lens, the zoom condition and target object were acquired in the camera lens Occupied ratio is corresponding in image, and the exposing condition is corresponding with the clarity for the image that the camera lens acquires;And
One or more driving circuits connect one to one with one or more of adjustable signal output circuits, the driving Circuit generates driving signal for receiving the adjustable signal, using the adjustable signal, and exports the driving signal and be used for Corresponding camera lens motor is driven to operate.
2. circuit for controlling motor as described in claim 1, wherein the circuit for controlling motor further comprise with it is one Or the processor of multiple adjustable signal output circuit connections, the adjustable signal output circuit includes DC-DC circuit,
The processor adjusts situation tune for exporting initial signal to the adjustable signal output circuit, and according to the optics The size for being sized such that the adjustable signal of the whole initial signal can adjust the variation of situation with the optics and become Change;
The initial signal is converted to the adjustable signal for receiving the initial signal by the DC-DC circuit.
3. circuit for controlling motor as claimed in claim 2, wherein one adjustable signal output circuit is that zoom signal is defeated Circuit out, the initial signal are zoom initial signals, and the adjustable signal is zoom adjustable signal, one driving circuit It is zoom drive circuit, the camera lens motor is zoom motor, and the optics adjusts the zoom condition that situation is the camera lens.
4. circuit for controlling motor as claimed in claim 3, wherein the processor is further used for executing zoom operation, institute Stating zoom operation includes: to export the zoom initial signal of initial size to start to drive the zoom motor to operate, monitoring Target object ratio occupied in the image that the camera lens acquires, acquires according to the target object in the camera lens Image in occupied ratio adjust the size of the zoom initial signal, and when the target object is adopted in the camera lens When occupied ratio is within the scope of preset ratio in the image of collection, stop exporting the zoom initial signal to stop driving The zoom motor operating.
5. circuit for controlling motor as claimed in claim 4, wherein the processor is in the following manner according to the object Body ratio occupied in the image that the camera lens acquires adjusts the size of the zoom initial signal:
When the target object is between ratio and the preset ratio range occupied in the image that the camera lens acquires When gap is greater than default zoom gap, the size of the zoom initial signal is set as the first zoom preset value, and work as institute Gap of the target object between ratio and the preset ratio range occupied in the image that the camera lens acquires is stated to be less than Or when being equal to the default zoom gap, the size of the zoom initial signal is set as the second zoom preset value.
6. circuit for controlling motor as claimed in claim 4, wherein the processor is in the following manner according to the object Body ratio occupied in the image that the camera lens acquires adjusts the size of the zoom initial signal:
As the target object is between ratio and the preset ratio range occupied in the image that the camera lens acquires Gap reduce and reduce the zoom initial signal, or with the target object in the image that the camera lens acquires institute Gap between the ratio and the preset ratio range occupied reduces and increases the zoom initial signal.
7. such as the described in any item circuit for controlling motor of claim 4 to 6, wherein the processor is further used for stopping After the zoom initial signal is exported to stop driving the zoom motor to operate, following steps are executed until detecting described Until target object ratio occupied in the image that the camera lens acquires is within the scope of the preset ratio: described in detection Target object ratio occupied in the image that the camera lens acquires, if the figure that the target object is acquired in the camera lens Occupied ratio is in outside the preset ratio range as in, then re-executes the zoom operation.
8. circuit for controlling motor as claimed in claim 2, wherein one adjustable signal output circuit is that focus signal is defeated Circuit out, the initial signal are to focus initial signal, and the adjustable signal is to focus adjustable signal, one driving circuit It is focus drive circuit, the camera lens motor is focus motor, and the optics adjusts the exposing condition that situation is the camera lens.
9. circuit for controlling motor as claimed in claim 8, wherein the processor is further used for executing focusing operation, institute Stating focusing operation includes: to export the focusing initial signal of initial size to start to drive the focus motor to operate, monitoring The clarity of the image of the camera lens acquisition adjusts the focusing initial signal according to the clarity of the image of camera lens acquisition Size it is described poly- to stop output and when the clarity of the image of camera lens acquisition is greater than or equal to clarity threshold Burnt initial signal is to stop driving the focus motor to operate.
10. circuit for controlling motor as claimed in claim 9, wherein the processor is in the following manner according to the camera lens The clarity of the image of acquisition adjusts the size for focusing initial signal:
When the gap between the clarity and the clarity threshold of the image of camera lens acquisition is greater than default focusing gap, The size for focusing initial signal is set as the first focusing preset value, and the clarity of the image when camera lens acquisition When gap between the clarity threshold is less than or equal to the default focusing gap, the big of initial signal is focused by described It is small to be set as the second focusing preset value.
11. circuit for controlling motor as claimed in claim 9, wherein the processor is in the following manner according to the camera lens The clarity of the image of acquisition adjusts the size for focusing initial signal:
As the gap between the clarity and the clarity threshold of the image of camera lens acquisition reduces and reduce described poly- Burnt initial signal, or with the camera lens acquisition image clarity and the clarity threshold between gap reduce and Increase the focusing initial signal.
12. such as the described in any item circuit for controlling motor of claim 9 to 11, wherein the processor is further used for stopping After exporting the focusing initial signal only to stop driving the focus motor to operate, following steps are executed until detecting institute The clarity of the image of camera lens acquisition is stated more than or equal to until the clarity threshold: detecting the image of the camera lens acquisition Clarity re-executes the focusing behaviour if the clarity of the image of camera lens acquisition is less than the clarity threshold Make.
13. circuit for controlling motor as claimed in claim 2, wherein the multiple adjustable signal output circuit includes zoom letter Number output circuit and focus signal output circuit, the initial signal includes zoom initial signal and focuses initial signal, described Adjustable signal includes zoom adjustable signal and focuses adjustable signal, and the multiple driving circuit includes zoom drive circuit and focusing Driving circuit, the camera lens motor include zoom motor and focus motor, and it includes the mirror that the optics of the camera lens, which adjusts situation, The zoom condition of head and the exposing condition of the camera lens.
14. circuit for controlling motor as claimed in claim 13, wherein
The processor is further used for executing zoom operation and focusing operation, the zoom operation include: output initial size The zoom initial signal to start to drive the zoom motor to operate, monitor what the target object was acquired in the camera lens Occupied ratio in image, according to target object ratio adjustment occupied in the image that the camera lens acquires The size of zoom initial signal, and when target object ratio occupied in the image that the camera lens acquires is in pre- If when in proportional region, stopping exporting the zoom initial signal to stop driving the zoom motor to operate;
The focusing operation includes: to stop exporting the zoom initial signal to stop driving the zoom motor to operate it Afterwards, the focusing initial signal of initial size is exported to start to drive the focus motor to operate, and monitors the camera lens acquisition Image clarity, according to the camera lens acquisition image clarity adjust it is described focus initial signal size, and When the clarity of the image of camera lens acquisition is greater than or equal to clarity threshold, stop exporting the focusing initial signal with Stop driving the focus motor operating.
15. circuit for controlling motor as claimed in claim 2, wherein the initial signal is pulse-width signal, described straight Stream-DC circuit includes DC-DC chip and its peripheral circuit, and the peripheral circuit includes filter resistance, filter capacitor, One divider resistance and the second divider resistance,
The first end of the filter resistance connects the filtering for receiving the initial signal, the second end of the filter resistance The first end of capacitor, the second end ground connection of the filter capacitor;
The first end of first divider resistance connects the first end of second divider resistance, and directly or via additional resistance Connect the node that the filter resistance is connect with the filter capacitor, the second end ground connection of first divider resistance, described the The second end of two divider resistances is for exporting the adjustable signal;
The feedback port of the DC-DC chip connects the section that first divider resistance is connect with second divider resistance Point, the output switching terminal mouth of the DC-DC chip connect the second end of second divider resistance via outputting inductance.
16. circuit for controlling motor as claimed in claim 15, wherein the processor is by changing accounting for for the initial signal It is empty than come the size that adjusts the initial signal.
17. circuit for controlling motor as claimed in claim 2, wherein the initial signal is digital signal, and the direct current-is straight Current circuit includes DC-DC chip and its peripheral circuit, and the peripheral circuit includes D/A converting circuit, the first divider resistance With the second divider resistance,
The input terminal of the D/A converting circuit is for receiving the initial signal and the initial signal being converted to simulation letter Number;
The first end of first divider resistance connects the first end of second divider resistance, and directly or via additional resistance The output end of the D/A converting circuit is connected, the second end of first divider resistance is grounded, second divider resistance Second end is for exporting the adjustable signal;
The feedback port of the DC-DC chip connects the section that first divider resistance is connect with second divider resistance Point, the output switching terminal mouth of the DC-DC chip connect the second end of second divider resistance via outputting inductance.
18. circuit for controlling motor as described in claim 1, wherein the driving circuit includes H-bridge drive circuit.
19. circuit for controlling motor as claimed in claim 18, wherein the H-bridge drive circuit is realized using H bridge chip.
20. circuit for controlling motor as claimed in claim 18, wherein the H-bridge drive circuit is realized using discrete transistor.
21. a kind of motor control method, comprising:
Adjustable signal is exported, the size of the adjustable signal can adjust the variation of situation with the optics of camera lens and change, wherein It includes the zoom condition of the camera lens and/or the exposing condition of the camera lens that the optics, which adjusts situation, the zoom condition with Target object ratio occupied in the image that the camera lens acquires is corresponding, the exposing condition and camera lens acquisition The clarity of image is corresponding;
Driving signal is generated using the adjustable signal;And
The driving signal is exported for driving corresponding camera lens motor to operate.
22. motor control method as claimed in claim 21, wherein before the output adjustable signal, the motor control Method processed further comprises:
Output initial signal is simultaneously sized such that the adjustable letter according to what the optics adjusted that situation adjusts the initial signal Number size can with the optics adjust situation variation and change;And
The initial signal is converted into the adjustable signal.
23. motor control method as claimed in claim 22, wherein the initial signal is zoom initial signal, it is described can Adjusting signal is zoom adjustable signal, and the camera lens motor is zoom motor, and the optics adjusts the zoom that situation is the camera lens Situation.
24. motor control method as claimed in claim 23, wherein the output initial signal is simultaneously adjusted according to the optics The size for being sized such that the adjustable signal that situation adjusts the initial signal can adjust the change of situation with the optics Change and change include:
The zoom initial signal of initial size is exported to start to drive the zoom motor to operate;
Monitor target object ratio occupied in the image that the camera lens acquires;
According to the target object, ratio occupied in the image that the camera lens acquires adjusts the zoom initial signal Size;And
When target object ratio occupied in the image that the camera lens acquires is within the scope of preset ratio, stop The zoom initial signal is exported to stop driving the zoom motor to operate.
25. motor control method as claimed in claim 22, wherein the initial signal be focus initial signal, it is described can Adjusting signal is to focus adjustable signal, and the camera lens motor is focus motor, and the optics adjusts the focusing that situation is the camera lens Situation.
26. motor control method as claimed in claim 25, wherein the output initial signal is simultaneously adjusted according to the optics The size for being sized such that the adjustable signal that situation adjusts the initial signal can adjust the change of situation with the optics Change and change include:
The focusing initial signal of initial size is exported to start to drive the focus motor to operate;
Monitor the clarity of the image of the camera lens acquisition;
The size for focusing initial signal is adjusted according to the clarity of the image of camera lens acquisition;And
When the clarity of the image of camera lens acquisition is greater than or equal to clarity threshold, stop the initial letter of the output focusing Number to stop driving focus motor operating.
27. motor control method as claimed in claim 22, wherein the initial signal includes zoom initial signal and focusing Initial signal, the adjustable signal include zoom adjustable signal and focus adjustable signal, and the camera lens motor includes zoom motor And focus motor, it includes the zoom condition of the camera lens and the exposing condition of the camera lens that the optics of the camera lens, which adjusts situation,.
28. motor control method as claimed in claim 27, wherein
The output initial signal and according to the optics adjust situation adjust the initial signal be sized such that it is described can The size of tune signal can change with the variation of optics adjusting situation
The zoom initial signal of initial size is exported to start to drive the zoom motor to operate;
Monitor target object ratio occupied in the image that the camera lens acquires;
According to the target object, ratio occupied in the image that the camera lens acquires adjusts the zoom initial signal Size;
When target object ratio occupied in the image that the camera lens acquires is within the scope of preset ratio, stop The zoom initial signal is exported to stop driving the zoom motor to operate;
The focusing initial signal of initial size is exported to start to drive the focus motor to operate;
Monitor the clarity of the image of the camera lens acquisition;
The size for focusing initial signal is adjusted according to the clarity of the image of camera lens acquisition;And
When the clarity of the image of camera lens acquisition is greater than or equal to clarity threshold, stop the initial letter of the output focusing Number to stop driving focus motor operating.
CN201610835983.XA 2016-09-20 2016-09-20 Circuit for controlling motor and motor control method Active CN106301109B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610835983.XA CN106301109B (en) 2016-09-20 2016-09-20 Circuit for controlling motor and motor control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610835983.XA CN106301109B (en) 2016-09-20 2016-09-20 Circuit for controlling motor and motor control method

Publications (2)

Publication Number Publication Date
CN106301109A CN106301109A (en) 2017-01-04
CN106301109B true CN106301109B (en) 2019-06-04

Family

ID=57713200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610835983.XA Active CN106301109B (en) 2016-09-20 2016-09-20 Circuit for controlling motor and motor control method

Country Status (1)

Country Link
CN (1) CN106301109B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108076273A (en) 2017-12-26 2018-05-25 浙江大华技术股份有限公司 A kind of image capture device, the method and device for identifying camera lens
CN109026808B (en) * 2018-08-16 2019-12-10 江苏斯瑞达材料技术股份有限公司 automobile cooling control system and control method
CN109510457B (en) * 2018-12-21 2024-05-07 金卡智能集团股份有限公司 Output voltage adjustable power supply circuit and gas data acquisition equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1651960A (en) * 2004-02-06 2005-08-10 佳能株式会社 Image sensing apparatus and control method thereof
CN201662708U (en) * 2010-03-24 2010-12-01 北方工业大学 Built-in controller of explosion-proof electric cradle head
CN201984367U (en) * 2010-12-28 2011-09-21 天津市亚安科技电子有限公司 Circuit capable of automatically adjusting lens driving voltage
CN202424872U (en) * 2011-12-21 2012-09-05 天津市亚安科技股份有限公司 Cradle head for finely controling variable-times focussing of bolt shot
CN105430279A (en) * 2015-12-23 2016-03-23 北京奇虎科技有限公司 Quick and automatic focusing method and device for camera

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100440970C (en) * 2004-04-12 2008-12-03 南京大学 Setup method of network pick-up device lens and platform controlling circuit
CN101021604B (en) * 2007-03-23 2010-07-21 中国科学院光电技术研究所 Dynamic target automatic zooming system based on image processing
CN201464697U (en) * 2009-06-30 2010-05-12 河南中光学集团有限公司 Multifunctional lens control system
KR101932715B1 (en) * 2011-11-14 2018-12-27 삼성전자주식회사 Apparatus and method for controlling stepping motor
JP5393769B2 (en) * 2011-12-27 2014-01-22 オリンパスイメージング株式会社 Optical apparatus and imaging apparatus
CN202949497U (en) * 2012-12-19 2013-05-22 深圳中天银河科技有限公司 Focusing speed automatic control device for telephoto lenses
US20160269644A1 (en) * 2015-03-13 2016-09-15 Samsung Electro-Mechanics Co., Ltd. Driver for actuator and camera module and method thereof
CN105487196A (en) * 2016-01-29 2016-04-13 福建福光股份有限公司 Drive control box for production line to check phase of zoom lens and control method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1651960A (en) * 2004-02-06 2005-08-10 佳能株式会社 Image sensing apparatus and control method thereof
CN201662708U (en) * 2010-03-24 2010-12-01 北方工业大学 Built-in controller of explosion-proof electric cradle head
CN201984367U (en) * 2010-12-28 2011-09-21 天津市亚安科技电子有限公司 Circuit capable of automatically adjusting lens driving voltage
CN202424872U (en) * 2011-12-21 2012-09-05 天津市亚安科技股份有限公司 Cradle head for finely controling variable-times focussing of bolt shot
CN105430279A (en) * 2015-12-23 2016-03-23 北京奇虎科技有限公司 Quick and automatic focusing method and device for camera

Also Published As

Publication number Publication date
CN106301109A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN106301109B (en) Circuit for controlling motor and motor control method
DE602005006422T2 (en) POWER MANAGEMENT
CN104730677B (en) Uncooled infrared camera continuous vari-focus and fast automatic focusing circuit and method
CN105843282B (en) A kind of temperature control equipment and method based on FPGA for image intensifer
DE102009015538A1 (en) A method of driving a MEMS mirror scanner, a method of driving a MEMS actuator scanner, and methods of controlling the rotation angle of a MEMS actuator
CN103619102A (en) Constant-light control system based on fuzzy algorithm
CN110262029A (en) The control device and method of light capture particle
CN108830216A (en) A kind of adjustable continuous vari-focus target identification system of visual field and method
DE102019123054A1 (en) LENS DEVICE VARIABLE FOCAL LENGTH AND REGULATING OR TAX PROCEDURE
CN108535833A (en) Method for executing auto-focusing
CN109387701B (en) Three-phase converter and capacitance estimation method
CN105517278B (en) A kind of control method and device of heater current
CN113580893B (en) Electrochromic glass adjusting method and device and electronic equipment
DE102020205044A1 (en) CONTROL DEVICE, OPTICAL SYSTEM AND LITHOGRAPHY SYSTEM
Song et al. Research on Parameter Design and Control Method for Current Source Inverter–Fed IM Drive Systems
CN108880346B (en) A kind of single-phase sine wave direct current brushless motor speed curve controlled circuit
CN105938233A (en) Infrared automatic focusing system and rapid automatic focusing method
CN110618605A (en) Method for modeling and automatically tuning PID (proportion integration differentiation) parameters of two-axis pan-tilt
CN202949497U (en) Focusing speed automatic control device for telephoto lenses
Preitl et al. Extensions in symmetrical optimum design method. Advantages, applications and perspectives
CN104239360B (en) The fusion method and device of multi-modal feature
Sivaranjani et al. RETRACTED ARTICLE: Internet of Things Based Industrial Automation Using Brushless DC Motor Application with Resilient Directed Neural Network Control FED Virtual Z-Source Multilevel Inverter Topology
Zhou et al. A real-time continuous auto-focus algorithm for stereo microscope cameras
Kantas et al. Raw instinct: Trust your classifiers and skip the conversion
Li et al. Design of the dual-band shared-aperture asynchronous zoom optical system using focus tunable lenses

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100190 Beijing, Haidian District Academy of Sciences, South Road, No. 2, block A, No. 313

Applicant after: MEGVII INC.

Applicant after: Beijing maigewei Technology Co., Ltd.

Address before: 100190 Beijing, Haidian District Academy of Sciences, South Road, No. 2, block A, No. 313

Applicant before: MEGVII INC.

Applicant before: Beijing aperture Science and Technology Ltd.

CB02 Change of applicant information
TA01 Transfer of patent application right

Effective date of registration: 20180919

Address after: 221007 Fuxing North Road, Gulou District, Xuzhou, Jiangsu 219

Applicant after: Xuzhou Kuang Shi Data Technology Co., Ltd.

Applicant after: Beijing Defiance Technology Co., Ltd.

Applicant after: Beijing maigewei Technology Co., Ltd.

Address before: 100190 A block 2, South Road, Haidian District Academy of Sciences, Beijing 313

Applicant before: MEGVII INC.

Applicant before: Beijing maigewei Technology Co., Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant