Distance measurement method using reflective TOF distance measurement sensor

By sampling background light intensity and reference measurement in the reflective TOF range measurement sensor, combined with the phase identification processing of the phase comparison module, the problem of inaccurate measurement results in the prior art is solved, and a distance measurement with higher accuracy is achieved. Expand the measurement range and reduce costs.

CN118818513BActive Publication Date: 2024-11-22XMO LTD (ZHUHAI)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411270074.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-11
Publication Date
2024-11-22
Estimated Expiration
2044-09-11

AI Technical Summary

Technical Problem

The existing reflective ranging sensors are affected by factors such as ambient light, reflector color and temperature, resulting in inaccurate measurement results.

Method used

The reflective TOF range measuring sensor is adopted, including infrared signal transmitting module, reflected wave receiving module, signal amplification module, signal shaping module and phase comparison module. The phase comparison module is used to sample background light intensity, reference object measurement and target object measurement. Phase identification processing, output measurement result signals, and calculate the distance between the target object and the distance measuring sensor.

Benefits of technology

It improves the accuracy of measurement results, reduces interference from other factors, realizes higher frequency measurements, expands the measurement distance range, simplifies the circuit structure, reduces costs, and realizes the miniaturization of sensors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118818513B_ABST
    Figure CN118818513B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of distance measuring sensors, and specifically discloses a distance measuring method using a reflective TOF distance measuring sensor. The reflective TOF distance measuring sensor comprises an infrared distance measuring signal transmitting module, a reflected wave receiving module, a signal amplifying module, a signal shaping module and a phase comparison module; the infrared distance measuring signal transmitting module comprises an infrared signal transmitting tube that transmits a pulse signal to a target object according to an external driving signal; the reflected wave receiving module, the signal amplifying module, the signal shaping module and the phase comparison module are connected in sequence, the reflected wave receiving module is used to receive a reflected wave signal reflected by the target object, the signal amplifying module amplifies the reflected wave signal, the signal shaping module is used to shape the amplified reflected wave signal, the phase comparison module receives the shaped reflected wave signal and the driving signal, performs phase discrimination processing on the driving signal and the shaped reflected wave signal and outputs a measurement result signal. The present invention can improve the accuracy of the measurement result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of distance measuring sensors, and in particular to a distance measuring method using a reflective TOF distance measuring sensor. Background Art

[0002] At present, common distance measuring sensors are reflective distance measuring sensors, including infrared distance measuring sensors, laser distance measuring sensors and ultrasonic distance measuring sensors, etc. Most of these distance measuring sensors measure distance based on the intensity of reflected signals, which are easily affected by many factors such as ambient light or the color and temperature of the reflected object, resulting in inaccurate measurement results. Summary of the invention

[0003] The present invention provides a distance measurement method using a reflective TOF distance measurement sensor, which improves the accuracy of the measurement result.

[0004] To solve the above problems, the present invention adopts the following technical solutions:

[0005] The embodiment of the present invention provides a distance measurement method using a reflective TOF distance measurement sensor, wherein the reflective TOF distance measurement sensor is connected to a control module, and the reflective TOF distance measurement sensor comprises an infrared distance measurement signal transmitting module, a reflected wave receiving module, a signal amplifying module, a signal shaping module and a phase comparison module; the infrared distance measurement signal transmitting module comprises an infrared signal transmitting tube for transmitting a pulse signal to a target object according to an external driving signal; the reflected wave receiving module, the signal amplifying module, the signal shaping module and the phase comparison module are connected in sequence, the reflected wave receiving module is used to receive a reflected wave signal reflected by a target object, the signal amplifying module is used to amplify the reflected wave signal, the signal shaping module is used to shape the amplified reflected wave signal, and the phase comparison module is used to receive the shaped reflected wave signal and the driving signal, perform phase discrimination processing on the driving signal and the shaped reflected wave signal and output a measurement result signal; the method comprises the following steps:

[0006] (1) The control module samples the voltage RBL_val at both ends of the infrared signal transmitting tube, which represents the background light intensity;

[0007] (2) The reference object is placed at multiple reference positions within the effective measurement range. The control module controls the infrared ranging signal transmitting module to transmit a pulse signal to the reference object each time. The control module obtains the voltage RTOF_val of the measurement result signal output by the phase comparison module for each reference position, the actual distance from the reference position to the ranging sensor, and the voltage ROBJ_val at both ends of the infrared signal transmitting tube representing the background light intensity of the measured object;

