Infrared transistor detection circuit and infrared transistor detection equipment

By outputting different voltages when the infrared emitting module is working and not working, and using the LDO power supply module and control circuit for analog-to-digital conversion to calculate the AD correction difference, the problem of infrared photodiode detection failure in strong light environment is solved, achieving higher accuracy and anti-interference capability.

CN123113019APending Publication Date: 2026-11-17SHENZHEN ASCHIP TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611259886.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-19
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

Existing infrared photodetector detection solutions struggle to accurately distinguish between ambient light and occlusion events under strong ambient light interference, leading to detection failure.

Method used

By outputting different voltages when the infrared transmitting module is working and not working, the analog-to-digital conversion is performed using the LDO power supply module and control circuit, and the AD correction difference is calculated to determine whether the infrared receiving module is blocked.

Benefits of technology

It improves the accuracy and anti-interference capability of infrared detection circuits in strong light environments, effectively distinguishes between ambient light and occlusion events, and ensures the reliability and accuracy of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123113019A_ABST
    Figure CN123113019A_ABST
Patent Text Reader

Abstract

This application discloses an infrared photodiode detection circuit and an infrared photodiode detection device. The infrared photodiode detection circuit includes: an LDO power supply module; a control circuit; an infrared emitting module; and an infrared receiving module. When the control circuit controls the infrared emitting module to be in a working state and in a stopped state, the output terminal of the LDO power supply module outputs a first voltage and a second voltage, respectively. The control module performs analog-to-digital conversion on the received detection signal and sets it as a first AD value and a second AD value, respectively. The difference between the second voltage and the first voltage is a preset voltage value. Based on the first voltage and the second voltage, a third AD value corresponding to the first AD value when the voltage at the output terminal of the LDO power supply module is the second voltage is determined. The second AD value is subtracted from the third AD value to obtain an AD correction difference. Based on the AD correction difference, it is determined whether the infrared receiving module is blocked. This application aims to improve the accuracy and anti-interference capability of infrared photodiode detection in strong light environments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of infrared detection technology, and in particular to an infrared pair detection circuit and an infrared pair detection device. Background Technology

[0002] In existing infrared photodiode detection schemes, strong ambient light interference is typically addressed by controlling the switching on and off of the infrared emitter to eliminate its effects. However, in actual circuits, the operating parameters and states of the infrared photodiode differ, making it difficult to use the detected ambient values ​​from both states as reference values, which can easily lead to detection failures. Summary of the Invention

[0003] The main objective of this invention is to provide an infrared photodiode detection circuit, which aims to improve the accuracy and anti-interference capability of infrared photodiode detection under strong light conditions.

[0004] To achieve the above objectives, the present invention proposes an infrared photodiode detection circuit, the infrared photodiode detection circuit comprising: The LDO power supply module has its input terminal electrically connected to an external power source; the LDO power supply module is used to regulate the voltage input to its input terminal and output it through its output terminal. A control circuit, wherein the power supply terminal of the control circuit is electrically connected to the output terminal of the LDO power supply module; An infrared emitting module, wherein the first end of the infrared emitting module is electrically connected to the output end of the LDO power supply module, and the controlled end of the infrared emitting module is electrically connected to the control signal output end of the control circuit; An infrared receiving module, wherein the first end of the infrared receiving module is electrically connected to the output end of the LDO power supply module, and the output end of the infrared receiving module is electrically connected to the detection signal input end of the control circuit, for outputting a detection signal to the control circuit; When the control circuit controls the infrared emitting module to be in working state, the output terminal of the LDO power supply module outputs a first voltage; When the control circuit controls the infrared emitting module to be in a stopped working state, the output terminal of the LDO power supply module outputs a second voltage; The second voltage is greater than the first voltage, and the difference between the second voltage and the first voltage is a preset voltage value; The control circuit is configured to perform the following method: When the infrared emitting module is in working condition, the received detection signal is converted from analog to digital and set as the first AD value; When the infrared emitting module is in a stopped state, the received detection signal is converted from analog to digital and set as a second AD value; Based on the first voltage and the second voltage, determine the third AD value corresponding to the first AD value when the voltage at the output terminal of the LDO power supply module is the second voltage; Subtract the third AD value from the second AD value to obtain the AD correction difference; Based on the AD correction difference, it is determined whether the infrared receiving module is blocked.

[0005] In one embodiment, the step of determining whether the infrared receiving module is blocked based on the AD correction difference includes: In response to the AD correction difference being higher than a preset threshold and the second AD value being less than the third AD value, it is determined that the infrared receiving module is blocked; In response to the AD correction difference being lower than a preset threshold, it is determined that the infrared receiving module is not blocked.

