Displacement Sensors

By angling the light projecting and receiving lenses differently and using a least squares method to correct for manufacturing variations, the displacement sensor achieves improved measurement accuracy and linearity in distance calculations.

JP7565231B2Active Publication Date: 2024-10-10MITSUBISHI ELECTRIC ENG CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2021027332
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-02-24
Publication Date
2024-10-10
Estimated Expiration
2041-02-24

AI Technical Summary

Technical Problem

Existing displacement sensors using triangulation methods suffer from measurement accuracy issues due to interpolation errors, which affect the linearity of distance measurements, necessitating numerous data points for accurate interpolation.

Method used

The displacement sensor employs a configuration where the light projecting and receiving lenses are angled differently, forming a linear relationship between the focal spot position and the object distance, using a calculation unit to correct for manufacturing variations through a least squares method, establishing a linear model for accurate distance calculation.

Benefits of technology

This configuration improves measurement accuracy by correcting for manufacturing errors, reducing the need for extensive data points and enhancing the linearity of distance measurements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007565231000007
    Figure 0007565231000007
  • Figure 0007565231000008
    Figure 0007565231000008
  • Figure 0007565231000009
    Figure 0007565231000009
Patent Text Reader

Abstract

To obtain a displacement sensor that can improve accuracy of measurement.SOLUTION: A displacement sensor 1 includes a light projection part 5, a detector 7, and a calculation part 9. The light projection part 5 projects light toward a detection object db. The detector 7 generate an image of a reflectance reflected from the detection object db at an imaging position. The detector 7 generates an image of a reflectance reflected from the detection object db at an imaging position and generates a signal according to the imaging position. The calculation part 9 includes a function of obtaining a position signal from the signal that detector 7 has generated to determine a distance between the light projection part 5 and the detection object db from the position signal, a function of obtaining a parameter included in a model expression from a change in the imaging position and a relation between the light projection part 5 and the detection object db, and a function of obtaining the distance between the light projection part 5 and the detection object db based on the model expression including the parameter and the position signal.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a displacement sensor. [Background technology]

[0002] In recent years, factory automation has progressed in factories. In production lines, displacement sensors that can measure the distance to a measured object without contacting it, and optical distance measurement based on triangulation method, have been put to practical use.

[0003] Such a displacement sensor includes, for example, a semiconductor laser, a light receiving optical system, an imaging element, and a light receiving circuit. The semiconductor laser projects a light beam onto the object to be measured. The surface of the object to be measured reflects the light beam as reflected light. The light receiving optical system focuses a portion of the light reflected by the object to be measured at a focusing spot position. The imaging element receives the light focused at the focusing spot position by the light receiving optical system, and outputs a current position signal corresponding to the received position to the light receiving circuit. The light receiving circuit amplifies the current position signal and converts it into a voltage signal. The voltage signal converted by the light receiving circuit is converted into a distance measurement signal through various processes.

[0004] However, the distance measurement signal is not linear with respect to the displacement distance of the measured object. Therefore, the measurement accuracy of the displacement sensor is not constant. Therefore, the displacement sensor converts the distance measurement signal into a distance signal proportional to the displacement distance of the measured object. When converting the distance measurement signal into a distance signal, the displacement sensor interpolates the distance signal based on the resolution of the image sensor (see, for example, Patent Document 1). For this reason, in order to improve accuracy, it is necessary to divide the section and measure data for each section. For example, depending on the required accuracy, it is necessary to measure data from tens to tens of thousands of points for each section. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] Japanese Patent Application Publication No. 03-195915 Summary of the Invention [Problem to be solved by the invention]

[0006] However, in the technology described in Patent Document 1, when the distance signal is interpolated, the interpolation process is performed based on the resolution of the image sensor, which causes calculation errors in the interpolation process. Therefore, the process of forming a linear relationship to keep the measurement accuracy constant is a factor that reduces the measurement accuracy.

[0007] The present disclosure has been made to solve the above-mentioned problems, and has an object to obtain a displacement sensor that can improve measurement accuracy. [Means for solving the problem]

[0008] The displacement sensor according to the present disclosure includes a light projection unit that projects light toward a detection object, and a light projection unit that projects light reflected from the detection object at an imaging position and outputs a signal corresponding to the imaging position. electricity A detection unit that generates a signal, electricity a calculation unit that calculates a distance between the light projecting unit and the object to be detected based on the signal, the light-projecting unit has a light source that outputs light along a reference optical axis from a center point, and a light-projecting lens that concentrates the light output from the light source and projects it towards the object to be detected, the detection unit has a light-receiving lens that forms an image of the reflected light, and a detection element that generates the electrical signal according to the imaging position, the light-projecting unit and the detection unit are configured such that the light-receiving lens and the light-projecting lens are provided at different angles, the distance between the light-receiving lens and the detection element matches a focal length of the light-receiving lens, the light-receiving lens focuses a portion of the reflected light reflected from the object to be detected to a position of a focusing spot according to the position of the object to be detected that displaces on the reference optical axis, the imaging position of the reflected light by the light-receiving lens matches the light-receiving position of the focusing spot in the detection element, and the distance between the light-projecting unit and the object to be detected and the imaging position have a linear relationship, The calculation unit is electricity From the signal According to the light receiving position of the focused spot on the detection element a position signal generating unit for obtaining a position signal; The linear The apparatus includes a parameter generating unit that determines parameters included in a model formula obtained from the relationship, and a distance signal calculating unit that determines the distance based on the parameters and the position signal. Effect of the Invention

[0009] According to the present disclosure, it is possible to improve measurement accuracy. [Brief description of the drawings]

[0010] [Figure 1] 1 is a diagram illustrating a configuration example of a displacement sensor according to an embodiment; [Diagram 2]2 is a diagram illustrating the detection principle of the displacement sensor in FIG. 1. [Diagram 3] FIG. 2 is a block diagram illustrating the function of the displacement sensor of FIG. [Figure 4] 4 is a flowchart illustrating an operation of the displacement sensor in a preparation stage of FIG. 3. [Diagram 5] 4 is a flowchart illustrating an operation of the displacement sensor in FIG. 3 at a measurement stage. [Figure 6] FIG. 2 is a diagram illustrating an example of a hardware configuration. [Figure 7] FIG. 13 is a diagram illustrating another example of a hardware configuration. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] 1 is a diagram showing an example of the configuration of a displacement sensor 1 according to an embodiment. The displacement sensor 1 detects the displacement of a detection target object db. The displacement sensor 1 includes a light projecting unit 5, a detection unit 7, a calculation unit 9, and a housing 3. The light projecting unit 5, the detection unit 7, and the calculation unit 9 are provided in the housing 3.

[0012] The light projecting unit 5 includes a light source 51 and a light projecting lens 52. The light projecting unit 5 projects light via a light projecting optical system including the light projecting lens 52 toward the detection object db.

[0013] The light source 51 is a self-luminous semiconductor light source such as an LED (Light Emitting Diode), an OLED (Organic Light Emitting Diode), or a semiconductor laser. A rectangular light emitting surface is formed on the light source 51. The center of the rectangular light emitting surface coincides with a center point CP which is the center of the light source 51. The light source 51 has the center of the rectangular light emitting surface as a reference optical axis pv. Therefore, the reference optical axis pv passes through the center point CP of the light source 51. The light source 51 outputs light from the center point CP along the reference optical axis pv. Although not shown, an oscillation circuit which sets the timing of outputting light from the light source 51 and a drive circuit which drives the light source 51 are provided in the light projecting unit 5.

[0014] The cross section of the light projecting lens 52 is formed similarly to the cross section of a convex lens. The light projecting lens 52 is provided in the housing 3 so that the optical axis of the light projecting lens 52 is coaxial with the reference optical axis pv of the light source 51. Therefore, the optical axis of the light projecting lens 52 is coaxial with the reference optical axis pv of the light source 51. The light projecting lens 52 concentrates the light output from the light source 51 and projects the light toward the detection object db.

[0015] The detection unit 7 includes a light receiving lens 71 and a detection element 72. The detection unit 7 forms an image of part of the reflected light from the detection target object db at an imaging position via a light receiving optical system including the light receiving lens 71.

[0016] The light receiving lens 71 is provided at a different angle from the light projecting lens 52. The cross section of the light receiving lens 71 is formed in the same shape as the cross section of a convex lens. The distance between the light receiving lens 71 and the detecting element 72 is set to match the focal length of the light receiving lens 71. As a result, the imaging position of the reflected light by the light receiving lens 71 and the light receiving position of the focused spot on the detecting element 72 match.

[0017] The amount of light at the imaging position of the light reflected by the light receiving lens 71 is greater than the amount of light at other positions than the imaging position of the light reflected by the light receiving lens 71. Therefore, if a focused spot is formed on the detection element 72 at the imaging position of the light reflected by the light receiving lens 71, a large amount of light will be collected at the light receiving position of the focused spot on the detection element 72. For this reason, the amount of light due to scattered light from sources other than the object to be detected db can be ignored, so the light receiving lens 71 does not erroneously detect a change in the position of the focused spot on the detection element 72. As a result, the light receiving lens 71 can cause the detection element 72 to correctly detect the change in the position of the focused spot.

[0018] The detection element 72 is composed of an image sensor. The electrical signal output from the detection element 72 contains information about the amount of light of the focused spot at the imaging position.

[0019] Here, the distance from the center point CP of the light source 51 to the surface of the displacement sensor 1 on the reference optical axis pv, i.e., the distance from the center point CP of the light source 51 to the surface of the housing 3 on the reference optical axis pv, is set to a fixed distance s0. The fixed distance s0 is a distance that is always constant. Also, the distance from the surface of the displacement sensor 1 on the reference optical axis pv to the detected object db, i.e., the distance from the surface of the housing 3 on the reference optical axis pv to the detected object db, is set to an arbitrary distance s i It is set to the arbitrary distance s i changes according to the displacement of the detected object db.

[0020] Here, i represents the ordinal number of the actual measurement value of the displacement sensor 1. For example, for an arbitrary distance s i means that the displacement sensor 1 actually measured the i-th distance. i+1 means that it is the (i+1)th actual measurement in the displacement sensor 1. If the upper limit of the number of actual measurement values ​​in the displacement sensor 1 is represented by n, an integer equal to or greater than 1, the range that i can take is 1≦i≦n.

[0021] The angle between a line connecting center point CP of light source 51 and origin O, which is the center of light receiving lens 71, and a line connecting center point CP of light source 51 and the center of projector lens 52 is set to θ.

[0022] In addition, the angle between a line connecting center point CP of light source 51 and origin O, which is the center of light receiving lens 71, and a line connecting center point CP of light source 51 and reference point rp of detection element 72 is set to φ.

[0023] Furthermore, the distance from the center point CP of the light source 51 to the reference point rp of the detection element 72 is set to a reference imaging distance t0. The reference point rp of the detection element 72 is the imaging position where the light receiving lens 71 forms an image of the reflected light from the detection object db when the detection object db is at the reference reflection position rrp. Therefore, the light receiving position of the focused spot in the detection element 72 when the detection object db is at the reference reflection position rrp is a position away from the center point CP of the light source 51 by the reference imaging distance t0.

[0024] Here, the distance between the position where the light receiving position of the focused spot on the detection element 72 when the object to be detected db is at the reference reflection position rrp is projected onto the straight line connecting the center point CP and the reference point rp, and the center point CP of the light source 51, is the reference imaging distance t0.

[0025] In addition, when the object db to be detected is at an arbitrary distance s from the surface of the displacement sensor 1 on the reference optical axis pv, i The light receiving position of the focused spot on the detection element 72 when the light source 51 is located at a distance of the reference image formation distance t i The distance will be just that much.

[0026] Here, the object to be detected db is at an arbitrary distance s from the surface of the displacement sensor 1 on the reference optical axis pv. i The distance between the center point CP of the light source 51 and the position where the light receiving position of the light-focus spot on the detection element 72 is projected on the line connecting the center point CP and the reference point rp when the light source 51 is located at a distance of 100 mm from the center point CP of the light source 51 is equal to the reference imaging distance t i It is.

[0027] From the above explanation, it is assumed that the object to be detected db is at an arbitrary distance s from the surface of the displacement sensor 1 on the reference optical axis pv. i When the light source 51 is located at a position away from the center point CP of the light source 51, the light receiving position of the light condensing spot of the detection element 72 is moved along a straight line connecting the center point CP and the reference point rp by a variable imaging distance t i In addition, the object to be detected db is located at an arbitrary distance s from the surface of the displacement sensor 1 on the reference optical axis pv. i+1 When the light source 51 is located at a position away from the center point CP of the light source 51, the light receiving position of the light condensing spot of the detection element 72 is moved along a straight line connecting the center point CP and the reference point rp by a variable imaging distance t i+1 is equivalent to a position just