[0008] (3) Substitute the voltage RTOF_val of the measurement result signals of multiple reference positions, the actual distance from the reference position to the ranging sensor, and the voltage ROBJ_val representing the background light intensity of the measured object into the following formula:

[0009] RM_val=k*(a*RTOF_val+b*RBL_val+c)*ROBJ_val, where k, a, b and c are all proportional coefficients, RM_val is the distance from the measured object to the ranging sensor, and the values ​​of k, a, b and c are obtained by reverse calculation;

[0010] (4) The control module controls the infrared ranging signal transmitting module to transmit a pulse signal to the target object. The control module obtains the voltage RTOF_val of the measurement result signal output by the phase comparison module and the voltage ROBJ_val at both ends of the infrared signal transmitting tube representing the background light intensity of the measured object;

[0011] (5) The control module substitutes the voltage of the background light intensity RBL_val, the voltage of the measurement result signal of the target object RTOF_val, the voltage of the background light intensity of the target object ROBJ_val, k, a, b and c into the above formula RM_val=k*(a*RTOF_val+b*RBL_val+c)*ROBJ_val to calculate the distance RM_val from the target object to the ranging sensor.

[0012] In some embodiments, after step (1), the following steps are also included: placing a reference object in a measurement environment, the control module controlling the infrared ranging signal transmitting module to transmit a pulse signal to the reference object, obtaining a voltage ROBJ_val representing the background light intensity of the reference object at both ends of the infrared signal transmitting tube, comparing the voltage ROBJ_val representing the background light intensity of the reference object with a preset strong light exposure background value RMAX_val, and determining whether ROBJ_val is greater than or equal to RMAX_val; if ROBJ_val is greater than or equal to RMAX_val, continuing to execute step (2); if ROBJ_val is less than RMAX_val, repeating step (1) until ROBJ_val is greater than or equal to RMAX_val.

[0013] In some embodiments, the phase comparison module includes a chip SN74LVC1G80DBVR, pin 1 of the chip SN74LVC1G80DBVR is used to receive an external driving signal, pin 2 of the chip SN74LVC1G80DBVR is connected to a signal shaping module, and pin 4 of the chip SN74LVC1G80DBVR is used to output a measurement result signal.

[0014] In some embodiments, pin 4 of the chip SN74LVC1G80DBVR is connected to a filtering circuit.

[0015] In some embodiments, the infrared ranging signal transmitting module also includes a protection resistor, a drive signal receiving end, a twenty-third resistor and a fourth transistor, the DC power supply, the protection resistor and the anode of the infrared signal transmitting tube are connected in sequence, the cathode of the infrared signal transmitting tube is connected to the collector of the fourth transistor, the emitter of the fourth transistor is grounded, the drive signal receiving end, the twenty-third resistor and the base of the fourth transistor are connected in sequence, and the drive signal receiving end is used to receive an external drive signal.

[0016] In some embodiments, the protection resistor includes a twenty-first resistor and a twenty-second resistor, and the DC power supply, the twenty-first resistor, the twenty-second resistor and the anode of the infrared signal transmitting tube are connected in sequence; the infrared ranging signal transmitting module also includes at least one first filter capacitor and at least one second filter capacitor, the DC power supply, the first filter capacitor and the ground terminal are connected in sequence, and the intermediate node of the twenty-first resistor and the twenty-second resistor, the second filter capacitor and the ground terminal are connected in sequence.

[0017] In some embodiments, the reflected wave receiving module includes a second inductor, an infrared signal receiving tube, a third resistor, at least one third filter capacitor and at least one fourth filter capacitor, the DC power supply, the second inductor and the cathode of the infrared signal receiving tube are connected in sequence, and the anode of the infrared signal receiving tube, the third resistor and the ground terminal are connected in sequence; the DC power supply, the third filter capacitor and the ground terminal are connected in sequence, and the cathode of the infrared signal receiving tube, the fourth filter capacitor and the ground terminal are connected in sequence.