[0006] In one embodiment, the control circuit is further configured to output a rectangular wave signal to the controlled end of the infrared emitting module to control the infrared emitting module to switch between a stopped working state and a working state multiple times.

[0007] In one embodiment, the rectangular wave signal is a PWM signal, and a high-level signal and a low-level signal exist within one cycle of the PWM signal; Specifically, when the rectangular wave signal is a high-level signal, the infrared emitting module is in the working state; when the rectangular wave signal is a low-level signal, the infrared emitting module is in the non-working state. The control circuit is further configured to perform the following method: when the difference between the second voltage and the first voltage and the difference between the preset voltage value reaches a first preset difference, adjust the duty cycle of the output PWM signal so that the difference between the second voltage and the first voltage and the preset voltage value is less than the first preset difference.

[0008] In one embodiment, when the difference between the second voltage and the first voltage and the preset voltage value reaches a first preset difference, adjusting the duty cycle of the output PWM signal includes: If the difference between the second voltage and the first voltage is greater than the first preset difference, and the difference between the difference between the second voltage and the first voltage and the preset voltage value reaches the first preset difference, the duty cycle of the output PWM signal is reduced. When the difference between the second voltage and the first voltage is less than the first preset difference, and the difference between the difference between the second voltage and the first voltage and the preset voltage value reaches the first preset difference, the duty cycle of the output PWM signal is increased.

[0009] In one embodiment, the control circuit is further configured to: determine the distance between the infrared receiving module and the obstruction based on the AD correction difference when it is determined that the infrared receiving module is blocked.

[0010] In one embodiment, the LDO power supply module includes: The first current-limiting resistor has its first end electrically connected to an external power source for connecting to an external power source. The LDO chip has its input terminal electrically connected to the second terminal of the first current-limiting resistor. A first resistor, the first end of which is electrically connected to the second end of the first current-limiting resistor, and the second end of which is electrically connected to the output terminal of the LDO chip; A first capacitor, the first terminal of which is electrically connected to the input terminal of the LDO chip, and the second terminal of which is grounded; The second capacitor has its first terminal electrically connected to the output terminal of the LDO chip, and its second terminal grounded.

[0011] In one embodiment, the infrared emitting module includes: A switching assembly, wherein the controlled end of the switching assembly is electrically connected to the control circuit, and is controlled to be turned on and off by the rectangular wave signal output by the control circuit, thereby controlling the infrared emitting module to switch between a stopped working state and a working state multiple times. An infrared emitting tube, wherein the cathode of the infrared emitting tube is electrically connected to the output terminal of the switching assembly, and is used to be turned on and off under the control of the switching assembly, and emits infrared light outward when turned on; The second current-limiting resistor has its first end electrically connected to the output terminal of the LDO power supply module and its second end electrically connected to the anode of the infrared emitting diode. The second current-limiting resistor has a small resistance value and is used to allow a large peak current to pass through when the infrared emitting diode is turned on.

[0012] In one embodiment, the infrared receiving module includes: an infrared receiving tube and a filter voltage divider circuit; The first end of the infrared receiver is electrically connected to the output end of the LDO power supply module, and the second end of the infrared receiver is electrically connected to the filter voltage divider circuit. The infrared receiver tube is used to receive infrared light and change its equivalent impedance according to the change in the intensity of the received infrared light. The filter voltage divider circuit includes a third capacitor and a second resistor and a third resistor connected in parallel with the third capacitor; The second terminal of the filter voltage divider circuit is electrically connected to the control circuit, and is used to convert the equivalent impedance change of the infrared receiver tube caused by the change in light into a corresponding analog electrical signal, which is then output to the control circuit as a detection signal.

[0013] The present invention also proposes an infrared pair detection device, comprising an infrared pair detection circuit as described in any of the above claims.

[0014] This invention employs an infrared transistor detection circuit, comprising: an LDO power supply module, the input of which is electrically connected to an external power source; an LDO power supply module for regulating the voltage input to its input and outputting it through its output; a control circuit, the power supply terminal of which is electrically connected to the output terminal of the LDO power supply module; an infrared emitting module, the first terminal of which is electrically connected to the output terminal of the LDO power supply module, and the controlled terminal of which is electrically connected to the control signal output terminal of the control circuit; and an infrared receiving module, the first terminal of which is electrically connected to the output terminal of the LDO power supply module, and the output terminal of which is electrically connected to the detection signal input terminal of the control circuit, for outputting a detection signal to the control circuit; wherein, when the control circuit controls the infrared emitting module to be in an operating state, the LDO power supply module... The LDO power supply module outputs a first voltage at its output terminal; when the control circuit controls the infrared emitting module to be in a stopped working state, the LDO power supply module outputs a second voltage; the second voltage is greater than the first voltage, and the difference between the second voltage and the first voltage is a preset voltage value; the control circuit is configured to perform the following method: when the infrared emitting module is in a working state, perform analog-to-digital conversion on the received detection signal and set it as a first AD value; when the infrared emitting module is in a stopped working state, perform analog-to-digital conversion on the received detection signal and set it as a second AD value; based on the first voltage and the second voltage, determine a third AD value corresponding to the first AD value when the voltage at the output terminal of the LDO power supply module is the second voltage; subtract the third AD value from the second AD value to obtain an AD correction difference; based on the AD correction difference, determine whether the infrared receiving module is blocked.