[0028] In addition, the variable imaging distance t i and the variable imaging distance t i+1 The displacement of the detected object db calculated from the difference between [i,i+1] is set to.

[0029] 1, for convenience of illustration, the reflected light reflected from the detected object db is illustrated as passing through the origin O, which is the center of the light-receiving lens 71. Similarly, the illustration and description of refracted light, which is the reflected light reflected from the detected object db within the light-receiving lens 71 and passes through after being refracted, is omitted.

[0030] The calculation unit 9 receives the electrical signal output from the detection element 72. The calculation unit 9 obtains a position signal based on the information on the image formation position included in the input electrical signal. The calculation unit 9 obtains an arbitrary distance s between the light projector 5 and the detection target object db based on the position signal. i Calculate.

[0031] Specifically, the calculation unit 9 calculates an arbitrary distance s between the light projecting unit 5 and the object to be detected db from the position signal by applying a triangulation method using the light source 51, the light projecting lens 52, the light receiving lens 71, and the detection element 72. i Calculate.

[0032] That is, the calculation unit 9 calculates the position of the focused spot detected by the detection element 72 by the arbitrary distance s between the light projecting unit 5 and the detection object db. i This converted arbitrary distance s i is the displacement of the detected object db.

[0033] Fig. 2 is a diagram for explaining the detection principle of the displacement sensor 1 in Fig. 1. In Fig. 2, the origin O represents the center of the light receiving lens 71, similar to Fig. 1. Also, in Fig. 2, the center point CP represents the center of the light source 51, similar to Fig. 1.

[0034] Also, in Figure 2, θ represents the angle between a line connecting the center point CP of light source 51 and the origin O, which is the center of light receiving lens 71, and a line connecting the center point CP of light source 51 and the center of projector lens 52, as in Figure 1.

[0035] Also, in Figure 2, φ, as in Figure 1, represents the angle between a line connecting the center point CP of the light source 51 and the origin O, which is the center of the light receiving lens 71, and a line connecting the center point CP of the light source 51 and the reference point rp of the detection element 72.

[0036] 2, the fixed distance s0 represents a constant distance from the center point CP of the light source 51 to the surface of the housing 3 on the reference optical axis pv, as in FIG. 1. i represents the distance that changes due to the displacement of the detected object db from the surface of the housing 3 on the reference optical axis pv, as in Fig. 1. Note that the fixed distance s0 differs depending on the assembly accuracy with which the light source 51 is assembled to the housing 3.

[0037] 2, the reference imaging distance t0 represents the position when the light receiving position of the light-converging spot on the detection element 72 when the object db is at the reference reflection position rrp is projected onto the straight line connecting the center point CP and the reference point rp, as in FIG. i As in Figure 1, the reference optical axis pv is located at an arbitrary distance s from the surface of the displacement sensor 1. i It represents the position when the light receiving position of the light-focus spot on detecting element 72 when it is located at a distance of t0 is projected onto a straight line connecting center point CP and reference point rp. Note that reference image distance t0 differs depending on the accuracy with which light source 51, light projecting lens 52, light receiving lens 71, and detecting element 72 are assembled to housing 3.

[0038] In addition, in Fig. 2, the line passing through origin O and center point CP represents the y-axis or y'-axis as the vertical axis in the Cartesian coordinate system. In addition, in Fig. 2, the coordinate plane on the side where θ exists, the line perpendicular to the y-axis from origin O represents the x-axis as the horizontal axis in the Cartesian coordinate system. In addition, in Fig. 2, the coordinate plane on the side where φ exists, the line perpendicular to the y'-axis from origin O represents the x'-axis as the horizontal axis in the Cartesian coordinate system.

[0039] Therefore, in Fig. 2, the two-dimensional Cartesian coordinate system xy is shown on the coordinate plane on the side where θ exists, and the two-dimensional Cartesian coordinate system x'y' is shown on the coordinate plane on the side where φ exists.