[0018] In some embodiments, the signal amplification module includes a first operational amplifier, a second operational amplifier, a twentieth capacitor, a seventh capacitor, a fourth resistor, a fifth resistor, an eighth resistor, a twelfth resistor, a twenty-first capacitor, a seventh resistor, a ninth resistor, a first resistor and an eleventh resistor; the cathode of the infrared signal receiving tube, the twentieth capacitor, the fourth resistor and the negative input terminal of the first operational amplifier are connected in sequence; the anode of the infrared signal receiving tube, the seventh capacitor, the fifth resistor and the positive input terminal of the first operational amplifier are connected in sequence, and the positive input terminal of the first operational amplifier, the eighth resistor and the ground terminal are connected in sequence; the two ends of the twelfth resistor are respectively connected to the negative input terminal of the first operational amplifier and the output terminal of the first operational amplifier; the output terminal of the first operational amplifier, the twenty-first capacitor, the seventh resistor and the positive input terminal of the second operational amplifier are connected in sequence, and the positive input terminal of the second operational amplifier, the ninth resistor and the ground terminal are connected in sequence; the negative input terminal of the second operational amplifier, the first resistor and the ground terminal are connected in sequence, and the two ends of the eleventh resistor are respectively connected to the negative input terminal of the second operational amplifier and the output terminal of the second operational amplifier.

[0019] In some embodiments, the signal shaping module includes a chip SN74LVC2G14DBVR, pin 1 of the chip SN74LVC2G14DBVR is connected to the signal amplification module, pin 3 of the chip SN74LVC2G14DBVR is connected to pin 6, and pin 4 of the chip SN74LVC2G14DBVR is connected to the phase comparison module.

[0020] The present invention has at least the following beneficial effects: the infrared signal transmitting tube of the present invention is used to transmit a pulse signal to a target object according to an external driving signal. After receiving the pulse signal, the reflected wave receiving module will generate a voltage pulse signal, which is amplified by the signal amplification module and shaped by the signal shaping module and then input into the phase comparison module. The phase comparison module performs phase discrimination processing on the driving signal and the shaped reflected wave signal and outputs a measurement result signal, which represents the distance from the target object to the ranging sensor. This measurement method is not easily interfered by other factors, and the frequency of the pulse signal can be higher, which can improve the accuracy of the measurement result.

[0021] At the same time, it is not easily restricted by factors such as transmission power, and the measurable distance range is wider; the overall circuit structure is simple, which can reduce manufacturing costs and achieve miniaturization of the overall volume of the sensor. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 A schematic diagram of a circuit module of a reflective TOF ranging sensor according to an embodiment of the present invention;

[0023] Figure 2A schematic diagram of the circuit structure of a reflective TOF ranging sensor according to an embodiment of the present invention;

[0024] Figure 3 A schematic diagram of a flow chart of a distance measurement method according to an embodiment of the present invention;

[0025] Figure 4 The figure is a flow chart of a distance measurement method according to another embodiment of the present invention.

[0026] The reference numerals in the drawings are: target object 10 , infrared ranging signal transmitting module 100 , reflected wave receiving module 200 , signal amplifying module 300 , signal shaping module 400 , phase comparison module 500 , and control module 600 . DETAILED DESCRIPTION

[0027] The present invention provides the following description with reference to the accompanying drawings to assist in a comprehensive understanding of various embodiments of the present invention as defined by the claims and their equivalents. The description includes various specific details to assist in understanding, but these details should be considered as exemplary only. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the various embodiments described herein without departing from the scope and spirit of the present invention.

[0028] In the description of the present invention, descriptions of orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the drawings and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0029] It will be understood that when one element (eg, a first element) is “connected” to another element (eg, a second element), the element may be directly connected to the other element or an intervening element (eg, a third element) may be present between the element and the other element.

[0030] An embodiment of the present invention provides a reflective TOF ranging sensor, such as Figure 1 As shown, it includes an infrared ranging signal transmitting module 100, a reflected wave receiving module 200, a signal amplifying module 300, a signal shaping module 400 and a phase comparison module 500. The infrared ranging signal transmitting module 100 includes an infrared signal transmitting tube for transmitting a pulse signal to a target object according to an external driving signal. Since the ranging sensor is usually used in conjunction with external devices such as a controller, the driving signal is sent by these external devices, for example, it can be sent by the control module 600 to indicate the distance from the target object 10 to the ranging sensor to be measured. Among them, the frequency of the driving signal is consistent with the frequency of the pulse signal. In order to improve the measurement accuracy, the period of the driving signal can reach the nanosecond level.

[0031] The reflected wave receiving module 200, the signal amplifying module 300, the signal shaping module 400 and the phase comparison module 500 are connected in sequence. When the infrared pulse signal is emitted to the target object 10, the target object 10 reflects the signal back, and the reflected wave receiving module 200 is used to receive the reflected wave signal reflected by the target object 10. Since this signal is relatively weak, the signal amplifying module 300 amplifies the reflected wave signal. The amplified reflected wave signal is a narrow pulse signal, and its edge may not be ideal, which will affect the subsequent phase comparison. Therefore, the signal shaping module 400 is used to shape the amplified reflected wave signal to make it a more standard square wave pulse signal. Since there must be a phase difference between the driving signal and the reflected wave signal, the phase comparison module 500 is used to receive the shaped reflected wave signal and the driving signal, perform phase discrimination processing on the driving signal and the shaped reflected wave signal and output the measurement result signal, which represents the distance from the target object to the ranging sensor. This measurement method is not easily interfered by other factors, and the frequency of the pulse signal can be higher, which can improve the accuracy of the measurement result.