[0015] Thus, for reference Figure 1When the infrared emitting module is in operating mode and in a stopped mode, the LDO power supply module outputs a first voltage and a second voltage, respectively. The control circuit performs analog-to-digital conversion on the received detection signals and sets them as a first AD value and a second AD value. The difference between the second voltage and the first voltage is controlled at a preset constant value. Thus, the control circuit can convert the first AD value corresponding to the first voltage into a third AD value corresponding to the second voltage. Subtracting the third AD value from the second AD value yields the AD correction difference, which is used to determine whether the infrared receiving module is blocked. Through the above settings, this application converts and unifies the different AD values ​​detected by the control module under different operating states of the infrared emitting module to the same voltage reference for comparison, effectively improving the accuracy and anti-interference capability of the infrared detection circuit. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.

[0017] Figure 1 This is a schematic diagram of a module of an embodiment of the infrared photodiode detection circuit of the present invention; Figure 2 This is a schematic diagram illustrating an embodiment of the infrared transistor detection circuit of the present invention for determining whether the infrared receiving module is blocked; Figure 3 This is a schematic diagram of the control circuit adjusting the duty cycle of the PWM signal in an embodiment of the infrared photodiode detection circuit of the present invention; Figure 4 This is a schematic diagram of an LDO voltage regulator module circuit according to an embodiment of the infrared photodiode detection circuit of the present invention; Figure 5 This is a schematic diagram of other module circuits in one embodiment of the infrared photodiode detection circuit of the present invention.

[0018] Explanation of icon numbers: 01. LDO voltage regulator module; 02. Control circuit; 03. Infrared transmitting module; 04. Infrared receiving module.

[0019] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0020] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.

[0021] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indication will also change accordingly.

[0022] Furthermore, the use of terms such as "first" and "second" in this invention is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of that feature. Additionally, the technical solutions of the various embodiments can be combined with each other, but only on the basis of being achievable by those skilled in the art. When the combination of technical solutions is contradictory or impossible to implement, such a combination of technical solutions should be considered non-existent and not within the scope of protection claimed by this invention.

[0023] In existing infrared photodiode detection schemes, strong ambient light interference is typically addressed by controlling the switching on and off of the infrared emitting diode LED1 to eliminate its effects. However, in actual circuits, the operating parameters and states of the infrared photodiode differ, making it difficult to use the detected environmental values ​​from both states as reference values, which can easily lead to detection failures.

[0024] Therefore, this application proposes an infrared photodiode detection circuit for use in strong light environments. It should be understood that the infrared detection circuit of this application determines the current environment. For example, it uses the second AD value corresponding to the period when the infrared emitting module stops working to determine whether the current environment is strong light. If the second AD value reaches half of the full-scale AD value at this time, it is determined that the current environment is strong light, and the detection method of the infrared photodiode detection circuit in this application is executed.

[0025] The infrared photodiode detection circuit proposed in this application includes: an LDO power supply module 01, the input terminal of which is electrically connected to an external power supply; the LDO power supply module 01 is used to regulate the voltage connected to its input terminal and output it through its output terminal. Control circuit 02, the power supply terminal of the control circuit 02 is electrically connected to the output terminal of the LDO power supply module 01; Infrared emitting module 03, the first end of which is electrically connected to the output end of LDO power supply module 01, and the controlled end of infrared emitting module 03 is electrically connected to the control signal output end of control circuit 02; Infrared receiving module 04, the first end of which is electrically connected to the output end of LDO power supply module 01, and the output end of infrared receiving module 04 is electrically connected to the detection signal input end of control circuit 02, for outputting detection signal to control circuit 02; Alternatively, the LDO power supply module 01 can be implemented using an integrated voltage regulator chip and the necessary peripheral circuitry.

[0026] Optionally, the control circuit 02 can be implemented using a controller and its required peripheral circuits, such as MCU, PLC, DSP (Digital Signal Processor), SOC (System-on-Chip), FPGA (Field-Programmable Gate Array), etc.

[0027] In this embodiment, reference Figure 1 The infrared emitting module 03, controlled by the control circuit 02, switches its working state. When in working state, it emits infrared light. The infrared receiving module 04 performs photoelectric conversion on the received infrared light, generating a corresponding analog electrical signal as a detection signal, which is then output to the control circuit 02. In this way, the control circuit 02 can detect the working state of the infrared transmitter in real time and determine whether there is an object obstructing the light.

[0028] Optionally, according to some embodiments of this application, refer to Figure 1 In one embodiment of this application, when the control circuit 02 controls the infrared emitting module 03 to be in working state, the output terminal of the LDO power supply module 01 outputs a first voltage; When the control circuit 02 controls the infrared emitting module 03 to be in a stopped working state, the output terminal of the LDO power supply module 01 outputs a second voltage; The second voltage is greater than the first voltage, and the difference between the second voltage and the first voltage is a preset voltage value; Optionally, refer to Figure 4 In this embodiment, the LDO power supply module 01 includes: a first current-limiting resistor R1, the first end of which is electrically connected to an external power source for connecting to an external power source; The LDO chip has its input terminal electrically connected to the second terminal of the first current-limiting resistor R1. The first resistor R2 has its first end electrically connected to the second end of the first current-limiting resistor R1, and its second end is electrically connected to the output terminal of the LDO chip. The first capacitor C1 has its first terminal electrically connected to the input terminal of the LDO chip, and its second terminal grounded. The second capacitor C2 has its first terminal electrically connected to the output terminal of the LDO chip, and its second terminal grounded. In this embodiment, after the external power supply is connected through the first current-limiting resistor R1, it has two different power supply methods. The first method is to provide power through LDO regulation. The external power supply enters the input terminal of the LDO chip through the first current-limiting resistor R1. After being regulated by the LDO chip, it is output from the output terminal of the LDO chip to power the back-end module. The second method is direct power supply. The external DC power supply, after passing through the first current-limiting resistor R1, does not pass through the LDO chip, but is directly output through the first resistor R2 to power the back-end negative module.

[0029] Alternatively, the first resistor R2 can be implemented using a zero-ohm jumper resistor; Optionally, the first capacitor C1 and the second capacitor C2 can be implemented using ceramic capacitors, tantalum capacitors, electrolytic capacitors, etc.; the first capacitor C1 is used to filter out high-frequency ripple and noise introduced by the external power supply, and to provide a stable input voltage for the LDO chip; the second capacitor C2 is used to smooth the output voltage of the LDO chip.

[0030] In one example, the first current-limiting resistor R1 is set to 10Ω, the first capacitor C1 and the second capacitor C2 are set to 10μF. Based on the above component parameters and through multiple tests, those skilled in the art set the first voltage corresponding to the working state of the infrared emitting module to 3.3V and the second voltage corresponding to the working state of the infrared emitting module to 5V. The preset voltage value corresponding to the difference between the two is 1.7V.

[0031] Through the above settings, a clear voltage difference is established between the supply voltage corresponding to the operating state and the non-operating state of the infrared emitting module. This facilitates the control circuit in clearly identifying the voltage changes between the two operating states during sampling, and the voltage difference meets the voltage amplitude range required for the normal operation of the control circuit. Simultaneously, this preset voltage difference also provides a definite reference coefficient for the subsequent control circuit to normalize and correct the AD value during the conduction period.

[0032] It is important to understand that under strong ambient light conditions, the infrared receiver module 04 is prone to saturation due to excessive light intensity. The large current surge at the moment the transmitter tube turns on causes a momentary drop in the system supply voltage, resulting in a discrepancy between the ADC reference in the on-state and the off-state. If the difference between the two sampled ADC values ​​is directly compared, the result will contain errors caused by the reference offset, making it difficult to accurately distinguish between changes in ambient light and actual occlusion events. Therefore, an occlusion determination method that can effectively eliminate the aforementioned interference is needed.

[0033] Optionally, according to some embodiments of this application, refer to Figure 1 In one embodiment of this application, the control circuit 02 is configured to perform the following method: When the infrared emitting module 03 is in working condition, the received detection signal is converted from analog to digital and set as the first AD value; When the infrared emitting module 03 is in a stopped working state, the received detection signal is converted from analog to digital and set as the second AD value; Based on the first voltage and the second voltage, determine the third AD value corresponding to the first AD value when the voltage at the output terminal of the LDO power supply module 01 is the second voltage; Subtract the third AD value from the second AD value to obtain the AD correction difference; Based on the AD correction difference, it is determined whether the infrared receiving module 04 is blocked.

[0034] Optionally, in this embodiment, the third AD value can be obtained by multiplying the first AD value by the ratio of the first voltage to the second voltage.

[0035] By correcting the first AD value corresponding to the working period of the infrared emitting module 03 as described above, the final AD correction difference truly reflects the degree of obstruction of solar infrared radiation by the obstruction after eliminating the influence of power supply voltage fluctuations, effectively improving the accuracy and anti-interference capability of the infrared detection circuit.

[0036] It is understood that, based on the above embodiments, the second AD value corresponding to the period when the infrared emitting module stops working reflects the current ambient light intensity. This application divides the detection scene according to this second AD value and adaptively adopts different judgment strategies.

[0037] When the second AD value is much less than half of the full-scale AD value, it indicates that the ambient light is weak. At this time, since the power supply voltage drop is small, the difference between the AD value reference during the working period and the non-working period of the infrared emitting module can be ignored. The control circuit directly uses the original AD difference for judgment, which simplifies the calculation process and reduces the processing overhead while ensuring detection accuracy.

[0038] When the second AD value is in the transition range approaching half of the full-scale AD value, it indicates that the current environment is a low-light transition scene. At this time, the control circuit adopts a stepped baseline iteration strategy: retain the previous state, such as the second AD value of the previous sampling period, and compare it with the current second AD value. Based on the comparison result, the current stepped state is divided. After each comparison, the current second AD value is updated to the second AD value used for comparison in the previous state of the next period, realizing real-time iteration of the baseline. Each stepped state corresponds to its own independent AD difference threshold. This threshold can be preset by the R&D personnel based on actual test data and stored in the control circuit. It is used to determine occlusion under different ambient light intensities, thereby effectively dealing with the baseline drift problem in the process of transitioning from low light to strong light and ensuring the detection stability of the system when the ambient light changes slowly.

[0039] When the second AD value reaches half of the full-scale value of AD, it is determined that the current environment is a strong light environment, and the detection method of the infrared photodiode detection circuit in this application is executed.

[0040] Understandably, reference Figure 1 When the infrared emitting module is in operating mode and in a stopped mode, the LDO power supply module outputs a first voltage and a second voltage, respectively. The control circuit performs analog-to-digital conversion on the received detection signals and sets them as a first AD value and a second AD value. The difference between the second voltage and the first voltage is controlled at a preset constant value. Thus, the control circuit can convert the first AD value corresponding to the first voltage into a third AD value corresponding to the second voltage. Subtracting the third AD value from the second AD value yields the AD correction difference, which is used to determine whether the infrared receiving module is blocked. Through the above settings, this application converts and unifies the different AD values ​​detected by the control module under different operating states of the infrared emitting module to the same voltage reference for comparison, effectively improving the accuracy and anti-interference capability of the infrared detection circuit.

[0041] It should be understood that under strong ambient light conditions, although the AD correction difference eliminates the influence of voltage fluctuations, the difference may still fluctuate due to sudden changes in ambient light. Therefore, this application proposes a determination method.

[0042] Optionally, according to some embodiments of this application, refer to Figure 2 In one embodiment of this application, the step of determining whether the infrared receiving module 04 is blocked based on the AD correction difference includes: In response to the AD correction difference being higher than a preset threshold and the second AD value being less than the third AD value, it is determined that the infrared receiving module 04 is blocked; In response to the AD correction difference being lower than a preset threshold, it is determined that the infrared receiving module 04 is not blocked.

[0043] Optionally, the preset threshold can be adaptively set by R&D personnel according to needs and pre-stored in the control circuit 02. When the AD correction difference is higher than the preset threshold, and the second AD value collected when the infrared emitting module 03 stops working is less than the third AD value collected when the infrared emitting module 03 is working, it indicates that the total light intensity received by the infrared emitting module 03 during its working period, that is, the sum of the ambient light intensity and the active illumination light intensity, is greater than the ambient light intensity during the period when it stops working. This indicates that the active illumination light is indeed reflected to the receiving tube by the obstruction, and at this time, it is determined that the infrared receiving module 04 is blocked. When the AD correction difference is lower than the preset threshold, it indicates that there is no effective reflection signal, and at this time, it is determined that the infrared receiving module 04 is not blocked. Through the above judgment logic, the different light intensity changes caused by passive changes in ambient light and reflection of active illumination light are effectively distinguished, avoiding misjudgments caused by ambient light fluctuations and improving the detection accuracy in strong light environments.

[0044] It is important to understand that in an infrared LED detection system, the moment the infrared emitting diode LED1 is turned on, a large transient drive current is generated. This current surge causes a momentary drop in the system's power supply voltage. If the voltage drop is too large, it may lead to insufficient power supply to core components such as the MCU, causing resets or malfunctions. Furthermore, the emitting diode may operate at over-rated current for an extended period, posing a risk of thermal breakdown. Conversely, if the voltage drop is too small, it means insufficient drive current for the emitting diode, resulting in low emitted light power and limiting the system's effective detection distance. Traditional solutions typically use a fixed duty cycle to drive the emitting diode, making it impossible to dynamically adjust the emission power based on the actual power supply status. Therefore, this application proposes a control mechanism that can adaptively adjust the drive duty cycle of the infrared emitting module 03 according to the real-time power supply status.

[0045] Optionally, according to some embodiments of this application, refer to Figure 3 In one embodiment of this application, the control circuit 02 is further configured to output a rectangular wave signal to the controlled end of the infrared emitting module 03, so as to control the infrared emitting module 03 to switch between a stopped working state and a working state multiple times.

[0046] In this embodiment, optionally, the rectangular wave signal is a PWM signal, and a high-level signal and a low-level signal exist within one cycle of the PWM signal; Specifically, when the rectangular wave signal is a high-level signal, the infrared emitting module 03 is in the working state; when the rectangular wave signal is a low-level signal, the infrared emitting module 03 is in the non-working state. The control circuit 02 is further configured to perform the following method: when the difference between the second voltage and the first voltage and the difference between the preset voltage value reaches a first preset difference, adjust the duty cycle of the output PWM signal so that the difference between the second voltage and the first voltage and the preset voltage value is less than the first preset difference.

[0047] In this embodiment, the control circuit 02 monitors the current operating voltage in real time, outputs a PWM signal, and adjusts its duty cycle to control the infrared emitting module 03 to switch between a stopped state and an operating state multiple times. This controls the difference between the second voltage and the first voltage and the preset voltage value to be within a first preset difference, thus providing a definite correction coefficient for subsequent AD value correction calculations. Through the above settings, while ensuring the stable generation of a controllable voltage difference and maintaining a dynamic balance between transmission power and power supply stability, the control module can continuously assess the impact of strong light, improving detection accuracy. Simultaneously, it ensures that the infrared emitting module 03 always operates within its rated safe range, effectively avoiding overcurrent in the emitting tube and undervoltage reset of the main control chip due to abnormal operating conditions, significantly improving the long-term operational reliability of the detection circuit.

[0048] Optionally, according to some embodiments of this application, in one embodiment of this application, the control circuit 02 is further configured to: determine the distance between the infrared receiving module 04 and the obstruction based on the AD correction difference when it is determined that the infrared receiving module 04 is blocked.

[0049] In this embodiment, when an object obstructs the light, it blocks some of the infrared radiation from the sun, causing the second AD value to decrease significantly compared to the unobstructed state. Simultaneously, because the obstruction reflects the active infrared light emitted by the infrared emitting module 03, the first AD value can still be supplemented by reflected light even when ambient light is reduced, and its value changes relatively little with distance, tending to be relatively stable. Therefore, the AD correction difference increases significantly as the obstruction approaches. In one embodiment, when the obstruction is approximately 10 cm from the receiver tube, the AD correction difference is approximately 200; as the obstruction moves closer, the AD correction difference can reach over 1000. The larger the AD correction difference, the closer the obstruction, and its value reflects the distance between the infrared receiving module 04 and the obstruction, thus achieving effective detection of their relative distance.

[0050] Optionally, according to some embodiments of this application, refer to Figure 5 In one embodiment of this application, the infrared emitting module 03 includes: A switching assembly, wherein the controlled end of the switching assembly is electrically connected to the control circuit 02, and is controlled to be turned on and off by the rectangular wave signal output by the control circuit 02, thereby controlling the infrared emitting module 03 to switch between a stopped working state and a working state multiple times. An infrared emitting diode LED1 has its cathode electrically connected to the output terminal of the switching assembly, and is used to be turned on and off under the control of the switching assembly. When turned on, it emits infrared light. The second current-limiting resistor R3 has its first end electrically connected to the output terminal of the LDO power supply module 01, and its second end electrically connected to the anode of the infrared emitting diode LED1. The second current-limiting resistor R3 has a small resistance value, which is used to allow a large peak current to pass through when the infrared emitting diode LED1 is turned on.

[0051] Alternatively, the switching components can be implemented using MOSFETs, transistors, etc. In this embodiment, the resistance of the second current-limiting resistor R3 is set to 10 ohms. Thus, a large peak current can be allowed to pass through the infrared LED1 at the moment it is turned on, thereby driving the infrared LED1 to emit a light intensity sufficient to meet the requirements of long-distance detection. In one example, reference Figure 5 When control circuit 02 outputs a high-level rectangular wave signal, the switching component is turned on, and the cathode of infrared emitting tube LED1 is grounded through the switching component, forming a current loop and emitting infrared light outward. When control circuit 02 outputs a low-level rectangular wave signal, the switching component is turned off, the current loop is cut off, and infrared emitting tube LED1 turns off and stops emitting infrared light. Through the coordinated operation of the switching component, infrared emitting tube LED1, and the second current-limiting resistor R3, infrared emitting module 03 operates in pulse mode under the control of the PWM signal, achieving the high instantaneous luminous intensity required for long-distance detection, while ensuring the average power consumption of the system and the thermal reliability of the components, and forming a measurable instantaneous voltage drop on the power supply line, providing a feedback basis for the output adjustment of control circuit 02.

[0052] Optionally, according to some embodiments of this application, refer to Figure 5 In one embodiment of this application, the infrared receiving module 04 includes: an infrared receiving tube IR1 and a filter voltage divider circuit; The first end of the infrared receiver tube IR1 is electrically connected to the output end of the LDO power supply module 01, and the second end of the infrared receiver tube IR1 is electrically connected to the filter voltage divider circuit. The infrared receiver tube IR1 is used to receive infrared light and change its equivalent impedance according to the change in the intensity of the received infrared light. The filter voltage divider circuit includes a third capacitor C3 and a second resistor R4 and a third resistor R5 connected in parallel with the third capacitor C3. The second terminal of the filter voltage divider circuit is electrically connected to the control circuit 02, and is used to convert the equivalent impedance change of the infrared receiver tube IR1 caused by the change in light into a corresponding analog electrical signal, which is then output to the control circuit 02 as a detection signal.

[0053] The third capacitor C3 is used to filter out high-frequency noise in the analog voltage signal, ensuring that the signal output to the control circuit 02 is stable and clean. The second resistor R4 and the third resistor R5 are connected in series in the filter voltage divider circuit. The purpose is to be able to more flexibly combine resistance values ​​that a single resistor cannot provide when adjusting hardware parameters, thereby improving the convenience of component selection and the accuracy of parameter matching.

[0054] In this embodiment, the voltage output by the LDO power supply module 01 is applied to the first terminal of the infrared receiver tube IR1. When infrared light shines on the infrared receiver tube IR1, its equivalent impedance changes with the intensity of the received infrared light. The weaker the infrared light intensity, the smaller the current flowing through the infrared receiver tube IR1, and the voltage across the second resistor R4 and the third resistor R5 also decreases accordingly. This causes the voltage division value between the second resistor R4 and the third resistor R5 and the infrared receiver tube IR1 at the common node to change accordingly. The change in the voltage division value converts the change in the equivalent impedance of the infrared receiver tube IR1 into a corresponding analog voltage signal, which is output to the control circuit 02 for analog-to-digital conversion and subsequent difference calculation.

[0055] With the above configuration of the infrared receiving module 04, the infrared receiving tube IR1 converts the received infrared light intensity change into an equivalent impedance change. The filter voltage divider circuit converts this impedance change into a corresponding analog voltage signal and outputs it to the control circuit 02, thereby providing the control circuit 02 with a real-time detection signal that reflects the ambient light and reflected light intensity.

[0056] The present invention also proposes an infrared pair detection device, comprising an infrared pair detection circuit as described in any of the above claims.

[0057] It is worth noting that the infrared transistor detection device of this application includes the infrared transistor detection circuit mentioned above. Therefore, the infrared transistor detection device of this application also includes multiple embodiments of the infrared transistor detection circuit mentioned above and the multiple effects achieved by the multiple embodiments, which will not be elaborated here.

[0058] The above description is merely a preferred embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent structural transformations made using the contents of the present invention's specification and drawings under the inventive concept of the present invention, or direct / indirect applications in other related technical fields, are included within the patent protection scope of the present invention.

Claims

1. An infrared photodiode detection circuit, characterized in that, The infrared photodiode detection circuit includes: The LDO power supply module has its input terminal electrically connected to an external power source; the LDO power supply module is used to regulate the voltage input to its input terminal and output it through its output terminal. A control circuit, wherein the power supply terminal of the control circuit is electrically connected to the output terminal of the LDO power supply module; An infrared emitting module, wherein the first end of the infrared emitting module is electrically connected to the output end of the LDO power supply module, and the controlled end of the infrared emitting module is electrically connected to the control signal output end of the control circuit; An infrared receiving module, wherein the first end of the infrared receiving module is electrically connected to the output end of the LDO power supply module, and the output end of the infrared receiving module is electrically connected to the detection signal input end of the control circuit, for outputting a detection signal to the control circuit; When the control circuit controls the infrared emitting module to be in working state, the output terminal of the LDO power supply module outputs a first voltage; When the control circuit controls the infrared emitting module to be in a stopped working state, the output terminal of the LDO power supply module outputs a second voltage; The second voltage is greater than the first voltage, and the difference between the second voltage and the first voltage is a preset voltage value; The control circuit is configured to perform the following method: When the infrared emitting module is in working condition, the received detection signal is converted from analog to digital and set as the first AD value; When the infrared emitting module is in a stopped state, the received detection signal is converted from analog to digital and set as a second AD value; Based on the first voltage and the second voltage, determine the third AD value corresponding to the first AD value when the voltage at the output terminal of the LDO power supply module is the second voltage; Subtract the third AD value from the second AD value to obtain the AD correction difference; Based on the AD correction difference, it is determined whether the infrared receiving module is blocked.

