CN106657772A - Focusing control method - Google Patents
Focusing control method Download PDFInfo
- Publication number
- CN106657772A CN106657772A CN201611027942.4A CN201611027942A CN106657772A CN 106657772 A CN106657772 A CN 106657772A CN 201611027942 A CN201611027942 A CN 201611027942A CN 106657772 A CN106657772 A CN 106657772A
- Authority
- CN
- China
- Prior art keywords
- focusing lens
- controller
- current
- output pulse
- travel position
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Lens Barrels (AREA)
Abstract
The invention relates to a focusing system technology. By using an existing focusing system, a stroke position detector needs to be increased so that accurate focusing can be performed. By using the technology of the invention, the above problem is solved. A focusing control method is provided. A technical scheme is characterized by dividing a whole stroke of a focusing lens into a plurality of compartments with a same length, taking the length of each compartment as a step length of later focusing, and storing a comparison table in a controller in advance; during usage, inquiring a recorded stroke position of a current focusing lens by a controller, converting a stroke distance which needs to be adjusted into a step number, taking as a recurring number, according to the stroke position of the current focusing lens and a direction which needs to be moved along, inquiring the comparison table, acquiring an output pulse corresponding to the controller when the stroke position of the current focusing lens moves one step length along the direction which needs to be moved along, and circulating till that a stroke position which needs to be adjusted to is reached. The method has advantages that cost is saved and the method is suitable for a focusing system.
Description
Technical field
The present invention relates to the technology of motor control of focusing in the technology of focusing system, more particularly to focusing system.
Background technology
Focusing system, is widely used to projection, camera, images in first-class photovoltaic system, in focusing system, adjusts
The control of burnt motor is mostly important, outstanding control algolithm, focusing response can be made rapid and focus accurate, it may be said that focusing electricity
The control of machine determines the focusing precision of focusing system.
At present focusing system is typically made up of focusing executing agency, focusing lens, drive circuit and controller, and focusing is performed
Mechanism includes focus motor and transmission device, and the output signal of controller is supplied to instruction motor through drive circuit, and then
Focusing motor is driven to rotate, its power for rotating can make connected focusing lens certain through the transmission of transmission device
Move along a straight line before and after on stroke, and then complete focussing process.
Due to being affected by the factor such as focusing system device precision and assembling, focusing lens and its transmission device can be located at not
Same travel position, and its damping is different during different travel positions, while each individuality of focus executing agency and focusing lens
Between damp it is also different.Therefore travel position detector is both provided with, for detecting current focusing lens in many focusing systems at present
Position of the head in whole stroke, by itself and focusing motor range closed-loop control system, by pid algorithm accurately focusing is realized,
But due to increased travel position detector, then its high cost.
The content of the invention
The invention aims to solve current focusing system due to needing increase travel position detector to carry out
A kind of problem precisely focused, there is provided focus control method.
The present invention solves its technical problem, and the technical scheme of employing is, focus control method, it is characterised in that include with
Lower step:
Step 1, the whole stroke of focusing lens is divided into the little lattice of multiple length identicals, the length conduct of each little lattice
With step-length during back focusing, the table of comparisons is stored in the controller in advance, focusing lens have been recorded in the table of comparisons in any row
Journey position is forward and when being moved rearwards by a step-length, the corresponding output pulse of controller;
Step 2, when using, the travel position of the current focusing lens that controller inquiry is recorded, it would be desirable to the row of adjustment
Journey distance is converted to step-length number, as period, into next step;
Step 3, controller are obtained according to the travel position of current focusing lens and the direction query table of comparisons of needs motion
The travel position of current focusing lens to the direction of required motion move a step-length when the corresponding output pulse of controller;
Step 4, controller export the output pulse, then focusing lens move a step-length to the direction of required motion,
Period is subtracted 1, while the travel position for updating current focusing lens is the position of the current focusing lens for inquiring before adding
Travel position that is upper or deducting a step-length;
Step 5, judge whether period is 0, if then this focusing control is completed, return to step 2, otherwise controller is looked into
The travel position of the current focusing lens that inquiry is recorded, returns to step 3.
Specifically, it is further comprising the steps of between step 3 and step 4:
Step 301, controller judge that the travel position of current focusing lens moves a step to the direction of required motion
Whether move to the end of whole stroke after length, the end for foremost or rearmost end, if then entering step 401, otherwise
Into step 402;
Step 4 is comprised the following steps:
Step 401, controller additionally export certain respective pulses while exporting the output pulse, then focusing lens are to institute
A step-length is moved to the respective ends of whole stroke in the direction for needing motion, subtracts 1 by period, while updating current focusing lens
The travel position of head is position plus or minus the travel position of a step-length of the current focusing lens for inquiring before, is entered
Step 5;
Step 402, controller export the output pulse, then focusing lens move a step to the direction of required motion
It is long, period is subtracted 1, while the travel position for updating current focusing lens is the position of the current focusing lens for inquiring before
Plus or minus the travel position of a step-length, into step 5.
Further, in step 1, the generation method of the table of comparisons is:
When step A, scheduling and planning, increase travel position detector, it is connected with controller, for detecting focusing lens
Position in whole stroke, and the table of comparisons is set up in the controller;
Step B, controller are according to the data acquisition of travel position detector and record current focusing lens in whole stroke
In position, be designated as initial position, and judge initial position be whether stroke foremost or rearmost end, if then entering foremost
Enter step C, if rearmost end then enters step G, otherwise into step K or step Q;
The position of step C, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
Put as current location, judge whether it is in the rearmost end of whole stroke, if then entering step E, otherwise into step D;
Step D, controller output pulse are moved rearwards by with controlling focusing lens, during according to the data of travel position detector
The position for obtaining current focusing lens in whole stroke is carved, it is defeated before record when focusing lens move a step distance
The output pulse for going out and current location, in inserting the table of comparisons, return to step C;
The position of step E, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
Put as current location, judge whether it is in whole stroke foremost, if then entering step W, otherwise into step F;
Step F, controller output pulse are moved rearwards by with controlling focusing lens, during according to the data of travel position detector
The position for obtaining current focusing lens in whole stroke is carved, it is defeated before record when focusing lens move a step distance
The output pulse for going out and current location, in inserting the table of comparisons, return to step E;
The position of step G, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
Put as current location, judge whether it is in whole stroke foremost, if then entering step I, otherwise into step F;
Step H, controller output pulse are moved rearwards by with controlling focusing lens, during according to the data of travel position detector
The position for obtaining current focusing lens in whole stroke is carved, it is defeated before record when focusing lens move a step distance
The output pulse for going out and current location, in inserting the table of comparisons, return to step G;
The position of step I, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
Put as current location, judge whether it is in the rearmost end of whole stroke, if then entering step W, otherwise into step J;
Step J, controller output pulse are moved rearwards by with controlling focusing lens, during according to the data of travel position detector
The position for obtaining current focusing lens in whole stroke is carved, it is defeated before record when focusing lens move a step distance
The output pulse for going out and current location, in inserting the table of comparisons, return to step I;
The position of step K, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
Put as current location, judge whether it is in whole stroke foremost, if then entering step M, otherwise into step L;
Step L, controller output pulse to control focusing lens forward movement, during according to the data of travel position detector
The position for obtaining current focusing lens in whole stroke is carved, it is defeated before record when focusing lens move a step distance
The output pulse for going out and current location, in inserting the table of comparisons, return to step K;
The position of step M, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
Put as current location, judge whether it is in the rearmost end of whole stroke, if then entering step O, otherwise into step N;
Step N, controller output pulse are moved rearwards by with controlling focusing lens, during according to the data of travel position detector
The position for obtaining current focusing lens in whole stroke is carved, it is defeated before record when focusing lens move a step distance
The output pulse for going out and current location, in inserting the table of comparisons, return to step M;
The position of step O, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
Put as current location, whether judge it in initial position, if then entering step W, otherwise into step P;
Step P, controller output pulse to control focusing lens forward movement, during according to the data of travel position detector
The position for obtaining current focusing lens in whole stroke is carved, it is defeated before record when focusing lens move a step distance
The output pulse for going out and current location, in inserting the table of comparisons, return to step O;
The position of step Q, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
Put as current location, judge whether it is in the rearmost end of whole stroke, if then entering step S, otherwise into step R;
Step R, controller output pulse are moved rearwards by with controlling focusing lens, during according to the data of travel position detector
The position for obtaining current focusing lens in whole stroke is carved, it is defeated before record when focusing lens move a step distance
The output pulse for going out and current location, in inserting the table of comparisons, return to step Q;
The position of step S, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
Put as current location, judge whether it is in whole stroke foremost, if then entering step U, otherwise into step T;
Step T, controller output pulse to control focusing lens forward movement, during according to the data of travel position detector
The position for obtaining current focusing lens in whole stroke is carved, it is defeated before record when focusing lens move a step distance
The output pulse for going out and current location, in inserting the table of comparisons, return to step S;
The position of step U, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
Put as current location, whether judge it in initial position, if then entering step W, otherwise into step V;
Step V, controller output pulse to control focusing lens forward movement, during according to the data of travel position detector
The position for obtaining current focusing lens in whole stroke is carved, it is defeated before record when focusing lens move a step distance
The output pulse for going out and current location, in inserting the table of comparisons, return to step U;
Step W, the table of comparisons is obtained, remove travel position detector, scheduling and planning is completed.
Specifically, the output pulse is fixed as the control pulse of the certain time length of X% for dutycycle, wherein, 0 < X≤
100。
Further, the duration of its output is only recorded when recording each output pulse.
The invention has the beneficial effects as follows, in the present invention program, by above-mentioned focus control method, can be in sale or user
When using, it is no longer necessary to travel position detector, so as to cost-effective, facilitate user.
Specific embodiment
With reference to embodiment, technical scheme is described in detail.
The present invention focus control method be:The whole stroke of focusing lens is divided into into the little lattice of multiple length identicals, often
The length of one little lattice stores in the controller in advance the table of comparisons as with step-length during back focusing, records in the table of comparisons
Focusing lens in any travel position forward and when being moved rearwards by a step-length, the corresponding output pulse of controller;When using, control
The travel position of the current focusing lens that device inquiry processed is recorded, it would be desirable to which the stroke distances of adjustment are converted to step-length number, as
Period, controller obtains current tune according to the travel position of current focusing lens and the direction query table of comparisons of needs motion
The travel position of zoom lens to the direction of required motion move a step-length when the corresponding output pulse of controller, controller is defeated
Go out the output pulse, then focusing lens move a step-length to the direction of required motion, subtract 1 by period, while update working as
The travel position of front focusing lens is the stroke of the position of the current focusing lens for inquiring before plus or minus a step-length
Position, judges whether period is 0, if then this focusing control is completed, the current focusing that otherwise controller inquiry is recorded
The travel position of camera lens, returns to controller according to the travel position of current focusing lens and needs the direction query table of comparisons of motion
That step.
Embodiment
Focus control method in the embodiment of the present invention, comprises the following steps:
Step 1, the whole stroke of focusing lens is divided into the little lattice of multiple length identicals, the length conduct of each little lattice
With step-length during back focusing, the table of comparisons is stored in the controller in advance, focusing lens have been recorded in the table of comparisons in any row
Journey position is forward and when being moved rearwards by a step-length, the corresponding output pulse of controller.
Step 2, when using, the travel position of the current focusing lens that controller inquiry is recorded, it would be desirable to the row of adjustment
Journey distance is converted to step-length number, as period, into step 3.
Step 3, controller are obtained according to the travel position of current focusing lens and the direction query table of comparisons of needs motion
The travel position of current focusing lens to the direction of required motion move a step-length when the corresponding output pulse of controller.
It is further comprising the steps of between this step and step 4:
Step 301, controller judge that the travel position of current focusing lens moves a step to the direction of required motion
Whether move to the end of whole stroke after length, the end for foremost or rearmost end, if then entering step 401, otherwise
Into step 402.
Step 4, controller export the output pulse, then focusing lens move a step-length to the direction of required motion,
Period is subtracted 1, while the travel position for updating current focusing lens is the position of the current focusing lens for inquiring before adding
Travel position that is upper or deducting a step-length.
If having step 301 before, this step is specially:
Step 401, controller additionally export certain respective pulses while exporting the output pulse, then focusing lens are to institute
A step-length is moved to the respective ends of whole stroke in the direction for needing motion, subtracts 1 by period, while updating current focusing lens
The travel position of head is position plus or minus the travel position of a step-length of the current focusing lens for inquiring before, is entered
Step 5;
Step 402, controller export the output pulse, then focusing lens move a step to the direction of required motion
It is long, period is subtracted 1, while the travel position for updating current focusing lens is the position of the current focusing lens for inquiring before
Plus or minus the travel position of a step-length, into step 5.
Step 5, judge whether period is 0, if then this focusing control is completed, return to step 2, otherwise controller is looked into
The travel position of the current focusing lens that inquiry is recorded, returns to step 3.
In this example, the generation method of the table of comparisons can be:
When step A, scheduling and planning, increase travel position detector, it is connected with controller, for detecting focusing lens
Position in whole stroke, and the table of comparisons is set up in the controller;
Step B, controller are according to the data acquisition of travel position detector and record current focusing lens in whole stroke
In position, be designated as initial position, and judge initial position be whether stroke foremost or rearmost end, if then entering foremost
Enter step C, if rearmost end then enters step G, otherwise into step K or step Q;
The position of step C, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
Put as current location, judge whether it is in the rearmost end of whole stroke, if then entering step E, otherwise into step D;
Step D, controller output pulse are moved rearwards by with controlling focusing lens, during according to the data of travel position detector
The position for obtaining current focusing lens in whole stroke is carved, it is defeated before record when focusing lens move a step distance
The output pulse for going out and current location, in inserting the table of comparisons, return to step C;
The position of step E, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
Put as current location, judge whether it is in whole stroke foremost, if then entering step W, otherwise into step F;
Step F, controller output pulse are moved rearwards by with controlling focusing lens, during according to the data of travel position detector
The position for obtaining current focusing lens in whole stroke is carved, it is defeated before record when focusing lens move a step distance
The output pulse for going out and current location, in inserting the table of comparisons, return to step E;
The position of step G, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
Put as current location, judge whether it is in whole stroke foremost, if then entering step I, otherwise into step F;
Step H, controller output pulse are moved rearwards by with controlling focusing lens, during according to the data of travel position detector
The position for obtaining current focusing lens in whole stroke is carved, it is defeated before record when focusing lens move a step distance
The output pulse for going out and current location, in inserting the table of comparisons, return to step G;
The position of step I, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
Put as current location, judge whether it is in the rearmost end of whole stroke, if then entering step W, otherwise into step J;
Step J, controller output pulse are moved rearwards by with controlling focusing lens, during according to the data of travel position detector
The position for obtaining current focusing lens in whole stroke is carved, it is defeated before record when focusing lens move a step distance
The output pulse for going out and current location, in inserting the table of comparisons, return to step I;
The position of step K, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
Put as current location, judge whether it is in whole stroke foremost, if then entering step M, otherwise into step L;
Step L, controller output pulse to control focusing lens forward movement, during according to the data of travel position detector
The position for obtaining current focusing lens in whole stroke is carved, it is defeated before record when focusing lens move a step distance
The output pulse for going out and current location, in inserting the table of comparisons, return to step K;
The position of step M, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
Put as current location, judge whether it is in the rearmost end of whole stroke, if then entering step O, otherwise into step N;
Step N, controller output pulse are moved rearwards by with controlling focusing lens, during according to the data of travel position detector
The position for obtaining current focusing lens in whole stroke is carved, it is defeated before record when focusing lens move a step distance
The output pulse for going out and current location, in inserting the table of comparisons, return to step M;
The position of step O, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
Put as current location, whether judge it in initial position, if then entering step W, otherwise into step P;
Step P, controller output pulse to control focusing lens forward movement, during according to the data of travel position detector
The position for obtaining current focusing lens in whole stroke is carved, it is defeated before record when focusing lens move a step distance
The output pulse for going out and current location, in inserting the table of comparisons, return to step O;
The position of step Q, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
Put as current location, judge whether it is in the rearmost end of whole stroke, if then entering step S, otherwise into step R;
Step R, controller output pulse are moved rearwards by with controlling focusing lens, during according to the data of travel position detector
The position for obtaining current focusing lens in whole stroke is carved, it is defeated before record when focusing lens move a step distance
The output pulse for going out and current location, in inserting the table of comparisons, return to step Q;
The position of step S, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
Put as current location, judge whether it is in whole stroke foremost, if then entering step U, otherwise into step T;
Step T, controller output pulse to control focusing lens forward movement, during according to the data of travel position detector
The position for obtaining current focusing lens in whole stroke is carved, it is defeated before record when focusing lens move a step distance
The output pulse for going out and current location, in inserting the table of comparisons, return to step S;
The position of step U, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
Put as current location, whether judge it in initial position, if then entering step W, otherwise into step V;
Step V, controller output pulse to control focusing lens forward movement, during according to the data of travel position detector
The position for obtaining current focusing lens in whole stroke is carved, it is defeated before record when focusing lens move a step distance
The output pulse for going out and current location, in inserting the table of comparisons, return to step U;
Step W, the table of comparisons is obtained, remove travel position detector, scheduling and planning is completed.
In this example, the control pulse that pulse can be fixed as the certain time length of X% for dutycycle is exported, wherein, 0 < X
When≤100, such as X are 50, then all output pulses are all the control pulse that the dutycycle of certain duration is 50%, thus, then
The duration of its output can be only recorded when each output pulse is recorded, so as to simplify the table of comparisons, system resource is saved.
Claims (5)
1. focus control method, it is characterised in that comprise the following steps:
Step 1, the whole stroke of focusing lens is divided into the little lattice of multiple length identicals, the length of each little lattice is as after
Step-length during focusing, stores in the controller in advance the table of comparisons, and focusing lens have been recorded in the table of comparisons in arbitrary distance of run position
When putting forward and be moved rearwards by a step-length, the corresponding output pulse of controller;
Step 2, when using, the travel position of the current focusing lens that controller inquiry is recorded, it would be desirable to the stroke of adjustment away from
From step-length number is converted to, as period, into next step;
Step 3, controller obtain current according to the travel position of current focusing lens and the direction query table of comparisons of needs motion
Direction from the travel position of focusing lens to required motion move a step-length when the corresponding output pulse of controller;
Step 4, controller export the output pulse, then focusing lens move a step-length to the direction of required motion, will follow
Number of rings subtracts 1, at the same the travel position for updating current focusing lens be the current focusing lens for inquiring before position add or
Deduct the travel position of a step-length;
Step 5, judge whether period is 0, if then this focusing control is completed, return to step 2, otherwise controller inquiry institute
The travel position of the current focusing lens of record, returns to step 3.
2. focus control method as claimed in claim 1, it is characterised in that also include following step between step 3 and step 4
Suddenly:
Step 301, controller judge that the travel position of current focusing lens is moved after a step-length to the direction of required motion
Whether the end of whole stroke is moved to, and the end is foremost or rearmost end, if then entering step 401, otherwise to enter
Step 402;
Step 4 is comprised the following steps:
Step 401, controller additionally export certain respective pulses while exporting the output pulse, then focusing lens are to required
A step-length is moved to the respective ends of whole stroke in the direction of motion, subtracts 1 by period, while updating current focusing lens
Travel position is the travel position of the position of the current focusing lens for inquiring before plus or minus a step-length, into step
5;
Step 402, controller export the output pulse, then focusing lens move a step-length to the direction of required motion, will
Period subtracts 1, while the travel position for updating current focusing lens is the position of the current focusing lens for inquiring before adding
Or the travel position of a step-length is deducted, into step 5.
3. focus control method as claimed in claim 1 or 2, it is characterised in that in step 1, the generation side of the table of comparisons
Method is:
When step A, scheduling and planning, increase travel position detector, it is connected with controller, for detecting focusing lens whole
Position in individual stroke, and the table of comparisons is set up in the controller;
Step B, controller are according to the data acquisition of travel position detector and record current focusing lens in whole stroke
Position, is designated as initial position, and judge initial position be whether stroke foremost or rearmost end, if then entering step foremost
Rapid C, if rearmost end then enters step G, otherwise into step K or step Q;
Make the position of step C, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
For current location, judge whether it is in the rearmost end of whole stroke, if then entering step E, otherwise into step D;
Step D, controller output pulse are moved rearwards by with controlling focusing lens, are obtained according to the data moment of travel position detector
Position of the current focusing lens in whole stroke is taken, when focusing lens move a step distance, is exported before record
Output pulse and current location, in inserting the table of comparisons, return to step C;
Make the position of step E, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
For current location, judge whether it is in whole stroke foremost, if then entering step W, otherwise into step F;
Step F, controller output pulse are moved rearwards by with controlling focusing lens, are obtained according to the data moment of travel position detector
Position of the current focusing lens in whole stroke is taken, when focusing lens move a step distance, is exported before record
Output pulse and current location, in inserting the table of comparisons, return to step E;
Make the position of step G, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
For current location, judge whether it is in whole stroke foremost, if then entering step I, otherwise into step F;
Step H, controller output pulse are moved rearwards by with controlling focusing lens, are obtained according to the data moment of travel position detector
Position of the current focusing lens in whole stroke is taken, when focusing lens move a step distance, is exported before record
Output pulse and current location, in inserting the table of comparisons, return to step G;
Make the position of step I, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
For current location, judge whether it is in the rearmost end of whole stroke, if then entering step W, otherwise into step J;
Step J, controller output pulse are moved rearwards by with controlling focusing lens, are obtained according to the data moment of travel position detector
Position of the current focusing lens in whole stroke is taken, when focusing lens move a step distance, is exported before record
Output pulse and current location, in inserting the table of comparisons, return to step I;
Make the position of step K, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
For current location, judge whether it is in whole stroke foremost, if then entering step M, otherwise into step L;
Step L, controller output pulse are obtained with controlling focusing lens forward movement according to the data moment of travel position detector
Position of the current focusing lens in whole stroke is taken, when focusing lens move a step distance, is exported before record
Output pulse and current location, in inserting the table of comparisons, return to step K;
Make the position of step M, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
For current location, judge whether it is in the rearmost end of whole stroke, if then entering step O, otherwise into step N;
Step N, controller output pulse are moved rearwards by with controlling focusing lens, are obtained according to the data moment of travel position detector
Position of the current focusing lens in whole stroke is taken, when focusing lens move a step distance, is exported before record
Output pulse and current location, in inserting the table of comparisons, return to step M;
Make the position of step O, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
For current location, whether it is judged in initial position, if then entering step W, otherwise into step P;
Step P, controller output pulse are obtained with controlling focusing lens forward movement according to the data moment of travel position detector
Position of the current focusing lens in whole stroke is taken, when focusing lens move a step distance, is exported before record
Output pulse and current location, in inserting the table of comparisons, return to step O;
Make the position of step Q, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
For current location, judge whether it is in the rearmost end of whole stroke, if then entering step S, otherwise into step R;
Step R, controller output pulse are moved rearwards by with controlling focusing lens, are obtained according to the data moment of travel position detector
Position of the current focusing lens in whole stroke is taken, when focusing lens move a step distance, is exported before record
Output pulse and current location, in inserting the table of comparisons, return to step Q;
Make the position of step S, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
For current location, judge whether it is in whole stroke foremost, if then entering step U, otherwise into step T;
Step T, controller output pulse are obtained with controlling focusing lens forward movement according to the data moment of travel position detector
Position of the current focusing lens in whole stroke is taken, when focusing lens move a step distance, is exported before record
Output pulse and current location, in inserting the table of comparisons, return to step S;
Make the position of step U, controller according to the current focusing lens of data acquisition of travel position detector in whole stroke
For current location, whether it is judged in initial position, if then entering step W, otherwise into step V;
Step V, controller output pulse are obtained with controlling focusing lens forward movement according to the data moment of travel position detector
Position of the current focusing lens in whole stroke is taken, when focusing lens move a step distance, is exported before record
Output pulse and current location, in inserting the table of comparisons, return to step U;
Step W, the table of comparisons is obtained, remove travel position detector, scheduling and planning is completed.
4. focus control method as claimed in claim 3, it is characterised in that the output pulse is fixed as X% for dutycycle
Certain time length control pulse, wherein, 0 < X≤100.
5. focus control method as claimed in claim 4, it is characterised in that only record its output when recording each output pulse
Duration.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611027942.4A CN106657772B (en) | 2016-11-18 | 2016-11-18 | Focus control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611027942.4A CN106657772B (en) | 2016-11-18 | 2016-11-18 | Focus control method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106657772A true CN106657772A (en) | 2017-05-10 |
CN106657772B CN106657772B (en) | 2019-09-24 |
Family
ID=58808414
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611027942.4A Active CN106657772B (en) | 2016-11-18 | 2016-11-18 | Focus control method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106657772B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110719404A (en) * | 2019-10-10 | 2020-01-21 | 浙江大华技术股份有限公司 | Electric lens control method and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1495406A (en) * | 2002-09-05 | 2004-05-12 | 本田技研工业株式会社 | Rotary detector |
CN102053338A (en) * | 2009-10-29 | 2011-05-11 | 致伸科技股份有限公司 | Portable electronic equipment capable of automatically focusing for measuring distance and method |
CN102203548A (en) * | 2008-11-07 | 2011-09-28 | 夏普株式会社 | Projection device, projection device control method, and projection device control program |
CN102523383A (en) * | 2006-08-01 | 2012-06-27 | 佳能株式会社 | Focus control apparatus, image sensing apparatus and focus control method |
US20140035503A1 (en) * | 2012-08-02 | 2014-02-06 | Shindengen Electric Manufacturing Co., Ltd. | Three-phase motor driving apparatus and three-phase motor driving method |
CN104300855A (en) * | 2013-07-19 | 2015-01-21 | 佳能株式会社 | Stepping motor control device, optical apparatus, stepping motor control method, and program |
CN105359023A (en) * | 2013-05-10 | 2016-02-24 | 株式会社尼康 | Lens barrel, camera system, and imaging device |
-
2016
- 2016-11-18 CN CN201611027942.4A patent/CN106657772B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1495406A (en) * | 2002-09-05 | 2004-05-12 | 本田技研工业株式会社 | Rotary detector |
CN102523383A (en) * | 2006-08-01 | 2012-06-27 | 佳能株式会社 | Focus control apparatus, image sensing apparatus and focus control method |
CN102203548A (en) * | 2008-11-07 | 2011-09-28 | 夏普株式会社 | Projection device, projection device control method, and projection device control program |
CN102053338A (en) * | 2009-10-29 | 2011-05-11 | 致伸科技股份有限公司 | Portable electronic equipment capable of automatically focusing for measuring distance and method |
US20140035503A1 (en) * | 2012-08-02 | 2014-02-06 | Shindengen Electric Manufacturing Co., Ltd. | Three-phase motor driving apparatus and three-phase motor driving method |
CN105359023A (en) * | 2013-05-10 | 2016-02-24 | 株式会社尼康 | Lens barrel, camera system, and imaging device |
CN104300855A (en) * | 2013-07-19 | 2015-01-21 | 佳能株式会社 | Stepping motor control device, optical apparatus, stepping motor control method, and program |
Non-Patent Citations (2)
Title |
---|
尤玉虎: "基于图像处理的自动对焦技术综述", 《激光与红外》 * |
王虎: "自动对焦原理及方法", 《科技信息(科学教研)》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110719404A (en) * | 2019-10-10 | 2020-01-21 | 浙江大华技术股份有限公司 | Electric lens control method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106657772B (en) | 2019-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102819168B (en) | Picture pick-up device and control method, lens unit and control method thereof | |
US8619374B2 (en) | Lens control apparatus and interchangeable lens including lens control apparatus | |
CN105763795A (en) | Focusing method and apparatus, cameras and camera system | |
CN112433333B (en) | Synchronous parfocal error compensation method for large-zoom-ratio continuous zooming infrared lens | |
CN110646914A (en) | Drive device idle-loop-back driving method, device, equipment and storage medium | |
CN108490578B (en) | Parfocal error compensation method for continuous zoom infrared lens | |
CN105578048A (en) | Quick focusing method, quick focusing apparatus and mobile terminal | |
CN103345059A (en) | Method and system for zoom of reflection type deformable mirror | |
CN1140299A (en) | Focus control method and optical disk unit employing focus control method | |
CN102595050A (en) | Imaging device | |
CN106019550A (en) | High speed micro scanning dynamic focusing device and focusing tracking method | |
CN109660716A (en) | A kind of telephoto lens and realization Atomatic focusing method and device based on automatic range | |
CN106657772A (en) | Focusing control method | |
CN103019002A (en) | A zoom tracking automatic focus control device of an optical zoom camera and a control method thereof | |
CN109769096A (en) | A kind of servo control method for linear array CCD scanning process | |
CN106657787A (en) | Fast correction method for zoom tracking curve | |
CN109995982B (en) | Method and device for automatically focusing electric lens and camera | |
CN102122064A (en) | Control device, control program, and control method for observation unit, and observation system | |
US10875186B2 (en) | Robot system | |
CN113406764B (en) | Optical lens aligning method and system | |
CN105938233B (en) | A kind of infrared autofocus system and fast automatic focusing method | |
CN108989690B (en) | Multi-mark-point focusing method, device, equipment and storage medium for linear array camera | |
CN105022138B (en) | Use the autofocus system and its method of more camera lenses | |
JP2006350004A (en) | Confocal microscope system | |
CN115965694A (en) | Double-camera positioning method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |