Displacement sensor and electronic device
By using a combination of a complex light source and a filter medium, adjusting the filter length to detect displacement, solving the problem of existing sensors being susceptible to interference and limited sensing range, achieving high-precision and low-cost displacement detection.
Patent Information
- Application Number
- CN202510702194.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-28
- Publication Date
- 2025-08-01
AI Technical Summary
Existing displacement sensors are susceptible to electromagnetic and electrostatic interference, and have limited sensing range, making it difficult to meet user needs.
Using a combination of a complex light source and a filter medium, the filter medium is set as a color in the complex light, and the filter length is adjusted by moving the displacement component, and the transmitted light signal is output, and the processing module analyzes the optical signal to detect the displacement amount.
It reduces electromagnetic and electrostatic interference, improves the flexibility and accuracy of the sensing range, has a simple structure, high integration, and low cost to meet user needs.
Smart Images

Figure CN120403451A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of sensors, and in particular to a displacement sensor and an electronic device. Background Art
[0002] In the fields of industrial automation, robotics, precision machining, medical health, etc., the accurate measurement of displacement is a key requirement for achieving high-precision control and operation.
[0003] Currently, displacement sensors generally have two types: sensors based on electrical signals and fiber Bragg grating (FBG) sensors based on optical signals. Sensors based on electrical signals have weak anti-interference ability and are easily affected by electromagnetic and electrostatic interference. The sensing range of FBG sensors based on optical signals has certain limitations and is difficult to meet the needs of users. Summary of the Invention
[0004] The present invention aims to solve at least one of the technical problems existing in the prior art. For this purpose, the present invention provides a displacement sensor, which is less affected by electromagnetic and electrostatic interference and has a smaller sensing range limitation.
[0005] The present invention also provides an electronic device having the above displacement sensor.
[0006] The displacement sensor according to the first aspect embodiment of the present invention includes a housing, a light source, a displacement component, and a filtering medium. The light source is disposed at one end of the housing and is configured to emit polychromatic light. The displacement component is movably connected to the other end of the housing away from the light source. The filtering medium is disposed in the housing and is at least partially located between the light source and the displacement component. The filtering medium uses one color in the polychromatic light and is configured to filter the polychromatic light to obtain transmitted light. Wherein, the displacement component can be moved under an external force to adjust the filtering length of the polychromatic light in the filtering medium. The displacement component is configured to receive the transmitted light and output an optical signal corresponding to the transmitted light or detect the spectrum of the transmitted light and output a corresponding detection signal.
[0007] The displacement sensor according to the embodiments of the present invention has at least the following beneficial effects: By providing a light source for emitting polychromatic light at one end of the housing, a movable displacement component is provided at the other end inside the housing, and the filtering medium is at least partially located between the light source and the displacement component, and the color of the filtering medium is set to one of the colors in the polychromatic light. Thus, the filtering medium can block or absorb the light in the polychromatic light that is different from the color of the filtering medium, and allow the light in the polychromatic light that is the same as the color of the filtering medium to pass through, so as to filter the polychromatic light and obtain transmitted light. The displacement component can be used to move under an external force to adjust the filtering length of the polychromatic light in the filtering medium, so as to adjust the spectrum of the transmitted light. The displacement component can output an optical signal corresponding to the transmitted light or detect the spectrum of the transmitted light and output a corresponding detection signal. When the displacement sensor is applied to an electronic device, the processing module can analyze and process the optical signal or the detection signal to obtain the displacement amount of the displacement component. In this way, the embodiment of the present application detects the displacement amount of the displacement component by adjusting the filtering length of the polychromatic light in the filtering medium, is less affected by electromagnetic and electrostatic interference, and the displacement sensor can flexibly adjust the filtering length of the polychromatic light in the filtering medium, with less restriction on the sensing range, and can better meet the needs of users.
[0008] According to some embodiments of the present invention, define m as the difference between the attenuation coefficients of two different wavelengths of light in the polychromatic light in the filtering medium, x as the displacement amount of the displacement component, c as the logarithm of the power ratio of two different wavelengths of light in the polychromatic light, and k as the power ratio of two different wavelengths of light after being filtered by the filtering medium; the filtering medium adopts the color of one of the two different wavelengths of light; wherein, lnk = mx + c.
[0009] According to some embodiments of the present invention, the filtering medium is a liquid filtering medium, or the filtering medium is an elastic solid filtering medium.
[0010] According to some embodiments of the present invention, the filtering medium is a liquid filtering medium; the displacement sensor further includes a first elastic member, the first elastic member is disposed inside the housing and abuts between the housing and the displacement component, and is used to drive the displacement component to move in a first direction away from the light source; the displacement component is used to squeeze the first elastic member under an external force.
[0011] According to some embodiments of the present invention, the displacement component further includes a second elastic member, the second elastic member is disposed inside the housing; the second elastic member is sleeved outside the displacement component and abuts between the housing and the displacement component, and is used to drive the displacement component to move in a second direction close to the light source, and the first direction and the second direction are opposite.
[0012] According to some embodiments of the present invention, the displacement sensor further includes an adjustment knob, which is threadedly connected to one end of the housing in the first direction; the displacement assembly is movably disposed through the adjustment knob in the first direction and the second direction; the second elastic member indirectly abuts against the housing by abutting against the adjustment knob; the adjustment knob is used to adjust the distance between one end of the first elastic member in the second direction and one end of the first elastic member in the first direction when rotated.
[0013] According to some embodiments of the present invention, the displacement assembly includes a drive tube and an optical fiber. The drive tube is movably connected to the end of the housing away from the light source, and is partially located inside the housing and partially located outside the housing; the optical fiber is disposed inside the drive tube and is used to receive and output transmitted light. The liquid filtering medium is at least partially located between the end of the drive tube located inside the housing and the light source; the part of the drive tube located outside the housing is used to move under an external force to adjust the distance between the end of the drive tube located inside the housing and the light source, and further adjust the filtering length of the composite light in the liquid filtering medium.
[0014] According to some embodiments of the present invention, the filtering medium is an elastic solid filtering medium; the displacement assembly includes a probe and a detector. The detector is located inside the housing, and the solid filtering medium is located between the light source and the detector; the probe is movably connected to the other end of the housing away from the light source, and is partially located inside the housing and partially located outside the housing; the part of the probe located outside the housing is used to drive the detector to displace under an external force to adjust the pressing force of the detector on the solid filtering medium, and further adjust the deformation amount of the solid filtering medium to adjust the filtering length of the composite light in the solid filtering medium; the detector is used to receive the transmitted light and detect the spectrum of the transmitted light to output a corresponding detection signal.
[0015] According to some embodiments of the present invention, the displacement sensor further includes a first light guiding member, which is located inside the housing and connected to the displacement assembly; the first light guiding member has a first light incident plane and a first light exiting plane that are opposite and parallel to each other. The first light incident plane is used to receive the transmitted light, and the filtering medium is at least partially located between the first light incident plane and the light source. The first light exiting plane is used to direct the transmitted light to the displacement assembly; and / or, the displacement sensor further includes a second light guiding member, which is located inside the housing and fixedly connected to the housing; the second light guiding member has a second light incident plane and a second light exiting plane that are opposite and parallel to each other. The second light incident plane is used to receive the composite light, and the filtering medium is at least partially located between the second light exiting plane and the displacement assembly. The second light exiting plane is used to direct the composite light to the filtering medium.
[0016] An electronic device according to an embodiment of the second aspect of the present invention includes the displacement sensor in any of the above embodiments and a processing module. The processing module is communicatively connected to the displacement sensor and is used to process the optical signal or the detection signal to obtain the displacement amount of the displacement assembly.
[0017] Additional aspects and advantages of the present invention will be given in part in the following description, become apparent in part from the following description, or be learned by practice of the present invention. Description of the Drawings
[0018] The present invention will be further described below in conjunction with the drawings and embodiments, where:
[0019] Figure 1 Shows a schematic structural diagram of a displacement sensor provided by an embodiment of the present invention;
[0020] Figure 2 Shows Figure 2 A partially cut-away structural diagram of the displacement sensor in
[0021] Figure 3 Shows Figure 2 Another cut-away structural diagram of the displacement sensor in
[0022] Figure 4 Shows a schematic structural diagram of a displacement sensor provided by another embodiment of the present invention;
[0023] Figure 5 Shows Figure 4 A partially cut-away structural diagram of the displacement sensor in
[0024] Figure 6 Shows a schematic diagram of the linear relationship between the logarithm of the power ratio k and the displacement amount x in an embodiment of the invention.
[0025] Reference Signs:
[0026] Displacement sensor 100; housing 110; third mounting cavity 111; light source 130; control board 131; light-emitting body 133; displacement assembly 150; drive tube 151; optical fiber 153; piston 155; probe 157; detector 159; first elastic member 170; second elastic member 190; adjustment knob 210; linear bearing 220; solid filtering medium 230; first light guide member 250; first light incident plane 251; first light exit plane 253; second light guide member 270; second light incident plane 271; second light exit plane 273; heat dissipation structure 290; first direction Z; second direction Y. Detailed Description of the Invention
[0027] Embodiments of the present invention will be described in detail below. Examples of the embodiments are shown in the drawings, where the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for explaining the present invention and should not be construed as limiting the present invention.
[0028] In the description of the present invention, it should be understood that with respect to the orientation description, such as the orientation or positional relationship indicated by up, down, front, back, left, right, etc., it is based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it should not be construed as a limitation to the present invention.
[0029] In the description of the present invention, the meaning of several is more than one, and the meaning of multiple is more than two. Understandings such as greater than, less than, exceeding, etc. do not include the present number, and understandings such as above, below, within, etc. include the present number. If there is a description of first and second, it is only for the purpose of distinguishing technical features and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features or implicitly indicating the sequence relationship of the indicated technical features.
[0030] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific content of the technical solution.
[0031] In the description of the present invention, the description with reference to terms such as "one embodiment", "some embodiments", "schematic embodiments", "examples", "specific examples", or "some examples", etc. means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples.
[0032] Please refer to Figure 1 , this application embodiment provides an electronic device, and the electronic device can be a medical device, a robot, an industrial device, or other electronic devices.
[0033] The electronic device includes a displacement sensor 100 and a processing module, and the processing module and the displacement sensor 100 can be communicatively connected.
[0034] As an example, the displacement sensor 100 can be used to output a detected optical signal. The processing module can include a detection unit and a processing unit. The displacement sensor 100 can be communicatively connected to the detection unit, and the detection unit can be communicatively connected to the processing unit. The detection unit can receive and analyze the optical signal to output a detection signal, and the processing unit can receive and analyze the detection signal to obtain the required detection data.
[0035] As another example, the displacement sensor 100 can also directly output a detection signal. The processing module can directly adopt a processing unit, and the processing unit can receive and analyze the detection signal to obtain the required detection data.
[0036] The detection data in the above examples can be a displacement amount, a force magnitude, or other data.
[0037] The processing unit can adopt one or more of a CPU, an MCU, or other processors, and the detection unit can adopt an RGB sensor, a spectral analyzer, or other detection devices.
[0038] Please refer to Figures 1 to 3 , in some embodiments, the displacement sensor 100 includes a housing 110, a light source 130, a displacement assembly 150, and a filtering medium.
[0039] Among them, the light source 130 is disposed at one end of the housing 110, and the displacement assembly 150 is movably connected to the other end of the housing 110 away from the light source 130.
[0040] As an example, the housing 110 is provided with a receiving cavity, and a first cavity opening and a second cavity opening that are spaced apart from each other are respectively provided at both ends of the receiving cavity along the length direction of the housing 110. The light source 130 can be disposed at the first cavity opening and close the first cavity opening, and the light source 130 can be used to emit light into the receiving cavity. The displacement assembly 150 is movably disposed through the second cavity opening along the length direction of the housing 110, and is partially located inside the housing 110 and partially located outside the housing 110. The part of the displacement assembly 150 located outside the housing 110 can be used to receive an external force, so that the displacement sensor 100 can detect the external force.
[0041] The light source 130 is used to emit polychromatic light, and the polychromatic light can include at least two kinds of light with different wavelengths. It can be understood that the colors corresponding to different wavelengths of light are also different. Therefore, different wavelengths of light can also refer to different colors of light.
[0042] As an example, the light source 130 can adopt a polychromatic light source, such as a white LED lamp.
[0043] As another example, the light source 130 can also adopt a plurality of monochromatic light sources. Each monochromatic light source emits a beam of monochromatic light, and the mixture of multiple beams of monochromatic light can form polychromatic light. The plurality can refer to two or more.
[0044] The filtering medium is disposed inside the housing 110 and at least partially located between the light source 130 and the displacement assembly 150. Thus, the polychromatic light emitted by the light source 130 can enter the filtering medium for filtering. Filtering can refer to selectively allowing light of a specific wavelength (color) to pass through, while blocking or absorbing light of other wavelengths.
[0045] The filtering medium uses one color in the polychromatic light to filter the polychromatic light to obtain transmitted light. Thus, the filtering medium can block or absorb the light in the polychromatic light that is different from the color of the filtering medium and allow the light in the polychromatic light that is the same as the color of the filtering medium to pass through.
[0046] As an example, the polychromatic light can include red light and blue light, and the filtering medium can use a light-transmitting filtering medium with a color of blue. The filtering medium has a high transmittance for the blue light in the polychromatic light, while the transmittance of the red light is lower than that of the blue light. When the polychromatic light propagates in the filtering medium, the filtering medium filters the polychromatic light, and the attenuation rate of the blue light is lower than that of the red light. Thus, the power value of the blue light in the spectrum of the output optical signal is greater than that of the red light. In this way, the filtering medium can adjust the spectrum of the polychromatic light to obtain the transmitted light.
[0047] The displacement component 150 is used to move under the action of an external force to adjust the filtering length of the polychromatic light in the filtering medium, so that the propagation distance of the polychromatic light in the filtering medium can be adjusted. When the propagation distance of the polychromatic light in the filtering medium changes, the filtering effect of the filtering medium will also change accordingly, and the spectrum of the corresponding output transmitted light will also be different.
[0048] It can be understood that the light intensity of the transmitted light is less than that of the polychromatic light. The longer the filtering length, the smaller the light intensity of the transmitted light; the shorter the filtering length, the closer the light intensity of the transmitted light is to that of the polychromatic light.
[0049] The displacement component 150 can be used as a light guiding structure to output the transmitted light as an optical signal. Specifically, the displacement component 150 is used to receive the transmitted light and output the optical signal corresponding to the transmitted light. The output optical signal can be received by the processing module, and the processing module is used to process the optical signal to obtain the displacement amount of the displacement component 150.
[0050] As an example, the processing module can include a detection unit and a processing unit. The detection unit can receive the optical signal output by the displacement sensor 100, analyze the detected optical signal to obtain the spectrum of the transmitted light, and then output the detection data (i.e., the spectrum of the transmitted light) to the processing unit through the detection signal. The processing unit analyzes the spectrum of the transmitted light and the spectrum of the polychromatic light to obtain the displacement amount of the displacement component 150.
[0051] Alternatively, the displacement component 150 can also detect the transmitted light and then output the detected signal. Specifically, the displacement component 150 is used to receive the transmitted light, detect the spectrum of the transmitted light and output the corresponding detection signal to the processing module. The processing module is used to process the detection signal to obtain the displacement amount of the displacement component 150. In this way, the displacement component 150 integrates the function of detecting the spectrum of the transmitted light, which helps to improve the integration degree of the displacement sensor 100.
[0052] As an example, the processing module may adopt a processor, which can receive the detection signal output by the displacement component 150, and then analyze the spectra of the transmitted light and the polychromatic light to obtain the displacement amount of the displacement component 150.
[0053] In this way, in the embodiment of the present application, by adjusting the filtering length of the polychromatic light in the filtering medium, transmitted light with different spectra can be obtained, so that it is convenient for the processing module to analyze and obtain the displacement amount of the displacement component 150. It is less affected by electromagnetic and electrostatic interference, and has a simple structure, high integration, and low manufacturing cost. In addition, the displacement sensor 100 can flexibly adjust the filtering length, with less limitation on the sensing range, and can better meet the needs of users.
[0054] In some embodiments, define m as the difference between the attenuation coefficients of two lights with different wavelengths in the polychromatic light in the filtering medium, x as the displacement amount of the displacement component 150, c as the logarithm of the power ratio of two lights with different wavelengths in the polychromatic light, and k as the power ratio of two lights with different wavelengths after being filtered by the filtering medium.
[0055] Specifically, c is the logarithm of the power ratio of two lights with different wavelengths in the polychromatic light in the initial state. Among them, the polychromatic light in the initial state may refer to the unfiltered polychromatic light emitted by the light source 130.
[0056] The filtering medium can adopt the color of one of the two lights with different wavelengths, so that the filtering medium can filter the other light of the two lights with different wavelengths to adjust the spectrum of the polychromatic light.
[0057] As an example, the two lights with different wavelengths in the polychromatic light can be blue light and red light respectively, and the filtering medium can adopt a blue light-transmitting filtering medium or a red light-transmitting filtering medium.
[0058] Among them, lnk = mx + c, that is, the logarithm of k and the displacement amount x are linearly related (as Figure 6 shown), and each value of the logarithm of k corresponds to a definite value of the displacement amount x, so that the displacement amount x of the displacement component 150 can be calculated. It can be understood that the values of m and c can be obtained by detecting the spectrum of the polychromatic light, and k can be obtained by detecting the spectrum of the transmitted light, so that the value of the displacement amount x can be calculated.
[0059] As an example, by detecting the spectrum of the polychromatic light, it can be detected that m = 0.016 and c = 0.254. The value of k is detected by detecting the spectrum of the transmitted light. When lnk = 0.572, the displacement amount x is calculated to be about 20 mm according to the above formula; when lnk = 0.906, the displacement amount x is calculated to be about 40 mm according to the above formula; when lnk = 1.199, the displacement amount x is calculated to be about 60 mm according to the above formula.
[0060] In some embodiments, the filtering medium can be a liquid filtering medium. When the distance between the displacement component 150 and the light source 130 changes, the filling amount of the liquid filtering medium filled between the displacement component 150 and the light source 130 also changes, so that the filtering length of the composite light in the liquid filtering medium can be adjusted.
[0061] The liquid filtering medium can be a light-transmitting liquid filtering medium obtained by quantitatively doping with dyes of different colors.
[0062] As an example, the liquid filtering medium can be obtained by quantitatively doping dyes of different colors into water to obtain a light-transmitting liquid filtering medium of the desired color.
[0063] In some embodiments, when the filtering medium is a liquid filtering medium, the displacement sensor 100 can further include a first elastic member 170.
[0064] Wherein, the first elastic member 170 can be disposed in the housing 110 and abut between the housing 110 and the displacement component 150, and is used to drive the displacement component 150 to move in the first direction Z away from the light source 130. The displacement component 150 is used to extrude the first elastic member 170 under an external force, and the first elastic member 170 generates an elastic deformation, so that it can be used as a basis for judging the force magnitude on the displacement component 150.
[0065] Specifically, according to Hooke's law F = -kx, where F is the force magnitude on the displacement component 150, k is the elastic coefficient of the first elastic member 170, and x is the deformation amount of the first elastic member 170. It can be understood that the displacement amount of the displacement component 150 is approximately equal to the deformation amount of the first elastic member 170, that is, the deformation amount x of the first elastic member 170 in the embodiments of the present application is approximately equal to the displacement amount x of the displacement component 150. Thus, after determining the displacement amount of the displacement component 150, the processing module can conveniently calculate the force magnitude on the displacement component 150 through Hooke's law. Therefore, the displacement sensor 100 provided by the embodiments of the present application can simultaneously detect the displacement amount and the force magnitude of the displacement component 150, better meeting the needs of users.
[0066] As an example, the first elastic member 170 can be a spring or other elastic structures. The first elastic member 170 can be located between the light source 130 and the first elastic member 170.
[0067] In some embodiments, the displacement component 150 can further include a second elastic member 190, and the second elastic member 190 can be disposed in the housing 110.
[0068] The second elastic member 190 is sleeved outside the displacement assembly 150 and abuts between the housing 110 and the displacement assembly 150, and is used to drive the displacement assembly 150 to move in the second direction Y to approach the light source 130. The first direction Z is opposite to the second direction Y. In this way, the first elastic member 170 and the second elastic member 190 cooperate to enable the displacement assembly 150 to achieve two-way reset (i.e., the first direction Z and the second direction Y), which helps the displacement assembly 150 to have a more stable initial position and improves the detection accuracy of the displacement sensor 100.
[0069] As an example, the second elastic member 190 can be a spring or other elastic structure. The second elastic member 190 can be located on the side of the first elastic member 170 away from the light source 130.
[0070] It should be noted that in this embodiment, due to the provision of the first elastic member 170 and the second elastic member 190, when calculating the force on the displacement assembly 150 using Hooke's law, the elastic coefficient k in the above formula can be approximately equal to k1 + k2, where k1 is the elastic coefficient of the first elastic member 170 and k2 is the elastic coefficient of the second elastic member 190.
[0071] In some embodiments, the displacement sensor 100 may further include an adjustment knob 210. The adjustment knob 210 can be threadedly connected to one end of the housing 110 in the first direction Z. The second elastic member 190 can indirectly abut against the housing 110 by abutting against the adjustment knob 210. The adjustment knob 210 can be used to adjust the distance between one end of the first elastic member 170 in the second direction Y and one end of the first elastic member 170 in the first direction Z when rotated, and can lock the adjustment knob 210 in the required position by threading, so as to pre-adjust the deformation amounts of the first elastic member 170 and the second elastic member 190, and thus adjust the elastic restoring forces of the first elastic member 170 and the second elastic member 190. For the adjusted displacement sensor 100, when an external force acts on the displacement assembly 150, the deformation amounts generated by the first elastic member 170 and the second elastic member 190 will also change according to the elastic restoring forces of the first elastic member 170 and the second elastic member 190, so as to flexibly adjust the detection range of the displacement sensor 100 to meet different detection requirements.
[0072] Specifically, the greater the elastic restoring forces of the first elastic member 170 and the second elastic member 190, the greater the external force required for the displacement assembly 150 to drive the first elastic member 170 and the second elastic member 190 to deform; the smaller the elastic restoring forces of the first elastic member 170 and the second elastic member 190, the displacement assembly 150 can drive the first elastic member 170 and the second elastic member 190 to deform under a smaller external force.
[0073] It should be noted that the displacement sensor 100 can replace the liquid filtering medium with different color concentrations according to requirements to adjust the filtering effect. Different color concentrations of the liquid filtering medium correspond to different detection range intervals of the displacement sensor 100. Therefore, the detection range interval of the displacement sensor 100 can be flexibly controlled by rotating the adjustment knob 210. Among them, the detection range intervals corresponding to different color concentrations of the liquid filtering medium for the displacement sensor 100 can be obtained through testing. That is, the detection range interval can be adjusted by adjusting the distance between one end of the first elastic member 170 in the second direction Y and one end of the second elastic member 190 in the first direction Z.
[0074] The displacement assembly 150 is movably disposed through the adjustment knob 210, which helps to avoid interfering with the position of the displacement assembly 150 when rotating the adjustment knob 210.
[0075] As an example, the displacement sensor 100 may further include a linear bearing 220. The adjustment knob 210 may be annularly arranged. The outer ring of the linear bearing 220 may abut against the inner ring wall of the adjustment knob 210. The displacement assembly 150 is movably disposed through the inner ring of the linear bearing 220 along the axis of the linear bearing 220. The linear bearing 220 can provide guidance for the displacement assembly 150. The adjustment knob 210, the linear bearing 220, and the displacement assembly 150 may be coaxially arranged to reduce movement interference.
[0076] In some embodiments, the displacement assembly 150 may include a drive tube 151 and an optical fiber 153.
[0077] The drive tube 151 is movably connected to one end of the housing 110 facing away from the light source 130, and is partially located inside the housing 110 and partially located outside the housing 110. The part of the drive tube 151 located outside the housing 110 can be used to receive an external force.
[0078] As an example, the drive tube 151 is movably disposed through the adjustment knob 210, and the end of the drive tube 151 extending into the housing 110 may be disposed opposite to the light source 130.
[0079] The optical fiber 153 is disposed inside the drive tube 151, and the optical fiber 153 is used to receive and output transmitted light.
[0080] As an example, one end of the optical fiber 153 can be used to receive transmitted light, and the other end of the optical fiber 153 can be connected to the processing module to transmit the optical signal corresponding to the transmitted light to the processing module.
[0081] The liquid filtering medium is at least partially located between the driving tube 151 and the light source 130. The part of the driving tube 151 located outside the housing 110 is used to move under an external force to adjust the distance between the end of the driving tube 151 located inside the housing 110 and the light source 130, thereby adjusting the filtering length of the composite light in the liquid filtering medium. When the end of the driving tube 151 located inside the housing 110 is closer to the light source 130, the liquid filtering medium between the driving tube 151 and the light source 130 is less, and the liquid filtering medium can overflow to the side of the second cavity opening (for example, the liquid filtering medium may not fill the accommodating cavity to provide a flow space for the liquid filtering medium), so as to shorten the filtering length of the composite light in the liquid filtering medium; when the end of the driving tube 151 located inside the housing 110 is farther from the light source 130, the liquid filtering medium between the driving tube 151 and the light source 130 is more, so as to increase the filtering length of the composite light in the liquid filtering medium.
[0082] In some embodiments, a first installation cavity, a second installation cavity, and a third installation cavity 111 are arranged on one side inside the housing 110.
[0083] As an example, the first installation cavity, the second installation cavity, and the third installation cavity 111 can be sequentially connected to form the accommodating cavity in the above example. The first cavity opening communicates with one end of the first installation cavity facing away from the second installation cavity, and the second cavity opening communicates with one end of the third installation cavity 111 facing away from the second installation cavity. The light source 130 can be arranged in the first installation cavity, the liquid filtering medium can be arranged in the third installation cavity 111, and the second installation cavity can be used to install a first light guiding structure for guiding the composite light into the third installation cavity 111. The first light guiding structure can enclose the second installation cavity to improve the situation that the liquid filtering medium enters the first installation cavity and causes a short circuit of the light source 130. Both the first elastic member 170 and the second elastic member 190 can be arranged in the third installation cavity 111. A step surface can be formed between the second installation cavity and the third installation cavity 111, and the first elastic member 170 can abut between the step surface and the displacement assembly 150.
[0084] In some embodiments, the displacement assembly 150 may further include a piston 155 and a second light guiding structure. The piston 155 can be arranged in a ring shape, and the end of the driving tube 151 that displaces inside the housing 110 can be inserted into one end of the piston 155, and the second light guiding structure can be inserted into the other end of the piston 155.
[0085] The piston 155 and the driving tube 151 can move synchronously. The driving tube 151 can displace under an external force to adjust the distance between the piston 155 and the light source 130, thereby adjusting the filtering length of the composite light in the liquid filtering medium.
[0086] The first elastic member 170 can abut between the step surface and the piston 155.
[0087] The second elastic member 190 can be sleeved outside the driving tube 151 and abutted between the piston 155 and the adjustment knob 210.
[0088] Please refer to Figures 4 to 5 , in addition to using the liquid filtering medium in the above embodiments, other media can also be used as the filtering medium. Specifically, in some embodiments, the filtering medium can be an elastic solid filtering medium 230. When the solid filtering medium 230 located between the light source 130 and the displacement assembly 150 undergoes elastic deformation under pressure, the filtering length of the composite light in the solid filtering medium 230 can also change, so that the filtering length of the composite light in the solid filtering medium 230 can be adjusted.
[0089] Among them, the elastic solid filtering medium 230 can have the reset functions of the first elastic member 170 and the second elastic member 190 in the above embodiments. Thus, the displacement sensor 100 can be configured without the first elastic member 170 and the second elastic member 190, which helps to simplify the structure of the displacement sensor 100 and improve the integration level of the displacement sensor 100.
[0090] There are various choices for the elastic solid filtering medium 230.
[0091] As an example, the solid filtering medium 230 can be made of flexible materials such as polyester, polyethylene, and polypropylene to facilitate elastic deformation.
[0092] As another example, the solid filtering medium 230 can be made by dyeing stretchable materials such as polyurethane, transparent silicone, and hydrogel.
[0093] In some embodiments, the filtering medium can be an elastic solid filtering medium 230, and the displacement assembly 150 can include a probe 157 and a detector 159.
[0094] Among them, the detector 159 can be located inside the housing 110, the solid filtering medium 230 is located between the light source 130 and the detector 159, and the detector 159 can be used to receive the transmitted light and detect the detection signal corresponding to the spectrum of the transmitted light. In this way, the displacement sensor 100 can integrate the detector 159 for detecting the spectrum of the transmitted light, improving the integration level of the displacement sensor 100.
[0095] The probe 157 is movably connected to the other end of the housing 110 away from the light source 130. A part of the probe 157 is located inside the housing 110 and a part is located outside the housing 110. The part of the probe 157 located outside the housing 110 can be used to receive an external force.
[0096] The portion of the probe 157 located outside the housing 110 can be used to drive the detector 159 to displace under an external force to adjust the pressing force of the detector 159 against the solid filter medium 230, thereby adjusting the deformation amount of the solid filter medium 230 to adjust the filtering length of the composite light in the solid filter medium 230, so that the displacement amount of the probe 157 and the magnitude of the force received can be detected.
[0097] Specifically, when the probe 157 is subjected to an external force, the probe 157 moves toward the light source 130 side, so that the detector 159 can press against the solid filter medium 230 to cause the solid filter medium 230 to deform, thereby shortening the propagation distance of the composite light in the solid filter medium 230. The detector 159 can detect the spectrum of the transmitted light and transmit the detection data to the processing module through a detection signal. The processing module can calculate the displacement amount of the probe 157 according to the detection signal (i.e., the spectrum of the transmitted light) and the spectrum of the composite light. The specific calculation process can refer to the above embodiments and will not be elaborated here. After obtaining the displacement amount of the probe 157, the magnitude of the force received by the probe 157 can be calculated according to Hooke's law. The specific calculation process can refer to the above embodiments and will not be elaborated here. It can be understood that at this time, the elastic coefficient k can be the elastic coefficient of the solid filter medium 230.
[0098] As an example, when the displacement sensor 100 is detecting, the probe 157 can be pressed against the object to be measured, and the displacement assembly 150 can detect the displacement amount of the probe 157 and the magnitude of the pressing force between the probe 157 and the object to be measured.
[0099] Please refer to Figure 3 and Figure 5 , in some embodiments, the displacement sensor 100 may further include a first light guiding member 250. The first light guiding member 250 can be located inside the housing 110 and connected to the displacement assembly 150, and the first light guiding member 250 can move synchronously with the displacement assembly 150.
[0100] The first light guiding member 250 can have a first light incident plane 251 and a first light exiting plane 253 that are opposite and parallel to each other. Both the first light incident plane 251 and the first light exiting plane 253 are arranged in a plane to reduce light loss.
[0101] The first light incident plane 251 can be used to receive the transmitted light. The filter medium can be at least partially located between the first light incident plane 251 and the light source 130, so that the transmitted light can enter the first light guiding member 250 through the first light incident plane 251. The first light exiting plane 253 can be used to direct the transmitted light to the displacement assembly 150, so as to facilitate the displacement assembly 150 to output the transmitted light or detect the spectrum of the transmitted light.
[0102] The first light incident plane 251 can also be parallel to the light emitting surface of the light source 130 or perpendicular to the propagation direction of the composite light, so as to increase the light incident amount and improve the detection accuracy of the displacement sensor 100.
[0103] As an example, as Figure 3 shown, when the filtering medium is a liquid filtering medium, the first light guiding member 250 can be the second light guiding structure in the above embodiment. The first light guiding member 250 can be inserted into the piston 155, so that the first light guiding member 250 can seal the port of the piston 155 of the driving tube 151, which helps to reduce the situation that the liquid filtering medium enters the driving tube 151. The first light incident plane 251 can be located outside the driving tube 151 and be arranged facing the light source 130, and the first light emitting plane 253 can be located inside the driving tube 151 and be arranged facing the end face of the light beam.
[0104] As another example, as Figure 5 shown, when the filtering medium is a solid filtering medium 230, the first light guiding member 250 can be abutted between the solid filtering medium 230 and the detector 159, the first light incident plane 251 can be abutted against the light source 130, and the first light emitting plane 253 can be abutted against the detector 159.
[0105] In some embodiments, the displacement sensor 100 further includes a second light guiding member 270, and the second light guiding member 270 can be located inside the housing 110 and fixedly connected to the housing 110.
[0106] The second light guiding member 270 has a second light incident plane 271 and a second light emitting plane 273 that are opposite and parallel to each other, and both the second light incident plane 271 and the second light emitting plane 273 are arranged in a plane to reduce light loss.
[0107] The second light incident plane 271 is used to receive the composite light, at least part of the filtering medium is located between the second light emitting plane 273 and the displacement assembly 150, and the second light emitting plane 273 is used to direct the composite light to the filtering medium, and the filtering medium filters the composite light.
[0108] As an example, when the filtering medium is a liquid filtering medium, the second light guiding member 270 can be the first light guiding structure in the above embodiment. The first light guiding member 250 can be inserted into the second installation cavity, so that the second light guiding member 270 can seal the second installation cavity to reduce the liquid filtering medium from entering the first installation cavity through the second installation cavity and affecting the light source 130. The second light incident plane 271 can be arranged facing the light source 130, and the second light emitting plane 273 can be located in the third installation cavity 111 and be arranged facing the piston 155.
[0109] As another example, when the filtering medium is the solid filtering medium 230, the second light guiding member 270 can be abutted between the light source 130 and the solid filtering medium 230. The second light incident plane 271 can be abutted against the light source 130, and the second light exiting plane 273 can be abutted against the solid filtering medium 230.
[0110] It should be noted that when the displacement sensor 100 is provided with both the first light guiding member 250 and the second light guiding member 270 at the same time, the light source 130, the second light incident plane 271, the second light exiting plane 273, the filtering medium, the first light incident plane 251, and the first light exiting plane 253 can be arranged in sequence, and the second light incident plane 271, the second light exiting plane 273, the first light incident plane 251, and the first light exiting plane 253 can be parallel to each other.
[0111] Please refer to Figure 5 , in some embodiments, when the light emitting surface of the light source 130 is a plane, the displacement sensor 100 may not need to be provided with the first light guiding member 250. The light emitting surface of the light source 130 can be parallel to the first light incident plane 251, and then the filtering medium can be directly arranged between the light emitting surface of the light source 130 and the first light incident plane 251.
[0112] In some embodiments, the light source 130 may include a control board 131 and a light emitting body 133. The light emitting body 133 can be arranged on the control board 131, and the control board 131 can be used to control the switch of the light emitting body 133.
[0113] The light emitting body 133 can adopt a light emitting body 133 that can emit composite light.
[0114] In some embodiments, the displacement sensor 100 may further include a heat dissipation structure 290. The heat dissipation structure 290 can be connected to the light source 130 and at least partially outside the housing 110 of the displacement sensor, and is used to absorb the heat generated by the light source 130 and exchange heat with the external air, so as to reduce the situation of thermal failure of the light source 130, and can also reduce the situation of color concentration change caused by the evaporation of moisture in the liquid filtering medium due to temperature rise, thereby improving the detection accuracy of the displacement sensor 100.
[0115] As an example, the heat dissipation structure 290 can adopt a metal heat conduction and dissipation structure. The heat dissipation structure 290 can be provided with a plurality of heat dissipation fins to increase the heat exchange area with the external air and improve the heat exchange effect. The plurality can refer to two or more.
[0116] In the displacement sensor 100 and the electronic device provided by the embodiments of the present application, a light source 130 for emitting composite light is provided at one end of a housing 110, a movable displacement component 150 is provided at the other end inside the housing 110, a filtering medium is at least partially located between the light source 130 and the displacement component 150, and the color of the filtering medium is set to one of the colors in the composite light. Thus, the filtering medium can block or absorb the light in the composite light that is different from the color of the filtering medium, and allow the light in the composite light that is the same as the color of the filtering medium to pass through, so as to filter the composite light and obtain transmitted light. The displacement component 150 can be used to move under an external force to adjust the filtering length of the composite light in the filtering medium, so as to adjust the spectrum of the transmitted light. The displacement component 150 can output an optical signal corresponding to the transmitted light or detect the spectrum of the transmitted light and output a corresponding detection signal. When the displacement sensor 100 is applied to an electronic device, a processing module can analyze and process the optical signal or the detection signal to obtain the displacement amount of the displacement component 150. In this way, the embodiments of the present application detect the displacement amount of the displacement component 150 by adjusting the filtering length of the composite light in the filtering medium, are less affected by electromagnetic and electrostatic interference, and the displacement sensor 100 can flexibly adjust the filtering length of the composite light in the filtering medium, with less restriction on the sensing range, and can better meet the needs of users.
[0117] The embodiments of the present invention have been described in detail above in conjunction with the accompanying drawings. However, the present invention is not limited to the above embodiments. Within the knowledge scope of those of ordinary skill in the art to which the present invention pertains, various changes can be made without departing from the gist of the present invention. In addition, the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
Claims
1. A displacement sensor, characterized in that, include: case; a light source, the light source being disposed at one end of the housing and configured to emit polychromatic light; a displacement assembly, the displacement assembly being movably connected to the other end of the housing away from the light source; as well as a filter medium disposed in the housing and at least partially located between the light source and the displacement assembly, the filter medium using one color of the polychromatic light to filter the polychromatic light to obtain transmitted light; In which, the displacement component can move under the action of external force to adjust the filtering length of the complex light in the filter medium; the displacement component is used to receive the transmitted light and output a light signal corresponding to the transmitted light or detect the spectrum of the transmitted light and output a detection signal corresponding to the output.
2. The displacement sensor according to claim 1, characterized in that m is defined as the difference in attenuation coefficients of two different wavelengths of light within the polychromatic light within the filter medium, x is the displacement of the displacement component, c is the logarithm of the power ratio of the two different wavelengths of light within the polychromatic light, and k is the power ratio of the two different wavelengths of light after filtering by the filter medium; the filter medium uses the color of one of the two different wavelengths of light; Among them, lnk=mx+c.
3. The displacement sensor according to claim 1, characterized in that The filter medium is a liquid filter medium, or the filter medium is a solid filter medium with elasticity.
4. The displacement sensor according to claim 3, characterized in that The filter medium is a liquid filter medium; The displacement sensor further includes a first elastic member, which is disposed in the housing and abuts between the housing and the displacement assembly, and is used to drive the displacement assembly to move in a first direction away from the light source; The displacement assembly is used to squeeze the first elastic member under the action of an external force.
5. The displacement sensor according to claim 4, characterized in that, The displacement assembly further includes a second elastic member, which is disposed in the housing; The second elastic member is sleeved outside the displacement assembly and abuts between the housing and the displacement assembly, and is used to drive the displacement assembly to move in a second direction to approach the light source. The first direction and the second direction are opposite to each other.
6. The displacement sensor according to claim 5, wherein The displacement sensor further includes an adjusting knob, wherein the adjusting knob is threadedly connected to one end of the housing in the first direction; The displacement component is movably provided on the adjustment knob along the first direction and the second direction; The second elastic member indirectly abuts against the housing by abutting against the adjusting knob; The adjusting knob is used to adjust the distance between one end of the first elastic member in the second direction and one end of the first elastic member in the first direction when rotating.
7. The displacement sensor according to any one of claims 4 to 6, characterized in that, The displacement assembly includes a driving tube and an optical fiber, wherein the driving tube is movably connected to an end of the housing away from the light source and is partially located inside the housing and partially located outside the housing; The optical fiber is arranged in the driving tube and is used to receive and output the transmitted light; The liquid filter medium is at least partially located between the end of the drive tube located within the housing and the light source; The portion of the driving tube located outside the housing is used to move under the action of external force to adjust the distance between the end of the driving tube located inside the housing and the light source, thereby adjusting the filtering length of the polychromatic light in the liquid filter medium.
8. The displacement sensor according to claim 3, wherein, The filtering medium is an elastic solid filtering medium; The displacement assembly includes a probe and a detector. The detector is located inside the housing, and the solid filtering medium is located between the light source and the detector; The probe is movably connected to the other end of the housing away from the light source, and is partially located inside the housing and partially outside the housing; The part of the probe located outside the housing is used to drive the detector to displace under the action of an external force to adjust the pressing force of the detector on the solid filtering medium, and further adjust the deformation amount of the solid filtering medium to adjust the filtering length of the composite light in the solid filtering medium; The detector is used to receive the transmitted light and detect the detection signal corresponding to the spectrum of the transmitted light.
9. The displacement sensor according to claim 1, characterized in that The displacement sensor further includes a first light guiding member. The first light guiding member is located inside the housing and is connected to the displacement assembly; the first light guiding member has a first light incident plane and a first light exiting plane that are opposite and parallel. The first light incident plane is used to receive the transmitted light. The filtering medium is at least partially located between the first light incident plane and the light source. The first light exiting plane is used to direct the transmitted light to the displacement assembly; And / or, the displacement sensor further includes a second light guiding member. The second light guiding member is located inside the housing and is fixedly connected to the housing; the second light guiding member has a second light incident plane and a second light exiting plane that are opposite and parallel. The second light incident plane is used to receive the composite light. The filtering medium is at least partially located between the second light exiting plane and the displacement assembly. The second light exiting plane is used to direct the composite light to the filtering medium.
10. An electronic device, characterized in that: Comprising: The displacement sensor according to any one of claims 1 to 9; And A processing module, which is communicatively connected to the displacement sensor and is used to process the optical signal or the detection signal to obtain the displacement amount of the displacement assembly.