2. The infrared photodiode detection circuit as described in claim 1, characterized in that, The step of determining whether the infrared receiving module is blocked based on the AD correction difference includes: In response to the AD correction difference being higher than a preset threshold and the second AD value being less than the third AD value, it is determined that the infrared receiving module is blocked; In response to the AD correction difference being lower than a preset threshold, it is determined that the infrared receiving module is not blocked.

3. The infrared photodiode detection circuit as described in claim 1, characterized in that, The control circuit is also used to output a rectangular wave signal to the controlled end of the infrared emitting module to control the infrared emitting module to switch between a stopped working state and a working state multiple times.

4. The infrared photodiode detection circuit as described in claim 3, characterized in that, The rectangular wave signal is a PWM signal, and there are high-level and low-level signals within one cycle of the PWM signal; Specifically, when the rectangular wave signal is a high-level signal, the infrared emitting module is in the working state; when the rectangular wave signal is a low-level signal, the infrared emitting module is in the non-working state. The control circuit is further configured to perform the following method: when the difference between the second voltage and the first voltage and the difference between the preset voltage value reaches a first preset difference, adjust the duty cycle of the output PWM signal so that the difference between the second voltage and the first voltage and the preset voltage value is less than the first preset difference.

5. The infrared photodiode detection circuit as described in claim 4, characterized in that, When the difference between the second voltage and the first voltage and the preset voltage value reaches a first preset difference, adjusting the duty cycle of the output PWM signal includes: If the difference between the second voltage and the first voltage is greater than the first preset difference, and the difference between the difference between the second voltage and the first voltage and the preset voltage value reaches the first preset difference, the duty cycle of the output PWM signal is reduced. When the difference between the second voltage and the first voltage is less than the first preset difference, and the difference between the difference between the second voltage and the first voltage and the preset voltage value reaches the first preset difference, the duty cycle of the output PWM signal is increased.

6. The infrared photodiode detection circuit as described in claim 1, characterized in that, The control circuit is further configured to: determine the distance between the infrared receiving module and the obstruction based on the AD correction difference when it is determined that the infrared receiving module is blocked.

7. The infrared photodiode detection circuit as described in any one of claims 1-6, characterized in that, The LDO power supply module includes: The first current-limiting resistor has its first end electrically connected to an external power source for connecting to an external power source. The LDO chip has its input terminal electrically connected to the second terminal of the first current-limiting resistor. A first resistor, the first end of which is electrically connected to the second end of the first current-limiting resistor, and the second end of which is electrically connected to the output terminal of the LDO chip; A first capacitor, the first terminal of which is electrically connected to the input terminal of the LDO chip, and the second terminal of which is grounded; The second capacitor has its first terminal electrically connected to the output terminal of the LDO chip, and its second terminal grounded.

8. The infrared photodiode detection circuit as described in any one of claims 1-6, characterized in that, The infrared emitting module includes: A switching assembly, wherein the controlled end of the switching assembly is electrically connected to the control circuit, and is controlled to be turned on and off by the rectangular wave signal output by the control circuit, thereby controlling the infrared emitting module to switch between a stopped working state and a working state multiple times. An infrared emitting tube, wherein the cathode of the infrared emitting tube is electrically connected to the output terminal of the switching assembly, and is used to be turned on and off under the control of the switching assembly, and emits infrared light outward when turned on; The second current-limiting resistor has its first end electrically connected to the output terminal of the LDO power supply module and its second end electrically connected to the anode of the infrared emitting diode. The second current-limiting resistor has a small resistance value and is used to allow a large peak current to pass through when the infrared emitting diode is turned on.

9. The infrared photodiode detection circuit as described in any one of claims 1-6, characterized in that, The infrared receiving module includes: an infrared receiving tube and a filter voltage divider circuit; The first end of the infrared receiver is electrically connected to the output end of the LDO power supply module, and the second end of the infrared receiver is electrically connected to the filter voltage divider circuit. The infrared receiver tube is used to receive infrared light and change its equivalent impedance according to the change in the intensity of the received infrared light. The filter voltage divider circuit includes a third capacitor and a second resistor and a third resistor connected in parallel with the third capacitor; The second terminal of the filter voltage divider circuit is electrically connected to the control circuit, and is used to convert the equivalent impedance change of the infrared receiver tube caused by the change in light into a corresponding analog electrical signal, which is then output to the control circuit as a detection signal.

10. An infrared tube detector, characterized in that, Including the infrared phototransistor detection circuit as described in any one of claims 1-9.