Light probe module lampwick offset detection method, detection device and storage medium
By detecting the intensity deviation of the light signal received by the receiving lamp in the light detection module, the accuracy problem of lamp wick offset detection is solved, and higher detection accuracy is achieved.
Patent Information
- Application Number
- CN202211723135.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-30
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-12-30
AI Technical Summary
In existing technologies, the detection of lamp offset by light detection modules is easily affected by obstructions from the installation structure, resulting in insufficient detection accuracy.
By controlling the transmitting lamps in the transmitting lamp group to emit light towards the receiving lamp group, the intensity of the light signal received by multiple receiving lamps in the receiving lamp group is detected, and the deviation value between the light intensities is used to determine whether there is lamp core offset in the transmitting lamp.
This improved the accuracy of lamp offset detection in the light detection module, ensuring the normal functioning of the light detection module.
Smart Images

Figure CN116046350B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of lamp wick detection, and more particularly to a method, detection device, and storage medium for detecting lamp wick offset in a light detection module. Background Technology
[0002] Currently, optical detection modules (such as infrared LEDs) have a specific angle design between their transmitting and receiving lights, and the maximum transmission angle can affect the signal reception range of the receiving light. During the production of optical detection modules, the center of the transmitting light's wick needs to be directly aligned with the center of the lamp head, but during production, the wick may be misaligned.
[0003] In related technologies, wick offset detection by a light detection module typically involves detecting the intensity of the light signal received by the receiving lamp during the emission of light from the transmitting lamp. The intensity of the light signal detected by each receiving lamp is then compared to a pre-set fixed threshold. If the light signal intensity is below the threshold, the transmitting lamp is considered to have wick offset; otherwise, it is considered not to have wick offset. However, this fixed threshold-based detection method is susceptible to interference from factors such as obstruction by the mounting structure of the light detection module, affecting the accuracy of wick offset detection.
[0004] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention
[0005] The main objective of this invention is to provide a method, detection device, and storage medium for detecting lamp wick offset in a light detection module, aiming to improve the accuracy of lamp wick offset detection.
[0006] To achieve the above objectives, the present invention provides a method for detecting wick offset in a light detection module, the method comprising the following steps:
[0007] The transmitting lamps in the transmitting lamp group are controlled to emit light towards the receiving lamp group, and the light intensity corresponding to the light signal received by the multiple receiving lamps in the receiving lamp group is detected to obtain multiple light intensities;
[0008] The presence of lamp core offset is determined based on the deviation values between different light intensities among the multiple light intensities.
[0009] Optionally, the number of the emitting lamps emitting light toward the receiving lamp group is one, and the step of determining whether the emitting lamp has a wick offset based on the deviation value between different light intensities among the plurality of light intensities includes:
[0010] Determine the minimum light intensity among the plurality of light intensities;
[0011] When the deviation between the minimum light intensity and other light intensities among the plurality of light intensities is greater than a preset threshold, it is determined that the emitting lamp has a wick offset.
[0012] Optionally, the step of controlling the transmitting lamps in the transmitting lamp group to emit light towards the receiving lamp group, and detecting the light intensity corresponding to the light signals received by the multiple receiving lamps in the receiving lamp group to obtain multiple light intensities includes:
[0013] Each transmitting lamp in the transmitting lamp group is controlled to emit light toward the receiving lamp group in sequence, and the light intensity corresponding to the light signal received by the multiple receiving lamps in the receiving lamp group is detected to obtain the light intensity set corresponding to each transmitting lamp, the light intensity set including the light intensity corresponding to each receiving lamp.
[0014] Optionally, the number of emitting lamps in the receiving lamp group is the same as the number of emitting lamps in the receiving lamp group, the emitting lamps and the receiving lamps are in one-to-one correspondence and the emitting lamps and the corresponding receiving lamps are arranged facing each other, and the step of determining whether the emitting lamp has a wick offset based on the deviation value between different light intensities among the plurality of light intensities includes:
[0015] The light intensity of the receiving lamp that is directly opposite the corresponding transmitting lamp in each set of light intensity is determined as the first light intensity;
[0016] The minimum light intensity among all the first light intensities is determined as the second light intensity;
[0017] When the deviation between the second light intensity and other light intensities in the light intensity set is greater than a preset threshold, and the minimum light intensity is the minimum value in all other light intensity sets, it is determined that the emitting lamp corresponding to the second light intensity has a lamp core offset.
[0018] Optionally, the step of determining whether the emitting lamp has a wick offset based on the deviation value between different light intensities among the plurality of light intensities includes:
[0019] One of the light intensity sets is determined as the first light intensity set, and the minimum light intensity in the first light intensity set is determined;
[0020] When the deviation between the minimum light intensity and other light intensities in the first light intensity set is greater than a preset threshold, and the minimum light intensity is the minimum value in all other light intensity sets outside the first light intensity set, it is determined that the emitting lamp corresponding to the first light intensity set has a lamp core offset.
[0021] Optionally, the emitting lamps of the emitting lamp group use the same luminous power, and when the light intensity data received by the receiving lamp is more than 70% of the normal luminous power of the emitting lamp, the lamp core of the emitting lamp is judged to be normal.
[0022] Optionally, the step of controlling the transmitting lamps in the transmitting lamp group to emit light towards the receiving lamp group, and detecting the light intensity corresponding to the light signals received by the multiple receiving lamps in the receiving lamp group to obtain multiple light intensities includes:
[0023] Obtain the emission number of each emitting lamp in the emitting lamp group;
[0024] Each of the transmitting lights is controlled to enter a ready state, and each of the transmitting lights is controlled to emit light toward the receiving light group in sequence based on the transmission number;
[0025] When each of the transmitting lamps emits light, the light intensity corresponding to the light signal received by the multiple receiving lamps in the receiving lamp group is obtained.
[0026] Optionally, after determining whether the emitting lamp has a wick offset based on the deviation value between different light intensities among the plurality of light intensities, the method further includes:
[0027] The emitter with a misaligned wick is marked as an offset lamp, and a prompt message is output to replace the offset lamp.
[0028] In addition, to achieve the above objectives, the present invention also provides a detection device, the detection device including a memory, a processor, and a wick offset detection program of the light detection module of the detection device stored in the memory and executable on the processor. When the wick offset detection program of the light detection module is executed by the processor, it implements the steps of the wick offset detection method of the light detection module as described above.
[0029] In addition, to achieve the above objectives, the present invention also provides a computer-readable storage medium storing a wick offset detection program of a light detection module of a detection device, wherein when the wick offset detection program of the light detection module is executed by a processor, the steps of the wick offset detection method of the light detection module as described above are implemented.
[0030] This invention provides a method for detecting lamp wick offset in a light detection module. The light detection module includes a receiving lamp group and a transmitting lamp group. By controlling the transmitting lamps in the transmitting lamp group to emit light towards the receiving lamp group, and detecting the light intensity corresponding to the light signals received by multiple receiving lamps in the receiving lamp group, multiple light intensities are acquired. Based on the deviation values between different light intensities, it is determined whether the transmitting lamp has a lamp wick offset. It can be seen that by collecting the light intensity data received by the receiving lamps and determining whether the transmitting lamp has an offset based on the deviation values between different light intensities, the accuracy of lamp wick offset detection in the light detection module is improved. Attached Figure Description
[0031] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present invention and, together with the description, serve to explain the principles of the invention. To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on these drawings without any creative effort.
[0032] Figure 1 This is a flowchart illustrating the first embodiment of the lamp wick offset detection method of the optical detection module of the present invention;
[0033] Figure 2 This is a schematic diagram showing the change in the emission range of the transmitting lamp when the lamp core of the transmitting lamp of the present invention is offset;
[0034] Figure 3 This is a flowchart illustrating the second embodiment of the lamp wick offset detection method of the optical detection module of the present invention;
[0035] Figure 4 This is a schematic diagram of the transmitting lamp group in the second embodiment of the lamp wick offset detection method of the optical detection module of the present invention;
[0036] Figure 5 This is a flowchart illustrating the third embodiment of the lamp wick offset detection method of the optical detection module of the present invention;
[0037] Figure 6 This is a schematic diagram of the transmitting lamp emission in the third embodiment of the lamp wick offset detection method of the optical detection module of the present invention;
[0038] Figure 7 This is a flowchart illustrating the fourth embodiment of the lamp wick offset detection method of the optical detection module of the present invention;
[0039] Figure 8 This is a flowchart illustrating the fifth embodiment of the lamp wick offset detection method of the optical detection module of the present invention;
[0040] Figure 9 These are schematic diagrams of the terminal hardware structure of various embodiments of the lamp wick offset detection method of the optical detection module of the present invention.
[0041] 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
[0042] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0043] During the manufacturing process of LED lights, the LED chip may shift to a certain degree. This shift affects the intensity and range of the received light. For example, if the LED chip shifts 10° to the right, the received light range will theoretically shift 10° to the right.
[0044] Specifically, such as Figure 2 As shown, 1 is the transmitting lamp, and 2-6 are the receiving lamps. When the lamp core of transmitting lamp 1 is in normal condition, the emitting range of the transmitting lamp is the area encompassed by light rays 7 and 8. If the lamp core of transmitting lamp 1 shifts, the emitting range of the transmitting lamp will shift accordingly, and the emitting range will be the area encompassed by light rays 9 and 10. At this time, receiving lamp 6 will not receive the light signal emitted by transmitting lamp 1, which will cause the product corresponding to the light detection module, such as an infrared touch device, to malfunction because the intensity of the received light signal is less than the preset intensity.
[0045] In related technologies, lamp offset detection by a photodetector module typically involves detecting the intensity of the light signal received by the receiving lamp during the emission of light from the transmitting lamp. The intensity of the light signal detected by each receiving lamp is then compared to a pre-set fixed threshold. If the light signal intensity is below the threshold, the transmitting lamp is considered to have lamp offset; otherwise, it is considered not to have lamp offset. However, this fixed threshold-based detection method is susceptible to obstruction from the mounting structure of the photodetector module, affecting the accuracy of lamp offset detection and making it impossible to detect offset lamps in bare-board inspection scenarios.
[0046] To address the aforementioned shortcomings, this invention proposes a method for detecting lamp wick offset in a light detection module. The main solution includes the following steps:
[0047] The transmitting lamps in the transmitting lamp group are controlled to emit light towards the receiving lamp group, and the light intensity corresponding to the light signal received by the multiple receiving lamps in the receiving lamp group is detected to obtain multiple light intensities;
[0048] The presence of lamp core offset is determined based on the deviation values between different light intensities among the multiple light intensities.
[0049] The lamp wick offset detection method of the optical detection module of the present invention collects light intensity data received by the receiving lamp and determines whether the transmitting lamp has offset based on the deviation value between different light intensities, so as to improve the accuracy of lamp wick offset detection in the optical detection module.
[0050] The claims of this invention will be described in detail below with reference to the accompanying drawings.
[0051] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the lamp wick offset detection method of the optical detection module of the present invention.
[0052] In this embodiment, the executing entity of the present invention can be a detection device, the light detection module includes a receiving lamp group and a emitting lamp group, the emitting lamp can be an LED lamp, and the lamp core offset detection method of the light-emitting module includes the following steps S10-S20:
[0053] Step S10: Control the transmitting lamps in the transmitting lamp group to emit light towards the receiving lamp group, and detect the light intensity corresponding to the light signals received by the multiple receiving lamps in the receiving lamp group respectively, and obtain multiple light intensities;
[0054] In this embodiment, the light signal refers to the light source signal received by the receiving lamp when the transmitting lamp emits light to the receiving lamp, and the light intensity refers to the intensity value of the light signal received by the receiving lamp. The range of light intensity that the receiving lamp can receive is between 0-3.3V, while the light intensity emitted by the transmitting lamp when the light signal is stable is between 1.5V-2.0V. The light detection module can be an infrared touch device, and the infrared touch device can only determine the touch function when the intensity value of the light signal received by the receiving lamp exceeds a preset threshold (for example, if the transmitting lamp emits a light intensity of 2.0V, and the receiving lamp receives at least 70% of the light intensity signal, i.e., 1.4V, the intensity value of the currently received light signal is considered to exceed the preset threshold).
[0055] The transmitting light group can have one or more (e.g., 2-8) transmitting lights. To avoid differences in light signal intensity when the same receiving light receives light from a normally functioning transmitting light at the same emission position, all transmitting lights in the transmitting light group have the same luminous power. The receiving light group can have 2-8 receiving lights. When there are multiple transmitting lights in the transmitting light group, the detection device can control the transmitting lights in the group to emit light sequentially. The detection device can control the transmitting lights to emit light according to a preset emission order, such as from left to right, or according to the numbering order of the transmitting light group, so that the detection device can accurately obtain the light intensity data of the light signal corresponding to each transmitting light. After controlling the transmitting lights in the transmitting light group to emit light towards the receiving light group, the detection device uses a light intensity detection module to detect the light intensity of the light signals received by multiple receiving lights in the receiving light group.
[0056] For example, there are two transmitting lights in the transmitting light group, which are arranged side by side facing the receiving light group. There are three receiving lights in the receiving light group. The detection device lights up two transmitting lights from left to right. When the first transmitting light is lit, the device detects the light intensity corresponding to the light signal received by the first transmitting light by the three receiving lights in the receiving light group and obtains three light intensity data.
[0057] Step S20: Determine whether the emitting lamp has a wick offset based on the deviation value between different light intensities among the multiple light intensities.
[0058] In this embodiment, the deviation value refers to the difference between different light intensities, taken as the absolute value. Multiple light intensities can be the collection of light intensities from the same emitting lamp across various receiving lamps, or the light intensities from different emitting lamps received by the same receiving lamp.
[0059] The beam pattern of the transmitting lamp is optimally positioned so that the receiving lamp directly opposite it receives the best signal. A slight decrease occurs when the lamp is offset to the left or right. Due to these specifications, each transmitting lamp can only have one receiving lamp structurally aligned with it. Therefore, there are discrepancies in the light intensity received by different receiving lamps corresponding to the same transmitting lamp. For example, a directly opposite receiving lamp might receive 1.6V of light intensity, while other receiving lamps offset to the left or right might receive 1.5V. Furthermore, since the transmitting lamp's position may also vary, the light intensity data received by different receiving lamps from the same lamp will also differ.
[0060] For example, after acquiring multiple light intensity data, the detection device can determine whether the deviation between different light intensities in the same emitting lamp is greater than a preset threshold (e.g., 0.35V). If it is greater than the preset threshold, it can be determined that the lamp core of the emitting lamp is offset.
[0061] Optionally, it can also determine whether the deviation value of the light intensity data corresponding to different transmitting lamps in the same receiving lamp is greater than a preset threshold. If it is greater than the preset threshold, it can determine the lamp core offset of the transmitting lamp corresponding to the minimum light intensity received in the same receiving lamp.
[0062] Optionally, if the number of transmitting lamps and receiving lamps is the same, and each transmitting lamp is uniquely facing the receiving lamp, after the detection device obtains the light intensity data of all receiving lamps, it can compare the deviation values of the data of the transmitting lamps facing each receiving lamp, and then determine that the transmitting lamp corresponding to the lowest light intensity has a lamp core offset.
[0063] In the technical solution disclosed in this embodiment, the transmitting lamp of the transmitting lamp group is controlled to emit light towards the receiving lamp group, and the light intensity corresponding to the light signals received by multiple receiving lamps is obtained. Based on the deviation value between multiple light intensities, it is determined whether there is lamp core offset in the transmitting lamp, thereby improving the accuracy of lamp core offset detection in the light detection module.
[0064] Based on the above embodiments, referring to Figure 3 The second embodiment of the lamp wick offset detection method of the optical detection module of the present invention is proposed.
[0065] In this embodiment, the number of the emitting lamps that emit light toward the receiving lamp group is one, and step S20 further includes:
[0066] Step S21: Determine the minimum light intensity among the plurality of light intensities;
[0067] In this embodiment, since there is only one emitting lamp, the multiple light intensities detected by the detection device are light intensity data received by different receiving lamps. Here, the minimum light intensity refers to the light intensity data with the lowest value among the multiple light intensities.
[0068] Step S22: When the deviation between the minimum light intensity and other light intensities among the plurality of light intensities is greater than a preset threshold, it is determined that the emitting lamp has a lamp core offset.
[0069] Specifically, if the detection device detects that the difference between other light intensities and the minimum light intensity is greater than a preset threshold, such as 0.35V, it determines that the current emitting lamp has a lamp core offset.
[0070] For example, please refer to Figure 4 In one optional implementation scenario, there is only one set of transmitting lights, namely transmitting light 21, and receiving lights 22, 23, 24, and 25. After transmitting light 21 is lit, receiving lights 22 through 25 all receive the light intensity data of the transmitting light. At this time, the light intensity data received by receiving lights 22, 23, 24, and 25 are 1.5V, 2.0V, 2.0V, and 1.9V, respectively. Through comparative analysis, it is determined that the light intensity received by receiving light 22 is the lowest, only 1.5V, and the deviation value compared with the light intensity data received by receiving lights 23, 24, and 25 is all greater than 0.35V. At this point, it is considered that the lamp core of transmitting light 21 has an offset exceeding the specification.
[0071] Optionally, if the light intensity data received by receiver lamps 22, 23, 24 and 25 are 1.5V, 1.6V, 1.5V and 1.5V respectively, that is, the current minimum light intensity data is 1.5V, and the deviation value is within 0.35V compared with the light intensity data of the same emitting lamp received by other receiver lamps, then it is considered that the lamp core of emitting lamp 21 has no offset.
[0072] In the technical solution disclosed in this embodiment, the light pattern specification of the lamp tube is best when it is directly facing the lamp to receive the signal; a slight decrease occurs when it is offset to the left or right. When the lamp core is offset, by turning on a transmitting lamp in a fixed position, and based on the light intensity data received by multiple receiving lamps, it is determined whether the minimum light intensity data exceeds a threshold. If the deviation between the minimum light intensity data and other light intensity data is greater than the threshold, it is determined that the current transmitting lamp core is offset, thereby improving the accuracy of lamp core offset detection.
[0073] Reference Figure 5 , Figure 5 This is a third embodiment of the lamp wick offset detection method of the optical detection module of the present invention. Based on the first embodiment, step S10 includes:
[0074] Step S11: Control each transmitting lamp in the transmitting lamp group to emit light toward the receiving lamp group in sequence, and detect the light intensity corresponding to the light signal received by the multiple receiving lamps in the receiving lamp group respectively, to obtain the light intensity set corresponding to each transmitting lamp, the light intensity set including the light intensity corresponding to each receiving lamp.
[0075] In this embodiment, the emitting lamps in the emitting lamp group use the same luminous power. The normal luminous intensity emitted by the emitting lamp is between 1.5V and 2.0V. When the luminous intensity data received by the receiving lamp is more than 70% of the normal luminous power of the emitting lamp, the emitting lamp chip is judged to be normal. The number of emitting lamps in the receiving lamp group is the same as the number of emitting lamps in the receiving lamp group. The emitting lamps and receiving lamps correspond one-to-one and are arranged facing each other.
[0076] For example, please refer to Figure 6 The transmitting lamp 11 is directly facing the receiving lamp 15, the transmitting lamp 12 is directly facing the receiving lamp 16, the transmitting lamp 13 is directly facing the receiving lamp 17, and the transmitting lamp 14 is directly facing the receiving lamp 18. Each of the receiving lamps 15, 16, 17, and 18 receives four light intensity data points, meaning the receiving lamp group receives a total of 16 data points. The detection device sequentially illuminates the transmitting lamps 11 through 14 according to their numbering order. When transmitting lamp 11 is illuminated, the detection device acquires the set of light intensities corresponding to that lamp, which is the light intensity data received by the receiving lamps 15, 16, 17, and 18. Subsequently, the detection device sequentially illuminates the transmitting lamps 12 through 14 and acquires the set of light intensities corresponding to those lamps.
[0077] Based on the above, step S20 further includes:
[0078] Step S23: Determine the light intensity of the receiving lamp that is directly opposite the corresponding transmitting lamp in each set of light intensity as the first light intensity;
[0079] Specifically, please continue to refer to Figure 6 At this time, the transmitting lamp 12 emits light to the receiving lamp group. The light intensity set is the light intensity set of the transmitting lamp 12 received by the transmitting lamps 15 to 18. In this light intensity set, the receiving lamp 16 is the receiving lamp directly opposite the transmitting lamp 12. That is, the receiving lamp 16 contains the light intensity received by the receiving lamp directly opposite the transmitting lamp 12. This light intensity is the first light intensity.
[0080] Step S24: Determine the minimum light intensity among all the first light intensities as the second light intensity;
[0081] For example, please continue to refer to Figure 6The first light intensity includes the light intensity of the transmitting light 11 received by the receiving light 15, the light intensity of the transmitting light 12 received by the receiving light 16, the light intensity of the transmitting light 13 received by the receiving light 17, and the light intensity of the transmitting light 14 received by the receiving light 18. Among these four light intensities, the light intensity with the smallest value is the minimum light intensity of the first light intensity, which is also the second light intensity.
[0082] Step S25: When the deviation between the second light intensity and other light intensities in the light intensity set is greater than a preset threshold, and the minimum light intensity is the minimum value in all other light intensity sets, it is determined that the emitting lamp corresponding to the second light intensity has a lamp core offset.
[0083] In this embodiment, please continue to refer to Figure 6 If the second light intensity corresponds to the light intensity received by the transmitting lamp 11 directly facing the receiving lamp 15, and the deviation between the second light intensity and other light intensities in the light intensity set of the transmitting lamp 11 is greater than the preset threshold of 0.35V, and the minimum light intensity corresponding to the second light intensity is the minimum value in the light intensity set of other transmitting lamps (i.e., transmitting lamps 12 to 14), then it is determined that the transmitting lamp 11 corresponding to the second light intensity has a lamp core offset.
[0084] Optionally, if the deviation between the second light intensity and other light intensities in the first light intensity is greater than a preset threshold, and the transmitting lamp corresponding to the second light intensity is the minimum value in the set of light intensities received by other receiving lamps, it is determined that the transmitting lamp corresponding to the second light intensity has a lamp core offset.
[0085] In a specific implementation scenario, please refer to [the relevant documentation / reference]. Figure 6 The detection device sequentially illuminates emitting lamps 11 to 14 according to their numerical order, and then acquires four light intensity data points received by each receiving lamp, resulting in a total of 16 light intensity data points received by the receiving lamp group. Subsequently, the detection device acquires the light intensity data received by receiving lamp 15, which is directly opposite emitting lamp 11, and the light intensity data received by receiving lamp 16, which is directly opposite emitting lamp 12, and so on. The light intensity data received by each receiving lamp directly opposite emitting lamp is combined to form the first light intensity, which consists of four data points.
[0086] At this time, in the first light intensity, the light intensity received by receiver lamp 15 is 1.5V, the light intensity received by receiver lamp 16 is 1.4V, the light intensity received by receiver lamp 17 is 1.5V, and the light intensity received by receiver lamp 18 is 0.9V. At this time, the light intensity data received by receiver lamp 18 is determined to be the second light intensity. In the light intensity set corresponding to receiver lamp 14, the light intensity data are 1.4V, 1.5V, 1.4V, and 0.9V respectively. After calculation, it is determined that the deviation value between the second light intensity and the other light intensities in receiver lamp 14 is greater than the preset threshold of 0.35V. Moreover, the light intensity sets corresponding to receiver lamps 11 to 13 all have light intensity data greater than 1.4V. That is, the minimum light intensity corresponding to the second light intensity is the minimum value in the other light intensity sets. At this time, it can be confirmed that there is a lamp core offset in the transmitting lamp 14 corresponding to the second light intensity.
[0087] Optionally, in the first light intensity, the light intensity received by receiver lamp 15 is 1.5V, the light intensity received by receiver lamp 16 is 1.4V, the light intensity received by receiver lamp 17 is 1.5V, and the light intensity received by receiver lamp 18 is 0.9V. At this time, these four data can be compared, and the minimum light intensity in the first light intensity is the light intensity corresponding to transmitter lamp 14. That is, the light intensity signal received by receiver lamp 18 is the second light intensity, and the deviation value of the second light intensity from the first light intensity received by receiver lamps 15 to 17 is greater than the preset threshold of 0.35V. At the same time, the light intensity data corresponding to the light intensity set received by transmitter lamp 14 from receiver lamps 15 to 17 are all minimum values. At this time, it is determined that the lamp core of transmitter lamp 14 has an offset.
[0088] Optionally, if at least one set of light intensity data corresponding to the receiving lamps 15 to 17 of the transmitting lamp 14 is not the lowest value, then the lamp core of the transmitting lamp 14 is judged to be normal.
[0089] It should be noted that the light pattern of the lamp is optimally received when directly facing the lamp; a slight decrease occurs when the light source shifts to the left or right. When the lamp core shifts, comparing the light received by the lamp with other lamps in the same group using the same emission power indicates a shift exceeding specifications. Therefore, it is necessary to extract the data from the emitting lamp directly facing each receiving lamp and compare the light signals received by the receiving lamp directly facing each emitting lamp. This allows the detection device to make further judgments based on the comparison results, thereby improving the accuracy of lamp core shift detection.
[0090] It is understandable that the above numbering, number of receiving lights, and number of transmitting lights are only for illustrative purposes and are not specific limitations on the scheme. Since the transmitting lights have certain limitations on the transmission angle, the number of receiving lights should not exceed 8.
[0091] In the technical solution disclosed in this embodiment, the light intensity of the receiving lamp directly opposite each transmitting lamp is obtained as the first light intensity, and the minimum light intensity in the first light intensity is determined as the second light intensity. The deviation between the second light intensity and other light intensities in its set is greater than a preset threshold, and the minimum light intensity corresponding to the second light intensity is the minimum value in all other light intensity sets, thereby determining whether the transmitting lamp has a deviation. Alternatively, the deviation between the second light intensity and other light intensities in the first light intensity is greater than a preset threshold, and the transmitting lamp corresponding to the second light intensity is the minimum value in the light intensity set of other receiving lamps, thereby improving the accuracy of lamp core deviation detection in the light detection module.
[0092] Optionally, refer to Figure 7 , Figure 7 This is a fourth embodiment of the lamp wick offset detection method of the optical detection module of the present invention. Based on step S11 of the third embodiment, step S20 further includes:
[0093] Step S26: Determine one of the light intensity sets as the first light intensity set, and determine the minimum light intensity in the first light intensity set;
[0094] Step S27: When the deviation between the minimum light intensity and other light intensities in the first light intensity set is greater than a preset threshold, and the minimum light intensity is the minimum value in other light intensity sets outside the first light intensity set, it is determined that the emitting lamp corresponding to the first light intensity set has a lamp core offset.
[0095] Specifically, if the receiving lamp group has 4 receiving lamps and the transmitting lamp group has 4 transmitting lamps, the detection device can control the transmitting lamp group to emit light sequentially to the receiving lamp group according to the numbering order of the transmitting lamps, acquire the light signals received by the four receiving lamps, select the light intensity sets corresponding to transmitting lamps 1-4 respectively, and select the light intensity set corresponding to transmitting lamp 1 as the first light intensity set. From this, the device selects the minimum light intensity with the lowest light intensity data in the first light intensity set, so that the detection device can determine whether the minimum light intensity is the minimum value in other light intensity sets based on the minimum light intensity in the first light intensity set, thereby determining the lamp core offset.
[0096] In a specific implementation scenario, there are four sets of transmitting and receiving lights. The light intensity set corresponding to transmitting light 1 consists of the light intensity data received by the four receiving lights from transmitting light 1, and so on, with transmitting lights 2-4 following the same logic. With a preset threshold of 0.35V, the light intensity data received by the four receiving lights from left to right in the light intensity set corresponding to transmitting light 1 are 1.0V, 1.4V, 1.4V, and 1.5V respectively. The minimum light intensity can be determined to be 1.0V. Since the deviation of the minimum light intensity 1.0V from other light intensities is greater than 0.35V, and the minimum light intensity 1.0V is still the minimum value in the light intensity sets corresponding to the other transmitting lights, it is considered that the lamp core of transmitting light 1 has an offset.
[0097] Optionally, if the minimum light intensity exists in at least one set of data that is not the minimum value in the light intensity set corresponding to other emitting lamps, the lamp core of emitting lamp 1 is judged to be normal.
[0098] It is understandable that the above numbering, number of receiving lights, and number of transmitting lights are only for illustrative purposes and are not specific limitations on the scheme. Since the transmitting lights have certain limitations on the transmission angle, the number of receiving lights should not exceed 8.
[0099] In the technical solution disclosed in this embodiment, the light intensity corresponding to the light signal received by multiple receiving lamps in the receiving lamp group is detected, and the light intensity is grouped into a first light intensity set or a second light intensity set. Based on the deviation value between the minimum light intensity in the first light intensity set or the second light intensity set and other light intensities, it is determined whether the current transmitting lamp has a lamp core offset, thereby improving the accuracy of the current lamp core offset detection.
[0100] Optionally, based on any of the above embodiments, a fifth embodiment of the lamp wick offset detection method of the optical detection module of the present invention is proposed.
[0101] Reference Figure 8 In this embodiment, step S10 further includes:
[0102] Step S12: Obtain the transmission number of each transmitting lamp in the transmitting lamp group;
[0103] In this embodiment, the transmission number can be the number corresponding to the current position of the transmitting light, or it can be a number that the transmitting light itself has. The transmission numbers of the transmitting light group will not be repeated, so that the detection device can turn on the transmitting light based on the transmission number, thereby improving the efficiency of data acquisition.
[0104] Step S13: Control each of the transmitting lights to enter the preparation state, and control each of the transmitting lights to emit light toward the receiving light group in sequence based on the transmission number;
[0105] Specifically, the ready state refers to placing the transmitting lamp at the corresponding test position of the detection device, so that the detection device can control the transmitting lamp to emit light toward the receiving lamp group in sequence based on the numbering order of the corresponding test positions.
[0106] Step S14: Obtain multiple light intensities corresponding to the light signals received by the multiple receiving lamps in the receiving lamp group when each of the transmitting lamps emits light.
[0107] Furthermore, based on any of the above embodiments, after step S20, the method further includes:
[0108] Step S30: Mark the emitter lamp with lamp core misalignment as an offset lamp and output a prompt message to replace the offset lamp.
[0109] Specifically, when a lamp core misalignment is detected in the transmitter, the transmitter with the misalignment is marked as an offset lamp, and a prompt message to replace the offset lamp is output. This allows the staff to replace the offset lamp based on the prompt message, thus avoiding changes in the installation structure after installing the transmitter in the whole machine, which would affect the light reception and cause abnormal touch of the light detection module.
[0110] In the technical solution disclosed in this embodiment, by obtaining the transmission number of each transmitting lamp, the detection device can control the transmitting lamp to emit light towards the receiving lamp group based on the order of the transmission numbers. After determining that the lamp core has shifted, it outputs a prompt message to replace the shifted lamp, so that the staff can replace the shifted lamp based on the prompt message. This not only improves the efficiency of data acquisition from the receiving lamp group, but also avoids the situation where the device malfunctions after installation.
[0111] Reference Figure 9 , Figure 9 This is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiments of the present invention.
[0112] like Figure 9 As shown, the terminal may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a network interface 1003, and a memory 1004. The communication bus 1002 is used to enable communication between these components. The network interface 1003 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1004 may be high-speed random access memory (RAM) or stable non-volatile memory (NVM), such as a disk drive. Alternatively, the memory 1004 may be a storage device independent of the aforementioned processor 1001.
[0113] Those skilled in the art will understand that Figure 9 The terminal structure shown does not constitute a limitation on the terminal and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0114] like Figure 9 As shown, the memory 1004, which serves as a computer storage medium, may include an operating system, a data storage module, a network communication module, and a lamp wick offset detection program for a light detection module.
[0115] exist Figure 9 In the terminal shown, the network interface 1003 is mainly used to connect to the backend server and communicate with it; the processor 1001 can call the lamp wick offset detection program stored in the memory 1004 and perform the following operations:
[0116] The transmitting lamps in the transmitting lamp group are controlled to emit light towards the receiving lamp group, and the light intensity corresponding to the light signal received by the multiple receiving lamps in the receiving lamp group is detected to obtain multiple light intensities;
[0117] The presence of lamp core offset is determined based on the deviation values between different light intensities among the multiple light intensities.
[0118] Furthermore, the processor 1001 can call the wick offset detection program stored in the memory 1004 and also perform the following operations:
[0119] Determine the minimum light intensity among the plurality of light intensities;
[0120] When the deviation between the minimum light intensity and other light intensities among the plurality of light intensities is greater than a preset threshold, it is determined that the emitting lamp has a wick offset.
[0121] Furthermore, the processor 1001 can call the wick offset detection program stored in the memory 1004 and also perform the following operations:
[0122] Each transmitting lamp in the transmitting lamp group is controlled to emit light toward the receiving lamp group in sequence, and the light intensity corresponding to the light signal received by the multiple receiving lamps in the receiving lamp group is detected to obtain the light intensity set corresponding to each transmitting lamp, the light intensity set including the light intensity corresponding to each receiving lamp.
[0123] Furthermore, the processor 1001 can call the wick offset detection program stored in the memory 1004 and also perform the following operations:
[0124] The light intensity of the receiving lamp that is directly opposite the corresponding transmitting lamp in each set of light intensity is determined as the first light intensity;
[0125] The minimum light intensity among all the first light intensities is determined as the second light intensity;
[0126] When the deviation between the second light intensity and other light intensities in the light intensity set is greater than a preset threshold, and the minimum light intensity is the minimum value in all other light intensity sets, it is determined that the emitting lamp corresponding to the second light intensity has a lamp core offset.
[0127] Furthermore, the processor 1001 can call the wick offset detection program stored in the memory 1004 and also perform the following operations:
[0128] One of the light intensity sets is determined as the first light intensity set, and the minimum light intensity in the first light intensity set is determined;
[0129] When the deviation between the minimum light intensity and other light intensities in the first light intensity set is greater than a preset threshold, and the minimum light intensity is the minimum value in all other light intensity sets outside the first light intensity set, it is determined that the emitting lamp corresponding to the first light intensity set has a lamp core offset.
[0130] Furthermore, the processor 1001 can call the wick offset detection program stored in the memory 1004 and also perform the following operations:
[0131] Obtain the emission number of each emitting lamp in the emitting lamp group;
[0132] Each of the transmitting lights is controlled to enter a ready state, and each of the transmitting lights is controlled to emit light toward the receiving light group in sequence based on the transmission number;
[0133] When each of the transmitting lamps emits light, the light intensity corresponding to the light signal received by the multiple receiving lamps in the receiving lamp group is obtained.
[0134] Furthermore, the processor 1001 can call the wick offset detection program stored in the memory 1004 and also perform the following operations:
[0135] The emitter with a misaligned wick is marked as an offset lamp, and a prompt message is output to replace the offset lamp.
[0136] Furthermore, this embodiment of the invention also proposes a detection device, which includes a memory, a processor, and a control program for the detection device stored in the memory and executable on the processor. When the wick offset detection program of the light detection module is executed by the processor, it implements the steps of the wick offset detection method of the light detection module as described in the above embodiments.
[0137] Furthermore, this embodiment of the invention also proposes a computer-readable storage medium storing a wick offset detection program for a detection device. When the wick offset detection program of the light detection module is executed by a processor, it implements the steps of the wick offset detection method of the light detection module as described in the above embodiments.
[0138] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0139] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0140] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which may be a mobile phone) to execute the methods described in the various embodiments of the present invention.
[0141] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A method for detecting lamp wick offset in a light detection module, characterized in that, The light detection module includes a receiving light group and a transmitting light group. The number of transmitting lights in the receiving light group is the same as the number of transmitting lights in the receiving light group. Each transmitting light corresponds one-to-one with a receiving light, and each transmitting light and its corresponding receiving light are positioned facing each other. One transmitting light emits light towards the receiving light group. The receiving light positioned facing the receiving light group receives the maximum light intensity. The method includes: Controlling the transmitting lamps in the transmitting lamp group to emit light toward the receiving lamp group, and detecting the light intensity corresponding to the light signals received by the multiple receiving lamps in the receiving lamp group respectively, to obtain multiple light intensities, includes controlling each transmitting lamp in the transmitting lamp group to emit light toward the receiving lamp group in sequence, and detecting the light intensity corresponding to the light signals received by the multiple receiving lamps in the receiving lamp group respectively, to obtain a set of light intensities corresponding to each transmitting lamp, wherein the set of light intensities includes the light intensity corresponding to each receiving lamp; Determining whether the transmitting lamp has a wick offset based on the deviation value between different light intensities among the plurality of light intensities includes determining the light intensity of the receiving lamp that is directly opposite the corresponding transmitting lamp in each set of light intensities as the first light intensity; and determining the minimum light intensity among all the first light intensities as the second light intensity. When the deviation between the second light intensity and other light intensities in the light intensity set is greater than a preset threshold, and the minimum light intensity is the minimum value in all other light intensity sets, it is determined that the emitting lamp corresponding to the second light intensity has a lamp core offset.
2. The method as described in claim 1, characterized in that, The step of determining whether the emitting lamp has a wick offset based on the deviation value between different light intensities among the plurality of light intensities includes: Determine the minimum light intensity among the plurality of light intensities; When the deviation between the minimum light intensity and other light intensities among the plurality of light intensities is greater than a preset threshold, it is determined that the emitting lamp has a wick offset.
3. The method as described in claim 1, characterized in that, The step of determining whether the emitting lamp has a wick offset based on the deviation value between different light intensities among the plurality of light intensities includes: One of the light intensity sets is determined as the first light intensity set, and the minimum light intensity in the first light intensity set is determined; When the deviation between the minimum light intensity and other light intensities in the first light intensity set is greater than a preset threshold, and the minimum light intensity is the minimum value in all other light intensity sets outside the first light intensity set, it is determined that the emitting lamp corresponding to the first light intensity set has a lamp core offset.
4. The method as described in claim 1, characterized in that, The emitting lamps in the emitting lamp group use the same luminous power. When the light intensity data received by the receiving lamp is more than 70% of the normal luminous power of the emitting lamp, the lamp core of the emitting lamp is judged to be normal.
5. The method according to any one of claims 1-4, characterized in that, The step of controlling the transmitting lamps in the transmitting lamp group to emit light towards the receiving lamp group, and detecting the light intensity corresponding to the light signals received by multiple receiving lamps in the receiving lamp group to obtain multiple light intensities includes: Obtain the emission number of each emitting lamp in the emitting lamp group; Each of the transmitting lights is controlled to enter a ready state, and each of the transmitting lights is controlled to emit light toward the receiving light group in sequence based on the transmission number; When each of the transmitting lamps emits light, the light intensity corresponding to the light signal received by the multiple receiving lamps in the receiving lamp group is obtained.
6. The method according to any one of claims 1-4, characterized in that, After the step of determining whether the emitting lamp has a wick offset based on the deviation value between different light intensities among the plurality of light intensities, the method further includes: The emitter with a misaligned wick is marked as an offset lamp, and a prompt message is output to replace the offset lamp.
7. A detection device, characterized in that, The apparatus includes: a memory, a processor, and a wick offset detection program for a light detection module of the detection device, which is stored in the memory and can run on the processor. When the wick offset detection program of the light detection module is executed by the processor, it implements the steps of the wick offset detection method of the light detection module as described in any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a wick offset detection program for the light detection module of the detection device, which, when executed by a processor, implements the steps of the wick offset detection method of the light detection module as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Optical detector and method for determining displacement of optical axis in optical detector
JP2021135292A
Fault locating method, apparatus, and system
WO2022100384A1