[0040] On the coordinate plane of the Cartesian coordinate system xy, the coordinate (x s0 ,y s0 ) and an arbitrary distance s i The coordinates (x si ,y si ) is expressed by the following equation (1).

[0041]

number

[0042] In addition, on the coordinate plane of the Cartesian coordinate system x'y', the coordinate (x' t0 ,y' t0 ) and the variable imaging distance t i The coordinates (x' ti ,y' ti ) is expressed by the following equation (2).

[0043]

number

[0044] Also, at any distance s i When a detection object db is located at a distance of t i The image is formed at an arbitrary distance s i The coordinates (x si ,y si ) and the variable imaging distance t i The coordinates (x' ti ,y' ti) is a line passing through the origin O. Therefore, the slope of the line connecting the coordinates (x, y) calculated by equation (1) and the origin O is the same as the slope of the line connecting the coordinates (x', y') calculated by equation (2) and the origin O. Therefore, the relationship y / x = y' / x' holds. Substituting equations (1) and (2) here gives us (ax+b) / x = (cx'+d) / x'. This can be transformed into the following form, equation (3).

[0045]

number

[0046] Here, any distance s i is expressed as an arbitrary distance s as a generalized form of the variable imaging distance t i is generalized and expressed as the variable image distance t. Furthermore, sinθ×(s0+s) is substituted for x in equation (3), and sinφ×(t0-t) is substituted for x' in equation (3), and then the equation is transformed into the following equation (4).

[0047]

number

[0048] In equation (4), 1 / (t0-t) is the independent variable and 1 / (s0+s) is the dependent variable, and the equation is transformed into the following equation (5).

[0049]

number

[0050] In equation (5), the independent variable 1 / (t0-t) is X, the dependent variable 1 / (s0+s) is Y, dsinθ / bsinφ is A, and (ac)sinθ / b is B, and this can be transformed into the following equation (6).

[0051]

number

[0052] The linear equation expressed by equation (6) is a linear regression model. Therefore, Y and X are expressed as a linear relationship. Therefore, Y and X are in a linear relationship.

[0053] Furthermore, Y is expressed as 1 / (s0+s), X is expressed as 1 / (t0-t), and θ, φ, a, b, c, d, reference imaging distance t0, and fixed distance s0 are fixed values ​​determined during the manufacture of the displacement sensor 1. Furthermore, the fixed distance s0 and reference imaging distance t0 are given as nonlinear terms, thereby determining dsinθ / bsinφ and (ac)sinθ / b. Thus, in the end, equation (5) is a linear mapping of the relationship between the variable imaging distance t and the arbitrary distance s between the light projector 5 and the detected object db.

[0054] Therefore, equation (5) is a model equation for establishing a linear relationship between the variable imaging distance t and the arbitrary distance s between the light projector 5 and the detected object db. Therefore, equation (6), which is a modification of equation (5) as the model equation, is used to find A and B included in equation (6) by the least squares method. This minimizes the residual between 1 / (s0+s) calculated by equation (6) and 1 / (s0+s) obtained from the arbitrary distance s, improving the accuracy of the model equation.

[0055] Here, A and B correspond to parameters in the present disclosure. Thus, the parameters in the present disclosure include θ, φ, a, b, c, d, reference imaging distance t0, and fixed distance s0. Furthermore, reference imaging distance t0 and fixed distance s0 correspond to device-specific parameters in the present disclosure. In other words, the device-specific parameters are part of the parameters, and may vary depending on the assembly accuracy of the light projector 5 and the detector 7, and are found by the least squares method.

[0056] The unknown parameters are the four points: reference imaging distance t0, fixed distance s0, dsinθ / bsinφ, and (ac)sinθ / b. Therefore, in order to ensure accuracy in the least squares method, it is desirable that 5≦n. In other words, it is desirable to set the number of measurement points to be the number of unknown parameter points +1 or more. In this way, the large amount of measurement data points that was necessary to improve accuracy in conventional correction methods is no longer necessary.

[0057] Fig. 3 is a block diagram for explaining the functions of the displacement sensor 1 in Fig. 1. In Fig. 3, the details of the functions of a calculation unit 9 among the functions of the displacement sensor 1 are shown.

[0058] Calculation unit 9 has the functions of a position signal generation unit 91, a parameter generation unit 92, a distance signal calculation unit 93, and a distance signal output unit 94. Calculation unit 9 has, for example, a ROM, a RAM, a CPU, an FPGA, an ASIC, a memory, and an I / O interface. Calculation unit 9 realizes the functions of position signal generation unit 91, parameter generation unit 92, distance signal calculation unit 93, and distance signal output unit 94 by the CPU. Note that calculation unit 9 may be implemented with a wired logic circuit that realizes the functions of position signal generation unit 91, parameter generation unit 92, distance signal calculation unit 93, and distance signal output unit 94.

[0059] The position signal generating unit 91 receives the electrical signal output from the detection element 72. The electrical signal received by the position signal generating unit 91 includes information on the amount of light of the light spot and information on the imaging position. The position signal generating unit 91 generates a position signal based on the information on the amount of light and the information on the imaging position.

[0060] The electrical signal output from the detection element 72 corresponds to the signal generated by the detection unit 7 in accordance with the variable imaging distance t in this disclosure.

[0061] The parameter generating unit 92 calculates the image forming position and an arbitrary distance s between the light projecting unit 5 and the object to be detected db. i The parameter generating unit 92 calculates parameters included in a model formula obtained from the optical relationship between and . The parameter generating unit 92 outputs the calculated parameters to the distance signal calculating unit 93.

[0062] That is, the parameter generating unit obtains device-specific parameters that may vary depending on the assembly accuracy of the light projecting unit 5 and the detecting unit 7 by the least squares method according to a model formula as a preparatory process before shipment.

[0063] The process of determining the parameters is performed, for example, as a preparatory process before shipment of the displacement sensor 1. When the displacement sensor 1 is shipped, the parameters determined by the parameter generation unit 92 are stored, for example, in the distance signal calculation unit 93. When the displacement sensor 1 is used, the parameters determined by the parameter generation unit 92 and various settings such as the gain of the light projected from the light projection unit 5 are stored in the memory of the calculation unit 9.

[0064] The distance signal calculation unit 93 calculates the arbitrary distance s between the light projector 5 and the detection object db using the parameters output from the parameter generation unit 92 and the position signal output from the position signal generation unit 91. Specifically, the distance signal calculation unit 93 calculates the arbitrary distance s between the light projector 5 and the detection object db based on the above formula (5). The distance signal calculation unit 93 outputs a distance signal including information of the arbitrary distance s between the light projector 5 and the detection object db to the distance signal output unit 94.

[0065] That is, the calculation unit 9 uses the device-specific parameters according to the model formula to calculate a distance signal including information on an arbitrary distance from the position signal.

[0066] Based on the distance signal including information on the arbitrary distance s between the light projector 5 and the detected object db output from the distance signal calculation unit 93, the distance signal output unit 94 converts the distance signal including information on the arbitrary distance s between the light projector 5 and the detected object db into a communication signal that complies with the communication protocol of the output destination, and outputs the converted communication signal. For example, if the output destination is a sequencer, the distance signal output unit 94 converts the distance signal including information on the arbitrary distance s between the light projector 5 and the detected object db into a communication signal that complies with the communication protocol of the sequencer, and outputs or displays it.

[0067] In the preparation stage of the displacement sensor 1, the following is performed: i When the object db is placed at the position, the image distance changes to t i The value of is collected as data at any distance s i The position of is moved from an arbitrary distance s1 to an arbitrary distance s n Repeat this process n times to find the parameters.

[0068] FIG. 4 is a flow chart for explaining the operation of the preparation stage of the displacement sensor 1 of FIG. 3. In FIG. 4, the distance s from the housing 3 is known as shown in FIG. i Place the object to be detected at position db and i Collecting data according to i The parameter is calculated by repeating n times while changing the position of the displacement sensor 1. As described above, n is an integer equal to or greater than 1 that represents the upper limit of the number of actual measurement values ​​of the displacement sensor 1. It means a preset upper limit of the number of repetitions. The processes of steps S11 to S17 shown in FIG. 4 are performed, for example, before the displacement sensor 1 is shipped.

[0069] In step S11, an arbitrary distance s from the housing 3 is known. i A detection target object db is placed at the position of Next, the process of step S11 proceeds to the process of step S12.

[0070] In step S12, the light projecting unit 5 projects light toward the detection object db. Next, the process of step S12 proceeds to the process of step S13.

[0071] In step S13, the detector 7 generates an electrical signal according to the imaging position. Next, the process of step S13 proceeds to step S14.

[0072] In step S14, the position signal generator 91 obtains a position signal from the electrical signal. Next, the process of step S14 proceeds to step S15.

[0073] In step S15, the position signal generator 91 determines whether or not n pieces of data based on the position signal have been collected. If the position signal generator 91 determines that n pieces of data based on the position signal have been collected, the process of step S15 proceeds to the process of step S16. On the other hand, if the position signal generator 91 determines that n pieces of data based on the position signal have not been collected, the process of step S15 returns to the process of step S11.

[0074] In step S16, the position signal generating unit 91 calculates parameters included in the model formula. Next, the process of step S16 proceeds to the process of step S17.

[0075] In step S17, the parameter generating unit 92 stores the parameters, and then the process of step S17 ends.

[0076] In the measurement stage of the displacement sensor 1, the calculation unit 9 calculates the distance between the light projector 5 and the detection target object db based on the parameters stored by performing the processes in steps S11 to S17 and the position signal.

[0077] FIG. 5 is a flowchart illustrating the operation of the displacement sensor 1 in FIG. 3 in the measurement stage.

[0078] The processes in steps S31 to S33 are similar to those in steps S12 to S14, and therefore the description of these processes will be omitted.

[0079] In step S34, the distance signal calculation unit 93 obtains the arbitrary distance s based on the model formula including the parameters and the position signal, and then the process of step S34 ends.

[0080] From the above explanation, in this embodiment, calculation unit 9 determines parameters included in a model formula obtained from the relationship between the imaging position and the arbitrary distance s between light projector 5 and detection target object db. Calculation unit 9 uses the parameters and the position signal to correct the distance signal generated based on the arbitrary distance s.

[0081] With this configuration, the model formula models the relationship between the imaging position and the arbitrary distance s between the light projector 5 and the object to be detected db, and therefore mechanical influences are eliminated. An example of a mechanical influence is a manufacturing error caused by the assembly accuracy of the displacement sensor 1. Therefore, the detection error caused by the manufacturing variation resulting from the manufacturing error of the displacement sensor 1 can be corrected by reflecting it in the parameters by the least squares method. This makes it possible to improve the measurement accuracy.

[0082] Further, each embodiment is provided with a processing circuit for executing the calculation unit 9. The processing circuit may be dedicated hardware or a CPU (also called a Central Processing Unit, a processing device, a computing device, a microprocessor, a microcomputer, a processor, or a DSP) that executes a program stored in a memory.

[0083] Fig. 6 is a diagram for explaining an example of a hardware configuration. In Fig. 6, a processing circuit 501 is connected to a bus 502. When the processing circuit 501 is a dedicated hardware, the processing circuit 501 corresponds to, for example, a single circuit, a composite circuit, a programmed processor, an ASIC, an FPGA, or a combination of these. Each function of the parts of the calculation unit 9 may be realized by the processing circuit 501, or the functions of each part may be realized collectively by the processing circuit 501.

[0084] FIG. 7 is a diagram for explaining another example of the hardware configuration. FIG. 7 is a diagram for explaining another example of the hardware configuration. In FIG. 7, a processor 503 and a memory 504 are connected to a bus 502. When the processing circuit is a CPU, the functions of each part of the calculation unit 9 are realized by software, firmware, or a combination of software and firmware. The software or firmware is written as a program and stored in the memory 504. The processing circuit realizes the functions of each part by reading and executing the program stored in the memory 504. That is, the calculation unit 9 includes a memory 504 for storing a program whose steps will be executed as a result when executed by the processing circuit. In addition, it can be said that these programs cause a computer to execute the procedure or method to be executed. Here, the memory 504 corresponds to a non-volatile or volatile semiconductor memory such as a RAM, a ROM, a flash memory, an EPROM, an EEPROM, or the like, or a magnetic disk, a flexible disk, an optical disk, a compact disk, a mini disk, a DVD, or the like.

[0085] The functions of each part of the calculation unit 9 may be partially realized by dedicated hardware and partially realized by software or firmware. For example, the parameter generation unit 92 among the functions can be realized by a processing circuit as dedicated hardware. Also, the distance signal calculation unit 93 among the functions can be realized by the processing circuit reading and executing a program stored in the memory 504.

[0086] Thus, the processing circuitry can implement each of the above functions by hardware, software, firmware, or a combination of these.

[0087] In addition, in this embodiment, an example is described in which the least squares method is used to calculate the model formula, but the present invention is not limited to this. For example, the Mahalanobis-Taguchi method may be used to calculate the model formula. Furthermore, the parameters of the model formula may be found by norm minimization.

[0088] In addition, in the present embodiment, an example in which the detection element 72 is configured from an image sensor is described, but the present invention is not particularly limited to this. For example, the detection element 72 may be configured from an imaging element.

[0089] In addition, in the present embodiment, an example in which the calculation unit 9 is provided inside the displacement sensor 1 is described, but the present invention is not particularly limited to this. For example, the function of the calculation unit 9 may be provided outside the displacement sensor 1.

[0090] In addition, in the present embodiment, the displacement sensor 1 is configured as a two-dimensional plane model in which the displacement of the imaging position is two-dimensional, but is not limited thereto. For example, the displacement sensor 1 may be configured as a two-dimensional projection plane model or a three-dimensional space model in which the displacement of the imaging position is three-dimensional.

[0091] In addition, in this embodiment, an example is described in which an electrical signal is used as the signal output from the detection element 72, but this is not particularly limited. For example, the signal output from the detection element 72 may be an optical signal. In other words, the medium of the signal output from the detection element 72 is not particularly limited. [Explanation of symbols]

[0092] 1 Displacement sensor, 3 Housing, 5 Light projecting unit, 7 Detection unit, 9 Calculation unit, 51 Light source, 52 Light projecting lens, 71 Light receiving lens, 72 Detection element, 91 Position signal generating unit, 92 Parameter generating unit, 93 Distance signal calculating unit, 94 Distance signal output unit, db Detected object, pv Reference optical axis, rrp Reference reflection position, rp Reference point, O Origin, CP Center point, s0 Fixed distance, s i ,s arbitrary distance, t0 reference imaging distance, t i ,t variable imaging distance.

Claims

1. a light projection unit that projects light toward a detection object; a detection unit that forms an image of the reflected light from the object to be detected at an imaging position and generates an electrical signal according to the imaging position; a calculation unit that calculates a distance between the light projecting unit and the object to be detected based on the electrical signal generated by the detection unit; Equipped with the light projecting unit includes a light source that outputs light from a center point along a reference optical axis, and a light projecting lens that converges the light output from the light source and projects the converged light toward the detection object; the detection unit includes a light receiving lens that forms an image of the reflected light, and a detection element that generates the electrical signal according to the image-formed position, The light projecting unit and the detection unit are The light receiving lens and the light projecting lens are provided at different angles, a distance between the receiving lens and the detection element corresponds to a focal length of the receiving lens; the light receiving lens focuses a part of the reflected light reflected from the object to be detected on a position of a focusing spot in accordance with a position of the object to be detected which is displaced on the reference optical axis; an imaging position of the reflected light by the light receiving lens coincides with a light receiving position of the focused spot on the detection element; The distance between the light projecting unit and the object to be detected and the imaging position have a linear relationship. It is structured as follows: The calculation unit is a position signal generating unit that obtains a position signal corresponding to the light receiving position of the focused spot on the detection element from the electrical signal generated by the detection unit; a parameter generating unit for determining parameters included in a model formula obtained from the linear relationship between the imaging position and the distance; a distance signal calculation unit that calculates the distance based on the parameters and the position signal; Includes Displacement sensor.

2. 2 . The displacement sensor according to claim 1 , wherein the parameter generating unit determines device-specific parameters that may vary depending on assembly accuracy of the light projecting unit and the detecting unit by a least squares method in accordance with the model formula as a preparatory process before shipment.

Citation Information

Patent Citations

  • Optical scanning type displacement sensor

    JP1991195915A

  • Calibrating method for use in laser distance measuring equipment

    JP1997089521A

  • Photoelectric sensor and its production method

    JP2000111315A

  • Camera and manufacturing method of the same

    JP2003207832A

  • printer

    JP2014136314A