Summary of the invention
The embodiment of the present invention is to provide a kind of imaging device and a kind of lens focusing method, with using photoelectric sensor and
Grating realizes the manual focusing to camera lens.Specific technical solution is as follows:
The embodiment of the invention provides a kind of imaging device, imaging device includes: focusing wheel, two photoelectric sensors, extremely
Few three gratings, processor, motor component and camera lens, wherein grating is distributed on the inner sidewall of focusing wheel, between adjacent gratings
There are the equal backlashes of width;
Processor, the first electric signal generated for determining the first photoelectric sensor;
Processor, the second electric signal generated for determining the second photoelectric sensor;Wherein, the first electric signal is the first light
For electric transducer by what is generated when grating, the second electric signal is the second photoelectric sensor by generating when grating;
Processor determines working as focusing wheel for being based on preset parameter list according to the first electric signal and the second electric signal
Preceding rotation direction, wherein parameter list includes the first electric signal and the second electric signal, takes turns pair between default rotation direction with focusing
It should be related to;
Processor determines the current of focusing wheel for the level jump number according to the first electric signal or the second electric signal
Rotational angle, wherein the level jump of the first electric signal or the second electric signal includes by high level jump for low level and by low
Level jump is high level.
Optionally, processor is also used to the current operation direction of the first parameter configuration and focusing wheel according to camera lens, determines
The focusing direction of camera lens;
According to the current operation angle of the second parameter configuration of camera lens and focusing wheel, the focussing distance of camera lens is determined;
The focussing distance in focusing direction and camera lens based on camera lens, motor component focus to camera lens.
Optionally, focus wheel current operation angle be equal to level jump number multiplied by a tooth rim phase angle, wherein tooth
The period angle corresponding angle that is a tooth rim phase on the inner sidewall of focusing wheel, the tooth rim phase be a grating width and one
The sum of width of backlash.
Optionally, imaging device further includes fixing piece, and two photoelectric sensors are installed on fixing piece;
Parameter list further includes that preset phase of two photoelectric sensors between the position on fixing piece is poor;
When two photoelectric sensors are installed on fixing piece, two photoelectric sensors are between the position on fixing piece
It is poor that current phase difference meets preset phase, wherein according to the position of tooth rim phase angle and two photoelectric sensors on fixing piece
Between angle, calculate current phase difference.
Optionally, parameter list includes five continuous level signals of the first electric signal, corresponding with the first electric signal
Five continuous level signals of two electric signals take turns the corresponding relationship between default rotation direction with focusing.
Optionally, parameter list includes: electric including low level, height in chronological order in first time period when the first electric signal
Flat, high level, low level, low level, and corresponding second electric signal includes low level, low level, height in first time period
When level, high level, low level, it is clockwise that default rotation direction is taken turns in corresponding focusing;
When the first electric signal in second time period in chronological order include low level, low level, high level, high level,
Low level, and corresponding second electric signal includes low level, high level, high level, low level, low electricity in second time period
Usually, it is counterclockwise that default rotation direction is taken turns in corresponding focusing;
Wherein, the first photoelectric sensor first passes through grating in focusing wheel rotation, and the second photoelectric sensor is rotated in focusing
By grating after when dynamic.
Optionally, the first parameter configuration includes that the configuration between the rotation direction of focusing wheel and the focusing direction of camera lens is closed
System, when the rotation direction of focusing wheel is clockwise or counterclockwise, the focusing direction of camera lens is to move axially so.
Optionally, the second parameter configuration includes the focussing distance of the rotational angle and camera lens by focusing wheel, wherein camera lens
Focussing distance is the determination by the parameter of the motor component of the rotational angle and camera lens of focusing wheel.
The embodiment of the invention also provides a kind of lens focusing methods, are applied to imaging device, wherein imaging device packet
It includes: focusing wheel, two photoelectric sensors, at least three gratings, processor, motor component and camera lens, wherein grating is distributed in tune
On the inner sidewall of coke wheel, there are the backlash that width is equal between adjacent gratings, method includes:
Determine the first electric signal that the first photoelectric sensor generates;
Determine the second electric signal that the second photoelectric sensor generates;
Wherein, the first electric signal is the first photoelectric sensor by generating when grating, and the second electric signal is the second photoelectricity
Sensor generates when passing through grating;
According to the first electric signal and the second electric signal, it is based on preset parameter list, determines the current operation direction of focusing wheel,
Wherein parameter list includes the first electric signal and the second electric signal, takes turns the corresponding relationship between default rotation direction with focusing;
According to the level jump number of the first electric signal or the second electric signal, the current operation angle of focusing wheel is determined,
In, the level jump of the first electric signal or the second electric signal includes being low level by high level jump and is high by low level jump
Level.
Optionally, method further include:
According to the current operation direction of the first parameter configuration of camera lens and focusing wheel, the focusing direction of camera lens is determined;
According to the current operation angle of the second parameter configuration of camera lens and focusing wheel, the focussing distance of camera lens is determined;
The focussing distance in focusing direction and camera lens based on camera lens, motor component focus to camera lens.
Optionally, focus wheel current operation angle be equal to level jump number multiplied by a tooth rim phase angle, wherein tooth
The period angle corresponding angle that is a tooth rim phase on the inner sidewall of focusing wheel, the tooth rim phase be a grating width and one
The sum of width of backlash.
Optionally, imaging device further includes fixing piece, and two photoelectric sensors are installed on fixing piece;
Parameter list further includes that preset phase of two photoelectric sensors between the position on fixing piece is poor;
When two photoelectric sensors are installed on fixing piece, two photoelectric sensors are between the position on fixing piece
It is poor that current phase difference meets preset phase, wherein according to tooth rim phase angle and two photoelectric sensors on the fixing piece
Angle between position calculates current phase difference.
Optionally, parameter list includes five continuous level signals of the first electric signal, corresponding with the first electric signal
Five continuous level signals of two electric signals take turns the corresponding relationship between default rotation direction with focusing.
Optionally, parameter list includes: electric including low level, height in chronological order in first time period when the first electric signal
Flat, high level, low level, low level, and corresponding second electric signal includes low level, low level, height in first time period
When level, high level, low level, it is clockwise that default rotation direction is taken turns in corresponding focusing;
When the first electric signal in second time period in chronological order include low level, low level, high level, high level,
Low level, and corresponding second electric signal includes low level, high level, high level, low level, low level in second time period
When, it is counterclockwise that default rotation direction is taken turns in corresponding focusing;
Wherein, the first photoelectric sensor first passes through grating in focusing wheel rotation, and the second photoelectric sensor is rotated in focusing
By grating after when dynamic.
Optionally, the first parameter configuration includes that the configuration between the rotation direction of focusing wheel and the focusing direction of camera lens is closed
System, when the rotation direction of focusing wheel is clockwise or counterclockwise, the focusing direction of camera lens is to move axially so.
Optionally, the second parameter configuration includes the focussing distance of the rotational angle and camera lens by focusing wheel, wherein camera lens
Focussing distance is the determination by the parameter of the motor component of the rotational angle and camera lens of focusing wheel.
A kind of imaging device provided in an embodiment of the present invention and a kind of lens focusing method, imaging device include: focusing wheel,
Two photoelectric sensors, at least three gratings, processor, motor component and camera lens, wherein grating is distributed in the inside of focusing wheel
On wall, there are the backlashes that width is equal between adjacent gratings.Processor, firstly, determining the first photoelectric sensor generates the
One electric signal, and determine the second electric signal that the second photoelectric sensor generates;Wherein, the first electric signal is the first photoelectric sensing
For device by what is generated when grating, the second electric signal is the second photoelectric sensor by generating when grating;Then, according to the first electricity
Signal and the second electric signal are based on preset parameter list, determine the current operation direction of focusing wheel, wherein parameter list includes the
One electric signal and the second electric signal take turns the corresponding relationship between default rotation direction with focusing;Finally, according to the first electric signal or
The level jump number of second electric signal determines the current operation angle of focusing wheel, wherein the first electric signal or the second electric signal
Level jump include by high level jump be low level and by low level jump be high level.
As it can be seen that a kind of imaging device provided in an embodiment of the present invention and a kind of lens focusing method, can utilize photoelectric transfer
Sensor determines current operation direction and the current operation angle of focusing wheel, in this manner it is possible to according to fixed focusing wheel
Current operation direction and current operation angle determine focusing direction and the focussing distance of camera lens, realize the accurate tune to camera lens
It is burnt.The apparatus structure focused using photoelectric sensor is simple, and number of parts is few, and difficulty of processing is low, not only reduces equipment
Cost, and can satisfy the needs of batch production.Certainly, it implements any of the products of the present invention or method must be not necessarily required to together
When reach all the above advantage.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention provides a kind of lens focusing methods, are applied to imaging device.Wherein, imaging device includes:
Focusing wheel, two photoelectric sensors, at least three gratings, processor, motor component and camera lens, wherein grating is distributed in focusing
On the inner sidewall of wheel, there are the backlashes that width is equal between adjacent gratings.Referring to fig. 2, Fig. 2 is the camera lens of the embodiment of the present invention
A kind of flow chart of focus adjustment method, includes the following steps:
Step 201, the first electric signal that the first photoelectric sensor generates is determined;Determine the second photoelectric sensor generates the
Two electric signals.
Wherein, the first electric signal is the first photoelectric sensor by generating when grating, and the second electric signal is the second photoelectricity
Sensor generates when passing through grating.
In this step, the processor of imaging device determines two generated electric signals of photoelectric sensor.
It should be noted that electric signal mentioned here, only when photoelectric sensor detects that the grating on focusing wheel hides
On gear equipment of itself to can just be generated when penetrating optical axis, as shown in figure 3, Fig. 3 is the knot of the photoelectric sensor of the embodiment of the present invention
Composition exists between the light emitting point and optical receiver point on photoelectric sensor to penetrating optical axis.
In one implementation, it is provided at least two identical gratings on focusing wheel, there is width between adjacent gratings
Spend equal backlash.
In this way, to penetrating, the duration that optical axis is blocked is equal, and is not hidden to optical axis is penetrated when photoelectric sensor passes through grating
The duration of gear is also equal, then, the duration of the electric signal of generation is equal, and the time interval between two electric signals
It is equal.
For example, as shown in figure 4, one kind that Fig. 4 is the electric signal that two photoelectric sensors generate in the embodiment of the present invention is shown
It is intended to.In Fig. 4, when two photoelectric sensors pass through grating respectively, the first electric signal that the first photoelectric sensor generates is
Pulse A, the second electric signal that the second photoelectric sensor generates are pulse B.Pulse A is in chronological order successively are as follows: low level, high electricity
Flat, high level, low level, low level, high level, high level, low level, low level.If representing low level with 0, height is represented with 1
Level, then pulse A may be expressed as: 0,1,1,0,0,1,1,0,0.Corresponding, pulse B is in chronological order successively are as follows: low level, low
Level, high level, high level, low level, low level, high level, high level, low level.If representing low level with 0, represented with 1
High level, then pulse B may be expressed as: 0,0,1,1,0,0,1,1,0.
Step 202, according to the first electric signal and the second electric signal, it is based on preset parameter list, determines the current of focusing wheel
Rotation direction.
Wherein, parameter list includes the first electric signal and the second electric signal, is taken turns with focusing corresponding between default rotation direction
Relationship.
In this step, the telecommunications that the processor of imaging device generates respectively according to identified two photoelectric sensors
Number and preset parameter list, come determine focusing wheel current operation direction, to further determine that the focusing direction of camera lens.
In an imaging device, when the rotation direction difference of focusing wheel, two photoelectric sensors are successive suitable by grating
Sequence is different, and certainly, the corresponding relationship for two optical signals that two photoelectric sensors generate respectively is also different, therefore, can be based on
Corresponding relationship in parameter list, two electric signals generated respectively according to two photoelectric sensors, determine focusing wheel works as forward
Dynamic direction.
Step 203, according to the level jump number of the first electric signal or the second electric signal, the current operation of focusing wheel is determined
Angle.
Wherein, the level jump of the first electric signal or the second electric signal includes by high level jump for low level and by low electricity
Flat jump is high level.
In this step, the processor of imaging device generates electricity according to a photoelectric sensor in two photoelectric sensors
The level jump situation of signal determines the rotational angle of focusing wheel, to further determine that the focussing distance of camera lens.
In one implementation, focus wheel current operation angle be equal to level jump number pressed from both sides multiplied by a tooth rim phase
Angle, wherein tooth rim phase angle is a tooth rim phase corresponding angle on the inner sidewall of focusing wheel, and the tooth rim phase is a grating
The sum of the width of width and a backlash.
As shown in Figure 5 and Figure 6, Fig. 5 is the grating of the embodiment of the present invention and the schematic diagram of backlash, and Fig. 6 is that the present invention is real
Apply the position view of the photoelectric sensor of example.In Fig. 5,1 is focusing wheel, and grating 501 is the blocky shadow part on focusing wheel 1
Point, interval of the backlash 502 between adjacent gratings 501,503 be a tooth rim phase.In Fig. 6, grating is circular ring shape grating,
θ is tooth rim phase angle.
Specifically, the level jump number of the first electric signal or the second electric signal can be according to the first electric signal or the second electricity
The number of the rising edge of signal or failing edge calculates.In this way, the level jump number of the first electric signal or the second electric signal
More, the current operation angle of calculated focusing wheel is bigger and then remoter to the focussing distance of camera lens.
For example, can determine focusing wheel when the rising edge number of the first electric signal is 10, when tooth rim phase angle is 3 degree
Rotational angle be 30 degree.It is of course also possible to comprehensively consider two generated electric signals of photoelectric sensor rising edge or under
The number on edge drops, to determine the rotational angle of focusing wheel.
As it can be seen that lens focusing method provided in an embodiment of the present invention can determine the current of focusing wheel using photoelectric sensor
Rotation direction and current operation angle, in this manner it is possible to according to the current operation direction of fixed burnt wheel and work as forward
Dynamic angle determines focusing direction and the focussing distance of camera lens, realizes that the preparation to camera lens is focused.It is adjusted using photoelectric sensor
Burnt apparatus structure is simple, and number of parts is few, and difficulty of processing is low, not only reduces equipment cost, and it is raw to can satisfy batch
The needs of production.
In an optional implementation manner, after the step 203 in lens focusing method shown in Fig. 2, camera lens tune
Burnt method can also include:
According to the current operation direction of the first parameter configuration of camera lens and focusing wheel, the focusing direction of camera lens is determined;
According to the current operation angle of the second parameter configuration of camera lens and focusing wheel, the focussing distance of camera lens is determined;
The focussing distance in focusing direction and camera lens based on camera lens, motor component focus to camera lens.
Wherein, the first parameter configuration includes the configuration relation between the rotation direction of focusing wheel and the focusing direction of camera lens,
When the rotation direction of focusing wheel is clockwise or counterclockwise, the focusing direction of camera lens is to move axially so.
Second parameter configuration includes the focussing distance of the rotational angle and camera lens by focusing wheel, wherein camera lens focalizes
Parameter and determination from the motor component for being the rotational angle and camera lens taken turns by focusing.
Specifically, processor can match after the current operation direction for determining focusing wheel according to the first parameter of camera lens
It sets, determines camera lens along axial focusing direction.Wherein, the first parameter configuration defines the rotation direction of focusing wheel and the tune of camera lens
Configuration relation between burnt direction;For example, the focusing direction of camera lens is edge when the rotation direction of focusing wheel is clockwise direction
Axis furthers, and when the rotation direction of focusing wheel is counter clockwise direction, the focusing direction of camera lens is to push away far along axial direction.
Likewise, processor can match after the current operation angle for determining focusing wheel according to the second parameter of camera lens
It sets, determines camera lens along axial focussing distance.Wherein, the second parameter configuration is defined by the rotational angle and camera lens taken turns of focusing
Focussing distance, wherein focussing distance is determined by the parameter of rotational angle and motor component;Such as, it is specified that every turn of focusing wheel
5 degree dynamic, the rotation 1 of motor component is enclosed, and the focussing distance of corresponding camera lens is 0.1 centimetre, in this way, when the rotational angle of focusing wheel
When being 10 degree, the turnning circle of motor component is 2 circles, and the focussing distance of corresponding camera lens is 0.2 centimetre.
Motor, can be according to fixed focussing distance after processor determines focusing direction and the focussing distance of camera lens
With focusing direction, accurately focused to camera lens.
In this way, firstly, the electric signal that processor is generated according to two photoelectric sensors, determine focusing wheel rotation direction and
Rotational angle, it is true according to the rotation direction of focusing wheel and rotational angle subsequently, based on the first parameter configuration and the second parameter configuration
The focusing direction of horizontal glass head and focussing distance enable motor according to determining focusing direction and focussing distance, to camera lens into
The accurate focusing of row.
For clear explanation lens focusing method provided in an embodiment of the present invention, hereafter by hand-held infrared thermal imaging equipment
As the concrete form of imaging device, using infrared lens as being illustrated for the concrete form of camera lens.Such as Fig. 7 to Figure 10 institute
Show, Fig. 7 is a kind of schematic diagram of the hand-held infrared thermal imaging equipment of the embodiment of the present invention, and Fig. 8 is the hand of the embodiment of the present invention
Another schematic diagram of formula infrared thermal imaging equipment is held, Fig. 9 is a kind of signal of the photoelectric sensor component of the embodiment of the present invention
Figure, Figure 10 are another schematic diagram of the photoelectric sensor component of the embodiment of the present invention.But the imaging in the embodiment of the present invention
Equipment is not limited to Fig. 7 to hand-held infrared thermal imaging equipment shown in Fig. 10.
As shown in Figure 7 and Figure 8, hand-held infrared thermal imaging equipment includes: 1, two photoelectric sensor 2 of focusing wheel, fixes
Part 3, motor 4, body tube 5, focusing drawtube 6, the first eyeglass 7, the second eyeglass 8, pin 9, focusing pressing ring 10.
Wherein, focusing drawtube 6 is axially displaceably arranged in body tube 5.First eyeglass 7 is fixed at body tube 5
It is interior.Fixing piece 3 is fixed on the lateral wall on body tube 5 close to 4 direction of motor, and two photoelectric sensors 2 are installed on fixing piece 3
On, focusing wheel 1 is rotatably fixed on the lateral wall on body tube 5 far from 4 direction of motor, edge between focusing wheel 1 and fixing piece 3
There are the first gaps for the axial direction of body tube 5.Motor 4 is mounted on the lateral wall of body tube 5.
As shown in figure 9, being provided at least two gratings, the between cog between two neighboring grating on the inner sidewall of focusing wheel 1
Gap is equal.Photoelectric sensor 2, for generating electric signal, and will be generated when sensing grating by photoelectric sensor 2
Electric signal is sent to processor.Processor is electrically connected with motor 4, the electric signal for being sent according to photoelectric sensor 2, driving
Motor 4 drives focusing drawtube 6 mobile.
The first eyeglass 7 being fixed in body tube 5 can be immovable.In this way, focusing drawtube 6 can be by motor 4
Driving moves axially in body tube 5, to drive focusing drawtube 6 to move axially back and forth along body tube 5, realizes focusing.
Second eyeglass 8 is fixed in focusing drawtube 6.
In this way, when focusing drawtube 6 moves axially back and forth along body tube 5, be able to drive in focusing drawtube 6 second
Eyeglass moves axially back and forth along body tube 5, is realized and is focused by the relative position changed between the second eyeglass 8 and the first eyeglass 7.
Motor 4 is connected with focusing drawtube 6 by pin 9.Motor 4, for by pin 9, driving focusing drawtube 6 to be axial
It is mobile, to adjust the relative position between the second eyeglass 8 and the first eyeglass 7.
In this way, when processor based on the received electrical signal, driving motor 4 work when, motor 4 can by pin 9,
Drive focusing drawtube 6 along the axial movement of body tube 5, further to adjust the opposite position between the second eyeglass 8 and the first eyeglass 7
It sets, realizes focusing.
Specifically, between focusing wheel 1 and fixing piece 3 first gap existing for axial direction along body tube 5 be it is default away from
From when the first gap is pre-determined distance, photoelectric sensor passes through grating when focusing wheel 1 rotates.The fixed suit of fixing piece 3 and master
Close to the lateral wall in 4 direction of motor on lens barrel 5;Focusing takes turns 1 and rotatably fixes suit and 4 direction of motor separate on body tube 5
Lateral wall;There are the second gaps between focusing wheel 10 and the lateral wall of body tube 5.
In order to further illustrate the installation site between focusing pressing ring 10, focusing wheel 1 and fixing piece 3, with reference to Figure 10.Such as
Shown in Figure 10, focusing pressing ring 10 can be connected with fixing piece 3 by bolt structure.Pressing ring 10 of focusing passes through fixing piece 3, setting
Between focusing wheel 1 and body tube 5.Pressing ring 10 focus for the fixed focusing wheel 1 in gap, make focusing wheel 1 can flexible rotating, and
It will not fall off from body tube 5, to guarantee focusing wheel 1 in rotation, photoelectric sensor 2 can be accurately by focusing wheel 1
Grating.
In addition, two photoelectric sensors 2 are installed on fixing piece 3, position of two photoelectric sensors 2 on fixing piece 3
It sets adjustable.
As shown in Fig. 7, Fig. 8 and Figure 10, hand-held infrared thermal imaging equipment further include: PCB component 11;PCB component includes
Pcb board.
PCB component 11 is fixedly mounted on fixing piece 3.Two photoelectric sensors 2 are installed on pcb board.
Specifically, PCB component 11 includes pcb board, the electric signal of generation is sent on PCB component 11 by photoelectric sensor 2
Pcb board, electric signal is sent to processor by pcb board, wherein pcb board is electrically connected with processor.In this way, processor can
It is focused according to the electric signal that photoelectric sensor 2 generates to focusing drawtube 6.
As shown in figure 9, grating is distributed in the whole circumference of the inner sidewall of focusing wheel 1;Or, grating can also be distributed in tune
On the part-circular periphery of the inner sidewall of coke wheel 1.
That is, multiple gratings form annulus light when grating is distributed in the whole circumference of the inner sidewall of focusing wheel 1
Grid.When grating is distributed on the part-circular periphery of the inner sidewall of focusing wheel 1, multiple gratings form circular arc grating.In practical application
In, grating can be configured according to specific requirements.
For focusing wheel 1 in rotation, two photoelectric sensors 2 are successively by the grating on focusing wheel 1.When photoelectric sensor passes through
When crossing grating, due to being blocked by grating and generate optical signal to penetrating optical axis, next, photoelectric sensor is believed according to the light of generation
Number electric signal is generated, and the electric signal of generation is sent to processor;Then, processor is according to two electric signals received,
Determine the current operation direction of focusing wheel 1.
It in one implementation, is the specific flow chart of step 202 in the embodiment of the present invention with reference to Figure 11, Figure 11, such as
Step 202 in lens focusing method shown in Fig. 2 can specifically include following sub-step:
Sub-step 11, judges whether the phase difference between the tooth accounting of grating and the position of two photoelectric sensors meets
Formula (1), formula (2), any formula in formula (3);If it has, then executing sub-step 12.
In this step, the processor of imaging device judge the grating in currently used imaging device tooth accounting and
Phase difference between the position of two photoelectric sensors, if meet the first electric signal and the second telecommunications in preset parameter list
Number, it takes turns with focusing in the corresponding relationship between default rotation direction, exists for the tooth accounting of grating and two photoelectric sensors
The restrictive condition of the phase difference between position on fixing piece, specifically, it is default for requiring the tooth accounting of grating in restrictive condition
Value, and phase difference of two photoelectric sensors between the position on fixing piece is that preset phase is poor.
That is, parameter list further includes that preset phase of two photoelectric sensors between the position on fixing piece is poor.
When two photoelectric sensors are installed on fixing piece, current phase of two photoelectric sensors between the position on fixing piece
Difference meets that preset phase is poor, and the tooth accounting of grating is also preset value, at this point, processor could be according to the first electric signal and second
Electric signal is based on reference table, determines the current operation direction of focusing wheel.
It should be noted that current phase difference of two photoelectric sensors between the position on fixing piece, it can basis
The angle calcu-lation of tooth rim phase angle and described two photoelectric sensors on the fixing piece between position obtains.
Specifically as shown in formula (1), formula (2), formula (3), formula (1), formula (2), formula (3) wrap restrictive condition
It is poor to include the preset phase of the preset value and two photoelectric sensors of the tooth accounting of grating between the position on fixing piece.As long as
The phase difference of the tooth accounting of grating and two photoelectric sensors between the position on fixing piece, which meets in any formula, to be limited
The preset phase of the default ratio of fixed tooth accounting and two photoelectric sensors between the position on fixing piece is poor, just explanation
The phase of the tooth accounting of grating in currently used imaging device and two photoelectric sensors between the position on fixing piece
Potential difference meets restrictive condition.
Wherein, d indicates tooth accounting, tooth accounting are as follows: the ratio between the width of grating and a tooth rim phase;ω indicates two light
Phase difference between the position of electric transducer.
For the calculation method of current phase difference of two photoelectric sensors between the position on fixing piece, it is also necessary to say
It is bright:
The processor of imaging device can be according to relative position of two photoelectric sensors on fixing piece namely two light
Angle of the electric transducer between the position on fixing piece calculates two photoelectric sensors and between the position on fixing piece
Current phase difference.
As shown in fig. 6, the radius of the grating central diameter circle of circular ring shape grating is R in Fig. 6.Two 12 Hes of photoelectric sensor
13 are located on grating central diameter circle, and photoelectric sensor 12 is P to the intersection point for penetrating optical axis and grating central diameter circle, photoelectric sensor 13
It is Q to the intersection point for penetrating optical axis and grating central diameter circle.Phase of the point P within its tooth rim phase is ω 1, phase of the point Q within its tooth rim phase
Position is ω 2, then, P point and Q point phase absolute value of the difference are 2 ∣ of ∣ ω 1- ω, that is to say, that photoelectric sensor 12 and photoelectric transfer
Sensor 13 is 2 ∣ of ω=∣ ω 1- ω for the current phase difference of tooth rim phase.For convenience of explanation, referred to hereinafter as ω is two photoelectric transfers
Current phase difference of the sensor between the position on fixing piece.
Angle of two photoelectric sensors 12 and 13 between the position on fixing piece is represented by α.Specifically, two light
Angle α and two photoelectric sensors 12 and 13 position on fixing piece of the electric transducer 12 and 13 between the position on fixing piece
Shown in calculated relationship such as formula (4) between current phase difference ω between setting:
In formula (4), ω is current phase difference of two photoelectric sensors 12 and 13 between the position on fixing piece;
θ is a tooth rim phase angle;α is angle of two photoelectric sensors 12 and 13 between the position on fixing piece;I=1,2,
3..., i is natural number.
In this way, processor can be counted according to angle of two photoelectric sensors 12 and 13 between the position on fixing piece
Current phase difference of two photoelectric sensors 12 and 13 between the position on fixing piece is calculated, and then judges that current phase difference is
The no any formula met such as formula (1) into formula (3).
Sub-step 12 is based on preset parameter list according to the first electric signal and the second electric signal, determines the current of focusing wheel
Rotation direction.
In this step, when the processor of imaging device determine the tooth accounting of the grating in currently used imaging device with
And when any formula in phase difference coincidence formula (1) between the position of two photoelectric sensors, formula (2), formula (3),
It can be taken turns with focusing corresponding between default rotation direction according to the first electric signal and the second electric signal in preset parameter list
Relationship, to determine the current operation direction of focusing wheel.
In one implementation, parameter list includes the five continuous level signals and the first telecommunications of the first electric signal
Five continuous level signals of number corresponding second electric signal take turns the corresponding relationship between default rotation direction with focusing.
That is, can be according to the first electric signal, and five companies of the second electric signal corresponding with the first electric signal
Continuous level signal is based on parameter list, to determine the current operation direction of focusing wheel.
In one implementation, parameter list specifically includes:
When the first electric signal includes low level, high level, high level, low electricity in first time period sequentially in time
Flat, low level, and in first time period corresponding second electric signal include low level, it is low level, high level, high level, low
When level, it is clockwise that default rotation direction is taken turns in corresponding focusing;
When the first electric signal includes low level, low level, high level, high electricity in second time period sequentially in time
Flat, low level, and in second time period corresponding second electric signal include low level, it is high level, high level, low level, low
When level, it is counterclockwise that default rotation direction is taken turns in corresponding focusing.
Wherein, the first photoelectric sensor first passes through grating in focusing wheel rotation, and the second photoelectric sensor is rotated in focusing
By grating after when dynamic.
That is, the first photoelectric sensor first generates the first electric signal, the second photoelectric sensor when focusing wheel rotation
After generate the second electric signal.
Below with reference to formula (1) to formula (3), the corresponding relationship in parameter list is described in detail:
The first situation: the tooth accounting of the grating in currently used imaging device and the position of two photoelectric sensors
Between phase difference coincidence formula (1), and when the first electric signal includes low level, high electricity within a period sequentially in time
Flat, high level, low level, low level, and corresponding second electric signal includes low level, low level, high electricity during this period of time
When flat, high level, low level, the rotation direction of corresponding focusing wheel is clockwise.
Low level is represented with 0, use 1 represents high level, then, when the first photoelectric sensor and the second photoelectric sensor are given birth to
When as shown in figure 12 at electric signal, the rotation direction of corresponding focusing wheel can be determined for clockwise.Figure 12 is the present invention
Another schematic diagram for the electric signal that two photoelectric sensors generate in embodiment.As shown in figure 12, pulse E is the first photoelectric transfer
Sensor generates the first electric signal, and pulse F is that the second photoelectric sensor generates the second electric signal.It can be recognized from fig. 12 that the first electricity
The level of corresponding second electric signal is 0 when the level of signal is 0;The level of first electric signal from 0 jump for 1 when corresponding second electricity
The level of signal is 0;It is 1 that the level of corresponding second electric signal is jumped from 0 when the level of first electric signal is 1;First electric signal
Level from 1 jump for 0 when corresponding second electric signal level be 1;The level of corresponding second electric signal when first electric signal is 0
It is 0 from 1 jump.
Second situation: the tooth accounting of the grating in currently used imaging device and the position of two photoelectric sensors
Between phase difference coincidence formula (2), and when the first electric signal includes low level, high electricity within a period sequentially in time
Flat, high level, low level, low level, and corresponding second electric signal includes low level, low level, high electricity during this period of time
When flat, high level, low level, the rotation direction of corresponding focusing wheel is clockwise.
When the level jump situation of the first photoelectric sensor and the generated electric signal of the second photoelectric sensor is as shown in figure 13
When, the rotation direction of corresponding focusing wheel can be determined for clockwise.Figure 13 is two photoelectric transfers in the embodiment of the present invention
Another schematic diagram for the electric signal that sensor generates.As can be seen from Figure 13, shown in electric signal shown in Figure 13 and Figure 12
The level jump rule of electric signal is identical, and uniquely the difference is that, the interval duration of the level jump of electric signal is different.
The third situation: the tooth accounting of the grating in currently used imaging device and the position of two photoelectric sensors
Between phase difference coincidence formula (3), and when the first electric signal includes low level, high electricity within a period sequentially in time
Flat, high level, low level, low level, and corresponding second electric signal includes low level, low level, high electricity during this period of time
When flat, high level, low level, the rotation direction of corresponding focusing wheel is clockwise.
When the level jump situation of the first photoelectric sensor and the generated electric signal of the second photoelectric sensor is as shown in figure 14
When, the rotation direction of corresponding focusing wheel can be determined for clockwise, Figure 14 is two photoelectric transfers in the embodiment of the present invention
Another schematic diagram for the electric signal that sensor generates.
It is seen from figure 14 that electric signal shown in the jump situation of electric signal shown in Figure 14 and Figure 12 and Figure 13
Level jump rule is identical, and uniquely the difference is that, the interval duration of the level jump of electric signal is different.
4th kind of situation: the tooth accounting of the grating in currently used imaging device and the position of two photoelectric sensors
Between phase difference coincidence formula (1), and when the first electric signal within a period sequentially in time include low level, low electricity
Flat, high level, high level, low level, and corresponding second electric signal includes low level, high level, high electricity during this period of time
When flat, low level, low level, the rotation direction of corresponding focusing wheel is side counterclockwise.
When the level jump situation of the first photoelectric sensor and the generated electric signal of the second photoelectric sensor is as shown in figure 15
When, the rotation direction of corresponding focusing wheel can be determined for counterclockwise, Figure 15 is two photoelectric transfers in the embodiment of the present invention
Another schematic diagram for the electric signal that sensor generates.
It can be seen from fig. 15 that the level of corresponding second electric signal is 0 when the level of the first electric signal is 0;First telecommunications
Number level corresponding second electric signal when being 0 level from 0 jump to 1;It is corresponding when the level of first electric signal is from 0 jump to 1
The level of second electric signal is 1;The level of corresponding second electric signal is jumped from 1 to 0 when the level of first electric signal is 1;First
The level of corresponding second electric signal is 0 when the level of electric signal is from 1 jump to 0.
5th kind of situation: the tooth accounting of the grating in currently used imaging device and the position of two photoelectric sensors
Between phase difference coincidence formula (2), and when the first electric signal within a period sequentially in time include low level, low electricity
Flat, high level, high level, low level, and corresponding second electric signal includes low level, high level, high electricity during this period of time
When flat, low level, low level, the rotation direction of corresponding focusing wheel is side counterclockwise.
When the level jump situation of the first photoelectric sensor and the generated electric signal of the second photoelectric sensor is as shown in figure 16
When, the rotation direction of corresponding focusing wheel can be determined for counterclockwise, Figure 16 is two photoelectric transfers in the embodiment of the present invention
Another schematic diagram for the electric signal that sensor generates.
As can be seen from Figure 16, the level of the jump situation of electric signal shown in Figure 16 and electric signal shown in figure 15
Jump rule is identical, and uniquely the difference is that, the interval duration of the level jump of electric signal is different.
6th kind of situation: the tooth accounting of the grating in currently used imaging device and the position of two photoelectric sensors
Between phase difference coincidence formula (3), and when the first electric signal within a period sequentially in time include low level, low electricity
Flat, high level, high level, low level, and corresponding second electric signal includes low level, high level, high electricity during this period of time
When flat, low level, low level, the rotation direction of corresponding focusing wheel is side counterclockwise.
When the level jump situation of the first photoelectric sensor and the generated electric signal of the second photoelectric sensor is as shown in figure 17
When, the rotation direction of corresponding focusing wheel can be determined for counterclockwise, Figure 17 is two photoelectric transfers in the embodiment of the present invention
Another schematic diagram for the electric signal that sensor generates.
As can be seen from Figure 17, the jump situation of electric signal shown in Figure 17 and electric signal shown in Figure 15 and Figure 16
Level jump rule is identical, and uniquely the difference is that, the interval duration of the level jump of electric signal is different.
In conclusion the level jump situation according to shown in Figure 12 to Figure 17, it may be determined that set in currently used imaging
The phase difference coincidence formula (1) between the tooth accounting of grating and the position of two photoelectric sensors in standby is into formula (3)
Any formula under the premise of, the first photoelectric sensor and the generated electric signal of the second photoelectric sensor, and focusing wheel is default turns
Corresponding relationship between dynamic direction can be as shown in table 1.
Table 1
In table 1, in each pair of electric signal, previous is the first electric signal that the first photoelectric sensor generates, and the latter is
The second electric signal that second photoelectric sensor generates;For example, 1 is the first electric signal, and 0 is the second electricity for electric signal 10
Signal.
In practical applications, it is handled in order to facilitate level jump situation of the processor to electric signal, it can be with will be with
0,1 form indicate electric signal be converted to ten's digit, for example, electric signal 10 is corresponding convert after signal into decimal number
Word 2.In this way, can determine turning for focusing wheel when the converted signals that processor receives pcb board transmission are 0-2-3-1-0
Dynamic direction is clockwise;When the converted signals that processor receives pcb board transmission are 0-1-3-2-0, focusing can be determined
The rotation direction of wheel is counterclockwise.
It should be noted that if the tooth accounting of the grating in currently used imaging device and two photoelectric sensors
Phase difference between position does not meet formula (1) to formula (3), then is not available lens focusing side described in the embodiment of the present invention
Method.
As it can be seen that in embodiments of the present invention, it can be according to the tooth accounting and two of grating in the imaging device of actual use
Phase difference between the position of a photoelectric sensor determines that the first photoelectric sensor and the second photoelectric sensor generate telecommunications respectively
Number the corresponding relationship between default rotation direction is taken turns focusing, so as to real according to the first photoelectric sensor and the second photoelectric sensor
The generated electric signal in border determines the current operation direction of focusing wheel, and then realizes precisely focusing.
The embodiment of the invention also provides a kind of imaging devices, and with reference to Figure 18, Figure 18 is that the imaging of the embodiment of the present invention is set
Standby schematic diagram, as shown in figure 18, imaging device include: focusing wheel 1801, two photoelectric sensors 1802, at least three gratings
1803, processor 1804, motor component 1805 and camera lens 1806, wherein grating 1803 is distributed in the inner sidewall of focusing wheel 1801
On.
Processor 1804, the first electric signal generated for determining the first photoelectric sensor;
Processor 1804, the second electric signal generated for determining the second photoelectric sensor;Wherein, the first electric signal is
For one photoelectric sensor by what is generated when grating, the second electric signal is the second photoelectric sensor by generating when grating;
Processor 1804 determines focusing wheel for being based on preset parameter list according to the first electric signal and the second electric signal
1801 current operation direction, wherein parameter list includes the first electric signal and the second electric signal, with the default rotation of focusing wheel 1801
Corresponding relationship between direction;
Processor 1804 determines focusing wheel for the level jump number according to the first electric signal or the second electric signal
1801 current operation angle, wherein it is low that the level jump of the first electric signal or the second electric signal, which includes by high level jump,
Level and by low level jump be high level.
Optionally, processor 1804 are also used to the first parameter configuration according to camera lens 1806 and the current of wheel 1801 of focusing
Rotation direction determines the focusing direction of camera lens 1806;
According to the current operation angle of the second parameter configuration of camera lens 1806 and focusing wheel 1801, the tune of camera lens 1806 is determined
Defocus distance;
The focussing distance in focusing direction and camera lens 1806 based on camera lens 1806, motor component adjust camera lens 1806
It is burnt.
Optionally, the current operation angle of focusing wheel 1801 is equal to level jump number multiplied by a tooth rim phase angle,
In, tooth rim phase angle is a tooth rim phase corresponding angle on the inner sidewall of focusing wheel 1801, and the tooth rim phase is a grating
The sum of the width of 1803 width and a backlash.
Optionally, imaging device further includes fixing piece, and two photoelectric sensors 1802 are installed on fixing piece;
Parameter list further includes that preset phase of two photoelectric sensors 1802 between the position on fixing piece is poor;
When two photoelectric sensors 1802 are installed on fixing piece, position of two photoelectric sensors 1802 on fixing piece
It is poor that current phase difference between setting meets preset phase, wherein according to tooth rim phase angle and two photoelectric sensors 1802 solid
Determine the angle between the position on part, calculates current phase difference.
Optionally, parameter list includes five continuous level signals of the first electric signal, corresponding with the first electric signal
Corresponding relationship between five continuous level signals of two electric signals, with focusing 1801 default rotation directions of wheel.
Optionally, parameter list includes: electric including low level, height in chronological order in first time period when the first electric signal
Flat, high level, low level, low level, and corresponding second electric signal includes low level, low level, height in first time period
When level, high level, low level, 1801 default rotation directions of corresponding focusing wheel are clockwise;
When the first electric signal in second time period in chronological order include low level, low level, high level, high level,
Low level, and corresponding second electric signal includes low level, high level, high level, low level, low level in second time period
When, 1801 default rotation directions of corresponding focusing wheel are counterclockwise;
Wherein, the first photoelectric sensor first passes through grating 1803 in focusing 1801 rotation of wheel, and the second photoelectric sensor exists
By grating 1803 after when focusing 1801 rotation of wheel.
Optionally, the first parameter configuration includes between the rotation direction of focusing wheel 1801 and the focusing direction of camera lens 1806
Configuration relation, when the rotation direction of focusing wheel 1801 is clockwise or counterclockwise, the focusing direction of camera lens is axially to transport
It is dynamic.
Optionally, the second parameter configuration includes the focussing distance of the rotational angle and camera lens 1806 by focusing wheel 1801,
In, the focussing distance of camera lens 1806 is that focusing is taken turns the parameter of 1801 rotational angle and the motor component 1805 of camera lens and determined
's.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete
Door or transistor logic, discrete hardware components.
As it can be seen that imaging device provided in an embodiment of the present invention, can be focused using photoelectric sensor, utilize photoelectric transfer
The apparatus structure that sensor is focused is simple, and number of parts is few, and difficulty of processing is low, not only reduces equipment cost, and can
Meet the needs of batch production.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.It is filled especially for imaging
For setting embodiment, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to method reality
Apply the part explanation of example.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.