Ambient light adaptive displacement measuring device and measuring method thereof
Technical field
The present invention relates to the accurate technology that detects, particularly relate to the technology of a kind of ambient light adaptive displacement measuring device and measuring method thereof.
Background technology
Based on the displacement measurement method of laser triangulation because its noncontact, applied widely; Obtain application more and more widely; The ultimate principle of common displacement measurement method based on laser triangulation is that light source (for example LED, laser etc.) scioptics send one and detect light beam, shine the testee surface and form hot spot; This hot spot is through single lens or the corresponding position imaging of reception mirror group on the light receiving element device; Ohject displacement is corresponding with the position of laser image spot on light receiving element, through the position of identification laser image spot on light receiving element, can obtain the displacement of testee.
In the existing displacement measurement method based on laser triangulation; Often adopt PSD as the laser image spot setting element; Because PSD can't regulate the time shutter; Need weaken the signal noise that surround lighting produces from light path itself through adding methods such as optical filter, the intensity of adjusting emission light beam and the method for launch time are often adopted in the adjusting of signal.Also having a kind of method at present is to adopt CCD/CMOS as the laser image spot setting element, and this method can produce a large amount of noises under the excessive situation of ambient light interference, bring bigger displacement error, so its accuracy of detection is also lower.
Summary of the invention
To the defective that exists in the above-mentioned prior art, technical matters to be solved by this invention provides high ambient light adaptive displacement measuring device of a kind of accuracy of detection and measuring method thereof.
In order to solve the problems of the technologies described above, a kind of ambient light adaptive displacement measuring device provided by the present invention comprises light emitting devices, optical frames group, light receiving element and data processing unit; Said light emitting devices is used for making the testee surface produce hot spot to testee surface emitting light beam; Said optical frames group is used to receive the reflection ray and the focal imaging of testee surface hot spot; Said optical receiver is used to receive the imaging of optical frames group; And converting imaging into sampled data, said data processing unit is electrically connected light receiving element and light emitting devices, it is characterized in that: be provided with exposure time adjusting module and light intensity adjusting module in the said data processing unit;
Said exposure time adjusting module comprises three comparers, a counter, a totalizer, a divider and a logic gate chip; Said three comparers are respectively first comparer, second comparer and the 3rd comparer;
Said light intensity adjusting module comprises the 4th comparer and latch;
Said light receiving element connects and output data to the first comparer, the 4th comparer and latch;
Said first comparer connects also output data to counter, totalizer respectively; Said counter connects also output data to the second comparer, divider; Said totalizer connection and output data are to divider; Said divider connects and output data to the three comparers, and said second, third comparer connects and output data to logic gate chip, the time shutter of said logic gate chip connection and control light receiving element;
Said the 4th comparer connection and output data are to latch, and the output of said latch divides two-way, and one the tunnel connects and output data to the four comparers, and another road connects and control the emission beam intensity of light emitting devices.
Further, also comprise a pulse signal generator, said pulse signal generator connection and control light receiving element, light emitting devices synchronous operation.
Further, said light receiving element is CCD.
The displacement measurement method of ambient light adaptive displacement measuring device provided by the present invention is characterized in that, concrete steps are following:
Ambient light signal threshold value in A, setting first comparer; Amount of ambient light threshold value in second comparer; Surround lighting in the 3rd comparer is crossed weak threshold value and surround lighting is crossed strong threshold value, and the beam intensity in the light emitting devices is crossed weak threshold value and beam intensity is crossed strong threshold value;
B, elder generation make the testee surface produce hot spot by light emitting devices to testee surface emitting one light beams, and the reflection ray of testee surface hot spot is received by light receiving element after the optical frames group is focused to laser image spot;
C, light receiving element are delivered to exposure time adjusting module and light intensity adjusting module analysis respectively with laser image spot;
Among the said step C, the concrete steps that exposure time adjusting module is analyzed laser image spot are following:
1) with counter and totalizer zero clearing;
2) light receiving element converts a frame laser image spot into serial data and sends first comparer to;
3) first comparer compares received data and ambient light signal threshold value one by one, relatively finishes until the data of this frame laser image spot;
Wherein, when first comparer detects data value and is lower than the ambient light signal threshold value, be about to this data value and regard as ambient light signal, be about to these data send in the totalizer with totalizer in data add up, make the amount of ambient light in the counter add 1 simultaneously;
4) counter is delivered to second comparer and divider with count results, and totalizer is delivered to divider with accumulation result;
5) divider is divided by data in the totalizer and the amount of ambient light in the counter, obtains delivering to the 3rd comparer after the mean intensity of surround lighting;
6) second comparer compares amount of ambient light and amount of ambient light threshold value, and comparative result is delivered to the logic gate chip;
Wherein, when amount of ambient light is lower than the amount of ambient light threshold value, regard as amount of ambient light very little, this moment, the output of second comparer 0, otherwise it is more then to regard as amount of ambient light, and this moment, the output of second comparer 1;
7) the 3rd comparer with the mean intensity and the surround lighting of surround lighting cross weak threshold value, surround lighting is crossed strong threshold value and is compared respectively, and comparative result is delivered to the logic gate chip respectively;
Wherein, the mean intensity of surround lighting and surround lighting cross weak threshold ratio than the time, cross weak threshold value if the average intensity value of surround lighting is lower than surround lighting, it is too short then to regard as the time shutter, this moment, the output of the 3rd comparer 0, otherwise then exported 1;
Wherein, the mean intensity of surround lighting and surround lighting cross strong threshold ratio than the time, if the average intensity value of surround lighting is higher than surround lighting and crosses strong threshold value, it is long then to regard as the time shutter, this moment, the output of the 3rd comparer 0, otherwise then exported 1;
8) the logic gate chip carries out logical operation to the comparative result of second comparer and two comparative results of the 3rd comparer, and according to time shutter of operation result adjustment light receiving element;
Wherein, when the comparative result of second comparer is an amount of ambient light very little the time, the logic gate chip prolongs the time shutter of light receiving element;
Wherein, when the comparative result of second comparer is that amount of ambient light is more, and the comparative result of the 3rd comparer is time shutter when too short, and the logic gate chip prolongs the time shutter of light receiving element;
Wherein, when the comparative result of second comparer is that amount of ambient light is more, and the comparative result of the 3rd comparer is time shutter when long, and the logic gate chip shortens the time shutter of light receiving element;
Among the said step C, the concrete steps that light intensity adjusting module is analyzed laser image spot are following:
1) with the latch zero clearing;
2) light receiving element converts a frame laser image spot into serial data and sends the 4th comparer and latch to;
3) the 4th comparer compares the data of received laser image spot and the output data of latch one by one; After the data of this frame laser image spot relatively finish, find out the serial data peak value of this frame laser image spot, the serial data peak value of finding out is sent to light emitting devices by latch;
Wherein, When the data value that detects input when the 4th comparer is higher than the output data value of latch; Promptly to latch signal of latch output; Latch is saved in output terminal with the data value of importing after receiving latch signal, and the data value that its output terminal is exported is updated to the data value of current input;
4) the serial data peak value of light emitting devices laser image spot that latch is sent here is crossed weak threshold value and beam intensity with the beam intensity of setting and is crossed strong threshold value and compare;
Wherein, when the serial data peak value of laser image spot was lower than beam intensity and crosses weak threshold value, then the strength signal to current light beam increased adjusting;
Wherein, when the serial data peak value of laser image spot was higher than beam intensity and crosses strong threshold value, then the strength signal to current light beam reduced to regulate.
Ambient light adaptive displacement measuring device provided by the invention and measuring method thereof; Detect the mean intensity of the ambient light in light spot images that light receiving element receives through exposure time adjusting module; Detect the light intensity peak of the laser image spot that light receiving element receives through light intensity adjusting module; And according to the time shutter of the testing result of exposure time adjusting module and light intensity adjusting module adjustment light receiving element and the emission beam intensity of light emitting devices; Therefore can regulate time shutter and emission beam intensity according to the variation self-adaptation of surround lighting, reduce the influence of surround lighting, its accuracy of detection is higher.
Description of drawings
Fig. 1 is the light path and the structural representation of the ambient light adaptive displacement measuring device of the embodiment of the invention;
Fig. 2 is exposure time adjusting module and the structural representation of light intensity adjusting module in the ambient light adaptive displacement measuring device of the embodiment of the invention;
Fig. 3 is the working timing figure of the ambient light adaptive displacement measuring device of the embodiment of the invention.
Embodiment
Below in conjunction with description of drawings embodiments of the invention are described in further detail, but present embodiment is not limited to the present invention, every employing analog structure of the present invention and similar variation thereof all should be listed protection scope of the present invention in.
A kind of ambient light adaptive displacement measuring device as shown in Figure 1, that the embodiment of the invention provided comprises light emitting devices 10, optical frames group 13, light receiving element 14 and data processing unit 15; Said light emitting devices 10 is used for making testee 12 surfaces produce hot spot to testee 12 surface emitting light beams; Said optical frames group 13 is used to receive the reflection ray and the focal imaging of testee 12 surperficial hot spots; Said optical receiver 14 is used to receive the imaging of optical frames group 13; And convert imaging into sampled data; Said data processing unit 15 is electrically connected light receiving element 14 and light emitting devices 10, it is characterized in that: be provided with exposure time adjusting module and light intensity adjusting module in the said data processing unit 15;
As shown in Figure 2, said exposure time adjusting module comprises three comparers, a counter J, a totalizer A, a divider D and a logic gate chip L; Said three comparers are respectively the first comparer B1, the second comparer B2 and the 3rd comparer B3;
Said light intensity adjusting module comprises the 4th comparer B4 and latch S;
Said light receiving element 14 connects and output data to the first comparer B1, the 4th comparer B4 and latch S;
The said first comparer B1 connect respectively and output data to counter J, totalizer A; Said counter J connects also output data to the second comparer B2, divider D; Said totalizer J connection and output data are to divider D; Said divider D connects and output data to the three comparer B3, and the said second comparer B2, the 3rd comparer B3 connect and output data to logic gate chip L, the time shutter of said logic gate chip L connection and control light receiving element 14;
Said the 4th comparer B4 connection and output data are to latch S, and the output of said latch S divides two-way, and one the tunnel connects and output data to the four comparer B4, and another road connects and control the emission beam intensity of light emitting devices 10;
Also comprise a pulse signal generator M in the embodiment of the invention, said pulse signal generator M connection and control light receiving element 14, light emitting devices 10 synchronous operations; As shown in Figure 3; When pulse signal generator M sends a control wave; Light emitting devices 10 emission measurement light beams; Simultaneously light receiving element 14 receives the laser image spot of being made up of the surperficial reflection ray of the testee of picture optical frames, and behind the end of run, light receiving element is to the sampled data of exposure time adjusting module and light intensity adjusting module output facula picture.
In the embodiment of the invention, said light receiving element is CCD.
The displacement measurement method of the ambient light adaptive displacement measuring device that the embodiment of the invention provided is characterized in that, concrete steps are following:
Ambient light signal threshold value in A, setting first comparer; Amount of ambient light threshold value in second comparer; Surround lighting in the 3rd comparer is crossed weak threshold value and surround lighting is crossed strong threshold value, and the beam intensity in the light emitting devices is crossed weak threshold value and beam intensity is crossed strong threshold value;
B, elder generation make the testee surface produce hot spot by light emitting devices to testee surface emitting one light beams, and the reflection ray of testee surface hot spot is received by light receiving element after the optical frames group is focused to laser image spot;
C, light receiving element are delivered to exposure time adjusting module and light intensity adjusting module analysis respectively with laser image spot;
Among the said step C, the concrete steps that exposure time adjusting module is analyzed laser image spot are following:
1) with counter and totalizer zero clearing;
2) light receiving element converts a frame laser image spot into serial data and sends first comparer to;
3) first comparer compares received data and ambient light signal threshold value one by one, relatively finishes until the data of this frame laser image spot;
Wherein, when first comparer detects data value and is lower than the ambient light signal threshold value, be about to this data value and regard as ambient light signal, be about to these data send in the totalizer with totalizer in data add up, make the amount of ambient light in the counter add 1 simultaneously;
4) counter is delivered to second comparer and divider with count results, and totalizer is delivered to divider with accumulation result;
5) divider is divided by data in the totalizer and the amount of ambient light in the counter, obtains delivering to the 3rd comparer after the mean intensity of surround lighting;
6) second comparer compares amount of ambient light and amount of ambient light threshold value, and comparative result is delivered to the logic gate chip;
Wherein, when amount of ambient light is lower than the amount of ambient light threshold value, regard as amount of ambient light very little, this moment, the output of second comparer 0, otherwise it is more then to regard as amount of ambient light, and this moment, the output of second comparer 1;
7) the 3rd comparer with the mean intensity and the surround lighting of surround lighting cross weak threshold value, surround lighting is crossed strong threshold value and is compared respectively, and comparative result is delivered to the logic gate chip respectively;
Wherein, the mean intensity of surround lighting and surround lighting cross weak threshold ratio than the time, cross weak threshold value if the average intensity value of surround lighting is lower than surround lighting, it is too short then to regard as the time shutter, this moment, the output of the 3rd comparer 0, otherwise then exported 1;
Wherein, the mean intensity of surround lighting and surround lighting cross strong threshold ratio than the time, if the average intensity value of surround lighting is higher than surround lighting and crosses strong threshold value, it is long then to regard as the time shutter, this moment, the output of the 3rd comparer 0, otherwise then exported 1;
8) the logic gate chip carries out logical operation to the comparative result of second comparer and two comparative results of the 3rd comparer, and according to time shutter of operation result adjustment light receiving element;
Wherein, when the comparative result of second comparer is an amount of ambient light very little the time, the logic gate chip prolongs the time shutter of light receiving element;
Wherein, when the comparative result of second comparer is that amount of ambient light is more, and the comparative result of the 3rd comparer is time shutter when too short, and the logic gate chip prolongs the time shutter of light receiving element;
Wherein, when the comparative result of second comparer is that amount of ambient light is more, and the comparative result of the 3rd comparer is time shutter when long, and the logic gate chip shortens the time shutter of light receiving element;
Among the said step C, the concrete steps that light intensity adjusting module is analyzed laser image spot are following:
1) with the latch zero clearing;
2) light receiving element converts a frame laser image spot into serial data and sends the 4th comparer and latch to;
3) the 4th comparer compares the data of received laser image spot and the output data of latch one by one; After the data of this frame laser image spot relatively finish, find out the serial data peak value of this frame laser image spot, the serial data peak value of finding out is sent to light emitting devices by latch;
Wherein, When the data value that detects input when the 4th comparer is higher than the output data value of latch; Promptly to latch signal of latch output; Latch is saved in output terminal with the data value of importing after receiving latch signal, and the data value that its output terminal is exported is updated to the data value of current input;
4) the serial data peak value of light emitting devices laser image spot that latch is sent here is crossed weak threshold value and beam intensity with the beam intensity of setting and is crossed strong threshold value and compare;
Wherein, when the serial data peak value of laser image spot was lower than beam intensity and crosses weak threshold value, then the strength signal to current light beam increased adjusting;
Wherein, when the serial data peak value of laser image spot was higher than beam intensity and crosses strong threshold value, then the strength signal to current light beam reduced to regulate.