[0032] At the same time, it is not easily restricted by factors such as transmission power, and the measurable distance range is wider; the overall circuit structure is simple, which can reduce manufacturing costs and achieve miniaturization of the overall volume of the sensor.

[0033] In some embodiments, Figure 2 As shown, the phase comparison module includes the chip SN74LVC1G80DBVR, Figure 2 The chip U2 in the figure is the chip SN74LVC1G80DBVR. Pin 5 of the chip SN74LVC1G80DBVR is connected to the DC power supply VCC, and pin 3 is grounded. Pin 1 of the chip SN74LVC1G80DBVR is used to receive an external drive signal, pin 2 of the chip SN74LVC1G80DBVR is connected to the signal shaping module, and pin 4 of the chip SN74LVC1G80DBVR is used to output a measurement result signal.

[0034] The chip SN74LVC1G80DBVR is used as a D trigger for phase comparison, and outputs a phase detection wave signal whose width is proportional to the phase difference. The larger the width of the phase detection wave signal, the larger the phase difference, and accordingly, the farther the target object is. Conversely, the smaller the width of the phase detection wave signal, the smaller the phase difference, and accordingly, the closer the target object is. The distance of the target object 10 can be calculated through this proportional relationship.

[0035] Furthermore, in order to make the measurement result signal purer, reduce the interference of impurity waves, and improve the accuracy of the final measurement result, the 4 pins of the chip SN74LVC1G80DBVR are connected to a filter circuit. After filtering by the filter circuit, Figure 2 The AD terminal in the outputs an analog voltage signal.

[0036] The filter circuit can be Figure 2 As shown, including resistor R2, resistor R6, capacitor C3 and capacitor C6, 4 pins of chip SN74LVC1G80DBVR, resistor R2, resistor R6 and AD terminal are connected in sequence, the middle node of resistor R2 and resistor R6, capacitor C3 and ground terminal are connected in sequence, resistor R6 and the middle node of AD terminal, capacitor C6 and ground terminal are connected in sequence to form an RC filter circuit. Of course, other feasible filter circuits can also be selected according to actual needs.

[0037] In some embodiments, Figure 2 As shown, the infrared ranging signal transmitting module includes a protection resistor, an infrared signal transmitting tube D4, a drive signal receiving end TXD, a twenty-third resistor R23 and a fourth transistor Q4, a DC power supply, a protection resistor and an anode of the infrared signal transmitting tube are connected in sequence, a cathode of the infrared signal transmitting tube is connected to a collector of the fourth transistor, an emitter of the fourth transistor is grounded, a drive signal receiving end, a twenty-third resistor and a base of the fourth transistor are connected in sequence, and the drive signal receiving end is used to receive an external drive signal.

[0038] The driving signal drives the fourth transistor to be turned on or off. When the fourth transistor is turned on, the infrared signal transmitting tube is powered on and works to emit infrared light. When the fourth transistor is turned off, the infrared signal transmitting tube does not work. The driving signal is a pulse signal, which will cause the infrared signal transmitting tube to emit an infrared pulse signal. The fourth transistor can be an N-type transistor or a P-type transistor, preferably a P-type transistor, so that the driving signal and the infrared pulse signal can have the same level state in the same period.

[0039] Furthermore, the protection resistor includes a twenty-first resistor R21 and a twenty-second resistor R22, and the DC power supply, the twenty-first resistor, the twenty-second resistor and the anode of the infrared signal transmitting tube are connected in sequence; the infrared ranging signal transmitting module also includes at least one first filter capacitor and at least one second filter capacitor, the DC power supply, the first filter capacitor and the ground terminal are connected in sequence, and the intermediate node of the twenty-first resistor and the twenty-second resistor, the second filter capacitor and the ground terminal are connected in sequence, which forms a π-shaped filter circuit, ensures the purity of the DC power supply signal, and provides conditions for the infrared pulse signal to reach the nanosecond level.

[0040] At the same time, the DC power supply can use the interval time of transmitting infrared signals to charge the first filter capacitor and the second filter capacitor. When the infrared signal transmitting tube transmits infrared signals, the capacitor provides the transmitting power to reduce the disturbance of the burst infrared transmitting power to the power supply.

[0041] like Figure 2 As shown, two first filter capacitors can be used, namely C10 and C11, and two second filter capacitors can also be used, namely C12 and C13.

[0042] In some embodiments, Figure 2 As shown, the reflected wave receiving module includes a second inductor L2, an infrared signal receiving tube D3, a third resistor R3, at least one third filter capacitor and at least one fourth filter capacitor, a DC power supply, a second inductor and a cathode of the infrared signal receiving tube are connected in sequence, and an anode of the infrared signal receiving tube, a third resistor and a ground terminal are connected in sequence; a DC power supply, a third filter capacitor and a ground terminal are connected in sequence, and a cathode of the infrared signal receiving tube, a fourth filter capacitor and a ground terminal are connected in sequence.

[0043] When the infrared signal receiving tube receives the infrared pulse signal, it will produce a resistance change, which forms a voltage divider with the resistor R3. Therefore, this resistance change will form a voltage disturbance, making the voltage at both ends of the infrared signal receiving tube form a tiny pulse signal. The second inductor, the third filter capacitor and the fourth filter capacitor form a π-shaped LC filter circuit, making the DC voltage purer, reducing the interference of impurity waves, improving the accuracy of the final measurement results, and also providing conditions for the pulse signal to reach the nanosecond level.

[0044] like Figure 2 As shown, two third filter capacitors can be used, namely C5 and C2, and two fourth filter capacitors can also be used, namely C1 and C4.

[0045] Further, the signal amplification module includes a first operational amplifier U6, a second operational amplifier U5, a twentieth capacitor C20, a seventh capacitor C7, a fourth resistor R4, a fifth resistor R5, an eighth resistor R8, a twelfth resistor R12, a twenty-first capacitor C21, a seventh resistor R7, a ninth resistor R9, a first resistor R1 and an eleventh resistor R11. The cathode of the infrared signal receiving tube, the twentieth capacitor, the fourth resistor and the negative input terminal of the first operational amplifier are connected in sequence; the anode of the infrared signal receiving tube, the seventh capacitor, the fifth resistor and the positive input terminal of the first operational amplifier are connected in sequence, and the positive input terminal of the first operational amplifier, the eighth resistor and the ground terminal are connected in sequence; the two ends of the twelfth resistor are respectively connected to the negative input terminal of the first operational amplifier and the output terminal of the first operational amplifier; the output terminal of the first operational amplifier, the twenty-first capacitor, the seventh resistor and the positive input terminal of the second operational amplifier are connected in sequence, and the positive input terminal of the second operational amplifier, the ninth resistor and the ground terminal are connected in sequence; the negative input terminal of the second operational amplifier, the first resistor and the ground terminal are connected in sequence, and the two ends of the eleventh resistor are respectively connected to the negative input terminal of the second operational amplifier and the output terminal of the second operational amplifier.

[0046] This embodiment adopts a two-stage amplification circuit structure, which can achieve more than 100,000 times amplification, and finally obtain a square wave pulse signal. The operational amplifier should have sufficient high-frequency bandwidth and extremely small input error, preferably an operational amplifier above 1GHz, with an input offset of 10uV.

[0047] In some embodiments, Figure 2 As shown, the signal shaping module includes chip U4, which is chip SN74LVC2G14DBVR. Pin 5 of chip SN74LVC2G14DBVR is connected to a DC power supply, pin 2 is grounded, pin 1 of chip SN74LVC2G14DBVR is connected to the signal amplification module, pin 3 of chip SN74LVC2G14DBVR is connected to pin 6, and pin 4 of chip SN74LVC2G14DBVR is connected to the phase comparison module.

[0048] The chip SN74LVC2G14DBVR forms a Schmitt trigger, which can increase the steepness of the leading edge of the pulse waveform, making it closer to a standard square wave pulse signal.

[0049] The embodiment of the present invention also provides a distance measurement method using the reflective TOF distance measurement sensor of any of the above embodiments. The specific description of the reflective TOF distance measurement sensor can refer to the above embodiments and will not be repeated here. In specific applications, the distance measurement sensor is connected to a control module, and the control module may include a single-chip microcomputer chip, a programmable logic device, etc. Figure 3 As shown, the ranging method includes the following steps:

[0050] (1) The control module samples the voltage RBL_val representing the background light intensity at both ends of the infrared signal transmitting tube. The light intensity of the measurement environment of the ranging sensor is the background light intensity. The control module can be directly connected to the two ends of the infrared signal receiving tube to directly sample the voltage at both ends of the infrared signal receiving tube, or the control module can be connected to the signal amplification module to sample the voltage of the output signal of the signal amplification module and reversely calculate the voltage at both ends of the infrared signal receiving tube based on the voltage.

[0051] (2) The reference object is placed at multiple reference positions within the effective measurement range. The control module controls the infrared ranging signal transmitting module to transmit a pulse signal to the reference object each time, that is, to transmit a pulse signal to the reference object at each reference position. The control module obtains the voltage RTOF_val of the measurement result signal output by the phase comparison module for each reference position, the actual distance from the reference position to the ranging sensor, and the voltage ROBJ_val at both ends of the infrared signal transmitting tube representing the background light intensity of the measured object.

[0052] The reference position needs to be within the effective measurement range of the ranging sensor, otherwise the reference object cannot be measured. At each reference position, the control module sends a driving signal to the infrared ranging signal transmitting module to control the infrared ranging signal transmitting module to transmit a pulse signal to the reference object. After the reflected wave receiving module receives the reflected wave signal, the signal amplification module performs signal amplification, the signal shaping module performs signal shaping, and the phase comparison module performs phase discrimination processing on the driving signal and the shaped reflected wave signal and outputs the measurement result signal. At the same time, the control module also samples the voltage ROBJ_val at both ends of the infrared signal transmitting tube that represents the background light intensity of the measured object (the measured object here is the reference object, so it also represents the background light intensity of the reference object). The actual distance from the reference position to the ranging sensor is known or can be measured in other ways. This position is relatively more accurate. Since there are multiple reference positions, at each reference position, there is a voltage RTOF_val of the measurement result signal, the actual distance from the reference position to the ranging sensor, and a voltage ROBJ_val that represents the background light intensity of the measured object.

[0053] The reference object can be placed at a position 15° to the left of the ranging sensor and 1 meter away from the ranging sensor, or at a position 15° to the right of the ranging sensor and 1 meter away from the ranging sensor. Of course, the reference object can also be placed at other positions.

[0054] (3) Substitute the voltage RTOF_val of the measurement result signals of multiple reference positions, the actual distance from the reference position to the ranging sensor, and the voltage ROBJ_val representing the background light intensity of the measured object into the following formula:

[0055] RM_val=k*(a*RTOF_val+b*RBL_val+c)*ROBJ_val, where k, a, b and c are all proportional coefficients, RM_val is the distance from the measured object to the ranging sensor, and the values ​​of k, a, b and c are obtained by reverse calculation, which are used for the subsequent calculation of the distance from the target object to the ranging sensor.

[0056] (4) The control module controls the infrared ranging signal transmitting module to transmit a pulse signal to the target object. The control module obtains the voltage RTOF_val of the measurement result signal output by the phase comparison module and the voltage ROBJ_val at both ends of the infrared signal transmitting tube representing the background light intensity of the measured object.

[0057] After calculating the values ​​of k, a, b and c many times, the control module sends a driving signal to the infrared ranging signal transmitting module, controls the infrared ranging signal transmitting module to formally transmit a pulse signal to the target object, and after the reflected wave receiving module receives the reflected wave signal, the signal amplification module amplifies the signal, and the signal shaping module shapes the signal. The phase comparison module then performs phase discrimination processing on the driving signal and the shaped reflected wave signal and outputs the measurement result signal. The control module can obtain the voltage RTOF_val of the measurement result signal, and at the same time, sample the voltage ROBJ_val at both ends of the infrared signal transmitting tube, which represents the background light intensity of the measured object (the measured object here is the target object, so it also represents the background light intensity of the target object).

[0058] (5) The control module substitutes the voltage of the background light intensity RBL_val, the voltage of the measurement result signal of the target object RTOF_val, the voltage of the background light intensity of the target object ROBJ_val, k, a, b and c into the above formula to calculate the distance RM_val from the target object to the ranging sensor.

[0059] Since the voltage RBL_val representing the background light intensity, the voltage RTOF_val of the measurement result signal for the target, the voltage ROBJ_val of the target background light intensity, k, a, b and c are all known, substitute into the above formula RM_val=k*(a*RTOF_val+b*RBL_val+c)*ROBJ_val to calculate the distance RM_val from the target to the ranging sensor.

[0060] In some embodiments, Figure 4As shown, after step (1), the following steps are also included: placing a reference object in a measurement environment, the control module controlling the infrared ranging signal transmitting module to transmit a pulse signal to the reference object, obtaining a voltage ROBJ_val representing the background light intensity of the reference object at both ends of the infrared signal transmitting tube, comparing the voltage ROBJ_val representing the background light intensity of the reference object with a preset strong light exposure background value RMAX_val, and determining whether ROBJ_val is greater than or equal to RMAX_val. If ROBJ_val is greater than or equal to RMAX_val, continue to execute step (2); if ROBJ_val is less than RMAX_val, repeat step (1) until ROBJ_val is greater than or equal to RMAX_val.

[0061] Since the interference of background light can affect the measurement results, the present embodiment can determine the validity of the background light. The strong light exposure background value RMAX_val is set as the set value, and ROBJ_val is compared with RMAX_val. If ROBJ_val is greater than or equal to RMAX_val, it means that the current measurement environment is effective background light, and then continue to execute step (2) and its subsequent steps. If ROBJ_val is less than RMAX_val, it means that the background light of the current measurement environment is invalid, and then step (2) and its subsequent steps are no longer executed, but step (1) is repeated. The measurement personnel need to change the measurement environment. If ROBJ_val changes to be greater than or equal to RMAX_val, it means that the current measurement environment has changed and has effective background light, and then continue to execute step (2) and its subsequent steps.

[0062] The terms and words used in the above description and claims are not limited to the literal meanings, but are only used by the applicant to enable a clear and consistent understanding of the present invention. Therefore, it should be clear to those skilled in the art that the above description of various embodiments of the present invention is provided only for illustration, and not for limiting the present invention as defined by the attached claims and their equivalents.

Claims

1. A distance measurement method using a reflective TOF distance measurement sensor, characterized in that: The reflective TOF ranging sensor is connected to a control module, and comprises an infrared ranging signal transmitting module, a reflected wave receiving module, a signal amplifying module, a signal shaping module and a phase comparison module; the infrared ranging signal transmitting module comprises an infrared signal transmitting tube for transmitting a pulse signal to a target object according to an external driving signal; the reflected wave receiving module, the signal amplifying module, the signal shaping module and the phase comparison module are connected in sequence, the reflected wave receiving module is used to receive a reflected wave signal reflected by a target object, the signal amplifying module is used to amplify the reflected wave signal, the signal shaping module is used to shape the amplified reflected wave signal, and the phase comparison module is used to receive the shaped reflected wave signal and the driving signal, perform phase discrimination processing on the driving signal and the shaped reflected wave signal and output a measurement result signal; the method comprises the following steps: (1) The control module samples the voltage RBL_val at both ends of the infrared signal transmitting tube, which represents the background light intensity; (2) The reference object is placed at multiple reference positions within the effective measurement range. The control module controls the infrared ranging signal transmitting module to transmit a pulse signal to the reference object each time. The control module obtains the voltage RTOF_val of the measurement result signal output by the phase comparison module for each reference position, the actual distance from the reference position to the ranging sensor, and the voltage ROBJ_val at both ends of the infrared signal transmitting tube representing the background light intensity of the measured object; (3) Substitute the voltage RTOF_val of the measurement result signals of multiple reference positions, the actual distance from the reference position to the ranging sensor, and the voltage ROBJ_val representing the background light intensity of the measured object into the following formula: RM_val=k*(a*RTOF_val+b*RBL_val+c)*ROBJ_val, where k, a, b and c are all proportional coefficients, RM_val is the distance from the measured object to the ranging sensor, and the values ​​of k, a, b and c are obtained by reverse calculation; (4) The control module controls the infrared ranging signal transmitting module to transmit a pulse signal to the target object. The control module obtains the voltage RTOF_val of the measurement result signal output by the phase comparison module and the voltage ROBJ_val at both ends of the infrared signal transmitting tube representing the background light intensity of the measured object; (5) The control module substitutes the voltage of the background light intensity RBL_val, the voltage of the measurement result signal of the target object RTOF_val, the voltage of the background light intensity of the target object ROBJ_val, k, a, b and c into the above formula RM_val=k*(a*RTOF_val+b*RBL_val+c)*ROBJ_val to calculate the distance RM_val from the target object to the ranging sensor.

2. The distance measurement method using a reflective TOF distance measurement sensor according to claim 1, characterized in that: After step (1), the following steps are also included: placing a reference object in a measurement environment, the control module controlling the infrared ranging signal transmitting module to transmit a pulse signal to the reference object, obtaining a voltage ROBJ_val representing the background light intensity of the reference object at both ends of the infrared signal transmitting tube, comparing the voltage ROBJ_val representing the background light intensity of the reference object with a preset strong light exposure background value RMAX_val, and determining whether ROBJ_val is greater than or equal to RMAX_val; if ROBJ_val is greater than or equal to RMAX_val, continuing to execute step (2); if ROBJ_val is less than RMAX_val, repeating step (1) until ROBJ_val is greater than or equal to RMAX_val.

3. According to the ranging method using a reflective TOF ranging sensor according to claim 1, the phase comparison module includes a chip SN74LVC1G80DBVR, a pin 1 of the chip SN74LVC1G80DBVR is used to receive an external driving signal, a pin 2 of the chip SN74LVC1G80DBVR is connected to a signal shaping module, and a pin 4 of the chip SN74LVC1G80DBVR is used to output a measurement result signal.

4. According to the distance measurement method using the reflective TOF distance measurement sensor according to claim 3, the 4 pins of the chip SN74LVC1G80DBVR are connected with a filtering circuit.

5. The ranging method using a reflective TOF ranging sensor according to claim 1, wherein the infrared ranging signal transmitting module further comprises a protection resistor, a drive signal receiving end, a twenty-third resistor and a fourth triode, a DC power supply, a protection resistor and an anode of an infrared signal transmitting tube are connected in sequence, a cathode of the infrared signal transmitting tube is connected to a collector of the fourth triode, an emitter of the fourth triode is grounded, and the drive signal receiving end, the twenty-third resistor and a base of the fourth triode are connected in sequence, and the drive signal receiving end is used to receive an external drive signal.

6. The ranging method using a reflective TOF ranging sensor according to claim 5, wherein the protection resistor comprises a twenty-first resistor and a twenty-second resistor, and the DC power supply, the twenty-first resistor, the twenty-second resistor and the anode of the infrared signal transmitting tube are connected in sequence; the infrared ranging signal transmitting module also comprises at least one first filter capacitor and at least one second filter capacitor, the DC power supply, the first filter capacitor and the ground terminal are connected in sequence, and the intermediate node of the twenty-first resistor and the twenty-second resistor, the second filter capacitor and the ground terminal are connected in sequence.

7. The ranging method using a reflective TOF ranging sensor according to claim 1, wherein the reflected wave receiving module comprises a second inductor, an infrared signal receiving tube, a third resistor, at least one third filter capacitor and at least one fourth filter capacitor, a DC power supply, a second inductor and a cathode of the infrared signal receiving tube are connected in sequence, and an anode, a third resistor and a ground terminal of the infrared signal receiving tube are connected in sequence; the DC power supply, the third filter capacitor and a ground terminal are connected in sequence, and a cathode, a fourth filter capacitor and a ground terminal of the infrared signal receiving tube are connected in sequence.

8. The distance measuring method using a reflective TOF distance measuring sensor according to claim 7, wherein the signal amplifying module comprises a first operational amplifier, a second operational amplifier, a twentieth capacitor, a seventh capacitor, a fourth resistor, a fifth resistor, an eighth resistor, a twelfth resistor, a twenty-first capacitor, a seventh resistor, a ninth resistor, a first resistor and an eleventh resistor; the cathode of the infrared signal receiving tube, the twentieth capacitor, the fourth resistor and the negative input terminal of the first operational amplifier are connected in sequence; the anode of the infrared signal receiving tube, the seventh capacitor, the fifth resistor and the positive input terminal of the first operational amplifier are connected in sequence, and the first operational amplifier is connected in sequence. The positive input terminal of the operational amplifier, the eighth resistor and the ground terminal are connected in sequence; the two ends of the twelfth resistor are respectively connected to the negative input terminal of the first operational amplifier and the output terminal of the first operational amplifier; the output terminal of the first operational amplifier, the twenty-first capacitor, the seventh resistor and the positive input terminal of the second operational amplifier are connected in sequence, and the positive input terminal of the second operational amplifier, the ninth resistor and the ground terminal are connected in sequence; the negative input terminal of the second operational amplifier, the first resistor and the ground terminal are connected in sequence, and the two ends of the eleventh resistor are respectively connected to the negative input terminal of the second operational amplifier and the output terminal of the second operational amplifier.

9. The distance measurement method using a reflective TOF distance measurement sensor according to claim 1, wherein the signal shaping module comprises a chip SN74LVC2G14DBVR, wherein pin 1 of the chip SN74LVC2G14DBVR is connected to a signal amplification module, pin 3 of the chip SN74LVC2G14DBVR is connected to pin 6, and pin 4 of the chip SN74LVC2G14DBVR is connected to a phase comparison module.