Light interference detection method and device and electronic equipment
By synchronously collecting ambient light and using different filter films to separate detection and interfering light, the problem of degradation of accuracy caused by light interference in photoelectric proximity detection is solved, and higher detection accuracy and lower misjudgment rate are achieved.
Patent Information
- Application Number
- CN202311138980.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-04
- Publication Date
- 2025-03-11
AI Technical Summary
In photoelectric proximity detection, light interference leads to a decrease in detection accuracy, making it difficult to effectively identify and remove interfering light.
A light interference detection method is adopted, and ambient light is collected simultaneously through the first receiving module and the second receiving module, and the detection light and interference light are separated by different filter films to generate an intensity signal to judge the existence of interference light.
The ability to identify interference in detected light is improved, the possibility of misjudgment is reduced, and the accuracy of photoelectric proximity detection is improved.
Smart Images

Figure CN119602861A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of optical detection technology, and in particular to a method, device and electronic equipment for detecting optical interference. Background Art
[0002] With the increasing demand for multi-functional electronic devices, proximity detection technology is widely used in electronic devices. Proximity detection can provide a detection basis for functions such as anti-false touch, automatic screen light, and fingerprint authentication.
[0003] Currently, the commonly used proximity detection method is photoelectric proximity detection.
[0004] The principle of photoelectric proximity detection is that electronic devices use photoelectric sensors to emit detection light. When the detection light encounters an object, it will be reflected back to the photoelectric sensor. In this way, the photoelectric sensor can judge the approach or distance of the object based on the time delay of the reflected detection light or the interruption of the light beam. However, during the detection process, the light received by the photoelectric sensor will not only contain the detection light, but also the interference light, which will cause the accuracy of photoelectric proximity detection to decrease. Summary of the invention
[0005] In order to solve the above problems, the present application provides a light interference detection method, device and electronic equipment, which can improve the ability to identify interference in the detection light, reduce the possibility of misjudgment, and improve the accuracy of photoelectric proximity detection.
[0006] In order to achieve the above-mentioned purpose, in the first aspect, the present application provides a method for detecting light interference, comprising: in response to the emission of detection light by the emission module, using the first receiving module and the second receiving module to synchronously collect the first ambient light containing the detection light, and obtaining a first intensity signal and a second intensity signal, the first intensity signal corresponds to the light intensity of the first ambient light collected by the first receiving module, and the second intensity signal corresponds to the light intensity of the first ambient light collected by the second receiving module; wherein the first receiving module is configured to collect the first band of the ambient light using the first filter film, and the second receiving module is configured to collect the second band of the ambient light using the second filter film, the detection light is located in the first band, the second band is the band of the interference light, and the first band is different from the second band; based on the relationship between the first intensity signal and the second intensity signal, determine whether the interference light interferes with the detection light. The light interference detection method provided by the embodiment of the present application uses the first receiving module and the second receiving module to synchronously collect the first ambient light, and the first receiving module collects the detection light and the second receiving module collects the interference light. In this way, the detection light and the interference light can be collected separately, so that it is convenient to judge whether the interference light interferes with the detection light according to the first intensity signal and the second intensity signal generated by each. This not only improves the ability to identify interfering light, but also reduces the possibility of false alarms, thereby improving the accuracy of photoelectric proximity detection.
[0007] In an optional embodiment, it also includes: before the transmitting module emits the detection light, the first receiving module and the second receiving module are used to synchronously collect the second ambient light that does not contain the detection light to obtain the first current signal and the second current signal; wherein the first current signal is obtained by the first receiving module performing photoelectric conversion on the collected second ambient light, and the second current signal is obtained by the second receiving module performing photoelectric conversion on the collected second ambient light; the first current signal is integrated to obtain the first charge signal, and the second current signal is integrated to obtain the second charge signal. In this embodiment, since the first ambient light contains not only the detection light and the interference light, but also the background light. By collecting the second ambient light that does not contain the detection light, the background light is removed later, thereby improving the accuracy of the analysis of the detection light and the interference light. At the same time, since the charge signal is easier to process and analyze than the current signal, the first current signal and the second current signal can be converted into the first charge signal and the second charge signal by integration.
[0008] In an optional embodiment, a first receiving module and a second receiving module are used to synchronously collect a first ambient light source including a detection light to obtain a first intensity signal and a second intensity signal, including: using the first receiving module and the second receiving module to synchronously collect the first ambient light to obtain a third current signal and a fourth current signal; wherein the third current signal is obtained by the first receiving module performing photoelectric conversion on the collected first ambient light, and the fourth current signal is obtained by the second receiving module performing photoelectric conversion on the collected first ambient light; integrating the third current signal to obtain a third charge signal, and integrating the fourth current signal to obtain a fourth charge signal; performing differential operation on the first charge signal and the third charge signal to obtain a first intensity signal, and performing differential operation on the second charge signal and the fourth current signal to obtain a second intensity signal, wherein the first intensity signal and the second intensity signal are both voltage signals. In this embodiment, after collecting the second ambient light, the third current signal and the fourth current signal generated by the second ambient light conversion can be processed to obtain a third charge signal and a fourth charge signal that are easy to process and analyze. To remove the influence of background light in the third charge signal and the fourth charge signal, the third charge signal can be differentiated from the first charge signal, and the fourth charge signal and the second charge signal can be differentiated at the same time, thereby obtaining the first intensity signal and the second intensity signal without background light interference.
[0009] In an optional implementation, the duration of integrating the first current signal is the same as the duration of integrating the second current signal. In this implementation, while achieving the synchronous operation of the first receiving module and the second receiving module, a single variable can also be controlled to improve the accuracy of analyzing the detection light and the interference light.
[0010] In an optional implementation, the duration of integrating the third current signal is the same as the duration of integrating the fourth current signal. In this implementation, while achieving the synchronous operation of the first receiving module and the second receiving module, a single variable can also be controlled to improve the accuracy of analyzing the detection light and the interference light.
[0011] In an optional embodiment, determining whether the interference light interferes with the detection light based on the relationship between the first intensity signal and the second intensity signal includes: determining an intensity difference value between the first intensity signal and the second intensity signal; and determining whether the interference light interferes with the detection light based on the relationship between the intensity difference value and a preset threshold. In this embodiment, the first intensity signal and the second intensity signal can be processed, and whether interference is constituted can be determined based on the obtained intensity difference value, so as to facilitate analysis.
[0012] In an optional embodiment, the intensity difference value includes at least any one of the following: a ratio of the first intensity signal divided by the second intensity signal; a ratio of the second intensity signal divided by the first intensity signal; a difference of the first intensity signal minus the second intensity signal; a difference of the second intensity signal minus the first intensity signal; a sum of the first intensity signal and the second intensity signal; a product of the first intensity signal and the second intensity signal. In this embodiment, the intensity difference value can be obtained by a variety of means to facilitate analysis.
[0013] In an optional implementation, when the intensity difference value includes a ratio obtained by dividing the second intensity signal by the first intensity signal, determining whether the interference light interferes with the detection light based on the relationship between the intensity difference value and a preset threshold value includes: if the intensity difference value is greater than the preset threshold value, determining that the interference light does not interfere with the detection light; if the intensity difference value is less than the preset threshold value, determining that the interference light interferes with the detection light. In this implementation, the relationship between the ratio and the preset threshold value can be compared to determine whether interference exists.
[0014] In order to achieve the above-mentioned purpose, in the second aspect, the present application provides a light interference detection device, comprising: a transmitting module, configured to transmit detection light, the detection light is configured to be reflected at an object; a first receiving module and a second receiving module, configured to synchronously collect the first ambient light containing the detection light in response to the transmitting module transmitting the detection light; wherein the first receiving module is configured to collect the first band of the ambient light using the first filter film, and the second receiving module is configured to collect the second band of the ambient light using the second filter film; the first receiving module is configured to output a first intensity signal according to the first ambient light collected by itself; the second receiving module is configured to output a second intensity signal according to the first ambient light collected by itself; the processing module is configured to determine whether the interference light interferes with the detection light based on the relationship between the first intensity signal and the second intensity signal; wherein the detection light is in the first band, the second band is the band of the interference light, and the first band is different from the second band. In this embodiment, the first ambient light is synchronously collected by the first receiving module and the second receiving module, and the first receiving module collects the detection light and the second receiving module collects the interference light. In this way, the detection light and the interference light can be collected separately, so as to judge whether the interference light interferes with the detection light according to the first intensity signal and the second intensity signal respectively generated. This can not only improve the ability to identify the interference light, but also reduce the possibility of false alarm of approach, so as to improve the accuracy of approach or distance judgment.
[0015] In an optional embodiment, the first receiving module includes a first photoelectric conversion circuit and a first integration circuit; the second receiving module includes a second photoelectric conversion circuit and a second integration circuit; the first photoelectric conversion circuit and the second photoelectric conversion circuit are configured to synchronously collect the second ambient light that does not contain the detection light before the transmitting module emits the detection light, and obtain the first current signal and the second current signal; wherein the first current signal is obtained by the first photoelectric conversion circuit performing photoelectric conversion on the collected second ambient light, and the second current signal is obtained by the second photoelectric conversion circuit performing photoelectric conversion on the collected second ambient light; the first integration circuit is configured to integrate the first current signal to obtain the first charge signal; the second integration circuit is configured to integrate the second current signal to obtain the second charge signal. In this embodiment, since the first ambient light contains not only the detection light and the interference light, but also the background light. By collecting the second ambient light that does not contain the detection light, the background light is removed in the subsequent analysis, so as to improve the accuracy of the analysis of the detection light and the interference light. At the same time, since the charge signal is easier to process and analyze than the current signal, the first current signal and the second current signal can be converted into the first charge signal and the second charge signal by integration.
[0016] In an optional embodiment, the first photoelectric conversion circuit and the second photoelectric conversion circuit are also configured to synchronously collect the first ambient light to obtain a third current signal and a fourth current signal; wherein the third current signal is obtained by the first photoelectric conversion circuit performing photoelectric conversion on the collected first ambient light, and the fourth current signal is obtained by the second photoelectric conversion circuit performing photoelectric conversion on the collected first ambient light; the first integration circuit is also configured to integrate the third current signal to obtain a third charge signal; the second integration circuit is also configured to integrate the fourth current signal to obtain a fourth charge signal; the first receiving module also includes a first differential circuit; the second receiving module also includes a second differential circuit; the first differential circuit is configured to perform differential operation on the first charge signal and the third charge signal to obtain a first intensity signal; the second differential circuit is configured to perform differential operation on the second charge signal and the fourth charge signal to obtain a second intensity signal; wherein the first intensity signal and the second intensity signal are both voltage signals. In this embodiment, after collecting the second ambient light, the third current signal and the fourth current signal generated by the second ambient light conversion can be processed to obtain a third charge signal and a fourth charge signal that are easy to process and analyze. To remove the influence of background light in the third charge signal and the fourth charge signal, the third charge signal can be differentiated from the first charge signal, and the fourth charge signal and the second charge signal can be differentiated at the same time, thereby obtaining the first intensity signal and the second intensity signal without background light interference.
[0017] In an optional implementation, the time length for which the first integration circuit integrates the third current signal is the same as the time length for which the second integration circuit integrates the fourth current signal. In this implementation, while achieving the synchronous operation of the first receiving module and the second receiving module, a single variable can also be controlled to improve the accuracy of the analysis of the detection light and the interference light.
[0018] In an optional implementation, the time length for which the first integration circuit integrates the first current signal is the same as the time length for which the second integration circuit integrates the second current signal. In this implementation, while achieving the synchronous operation of the first receiving module and the second receiving module, a single variable can also be controlled to improve the accuracy of the analysis of the detection light and the interference light.
[0019] In an optional embodiment, the first integration circuit is configured to perform the following steps in sequence before the transmitting module transmits the detection light: clearing its own circuit charge; integrating the first current signal to obtain a first charge signal; the second integration circuit is configured to perform the following steps in sequence before the transmitting module transmits the detection light: clearing its own circuit charge; integrating the second current signal to obtain a second charge signal. In this embodiment, since the charge in the circuit will cause errors in the analysis of the detection light and the interference light, the charge in the circuit is first cleared before collecting the second ambient light to improve the accuracy of the first charge signal and the second charge signal.
[0020] In an optional embodiment, the first integration circuit is configured to perform the following steps in sequence during the period when the transmitting module emits the detection light: sending the first charge signal to the first differential circuit; clearing its own circuit charge; integrating the third current signal to obtain the third charge signal; the second integration circuit is configured to perform the following steps in sequence during the period when the transmitting module emits the detection light: sending the second charge signal to the second differential circuit; clearing its own circuit charge; integrating the fourth current signal to obtain the fourth charge signal. In this embodiment, since the charge existing in the circuit will cause errors in the analysis of the detection light and the interference light, before collecting the first ambient light, the charge in the circuit is first cleared to improve the accuracy of the third charge signal and the fourth charge signal.
[0021] In an optional implementation, the first integration circuit is configured to send the third charge signal to the first differential circuit after the transmitting module finishes emitting the detection light; and the second integration circuit is configured to send the fourth charge signal to the second differential circuit after the transmitting module finishes emitting the detection light. In this implementation, differential processing can be easily implemented.
[0022] In an optional implementation, the first differential circuit is configured to perform a differential operation on the first charge signal and the third charge signal after the transmitting module finishes emitting the detection light to obtain a first intensity signal; the first integration circuit is configured to perform a differential operation on the second charge signal and the fourth charge signal after the transmitting module finishes emitting the detection light to obtain a second intensity signal. In this implementation, differential processing can be easily implemented to obtain the first intensity signal and the second intensity signal.
[0023] In an optional embodiment, the processing module is configured to determine an intensity difference value between the first intensity signal and the second intensity signal, and determine whether the interference light interferes with the detection light based on the relationship between the intensity difference value and a preset threshold. In this embodiment, the first intensity signal and the second intensity signal can be processed, and whether interference is constituted is determined based on the obtained intensity difference value, so as to facilitate analysis.
[0024] In an optional embodiment, the intensity difference value includes at least any one of the following: a ratio of the first intensity signal divided by the second intensity signal; a ratio of the second intensity signal divided by the first intensity signal; a difference of the first intensity signal minus the second intensity signal; a difference of the second intensity signal minus the first intensity signal; a sum of the first intensity signal and the second intensity signal; a product of the first intensity signal and the second intensity signal. In this embodiment, the intensity difference value can be obtained by a variety of means to facilitate analysis.
[0025] In an optional implementation, when the intensity difference value includes a ratio obtained by dividing the second intensity signal by the first intensity signal, the processing module is configured to: if the intensity difference value is greater than a preset threshold, determine that the interference light does not interfere with the detection light; if the intensity difference value is less than the preset threshold, determine that the interference light interferes with the detection light. In this implementation, the relationship between the ratio and the preset threshold can be compared to determine whether interference exists.
[0026] In order to achieve the above-mentioned purpose, in a third aspect, the present application provides an electronic device, including: the light interference detection device described in the above-mentioned second aspect.
[0027] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, in which instructions are stored, and when the computer-readable storage medium is run on a computer, the computer executes the above-mentioned aspects and methods of each implementation thereof.
[0028] In a fifth aspect, an embodiment of the present application further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the above-mentioned aspects and methods of each of its implementation methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0030] Figure 1 A schematic diagram of the principle structure of a proximity detection provided by this embodiment.
[0031] Figure 2 A schematic diagram of the structure of an electronic device provided in this embodiment.
[0032] Figure 3 For along Figure 2 Local cross-sectional view along the AA direction.
[0033] Figure 4A schematic diagram of the structure of a proximity light sensor provided in this embodiment.
[0034] Figure 5 A schematic diagram of the circuit working principle of a proximity light sensor provided in this embodiment.
[0035] Figure 6 This is a wavelength response curve of a photosensor provided in this embodiment.
[0036] Figure 7 The wavelength response curve of the receiving end with the first filter film provided in this embodiment.
[0037] Figure 8 A schematic diagram of the deflection angle of incident light provided in this embodiment.
[0038] Fig. 9 This is a graph showing the deviation of the central wavelength of the filter film provided in this embodiment versus the incident angle.
[0039] Fig.10 This is a timing control diagram of the flashing light source and approaching light provided in this embodiment.
[0040] Fig.11 This is a noise curve diagram generated by the flickering light source provided in this embodiment.
[0041] Fig.12 A schematic diagram of the structure of a light interference detection device provided in this embodiment.
[0042] Fig.13 This is a first exemplary flow chart of a light interference detection method provided in this embodiment.
[0043] Fig.14 A response curve diagram of the receiving end with the second filter film provided in this embodiment.
[0044] Fig.15 A second exemplary flow chart of a light interference detection method provided in this embodiment.
[0045] Fig.16 A signal change flow chart provided for this embodiment.
[0046] Fig.17 This is a structural block diagram of a light interference detection device provided in this embodiment.
[0047] Fig.18 A circuit structure diagram of a first receiving module and a second receiving module provided in this embodiment.
[0048] Fig.19 A control timing diagram of a light interference detection method provided in this embodiment.
[0049] Fig. 20 A circuit structure diagram of a processing module provided in this embodiment. DETAILED DESCRIPTION
[0050] The technical solutions in the embodiments of the present application will be clearly described below in conjunction with the drawings in the embodiments of the present application.
[0051] Proximity detection generally uses a sensor to detect the distance between an object and the sensor, so as to provide corresponding feedback to the electronic device or trigger other operations according to the change of the distance. Commonly used proximity detection methods include ultrasonic proximity detection using ultrasonic sensors, capacitive proximity detection using capacitive sensors, magnetic field proximity detection using magnetic field sensors, and photoelectric proximity detection using photoelectric sensors. In other words, different detection signals can be emitted for different sensors to detect the distance of the object.
[0052] It is understandable that the above-mentioned objects can be general objects or designated targets. Among them, general objects can be all objects around the proximity detection device, which can include living objects or inanimate objects, etc. The designated target can be a designated one of the general objects, that is, the target often has certain characteristics to distinguish other objects. In the proximity detection process, not only can all objects around the sensor be detected, but also a designated target can be detected. When performing proximity detection on a designated target, it can also be combined with automatic recognition technology, and detection can be performed after the target is identified. Alternatively, other methods can be used, which are not specifically introduced in this embodiment.
[0053] Figure 1 A schematic diagram of the principle structure of a proximity detection provided by this embodiment.
[0054] like Figure 1 As shown, the proximity detection device generally needs to include a transmitting device 01 and a receiving device 02. The transmitting device 01 is used to transmit a detection signal. When the detection signal encounters an object 03, at least part of it will be reflected on the surface of the object 03. The receiving device 02 is used to receive the reflected detection signal to detect the proximity or distance of the object 03.
[0055] In one example, if the proximity detection device is an ultrasonic sensor, the transmitting device 01 is the transmitting end of the ultrasonic sensor, which is used to emit ultrasonic waves as detection signals, and the receiving device 02 is the receiving end of the ultrasonic sensor, which is used to receive ultrasonic waves reflected back by the object 03. It can calculate the distance between the detection device and the object 03 according to the time when the transmitting device 01 emits the ultrasonic wave and the time when the receiving device 02 receives the ultrasonic wave.
[0056] In another example, if the proximity detection device uses a photoelectric sensor, the transmitting device 01 is the transmitting end of the photoelectric sensor, which is used to emit a detection light as a detection signal, and the receiving device 02 is the receiving end of the photoelectric sensor, which is used to receive the detection light reflected by the object 03. It can determine the distance between the object 03 and the detection device according to the intensity, time or interruption of the detection light received by the receiving device 02.
[0057] Among various proximity detection methods, photoelectric proximity detection is widely used in automatic door systems, robot navigation, industrial automation, and smart terminals due to its advantages of high precision, fast response, non-contact detection, and wide compatibility.
[0058] Photoelectric sensors are important components in photoelectric proximity detection devices. Their accuracy and sensitivity can directly affect the accuracy and sensitivity of photoelectric proximity detection. Among them, the proximity light sensor is a type of photoelectric sensor, which is mainly used to detect the distance or proximity between the object 03 and the sensor. The proximity light sensor can send a signal based on the object 03's occlusion or reflection of light to determine whether the object 03 is approaching or trigger a response operation.
[0059] Taking mobile phones, tablet computers and other electronic devices as examples, proximity light sensors can realize functions such as preventing accidental touches, automatically lighting the screen, face recognition, and fingerprint recognition. Electronic devices can turn on some functions, such as lighting the screen and face recognition, according to the proximity of object 03. Electronic devices can also turn off some functions according to the proximity of object 03, such as turning off the touch screen to prevent accidental touches. Its specific application can realize different functions according to the corresponding operation instructions of the detection signal of the proximity light sensor.
[0060] Figure 2 A schematic diagram of the structure of an electronic device provided in this embodiment.
[0061] like Figure 2 As shown, the electronic device may include a display screen 04, a proximity light sensor 05, and a rear shell 06. There is a cavity between the display screen 04 and the rear shell 06 for arranging components such as a motherboard and a battery of the electronic device (not shown in the figure), and the proximity light sensor 05 is arranged on the display screen 04 or the rear shell 06. The proximity light sensor 05 can be used to detect whether there is an object 03 blocking a specific direction of the electronic device, so as to realize functions such as anti-mistouch, gesture control, screen lighting by wrist raising, and color temperature adjustment.
[0062] Figure 3 For along Figure 2 Local cross-sectional view in the AA direction.
[0063] like Figure 3 As shown, Figure 3(a) in the figure is to set the proximity light sensor 05 below the display screen 04 and emit a detection signal toward the outside of the display screen 04. At this time, the proximity light sensor 05 is used to detect whether an object 03 is close to the mobile phone screen. Taking the wrist-raising screen-lighting as an example, when the user points the display screen 04 of the electronic device toward the face, the face will be relatively close to the display screen 04. At this time, the proximity light sensor 05 can detect that an object 03 (human face) is close to the display screen 04. The electronic device can perform the screen-lighting operation according to the detection result of the proximity light sensor 05 for the convenience of user use.
[0064] Figure 3 (b) is to set the proximity light sensor 05 near the frame of the rear shell 06, and emit a detection signal in the direction of the frame. At this time, the proximity light sensor 05 is used to detect the object 03 near the frame of the electronic device. Taking the prevention of accidental touch as an example, when the user uses an electronic device to make a call, the electronic device will be close to the ear. In order to prevent the user from accidentally touching the display screen with the ear during the call and affecting the call, the proximity light sensor 05 can emit detection light toward the top. There can be an angle between the detection light and the display screen 04 to facilitate the detection of the distance between the display screen 04 and the ear. When the proximity light sensor 05 detects that it is close to the ear, the electronic device can execute the operation of shutting down the display screen 04 according to the detection result of the proximity light sensor 05 to prevent accidental touch.
[0065] It is understandable that the specific configuration of the proximity light sensor 05 on the electronic device can be adjusted according to actual needs, and this embodiment does not limit this.
[0066] It is worth noting that the above-mentioned electronic devices may include but are not limited to mobile phones, tablet computers, smart wearable devices, personal digital assistants (PDAs), augmented reality (AR) and virtual reality (VR) devices, vehicle-mounted devices and other electronic devices. The electronic devices may also be electronic products such as electric cars, household appliances, headphones, and drones. The embodiments of the present application do not impose any special restrictions on the specific form of the electronic device.
[0067] Figure 4 A schematic diagram of the structure of a proximity light sensor provided in this embodiment.
[0068] Figure 5 A schematic diagram of the circuit working principle of a proximity light sensor provided in this embodiment.
[0069] like Figure 4 and Figure 5As shown, take the example of setting the proximity light sensor 05 under the display screen 04 of the electronic device. The proximity light sensor 05 includes a light source 051 and a photosensitive device 052. Among them, the photosensitive device 052 may include a photosensitive diode or a photosensitive transistor. During the detection process, the light source 051 emits a detection light 053. The detection light passes through a part of the structure of the display screen 04 and is emitted to the outside of the electronic device. The detection light 053 is reflected when encountering the object 03 to form a reflected light 054. The reflected light 054 is irradiated to the photosensitive device 052 via the display screen 04. The photosensitive device 052 has a photoelectric conversion function, that is, it can convert the optical signal into an electrical signal, so as to judge the proximity between the object 03 and the sensor according to the intensity of the received reflected light 054, time delay or light beam interruption and other information.
[0070] like Figure 5 As shown, for example, when the photosensitive device 052 is a photosensitive diode (such as Figure 5 When the photosensitive diode is connected to the integral unit and the differential unit, the reflected detection light signal can be received and converted, so that the electronic device can perform feedback operations according to the signal, such as performing screen lighting, anti-touch and other related operations.
[0071] Specifically, Figure 5 The IR LED in the figure is an infrared LED, which is used as a light source 051 to emit infrared light. The IR LED is connected to the GPIO_control pin to control the IR LED. When the IR LED is turned on, it will emit infrared light, and the PD will receive the infrared light and convert the optical signal into an electrical signal to transmit to the integration unit and the differential unit, and finally output Vpd to output the proximity detection result. One end of the PD is connected to the integration circuit, and the other end is grounded to VCC.
[0072] like Figure 4As shown, in order to realize the display function, the display screen 04 is provided with a multi-layer film structure inside. The display screen 04 includes a first film group 041 and a second film group 042. The first film group 041 may include a protective glass layer (Cover Glass, CG), an adhesive layer (Optically Clear Adhesive, OCA), a polarizer layer (Polarizer, POL), a sensor (Sensor), an adhesive layer (Optically Clear Adhesive, OCA), a display panel layer (PANEL), a base layer (Polyimide, PI), etc., which are arranged from top to bottom. These film layer structures are all transparent film layers with high light transmittance. The second film group 042 may include a textured adhesive layer, a foam, a base layer, a copper foil and an isolation foam layer, which are arranged from top to bottom. Among them, the textured adhesive layer, the foam, the copper foil and the isolation foam layer are all opaque film layers, and the base layer is a transparent film layer. At the same time, the textured adhesive layer is at the top of the second film group 042, and the isolation foam layer is at the bottom. This will result in external light only irradiating the textured rubber layer, while internal light only irradiating the isolation foam layer. In addition, since some film layers in the second film group 042, such as the base layer, may be light-transmitting film layers, a certain amount of light can also pass through the positions of the light-transmitting film layers.
[0073] When the proximity light sensor 05 is disposed on the display screen 04, in order to enable the proximity light sensor 05 to work properly, a portion of the second film group 042 needs to be removed to place the light source 051 and the photosensitive device 052. In this way, the detection light 053 emitted by the light source 051 can pass through the first film group 041 to irradiate the object 03, and the reflected light 054 can also pass through the first film group 041 to irradiate the photosensitive device 052.
[0074] In the above process, the first film group 041 can not only transmit the detection light 053 emitted by the light source 051 and the reflected light 054 reflected by the object 03, but also transmit all the light in the environment, such as sunlight, lights in the environment, etc. That is, sunlight or lights in the environment can also pass through the first film group 041 to illuminate the photosensitive device 052. In the process of approach detection, the photosensitive device 052 should only receive the detection light 053 from the light source 051, while sunlight, lights in the environment, etc. can also illuminate the photosensitive device 052. In this way, sunlight and lights in the environment will interfere with the photosensitive device 052. The light that passes through the first film group 041, except for the detection light 053 and reflected light 054 emitted by the light source 051, can be called interference light that interferes with the photosensitive device 052.
[0075] Figure 6 This is a wavelength response curve of a photosensor provided in this embodiment.
[0076] like Figure 6 As shown, Figure 6 The horizontal axis is the wavelength of light in nm. Figure 6 The vertical axis in is the responsiveness. Figure 6 It can be seen that some photosensitive devices 052 can respond to wavelengths in the range of 400nm-1100nm. Since the wavelength response range of the photosensitive device 052 is relatively large, it can cover 400nm-1100nm, which includes the wavelength band of visible light and the wavelength band of invisible light, and the interference light in the environment is generally visible light. If the detection light emitted by the light source 051 is also visible light, then when the interference light irradiates the photosensitive device 052, the photosensitive device 052 will not be able to distinguish the interference light from the detection light, which will affect the detection result. Therefore, in order to facilitate the distinction between the detection light and the interference light of the light source 051, the light source 051 can usually be a light source device that can emit invisible light, that is, the detection light is invisible light. For example, the light source 051 can be an infrared light LED, an infrared laser, etc., to emit infrared light for distinguishing visible light in the environment.
[0077] Figure 7 The wavelength response curve of the receiving end with the first filter film provided in this embodiment.
[0078] like Figure 7 As shown, Figure 7 The horizontal axis is the wavelength of light in nm. Figure 7 The vertical axis in is the response degree. Taking the invisible light emitted by the light source 051 as infrared light as an example, Figure 7 is the wavelength response curve of the photosensitive device 052 with the first filter film, wherein the first filter film is an infrared filter film. Figure 7 It can be seen that the wavelength range that the photosensitive device 052 with an infrared filter can respond to is 900nm-960nm. Correspondingly, the photosensitive device 052 should also only be able to receive infrared light, and an infrared filter can be set on the surface of the receiving light source of the photosensitive device 052. The infrared filter can facilitate the passage of light in a specified band and filter out other interfering light. For example, when an infrared filter is set on the surface of the photosensitive device 052, the infrared filter can only transmit infrared light with a central wavelength of about 940nm. At this time, the photosensitive device 052 will only respond to infrared light that can pass through the infrared filter, thereby reducing the impact of interfering light on the detection results.
[0079] It is worth noting that if the detection light emitted by the light source 051 is other invisible light, the filter film needs to transmit the same invisible light so that the photosensitive device 052 can respond.
[0080] However, in the design and application of the filter film, due to the influence of the cutoff depth, cutoff steepness and other characteristics of the filter film, the filter film cannot completely respond to the spectrum of a specific wavelength. This will cause a certain degree of spectrum leakage during the use of the filter film. In addition, when the incident light is non-vertical, the filter film will also undergo a wavelength blue shift, causing the spectrum that it can originally transmit to shift to the left. In this way, the light that can originally pass through the filter film will be affected, and a large amount of interference light will enter, resulting in a large amount of noise signals in the detection results, affecting the accuracy of the proximity light sensor.
[0081] Figure 8 A schematic diagram of the deflection angle of incident light provided in this embodiment.
[0082] like Figure 8 As shown, when the incident light 055 is at right angles to the surface of the filter film 056, the incident light 055 coincides with the perpendicular direction of the filter film 07. When the incident light 055 and the perpendicular direction of the filter film have an included angle α, the filter film has a probability of producing a wavelength blue shift phenomenon.
[0083] Fig. 9 This is a graph showing the deviation of the central wavelength of the filter film provided in this embodiment versus the incident angle.
[0084] Generally speaking, the larger the angle α between the incident light and the vertical beam, the smaller the central wavelength that the filter film can transmit. Fig. 9 As shown, Fig. 9 The horizontal axis is the wavelength in nm. Fig. 9 The ordinate in is the responsivity, and the unit is %. Taking the infrared filter film as an example, the wavelength range that the infrared filter film can transmit is 900nm-1050nm, and the central wavelength is 940nm. Fig. 9 When α=0°, that is, the incident light is incident vertically, the wavelength range that the filter film can transmit is 890nm-1040nm, at this time the filter film can transmit light with a wavelength of 890nm-1040nm; when α=20°, the wavelength range that the filter film can transmit changes to 830nm-1000nm, at this time the filter film can transmit light with a wavelength of 830nm-1000nm; when α=40°, the wavelength range that the filter film can transmit changes to 790nm-920nm, this When α=60°, the wavelength range that the filter film can transmit changes to 720nm-880nm, and the filter film can transmit light with a wavelength of 720nm-880nm; when α=80°, the wavelength range that the filter film can transmit changes to 580nm-620nm, 690nm-880nm, and the filter film can transmit light with a wavelength of 580nm-620nm, 690nm-880nm.
[0085] It can be seen that when the deflection angle α of the incident light is larger, the central wavelength that the filter film can originally transmit will change more obviously. This will cause the light that was originally supposed to pass through the filter film to be unable to penetrate, while the light that was originally supposed to be intercepted can pass through the filter film. At this time, a large amount of interference light will enter the photosensitive device, resulting in abnormal phenomena such as false alarms of proximity, affecting the accuracy of the detection results.
[0086] When the wavelength of the filter film blue-shifts, if there is a flickering light source in the environment with a frequency close to the proximity light detection frequency, it will further cause the proximity light background noise to increase abnormally, and the possibility of abnormal phenomena such as false alarms will further increase, affecting the detection accuracy of the proximity light sensor.
[0087] Fig.10 This is a timing control diagram of the flashing light source and approaching light provided in this embodiment.
[0088] Fig.11 This is a noise curve diagram generated by the flickering light source provided in this embodiment.
[0089] like Fig.10 and Fig.11 As shown, Fig.10 The curve where L1 is located is the control timing of the flashing light source. Fig.10 The curve where L2 is located is the control timing of the approaching light. Fig.10 In the figure, the control cycles of the flashing light source and the proximity light are both T. The control cycle starts at t1. At t2, the flashing light source and the proximity light are turned on at the same time. At t3, the proximity light is turned off. In the time period t2-t3, the flashing light source and the proximity light are turned on at the same time, that is, the flashing light source and the proximity light overlap. When the control timing of the proximity light overlaps with the control timing of the flashing light source, if the flashing light source is turned off, no flashing light source will enter the proximity light sensor. At this time, there is no background noise in the proximity light sensor; if the flashing light source is turned on, a large amount of flashing light source will enter the proximity light sensor, resulting in a large amount of background noise in the proximity light sensor. At the same time, the higher the frequency of the flashing light source, the greater the background noise it generates.
[0090] In summary, although setting a filter film on the photosensitive device can filter out the interference light to reduce the impact of the interference light on the detection result. However, since the filter film itself also has the wavelength blue shift phenomenon, and the control timing of the external flashing light source may overlap with the control timing of the approaching light, there will still be interference light passing through the filter film and irradiating the photosensitive device. In this way, not only will the transmittance of the detection light on the filter film be affected, the photosensitive device will also mistake the interference light for the detection light and output the detection result, resulting in a false alarm, which seriously affects the detection accuracy of the proximity light sensor.
[0091] In order to improve the detection accuracy of a proximity light sensor, an embodiment of the present application provides a light interference detection method.
[0092] Fig.12 A schematic diagram of the structure of a light interference detection device provided in this embodiment.
[0093] In one embodiment, the optical interference detection method can be based on Fig.12 The light interference detection device 200 shown is implemented.
[0094] like Fig.12 As shown, the optical interference detection device 200 includes a transmitting module 1, a first receiving module 2, a second receiving module 3 and a processing module 4. When performing detection, the transmitting module 1 is used to transmit detection light. After the detection light encounters an object, it will be reflected on the surface of the object to facilitate the judgment of the distance of the object. The first receiving module 2 is used to receive the detection light and judge the distance of the object based on the time delay, light intensity and beam interruption characteristics of the detection light. The second receiving module 3 is used to collect ambient light to determine whether there is interference. The processing module 4 is used to analyze the signals output by the first receiving module 2 and the second receiving module 3. Before judging the proximity detection, it is first judged whether there is interference to improve the accuracy of the proximity detection.
[0095] It is worth noting that in a general proximity detection process, a receiving module for receiving detection light is provided. However, the optical interference detection device 200 provided in this embodiment includes not only a first receiving module 2 for receiving detection light, but also a second receiving module 3 to simultaneously collect ambient light, thereby realizing the detection and judgment of interference. This can reduce the possibility of approach misjudgment and improve the accuracy of proximity detection.
[0096] Fig.13 This is a first exemplary flow chart of a light interference detection method provided in this embodiment.
[0097] like Fig.13 As shown, in one embodiment, the method may include the following steps:
[0098] Step S210: In response to the transmitting module 1 emitting detection light, the first ambient light containing the detection light is synchronously collected by the first receiving module 2 and the second receiving module 3 to obtain a first intensity signal and a second intensity signal, wherein the first intensity signal corresponds to the intensity of the first ambient light collected by the first receiving module 2, and the second intensity signal corresponds to the intensity of the first ambient light collected by the second receiving module 3.
[0099] In the embodiment of the present application, the first receiving module 2 is configured to collect the first band of ambient light using the first filter film. The first band refers to the band that can pass through the first filter film when the ambient light is incident vertically on the first filter film. In addition, if there is a certain angle between the incident direction of the ambient light and the vertical direction of the first filter film, the first filter film will produce a wavelength blue shift phenomenon, causing the first filter film to also pass light in other wavelength ranges. In other words, the first ambient light collected by the first receiving module 2 using the first filter film may include more than the first band. The second receiving module 3 is configured to collect the second band of ambient light using the second filter film. The second band refers to the band that can pass through the second filter film when the ambient light is incident vertically on the second filter film. In addition, if there is a certain angle between the incident direction of the ambient light and the vertical direction of the second filter film, the second filter film will produce a wavelength blue shift phenomenon, causing the second filter film to also pass light in other wavelength ranges. In other words, the first ambient light collected by the second receiving module 3 using the second filter film may include more than the second band. The detection light is in a first waveband, and the second waveband is a waveband of the interference light. The first waveband is different from the second waveband, so as to distinguish the detection light from the interference light.
[0100] It is understandable that when the transmitting module 1 emits the detection light, the environment in which the first receiving module 2 and the second receiving module 3 are located will not only contain the detection light, but also contain sunlight, a constant light source in the environment, a flickering light source in the environment, and a light source that suddenly appears or suddenly disappears in the environment. In this case, the light in the environment in which the first receiving module 2 and the second receiving module 3 are located can be called the first ambient light. Among them, the detection light is the light emitted by the transmitting module 1, which is controllable and known. The flickering light source in the first environment and the light source that suddenly appears or suddenly disappears are uncontrollable light sources and are unknown. This light source can be called interference light. The presence of interference light can cause serious interference to proximity detection and even cause false alarms.
[0101] In one implementation, since the wavelength of the interference light is mostly in the visible light band, in order to distinguish the detection light from the interference light, the wavelength of the detection light can be in the invisible light band, for example, the detection light can be infrared light. Accordingly, the transmitting module 1 can be an infrared light source, such as an LED infrared light source or an infrared laser.
[0102] For example, when the first receiving module 2 and the second receiving module 3 are used to receive light of different wavelength bands, the first filter film and the second filter film can be used to transmit light of different wavelength bands. The first filter film can be a film structure that allows light of the first wavelength band to pass through; the second filter film can be a film structure that allows light of the second wavelength band to pass through.
[0103] Fig.14 A response curve diagram of the receiving end with the second filter film provided in this embodiment.
[0104] in, Fig.14 The horizontal axis is the wavelength of light in nm. Fig.14 The vertical axis is the responsiveness.
[0105] For example, Figure 7 and Fig.14 As shown, if the detection light is infrared light, the wavelength range that the first filter film can transmit is 900nm-960nm, and at this time, the wavelength range that the first receiving module 2 can respond to is 900nm-960nm. If the interference light is visible light, the wavelength range that the second filter film can transmit is 400nm-750nm, and at this time, the wavelength range that the second receiving module 3 can respond to is 400nm-750nm.
[0106] For the first filter film, when the first ambient light is incident vertically on the first filter film, the first filter film can transmit the light of the first wavelength in the first ambient light. When the incident angle of the first ambient light is at a certain angle to the vertical direction of the first filter film, the first filter film will have a wavelength blue shift phenomenon, resulting in the first filter film being able to transmit light in other wavelength ranges. That is, while allowing the light of the first wavelength band to pass through, the first filter film may also allow some other wavelengths of light to enter. In this implementation, the first filter film can be a film structure that allows the light of the first wavelength band to pass through, and the wavelength band that the first filter film can allow to pass through refers to the wavelength band that can be passed through when the incident direction is the vertical direction of the first filter film. Similarly, the second filter film can be a film structure that allows the light of the second wavelength band to pass through, and the wavelength band that the second filter film can allow to pass through refers to the wavelength band that can be passed through when the incident direction is the vertical direction of the second filter film.
[0107] In one implementation, in addition to the filter film structure, the first receiving module 2 and the second receiving module 3 may include a photosensitive element for collecting detection light. The photosensitive element has a photoelectric conversion function. When light irradiates the photosensitive element, the photons will excite the electrons in the semiconductor, causing them to transition to the conduction band, thereby forming a current. The photoelectric conversion function can convert the energy of the first ambient light collected by the first receiving module 2 into a corresponding electrical signal, that is, the light intensity can be converted into a voltage or current of a corresponding magnitude. In addition, in order to facilitate the subsequent comparison of the light intensity of the detection light and the interference light, the second receiving module 3 may include a photosensitive element that is the same as the photosensitive element on the first receiving module 2, such as a photosensitive diode of the same specification or a photosensitive transistor of the same specification.
[0108] In one implementation, the photosensitive elements of the first receiving module 2 and the second receiving module 3 are both photosensitive diodes. For ease of distinction, the photosensitive diode of the first receiving module 2 is referred to as the first photosensitive diode, and the photosensitive diode of the second receiving module 3 is referred to as the second photosensitive diode. The first photosensitive diode and the second photosensitive diode are photosensitive diodes of the same specification. The first filter film can be arranged on the photosensitive surface of the first photosensitive diode so that the first photosensitive diode can collect the first band of the first ambient light. The first photosensitive diode can perform photoelectric conversion on the collected first ambient light to obtain a current signal, and the first receiving module 2 can obtain a first light intensity signal based on the current signal. The second filter film can be arranged on the photosensitive surface of the second photosensitive diode so that the second photosensitive diode can collect the second band of the first ambient light. The second photosensitive diode can perform photoelectric conversion on the collected first ambient light to obtain a current signal, and the second receiving module 3 can obtain a second light intensity signal based on the current signal.
[0109] The second receiving module 3 may further include a plurality of second photosensitive diodes, and the specifications of the plurality of second photosensitive diodes are the same as the specifications of the first photosensitive diodes.
[0110] In one implementation, a plurality of second photosensitive diodes may be matched with a plurality of identical second filter films to obtain a plurality of second intensity signals, and a relatively accurate second intensity signal may be obtained by averaging.
[0111] In another implementation, the second band may include multiple sub-bands, and the multiple sub-bands are different bands. Each of the multiple second photosensitive diodes is provided with a different second filter film, and different second photosensitive diodes can be used to collect different sub-bands and generate multiple current signals through photoelectric conversion. The second receiving module 3 can aggregate the multiple current signals and generate a second intensity signal according to the total current signal.
[0112] Similarly, it can be known that the first receiving module 2 can also include a plurality of identical first photosensitive diodes, and the specific configuration thereof can refer to the above description, which will not be repeated here.
[0113] In one implementation, when the transmitting module 1 transmits the detection light, the first receiving module 2 and the second receiving module 3 are enabled at the same time. The first receiving module 2 collects the light in the ambient light that can pass through the first filter film, and the second receiving module 3 collects the light in the ambient light that can pass through the second filter film, so that the first light intensity signal and the second light intensity signal obtained are signals at the same time, so as to facilitate subsequent analysis.
[0114] Step S220: Based on the relationship between the first intensity signal and the second intensity signal, determine whether the interference light interferes with the detection light.
[0115] In this embodiment, after the first intensity signal and the second intensity signal are obtained, it can be determined whether the interference light interferes with the detection light according to the relationship between the first intensity signal and the second intensity signal.
[0116] When performing proximity detection, the first ambient light will not only contain detection light, but also interference light. Interference light may cause strong noise when receiving detection light, and may also cause misjudgment, affecting the accuracy of proximity detection. In order to facilitate the judgment of whether there is interference light in the first ambient light where the detection light is located, the present application sets a first receiving module 2 and a second receiving module 3 that are synchronously enabled, and uses a first filter film to enable the first receiving module 2 to collect the first band in the first ambient light, and uses a second filter film to enable the second receiving module 3 to collect the second band in the first ambient light. Among them, the first band contains detection light, and the second band is the band of interference light. The first receiving module 2 and the second receiving module 3 respectively collect different bands in the first ambient light, and generate a first intensity signal and a second intensity signal accordingly. Then, the relationship between the first intensity signal and the second intensity signal is used to determine whether the interference light interferes with the detection light. In this way, not only can the ability to identify interference light in the proximity detection process be improved, but also the possibility of false alarms can be reduced to improve the anti-interference ability and accuracy of photoelectric proximity detection.
[0117] In this embodiment, the above step S220 may include the following steps:
[0118] Step S221: Determine the intensity difference value between the first intensity signal and the second intensity signal.
[0119] Since the first intensity signal is obtained by photoelectric conversion of light that can be transmitted by the first filter film, and the light that can be transmitted by the first filter film is mainly light of the first wavelength band, that is, mainly detection light. Therefore, for the first intensity signal, its intensity is mainly affected by the intensity of the detection light. In other words, the higher the intensity of the detection light, the greater the intensity of the first intensity signal. Similarly, since the second intensity signal is obtained by photoelectric conversion of light that can be transmitted by the second filter film, and the light that can be transmitted by the second filter film is mainly light of the second wavelength band, that is, mainly interference light. Therefore, for the second intensity signal, its intensity is mainly affected by the intensity of the interference light. In other words, the higher the intensity of the interference light, the greater the intensity of the second intensity signal.
[0120] Generally speaking, when the intensity of the detection light is greater than the intensity of the interference light, the interference light will not interfere with the detection light, and when the intensity of the detection light is less than the intensity of the interference light, the interference light will affect the detection light. Therefore, the intensity difference between the first intensity signal and the second intensity signal can be compared, and whether the interference light interferes with the detection light can be determined based on the intensity difference value.
[0121] The intensity difference value may include a ratio, a difference, a sum, a product, etc. between the first intensity signal and the second intensity signal, which may be selected according to actual conditions and is not limited in this embodiment.
[0122] Step S222: determining whether the interference light interferes with the detection light based on the relationship between the intensity difference value and the preset threshold.
[0123] In this embodiment, after the intensity difference value is obtained, the intensity difference value is compared with a preset threshold value to determine whether the interference light interferes with the detection light.
[0124] Among them, the preset threshold value can be a critical value of the intensity difference value change under different circumstances, so as to distinguish whether it constitutes interference. For example, if the intensity difference value is the ratio of the first intensity signal to the second intensity signal, then if the first intensity signal is greater than the second intensity signal, the ratio should be greater than 1; if the first intensity signal is less than the second intensity signal, the ratio should be less than 1. Accordingly, the preset threshold value can be selected as 1. It can be understood that when the intensity difference value is calculated according to different methods, the corresponding preset threshold value will also change. The specific calculation method of the intensity difference value and the preset threshold value are not limited here.
[0125] It is worth noting that, when determining whether the interfering light causes interference to the detection light, the intensity difference value may be not only a ratio, but also a ratio and a difference. Accordingly, there may be two preset thresholds, corresponding to the ratio and the difference, respectively. In this way, it is possible to determine whether interference is caused by double comparison, which can further improve the accuracy. It is understandable that the intensity difference value may also include the results obtained by more processing methods, which are not limited in this embodiment.
[0126] Exemplarily, the first intensity signal and the second intensity signal may be current signals, with a unit of A. Alternatively, the first intensity signal and the second intensity signal may be voltage signals, with a unit of V. Alternatively, the first intensity signal and the second intensity signal may be digital signals, in which case the first intensity signal and the second intensity signal are just numerical values. However, no matter what form the first intensity signal and the second intensity signal are, their sizes may represent intensity. If it is a current signal, the greater the current, the greater the intensity; if it is a voltage signal, the greater the voltage, the greater the intensity; if it is a digital signal, the greater the numerical value, the greater the intensity. Its specific form may be adjusted according to actual conditions, and this embodiment is not limited thereto.
[0127] In some implementations, the intensity difference value between the first intensity signal and the second intensity signal may include any one of the following:
[0128] a ratio of the first intensity signal divided by the second intensity signal;
[0129] a ratio of the second intensity signal divided by the first intensity signal;
[0130] A difference value obtained by subtracting the second intensity signal from the first intensity signal;
[0131] a difference value obtained by subtracting the first intensity signal from the second intensity signal;
[0132] a sum of the first intensity signal and the second intensity signal;
[0133] The product value of the first intensity signal and the second intensity signal.
[0134] Take the ratio of the first intensity signal divided by the second intensity signal as an example. If the intensity of the detection light is greater than the intensity of the interference light, the first intensity signal will be greater than the second intensity signal, and the ratio of the first intensity signal divided by the second intensity signal will be greater than 1. If the intensity of the detection light is less than the intensity of the interference light, the first intensity signal will be less than the second intensity signal, and the ratio of the first intensity signal divided by the second intensity signal will be less than 1. In different situations, the ratio of the first intensity signal divided by the second intensity signal is different, so it is possible to judge whether the interference light interferes with the detection light based on the ratio.
[0135] Based on the relationship between the intensity difference value and the preset threshold, it is determined whether the interference light interferes with the detection light, and the preset threshold at this time may be 1. If the intensity difference value is greater than the preset threshold, it means that the intensity of the detection light is greater than the intensity of the interference light, and it can be determined that the interference light does not interfere with the detection light. If the intensity difference value is less than the preset threshold, it means that the intensity of the detection light is less than the intensity of the interference light, and it can be determined that the interference light interferes with the detection light.
[0136] As shown in Table 1 below: Table 1 shows four different situations, namely, no flickering light source and no obstruction, no flickering light source obstruction, flickering light source obstruction, and flickering light source without obstruction. Among them, the flickering light source can be used as an interference light. When a flickering light source exists, it means that interference light exists. When obstruction exists, it means that detection light can be collected. In order to avoid the flickering light source interfering with whether obstruction occurs, the size of the first intensity signal and the second intensity signal in each case can be recorded, and the ratio can be calculated, and then the comparison between the ratio and the preset threshold value can be used to determine whether the interference light interferes with the detection light.
[0137] Table 1
[0138]
[0139] From the data in Table 1, it can be seen that when there is an obstruction, regardless of whether there is a flickering light source, the intensity of the detection light will be greater than the intensity of the interference light, and the interference light will not interfere with the detection light. However, when there is no obstruction, if the flickering light source exists, the intensity of the detection light will be less than the intensity of the interference light, and the interference light will interfere with the detection light. That is, when there is an obstruction, the interference light does not interfere with the detection light; when there is no obstruction, the interference light will interfere with the detection light, and misjudgment is likely to occur at this time.
[0140] As can be seen from the above example, by comparing the ratio of the first intensity signal divided by the second intensity signal with the preset threshold, it can be determined whether the interference light interferes with the detection light. When interference is confirmed, the approach or distance judgment can be omitted to improve the anti-interference ability and accuracy of the proximity detection.
[0141] In another example, taking the intensity difference value including the ratio of the second intensity signal divided by the first intensity signal as an example, if the intensity of the detection light is greater than the intensity of the interference light, the first intensity signal will be greater than the second intensity signal, and the ratio of the second intensity signal divided by the first intensity signal is less than 1. If the intensity of the detection light is less than the intensity of the interference light, the first intensity signal will be less than the second intensity signal, and the ratio of the second intensity signal divided by the first intensity signal is greater than 1. Therefore, it can be judged based on the ratio whether the interference light interferes with the detection light.
[0142] Based on the relationship between the intensity difference value and the preset threshold, it can be determined whether the interference light interferes with the detection light. For example, the preset threshold can be set to 1. If the intensity difference value is less than the preset threshold, it means that the light intensity of the detection light is greater than the light intensity of the interference light, and it can be determined that the interference light does not interfere with the detection light. If the intensity difference value is greater than the preset threshold, it means that the light intensity of the detection light is less than the light intensity of the interference light, and it can be determined that the interference light interferes with the detection light.
[0143] In another example, taking the intensity difference value including the difference obtained by subtracting the second intensity signal from the first intensity signal as an example, if the intensity of the detection light is greater than the intensity of the interference light, the first intensity signal will be greater than the second intensity signal, and the difference obtained by subtracting the second intensity signal from the first intensity signal is greater than 0. If the intensity of the detection light is less than the intensity of the interference light, the first intensity signal will be less than the second intensity signal, and the difference obtained by subtracting the second intensity signal from the first intensity signal is less than 0. Therefore, it can be judged based on the difference whether the interference light interferes with the detection light.
[0144] Based on the relationship between the intensity difference value and the preset threshold, it is determined whether the interference light interferes with the detection light, and the preset threshold at this time can be 0. If the intensity difference value is greater than the preset threshold, it means that the light intensity of the detection light is greater than the light intensity of the interference light, and it can be determined that the interference light does not interfere with the detection light. If the intensity difference value is less than the preset threshold, it means that the light intensity of the detection light is less than the light intensity of the interference light, and it can be determined that the interference light interferes with the detection light.
[0145] It is worth noting that the above-mentioned intensity difference value can also be the difference obtained by subtracting the first intensity signal from the second intensity signal, the sum of the first intensity signal and the second intensity signal, or the product of the first intensity signal and the second intensity signal. The preset threshold value can be set according to the specific situation. The specific comparison method can refer to the above description to determine whether the interference light is interference, which will not be repeated here.
[0146] In one implementation, when calculating the intensity difference value between the first intensity signal and the second intensity signal, a ratio calculation circuit, a difference calculation circuit or other calculation circuits may be used.
[0147] In another embodiment, when calculating the intensity difference value between the first intensity signal and the second intensity signal, the processor can be used for calculation. Taking the first intensity signal and the second intensity signal as voltage signals as an example, the processor can read the voltage value of the first intensity signal and the voltage value of the second intensity signal, and calculate the voltage values to obtain the intensity difference value.
[0148] In one implementation, a comparison circuit may be used when comparing the intensity difference value with a preset threshold.
[0149] In another embodiment, a processor can be used to compare the intensity difference value with a preset threshold. After the comparison is completed, the processor outputs a comparison result. Taking the intensity difference value as the ratio of the first intensity signal divided by the second intensity signal as an example, the comparison result includes: the intensity difference value is greater than the preset threshold, and the interference light does not interfere with the detection light; or the intensity difference value is less than the preset threshold, and the interference light interferes with the detection light. Afterwards, the comparison result can be stored in a register or other device, and a flag bit can be output to indicate the comparison result, such as a flag bit of "0" indicates no interference, a flag bit of "1" indicates interference, etc.
[0150] It is worth noting that the processor may be a microprocessor (Microcontroller Unit, MCU), or may also be a processor in the main system of an electronic device, such as a system on chip (System on Chip, SoC). In addition, the processor may also be an application processor (Application Processor, AP), a controller, and the like.
[0151] Fig.15 A second exemplary flow chart of a light interference detection method provided in this embodiment.
[0152] Fig.16 A signal change flow chart provided for this embodiment.
[0153] like Fig.15 and Fig.16 As shown, in one embodiment, the method may further include:
[0154] Step S310: before the transmitting module 1 transmits the detection light, the first receiving module 2 and the second receiving module 3 are used to synchronously collect the second ambient light that does not contain the detection light to obtain the first current signal and the second current signal.
[0155] The first current signal is obtained by the first receiving module 2 performing photoelectric conversion on the collected second ambient light, and the second current signal is obtained by the second receiving module 3 performing photoelectric conversion on the collected second ambient light.
[0156] Before the transmitting module 1 emits the detection light, the ambient light in which the first receiving module 2 and the second receiving module 3 are located does not contain the detection light, but includes some sunlight in the environment, a constant light source in the environment, a flickering light source in the environment, and a light source that suddenly appears or disappears in the environment. In this case, the light in the environment in which the first receiving module 2 and the second receiving module 3 are located can be called the second ambient light. Although the sunlight in the second ambient light and the constant light source in the environment are uncontrollable, they exist objectively, and this light can be called background light. The main difference between interference light and background light is that during the proximity detection process, the background light is the light that always exists in the environment and the light intensity does not change significantly. In other words, whether the transmitting module 1 emits the detection light or not, the background light exists at the same time, and the light intensity does not change significantly.
[0157] Since the first filter film and the second filter film still have the wavelength blue shift phenomenon to a certain extent, the first receiving module 2 and the second receiving module 3 will not only collect the target band, but also collect some background light other than the target band. The existence of the background light will also generate noise for the target band to be collected by the first receiving module 2 and the second receiving module 3, resulting in the first light intensity signal and the second light intensity signal may contain noise, affecting the analysis of the detection light and the interference light.
[0158] In order to reduce the influence of background light on the detection light and the interference light, the second ambient light can be collected first. In this way, when the transmitting module 1 transmits the detection light, the background light in the first ambient light can be removed to facilitate the analysis of the detection light and the interference light.
[0159] Exemplarily, the first receiving module 2 may include a first photosensitive element. The first photosensitive element collects the second ambient light using the first filter film, and converts the second ambient light that can pass through the first filter film into a first current signal through photoelectric conversion. Similarly, the second receiving module 3 may include a second photosensitive element. The second photosensitive element collects the second ambient light using the second filter film, and converts the second ambient light that can pass through the second filter film into a second current signal through photoelectric conversion.
[0160] Step S320: Integrate the first current signal to obtain a first charge signal, and integrate the second current signal to obtain a second charge signal.
[0161] In this embodiment, since the first current signal and the second current signal will fluctuate continuously with the change of time, that is, a current value will correspond to each moment. If the current signal is directly analyzed when the light intensity is subsequently analyzed, it may be necessary to compare the two curves, which will be a lot of work and inconvenient to compare the light intensity. By integrating the first current signal to obtain the first charge signal and integrating the second current signal to obtain the second charge signal, the fluctuating current signal can be converted into a fixed charge signal value for subsequent comparison and analysis.
[0162] In one implementation, the first receiving module 2 and the second receiving module 3 may integrate the first current signal and the second current signal using an integration circuit. Taking the first receiving module 2 as an example, the first receiving module 2 may include an integration circuit to integrate the first current signal from the photosensitive element and output a first charge signal. The second receiving module 3 is similar.
[0163] In another implementation, the first receiving module 2 and the second receiving module 3 may also use a processor to integrate the first current signal and the second current signal. Taking the first receiving module 2 as an example, the processor may receive the first current signal from the photosensitive element, integrate the first current signal and output a first charge signal.
[0164] In order to control a single variable, the duration of integration of the first current signal is the same as the duration of integration of the second current signal. The first current signal and the second current signal are integrated in the same time period respectively, so that the light intensity collected by the first current signal and the second current signal in the same time period can be compared, which can effectively reduce the possibility of interference from other factors.
[0165] It is worth noting that when integrating the first current signal and the second current signal, not only the integration time needs to be kept the same, but the first current signal and the second current signal also need to be integrated at the same time to further reduce interference from other factors.
[0166] Step S330: using the first receiving module 2 and the second receiving module 3 to synchronously collect the first ambient light to obtain a third current signal and a fourth current signal.
[0167] The third current signal is obtained by the first receiving module 2 performing photoelectric conversion on the collected first ambient light, and the fourth current signal is obtained by the second receiving module 3 performing photoelectric conversion on the collected first ambient light.
[0168] Exemplarily, the first receiving module 2 may include a first photosensitive element. The first photosensitive element collects the first ambient light using the first filter film, and converts the first ambient light that can pass through the first filter film into a third current signal through photoelectric conversion. The main difference between the third current signal obtained by collecting the first ambient light and the first current signal obtained by collecting the second ambient light is whether there is a signal of the detection light. In this way, the signal of the detection light can be obtained by using the difference between the third current signal and the first current signal.
[0169] The second receiving module 3 may include a second photosensitive element. The second photosensitive element collects the first ambient light using the second filter film, and converts the first ambient light that can pass through the second filter film into a fourth current signal through photoelectric conversion. The fourth current signal obtained by collecting the first ambient light is different from the second current signal obtained by collecting the second ambient light in whether there is a signal of interference light. In this way, the difference between the fourth current signal and the second current signal can be used to obtain a signal of detection light.
[0170] When the transmitting module 1 is in the on state, the detection light can be emitted. Since it is necessary to determine whether there is interference when collecting the detection light, the first receiving module 2 and the second receiving module 3 need to synchronously collect the first ambient light. At the same time, the third current signal and the fourth current signal can be collected after the first current signal and the second current signal are obtained, so as to facilitate the subsequent processing of the background light.
[0171] It is understandable that, in other implementations, the third current signal and the fourth current signal may also be collected earlier than the first current signal and the second current signal. As long as the transmitting module 1 can be enabled accordingly, it is not limited in this embodiment.
[0172] Step S340: Integrate the third current signal to obtain a third charge signal, and integrate the fourth current signal to obtain a fourth charge signal.
[0173] like Fig.16As shown, in order to facilitate the analysis of the third current signal and the fourth current signal, they can be integrated respectively to obtain the third charge signal and the fourth charge signal. It can be understood that the specific process of obtaining the third charge signal and the fourth charge signal can refer to the description of the first charge signal and the second charge signal, which will not be repeated here.
[0174] In order to control a single variable, the duration of integration of the third current signal is the same as the duration of integration of the fourth current signal. The current signals of the third current signal and the fourth current signal in the same time period are respectively integrated, so that the light intensities collected by the third current signal and the fourth current signal in the same time period can be compared, which can effectively reduce the possibility of interference from other factors.
[0175] It is worth noting that when integrating the third current signal and the fourth current signal, not only the integration time needs to be kept the same, but also the third current signal and the fourth current signal need to be integrated at the same time to further reduce interference from other factors.
[0176] In some embodiments, in addition to keeping the integration time of the third current signal the same as the integration time of the fourth current signal, the integration time of the first current signal and the third current signal should also be kept the same to facilitate subsequent removal of background light.
[0177] Step S350: performing a differential operation on the first charge signal and the third charge signal to obtain a first intensity signal, and performing a differential operation on the second charge signal and the fourth charge signal to obtain a second intensity signal.
[0178] Wherein, the first intensity signal and the second intensity signal are both voltage signals.
[0179] like Fig.16 As shown, after obtaining the first charge signal, the second charge signal, the third charge signal and the fourth charge signal, the background light information contained in the first charge signal and the second charge signal can be used to remove the background light information in the third charge signal and the fourth charge signal. The first charge signal and the third charge signal are differentially operated to obtain a first intensity signal with the background light removed. The first intensity signal includes a detection light intensity signal. The second charge signal and the fourth charge signal are differentially operated to obtain a second intensity signal with the background light removed. The second intensity signal includes an interference light intensity signal.
[0180] The first intensity signal and the second intensity signal are both voltage signals. When the optical signal is subjected to photoelectric conversion, it can be converted into a current signal or a voltage signal. Current signals are mostly fluctuating signals, which are not easy to analyze. The voltage signal is the integral signal of the current signal over a certain period of time, which is a fixed value and is easy to analyze.
[0181] Step S360: Based on the relationship between the first intensity signal and the second intensity signal, determine whether the interference light interferes with the detection light.
[0182] In this embodiment, after the first intensity signal and the second intensity signal are obtained, it can be determined whether the interference light interferes with the detection light according to the relationship between the first intensity signal and the second intensity signal.
[0183] In this embodiment, the first receiving module 2 and the second receiving module 3 respectively collect ambient light when the transmitting module 1 does not emit detection light and when the transmitting module 1 emits detection light. The first receiving module 2 obtains the first current signal and the third current signal, and the second receiving module 3 obtains the second current signal and the fourth current signal. The collected signals are processed by using an integration circuit and a differential circuit, etc. to obtain a first intensity signal and a second intensity signal that are easy to process. Then, based on the relationship between the first intensity signal and the second intensity signal, it is determined whether there is interference.
[0184] Fig.17 This is a structural block diagram of a light interference detection device provided in this embodiment.
[0185] Please combine Fig.12 and Fig.17 This embodiment also provides a light interference detection device 200, including a transmitting module 1, a first receiving module 2, a second receiving module 3 and a processing module 4. The transmitting module 1 is configured to transmit detection light, and the detection light is configured to be reflected at an object. The first receiving module 2 and the second receiving module 3 are configured to synchronously collect the first ambient light containing the detection light in response to the transmitting module 1 transmitting the detection light; wherein the first receiving module 2 is configured to collect the first band of the ambient light using the first filter film, and the second receiving module 3 is configured to collect the second band of the ambient light using the second filter film, the detection light is in the first band, the second band is the band of the interference light, and the first band is different from the second band. The first receiving module 2 is configured to output a first intensity signal according to the first ambient light collected by itself. The second receiving module 3 is configured to output a second intensity signal according to the first ambient light collected by itself. The processing module 4 is configured to determine whether the interference light interferes with the detection light based on the relationship between the first intensity signal and the second intensity signal.
[0186] The optical interference detection device 200 provided in this embodiment synchronously collects the first ambient light including the detection light through the first receiving module 2 and the second receiving module 3. The first receiving module 2 collects the first band using the first filter film, that is, the first receiving module 2 can collect the detection light. The second receiving module 3 collects the second band using the second filter film, that is, the second receiving module 3 can collect the interference light. The first receiving module 2 can output a first intensity signal including the intensity of the detection light, and the second receiving module can output a second intensity signal including the intensity of the interference light. The processing module 4 determines whether the interference light interferes with the detection light by the relationship between the first intensity signal and the second intensity signal, so as to distinguish whether there is interference during the proximity detection process, reduce the possibility of false alarms, and improve the anti-interference ability and the accuracy of the detection results.
[0187] Fig.18 A circuit structure diagram of a first receiving module and a second receiving module provided in this embodiment.
[0188] like Fig.17 , Fig.18 As shown, the first receiving module 2 includes a first photoelectric conversion circuit 21, and the second receiving module 3 includes a second photoelectric conversion circuit 31. The first photoelectric conversion circuit 21 and the second photoelectric conversion circuit 31 are configured to synchronously collect the second ambient light that does not contain the detection light before the transmitting module 1 transmits the detection light, and obtain a first current signal and a second current signal; wherein the first current signal is obtained by the first photoelectric conversion circuit 21 performing photoelectric conversion on the collected second ambient light, and the second current signal is obtained by the second photoelectric conversion circuit 31 performing photoelectric conversion on the collected second ambient light. The first receiving module 2 uses the photoelectric conversion function of the first photoelectric conversion circuit 21 to collect the light that can pass through the first filter film in the second ambient light and convert it into a first current signal. The second receiving module 3 uses the photoelectric conversion function of the second photoelectric conversion circuit 31 to collect the light that can pass through the second filter film in the second ambient light and convert it into a second current signal. In this way, the background light signal that does not contain the detection light can be collected, so as to remove the influence of the background light later.
[0189] like Fig.18 As shown, in one implementation, the first photoelectric conversion circuit 21 may include a first photosensitive element PD1, and the second photoelectric conversion circuit 31 may include a second photosensitive element PD2. Taking the example that the first photosensitive element PD1 and the second photosensitive element PD2 are both photosensitive diodes of the same specification, the photosensitive diode converts the optical signal into an electrical signal by means of the photoelectric conversion function. When light irradiates the photosensitive diode, the photons will excite the electrons in the semiconductor, causing them to transition to the conduction band, thereby forming a current, and then being able to generate the above-mentioned first current signal and second current signal.
[0190] In another implementation, the first photoelectric conversion circuit 21 and the second photoelectric conversion circuit 31 may also respectively include photosensitive transistors of the same specifications, so as to obtain the first current signal and the second current signal by using the photosensitive transistors. The specific structures of the first photoelectric conversion circuit 21 and the second photoelectric conversion circuit 31 are not limited here.
[0191] like Fig.18 As shown, optionally, in order to facilitate the first receiving module 2 and the second receiving module 3 to synchronously collect the second ambient light, the first receiving module 2 may further include a first switch device M1. In the first receiving module 2, the first switch device M1 is coupled to the first photoelectric conversion circuit 21. That is, the first switch device M1 is coupled to the first photosensitive element PD1. When the first switch device M1 is turned on, the first photoelectric conversion circuit 21 works and obtains the first current signal at the same time. When the first switch device M1 is turned off at the same time, the first photoelectric conversion circuit 21 stops working, and the second ambient light is not collected at this time.
[0192] Exemplarily, the first switch device M1 may be a relay, a transistor or a pressure switch, etc., which is not limited in the present embodiment.
[0193] It is worth noting that the above control of the first switch device M1 can be implemented by a controller or a processor, which is not limited in this embodiment.
[0194] Optionally, the second receiving module 3 may further include a second switch device M2. In the second receiving module 3, the second switch device M2 is coupled to the second photoelectric conversion circuit 31. That is, the second switch device M2 is coupled to the second photosensitive element PD2. When the second switch device M2 is turned on, the second photoelectric conversion circuit 31 works and obtains the second current signal at the same time. When the second switch device M2 is turned off at the same time, the second photoelectric conversion circuit 31 stops working, and the second ambient light is not collected at this time.
[0195] Exemplarily, the second switch device M2 may be a relay, a transistor or a pressure switch, etc., which is not limited in the present embodiment.
[0196] It is worth noting that the above control of the second switch device M2 can be implemented by a controller or a processor, which is not limited in this embodiment.
[0197] like Fig.18 As shown, Fig.18 In the embodiment, there is a synchronous control signal S1 on the first switch device M1 and the second switch device M2. The control signal S1 can be used to control the first switch device M1 and the second switch device M2 to be turned on or off simultaneously, so as to control the first photoelectric conversion circuit 21 and the second photoelectric conversion circuit 31 to work synchronously.
[0198] Fig.19 A control timing diagram of a light interference detection method provided in this embodiment.
[0199] like Fig.19 As shown, Fig.19 The timing curve where the middle IR is located represents the control timing of the transmitter module 1; Fig.19 The timing curve where S1 is located represents the control timing of the first switch device M1 and the second switch device M2, indicating that the first switch device M1 and the second switch device M2 act simultaneously. When the timing curve is at a high position, it is in the on state, and when it is at a low position, it is in the off state.
[0200] For transmitting module 1, time t1 is the time when a cycle starts, t 10 The time is the end of a cycle, t1 to t 10 is a working cycle T. In a working cycle T, from t1 to t4 and from t7 to t 10 During the time period from t1 to t4 and from t7 to t8, the transmitting module 1 is in the off state. During the time period from t4 to t7, the transmitting module 1 is in the on state, that is, in the state of emitting detection light. 10 During the time period, the first receiving module 2 and the second receiving module 3 collect the second ambient light. During the time period from t4 to t7, the first receiving module 2 and the second receiving module 3 collect the first ambient light.
[0201] For the first switching device M1 and the second switching device M2, time t1 is the time when a cycle starts, t 10 The time is the end of a cycle, t1 to t 10 is a duty cycle T. During t1 to t3, t4 to t6, and t7 to t 10 During the time period, the first switch device M1 and the second switch device M2 are in the off state. During the time period from t3 to t4 and from t6 to t7, the first switch device M1 and the second switch device M2 are in the on state. During the time period from t3 to t4, the first switch device M1 and the second switch device M2 are turned on at the same time, and the first photoelectric conversion circuit 21 and the second photoelectric conversion circuit 31 synchronously collect the second ambient light and obtain the first current signal and the second current signal respectively.
[0202] See again Fig.17 The first receiving module 2 further includes a first integration circuit 22. The first integration circuit 22 is configured to integrate the first current signal to obtain a first charge signal. The second receiving module 3 further includes a second integration circuit 32. The second integration circuit 32 is configured to integrate the second current signal to obtain a second charge signal.
[0203] Since the first current signal and the second current signal are both fluctuating current signals, and the charge signal is a relatively fixed signal value, the first current signal is converted into a first charge signal and the second current signal is converted into a second charge signal through integration operation, so as to convert the fluctuating value into a fixed value, which is convenient for subsequent analysis.
[0204] like Fig.18 As shown, further, the first integration circuit 22 can be coupled to the first switch device M1, and the second integration circuit 32 can be coupled to the second switch device M2. At this time, in the first receiving module 2, the first photosensitive element PD1, the first switch device M1 and the first integration circuit 22 are connected in series. In this way, when the first switch device M1 controls the first photosensitive element PD1, it can also synchronously control the first integration circuit 22. In the second receiving module 3, the second photosensitive element PD2, the second switch device M2 and the second integration circuit 32 are connected in series. In this way, when the second switch device M2 controls the second photosensitive element PD2, it can also synchronously control the second integration circuit 32.
[0205] like Fig.19 As shown, in the time period from t3 to t4, the first switch device M1 and the second switch device M2 are turned on at the same time, and the first photoelectric conversion circuit 21 and the second photoelectric conversion circuit 31 synchronously collect the second ambient light, and obtain the first current signal and the second current signal respectively. For the first receiving module 2, the first integration circuit 22 is connected in series with the first photoelectric conversion circuit 21. When the first photoelectric conversion circuit 21 generates the first current signal, the first integration circuit 22 synchronously integrates the first current signal and obtains the first charge signal. That is, at the moment t4, the first photoelectric conversion circuit 21 stops working, and the first integration circuit 22 also stops working, and generates the first charge signal. For the second receiving module 3, the second integration circuit 32 is connected in series with the second photoelectric conversion circuit 31. When the second photoelectric conversion circuit 31 generates the second current signal, the second integration circuit 32 synchronously integrates the second current signal and obtains the second charge signal. That is, at the moment t4, the second photoelectric conversion circuit 31 stops working, and the second integration circuit 32 also stops working, and generates the second charge signal.
[0206] In one implementation, in order to control a single variable, the time for the first integration circuit 22 to integrate the first current signal is the same as the time for the second integration circuit 32 to integrate the second current signal. In this way, the light intensities collected by the first current signal and the second current signal in the same time period can be compared, which can effectively reduce the possibility of interference from other factors.
[0207] Exemplarily, the turn-on time of the first switch device M1 corresponds to the integration time of the first integration circuit 22, and the turn-on time of the second switch device M2 corresponds to the integration time of the second integration circuit 32. By synchronously controlling the first switch device M1 and the second switch device M2, it can be achieved that the integration time of the first integration circuit 22 for the first current signal is equal to the integration time of the second integration circuit 32 for the second current signal, that is, both are within the time period from t3 to t4.
[0208] See again Fig.18 , illustratively, the first integration circuit 22 may include a first operational amplifier A1 and a first capacitor C1. The first operational amplifier A1 includes a positive input terminal, a negative input terminal and an output terminal, wherein the positive input terminal is grounded. The negative input terminal and the output terminal of the first operational amplifier A1 are respectively connected to the two ends of the first capacitor C1. The negative input terminal of the first operational amplifier A1 is also coupled to the first switch device M1.
[0209] When performing the integral operation, the charge and discharge characteristics of the first capacitor C1 are used to implement the integral operation of the input first current signal. When the input first current signal is added to the input port of the first operational amplifier A1, the first capacitor C1 begins to charge or discharge, and the first operational amplifier A1 adjusts the output signal according to the voltage change of the first capacitor C1. By appropriately selecting the capacitance value of the first capacitor C1 and the parameters of other components, the integral operation function of the input first current signal can be implemented to obtain the first charge signal.
[0210] The second integration circuit 32 may include a third operational amplifier A3 and a second capacitor C2. The third operational amplifier A3 includes a positive input terminal, a negative input terminal and an output terminal, wherein the positive input terminal is grounded. The negative input terminal and the output terminal of the third operational amplifier A3 are respectively connected to the two ends of the second capacitor C2. The negative input terminal of the third operational amplifier A3 is also coupled to the second switch device M2. Its integration principle is the same as that of the first integration circuit 22, and will not be repeated here.
[0211] In some embodiments, when performing integration, the charges in the first integration circuit 22 and the second integration circuit 32 will affect the integration result. The first integration circuit 22 is configured to perform the following steps in sequence before the transmitting module 1 emits the detection light: clear its own circuit charge; integrate the first current signal to obtain a first charge signal; the second integration circuit 32 is configured to perform the following steps in sequence before the transmitting module 1 emits the detection light: clear its own circuit charge; integrate the second current signal to obtain a second charge signal. This can avoid the residual charge in the circuit from interfering with the integration result, and the charge of the circuit itself can be cleared before integration. In other words, this can make the charges in the first charge signal and the second charge signal obtained come from the current signal in the corresponding time period, without including the charge originally remaining in the circuit, so as to improve the accuracy of the calculation.
[0212] like Fig.18 As shown, the first integration circuit 22 may further include a third switch device M3, and the second integration circuit 32 may further include a fourth switch device M4.
[0213] Taking the first integration circuit 22 as an example, the third switch device M3 can be connected between the input terminal and the output terminal of the first integration circuit 22, that is, the third switch device M3 can be connected between the negative input terminal and the output terminal of the first operational amplifier A1. At the same time, the third switch device M3 is also connected to the two ends of the first capacitor C1. When the third switch device M3 is turned on, the third switch device M3 can form a loop with the first capacitor C1, and the first operational amplifier A1 cannot work at this time to release the residual charge in the first capacitor C1. When the third switch device M3 is turned off, the first capacitor C1 forms a loop with the first operational amplifier A1 to integrate the first current signal.
[0214] Similarly, when the second integration circuit 32 includes the fourth switch device M4, the configuration of the fourth switch device M4 in the second integration circuit 32 is similar to the configuration of the third switch device M3 in the first integration circuit 22, and will not be described in detail here.
[0215] It can be understood that the selection of the third switch device M3 and the fourth switch device M4 can refer to the above-mentioned example of selecting the first switch device M1, and will not be described in detail here.
[0216] like Fig.18 As shown, Fig.18 In the embodiment, a synchronous control signal S2 is provided on the third switch device M3 and the fourth switch device M4. The third switch device M3 and the fourth switch device M4 can be controlled to be turned on or off at the same time by the control signal S2.
[0217] like Fig.19 As shown, Fig.19The timing curve where S2 is located represents the control timing of the third switch device M3 and the fourth switch device M4, indicating that the third switch device M3 and the fourth switch device M4 act simultaneously.
[0218] For the third switching device M3 and the fourth switching device M4, time t1 is the time when a cycle starts, t 10 The time is the end of a cycle, t1 to t 10 is a duty cycle T. During the period from t1 to t2, t3 to t5, and t6 to t 10 During the time period from t2 to t3 and from t5 to t6, the third switch device M3 and the fourth switch device M4 are in the turned-off state. During the time period from t2 to t3 and from t5 to t6, the third switch device M3 and the fourth switch device M4 are in the turned-on state. During the time period from t2 to t3, the third switch device M3 and the fourth switch device M4 are turned on at the same time, and the third switch device M3 can form a loop with the first capacitor C1 to clear the charge in the first integration circuit 22; at the same time, the fourth switch device M4 can form a loop with the second capacitor C2 to clear the charge in the second integration circuit 32. During the time period from t3 to t5, the third switch device M3 and the fourth switch device M4 are turned off at the same time, and the first operational amplifier A1 can form a loop with the first capacitor C1, which can be used to realize the integration function; at the same time, the third operational amplifier A3 can form a loop with the second capacitor C2, which can be used to realize the integration function.
[0219] In one implementation, the first photoelectric conversion circuit 21 and the second photoelectric conversion circuit 31 are further configured to synchronously collect the first ambient light to obtain a third current signal and a fourth current signal; wherein the third current signal is obtained by the first photoelectric conversion circuit 21 performing photoelectric conversion on the collected first ambient light, and the fourth current signal is obtained by the second photoelectric conversion circuit 31 performing photoelectric conversion on the collected first ambient light. The first integration circuit 22 is further configured to integrate the third current signal to obtain a third charge signal. The second integration circuit 32 is further configured to integrate the fourth current signal to obtain a fourth charge signal.
[0220] In the present implementation, the collection of the first ambient light by the first photoelectric conversion circuit 21 and the second photoelectric conversion circuit 31 can refer to the process description of obtaining the first current signal and the second current signal, the integration of the third current signal by the first integration circuit 22 to obtain the third charge signal and the integration of the fourth current signal by the second integration circuit 32 to obtain the fourth charge signal can refer to the above-mentioned process description of obtaining the first charge signal and the second charge signal, which will not be repeated here.
[0221] like Fig.19As shown, in the time period from t4 to t7, the transmitting module 1 is turned on and the detection light is emitted. In the time period from t6 to t7, the first switch device M1 and the second switch device M2 are turned on at the same time, and the first photoelectric conversion circuit 21 and the second photoelectric conversion circuit 31 synchronously collect the first ambient light and obtain the third current signal and the fourth current signal respectively. For the first receiving module 2, the first integration circuit 22 is connected in series with the first photoelectric conversion circuit 21. When the first photoelectric conversion circuit 21 generates the third current signal, the first integration circuit 22 synchronously integrates the third current signal and obtains the third charge signal. That is, at the moment t7, the first photoelectric conversion circuit 21 stops working, and the first integration circuit 22 also stops working, and generates the third charge signal. For the second receiving module 3, the second integration circuit 32 is connected in series with the first photoelectric conversion circuit 31. When the second photoelectric conversion circuit 31 generates the fourth current signal, the second integration circuit 32 synchronously integrates the fourth current signal and obtains the fourth charge signal. That is, at the moment t7, the second photoelectric conversion circuit 31 stops working, and the second integration circuit 32 also stops working, and generates the fourth charge signal.
[0222] In one implementation, in order to control a single variable, the time for the first integration circuit 22 to integrate the third current signal is the same as the time for the second integration circuit 32 to integrate the fourth current signal. In this way, the light intensities collected by the third current signal and the fourth current signal in the same time period can be compared, which can effectively reduce the possibility of interference from other factors.
[0223] Exemplarily, the turn-on time of the first switch device M1 corresponds to the integration time of the first integration circuit 22, and the turn-on time of the second switch device M2 corresponds to the integration time of the second integration circuit 32. By synchronously controlling the first switch device M1 and the second switch device M2, it can be achieved that the integration time of the first integration circuit 22 for the first current signal is equal to the integration time of the second integration circuit 32 for the second current signal, that is, both are within the time period from t6 to t7.
[0224] In one implementation, the first integration circuit 22 is configured to perform the following steps in sequence during the period when the transmitting module 1 emits the detection light: send the first charge signal to the first differential circuit 23; clear its own circuit charge; integrate the third current signal to obtain the third charge signal; the second integration circuit 32 is configured to perform the following steps in sequence during the period when the transmitting module 1 emits the detection light: send the second charge signal to the second differential circuit 33; clear its own circuit charge; integrate the fourth current signal to obtain the fourth charge signal. This can avoid the residual charge in the circuit from interfering with the integration result, and the circuit's own charge can be cleared before integration. In other words, this can ensure that the charges in the third charge signal and the fourth charge signal obtained are all from the current signal in the corresponding time period, without including the charge originally remaining in the circuit, so as to improve the accuracy of the calculation.
[0225] like Fig.19 As shown, in the time period from t5 to t6, the third switch device M3 and the fourth switch device M4 are turned on at the same time, and the third switch device M3 can form a loop with the first capacitor C1 to clear the charge in the first integration circuit 22; at the same time, the fourth switch device M4 can form a loop with the second capacitor C2 to clear the charge in the second integration circuit 32. 10 During the time period, the third switch device M3 and the fourth switch device M4 are turned off at the same time, the first operational amplifier A1 can form a loop with the first capacitor C1, which can be used to realize the integration function; at the same time, the third operational amplifier A3 can form a loop with the second capacitor C2, which can be used to realize the integration function.
[0226] It can be seen from the above description that the first integration circuit 22 and the second integration circuit 32 need to perform two integrations, and the first charge signal and the second charge signal generated after the first integration need to be stored.
[0227] In one implementation, the first receiving module 2 and the second receiving module 3 may further include a storage circuit, so as to utilize the storage circuit to store the first charge signal and the second charge signal. Exemplarily, the storage circuit may be a capacitor structure.
[0228] like Fig.17As shown, the first receiving module 2 also includes a first differential circuit 23. The second receiving module 3 also includes a second differential circuit 33. The first differential circuit 23 is configured to perform a differential operation on the first charge signal and the third charge signal to obtain a first intensity signal. The second differential circuit 33 is configured to perform a differential operation on the second charge signal and the fourth charge signal to obtain a second intensity signal; wherein the first intensity signal and the second intensity signal are both voltage signals. After obtaining the first charge signal, the second charge signal, the third charge signal and the fourth charge signal, the background light in the third charge signal and the fourth charge signal can be removed by using the background light information contained in the first charge signal and the second charge signal. That is, by performing a differential operation on the first charge signal and the third charge signal, a first intensity signal with detection light removed from the background light is obtained; by performing a differential operation on the second charge signal and the fourth charge signal, a second intensity signal with interference light removed from the background light is obtained.
[0229] like Fig.18 As shown, illustratively, the first receiving module 2 may further include a fifth switch device M5, and the first differential circuit 23 may include a third capacitor C3, a second operational amplifier A2, a fifth capacitor C5, and a seventh switch device M7, an eighth switch device M8, and a ninth switch device M9.
[0230] One end of the third capacitor C3 is connected to the fifth switch device M5, and the other end of the third capacitor C3 is connected to the negative input terminal of the second operational amplifier A2.
[0231] The positive input terminal of the second operational amplifier A2 is connected to a bias voltage, such as Fig.18 The Vref in is the bias voltage, and the bias voltage may be the power supply voltage of the second operational amplifier A2.
[0232] One end of the fifth capacitor C5 is connected to the negative input terminal of the second operational amplifier A2, and the other end of the fifth capacitor C5 is connected to the first point a.
[0233] One end of the seventh switch device M7 is connected to the negative input terminal of the second operational amplifier A2, and the other end of the seventh switch device M7 is connected to the second point b.
[0234] One end of the eighth switch device M8 is connected to the first point a, and the other end of the eighth switch device M8 is connected to the bias voltage.
[0235] One end of the ninth switch device M9 is connected to the first point a, and the other end of the ninth switch device M9 is connected to the second point b, wherein the second point b is connected to the output end of the second operational amplifier A2.
[0236] At this time, the first differential circuit 23 is a switching operational amplifier circuit.
[0237] When the fifth switch device M5, the seventh switch device M7 and the eighth switch device M8 are turned on, and the ninth switch device M9 is turned off, the first differential circuit 23 is in a sampling state, that is, the first charge signal obtained by the first integration circuit 22 for the first time can be sampled and stored in the third capacitor C3. When the fifth switch device M5 and the ninth switch device M9 are turned on, and the seventh switch device M7 and the eighth switch device M8 are turned off, the first differential circuit 23 is in a holding state, that is, the third charge signal obtained by the second integration circuit 22 can be sampled and differential calculation can be performed to output a first intensity signal. Fig.18 V_IR is the first intensity signal, and at this time the first intensity signal is a voltage value.
[0238] The second operational amplifier A2 outputs a first intensity signal.
[0239] At this time, the first intensity signal V_IR is:
[0240]
[0241] In formula ①, is the integral value of the total current after the first differential circuit 23 performs differential operation, c3 is the capacitance value of the third capacitor C3, c5 is the capacitance value of the third capacitor C3, and Vref is the bias voltage.
[0242] like Fig.18 As shown, Fig.18 The fifth switch device M5 has a control signal S3, and the fifth switch device M5 can be turned on or off by the control signal S3. The seventh switch device M7 and the eighth switch device M8 have a synchronous control signal S4, and the seventh switch device M7 and the eighth switch device M8 can be turned on or off simultaneously by the control signal S4. The ninth switch device M9 has a control signal S5, and the ninth switch device M9 can be turned on or off by the control signal S5.
[0243] like Fig.19 As shown, Fig.19 The timing curve where S3 is located represents the control timing of the fifth switch device M5. The time t1 is the time when a cycle starts, t 10 The time is the end of a cycle, t1 to t 10 is a duty cycle T. During t1 to t4, t5 to t7, and t8 to t 10 During the time period from t4 to t5 and from t7 to t8, the fifth switch device M5 is in the turned-off state.
[0244] Fig.19The timing curve where S4 is located represents the control timing of the ninth switch device M9, indicating that the seventh switch device M7 and the eighth switch device M8 are operated simultaneously. The time t1 is the time when a cycle starts, t 10 The time is the end of a cycle, t1 to t 10 is a working cycle T. From t1 to t4, t5 to t 10 During the time period t4 to t5, the seventh switch device M7 and the eighth switch device M8 are in the off state. During the time period t4 to t5, the seventh switch device M7 and the eighth switch device M8 are in the on state.
[0245] Fig.19 The timing curve where S5 is located represents the control timing of the ninth switch device M9. The time t1 is the time when a cycle starts, t 10 The time is the end of a cycle, t1 to t 10 is a duty cycle T. During t1 to t7 and t8 to t 10 During the time period t7 to t8, the ninth switch device M9 is in an off state. During the time period t7 to t8, the ninth switch device M9 is in an on state.
[0246] During the time period from t4 to t5, the fifth switch device M5 and the ninth switch device M9 are turned on simultaneously. At this time, the first differential circuit 23 is in a sampling state, that is, the first charge signal obtained by the first integration circuit 22 can be sampled and stored in the third capacitor C3.
[0247] During the time period from t7 to t8, the fifth switch device M5 and the ninth switch device M9 are turned on at the same time, and the first differential circuit 23 is in a holding state, that is, the third charge signal obtained by the second integration of the first integration circuit 22 can be sampled and differentially calculated to output a first intensity signal.
[0248] like Fig.18 As shown, illustratively, the first receiving module 2 may further include a sixth switch device M6, and the second differential circuit 33 includes a fourth capacitor C4, a fourth operational amplifier A4, a sixth capacitor C6, and a tenth switch device M10, an eleventh switch device M11, and a twelfth switch device M12.
[0249] One end of the fourth capacitor C4 is connected to the sixth switch device M6, and the other end of the fourth capacitor C4 is connected to the negative input terminal of the fourth operational amplifier A4.
[0250] The positive input terminal of the fourth operational amplifier A4 is connected to a bias voltage, such as Fig.18 The Vref in is the bias voltage, and the bias voltage may be the power supply voltage of the fourth operational amplifier A4.
[0251] One end of the sixth capacitor C6 is connected to the negative input terminal of the fourth operational amplifier A4, and the other end of the sixth capacitor C6 is connected to the third point c.
[0252] One end of the tenth switch device M10 is connected to the negative input terminal of the fourth operational amplifier A4, and the other end of the tenth switch device M10 is connected to the positive input terminal of the fourth operational amplifier A4.
[0253] One end of the eleventh switching device M11 is connected to the third point c, and the other end of the eleventh switching device M11 is connected to the bias voltage.
[0254] One end of the twelfth switch device M12 is connected to the third point c, and the other end of the twelfth switch device M12 is connected to the fourth point d, wherein the fourth point d is connected to the output end of the fourth operational amplifier A4.
[0255] At this time, the second differential circuit 33 is a switching operational amplifier circuit.
[0256] When the sixth switch device M6, the tenth switch device M10 and the eleventh switch device M11 are turned on, and the twelfth switch device M12 is turned off, the second differential circuit 33 is in a sampling state, that is, at this time, the second charge signal obtained by the first integration of the second integration circuit 32 can be sampled and stored in the fifth capacitor C5. When the sixth switch device M6 and the twelfth switch device M12 are turned on, and the tenth switch device M10 and the eleventh switch device M11 are turned off, the second differential circuit 33 is in a holding state, that is, at this time, the fourth charge signal obtained by the second integration circuit 32 can be sampled, and a differential calculation is performed to output a second intensity signal. Fig.18 V_VIS in is the second intensity signal, and at this time the second intensity signal is a voltage value.
[0257] The fourth operational amplifier A4 outputs a second intensity signal.
[0258] At this time, the second intensity signal V_VIS is:
[0259]
[0260] In formula ②, is the integral value of the total current after the second differential circuit 33 performs differential operation, c4 is the capacitance value of the fourth capacitor C4, c6 is the capacitance value of the sixth capacitor C6, and Vref is the bias voltage.
[0261] like Fig.18 As shown, Fig.18The sixth switch device M6 has a control signal S3, and the sixth switch device M6 can be turned on or off by the control signal S3. The tenth switch device M10 and the eleventh switch device M11 have a synchronous control signal S4, and the tenth switch device M10 and the eleventh switch device M11 can be turned on or off simultaneously by the control signal S4. The twelfth switch device M12 has a control signal S5, and the twelfth switch device M12 can be turned on or off by the control signal S5.
[0262] like Fig.19 As shown, Fig.19 The timing curve where S3 is located represents the control timing of the sixth switch device M6. The time t1 is the time when a cycle starts, and t 10 The time is the end of a cycle, t1 to t 10 is a duty cycle T. During t1 to t4, t5 to t7, and t8 to t 10 During the time period from t4 to t5 and from t7 to t8, the sixth switch device M6 is in an off state.
[0263] Fig.19 The timing curve where S4 is located represents the control timing of the tenth switch device M10 and the eleventh switch device M11, indicating that the tenth switch device M10 and the eleventh switch device M11 are operated simultaneously. The time t1 is the time when a cycle starts, t 10 The time is the end of a cycle, t1 to t 10 is a working cycle T. From t1 to t4, t5 to t 10 During the time period t4 to t5, the tenth switching device M10 and the eleventh switching device M11 are in the off state. During the time period t4 to t5, the tenth switching device M10 and the eleventh switching device M11 are in the on state.
[0264] Fig.19 The timing curve where S5 is located represents the control timing of the twelfth switch device M12. The time t1 is the time when a cycle starts, t 10 The time is the end of a cycle, t1 to t 10 is a duty cycle T. During t1 to t7 and t8 to t 10 During the time period t7 to t8, the twelfth switch device M12 is in an off state. During the time period t7 to t8, the twelfth switch device M12 is in an on state.
[0265] During the time period from t4 to t5, the sixth switch device M6, the tenth switch device M10 and the eleventh switch device M11 are turned on at the same time. At this time, the first differential circuit 23 is in a sampling state, that is, the first charge signal obtained by the first integration circuit 22 can be sampled and stored in the third capacitor C3.
[0266] During the time period from t7 to t8, the sixth switch device M6 and the twelfth switch device M12 are turned on at the same time, and the first differential circuit 23 is in a holding state, that is, the third charge signal obtained by the second integration of the first integration circuit 22 can be sampled and differentially calculated to output a first intensity signal.
[0267] In one implementation, the first integration circuit 22 is configured to send the third charge signal to the first differential circuit 23 after the transmission module 1 finishes emitting the detection light; the second integration circuit 32 is configured to send the fourth charge signal to the second differential circuit 33 after the transmission module 1 finishes emitting the detection light.
[0268] like Fig.19 As shown, at time t7, the transmitting module 1 stops emitting the detection light, the first integration circuit 22 ends the second integration, and sends the third charge signal to the first differential circuit 23. At the same time, the second integration circuit 32 ends the second integration, and sends the fourth charge signal to the second differential circuit 33.
[0269] In one implementation, the first differential circuit 23 is configured to perform a differential operation on the first charge signal and the third charge signal to obtain a first intensity signal after the transmitting module 1 finishes emitting the detection light; the second differential circuit 33 is configured to perform a differential operation on the second charge signal and the fourth charge signal to obtain a second intensity signal after the transmitting module 1 finishes emitting the detection light.
[0270] like Fig.19 As shown, at time t7, the transmitting module 1 stops emitting the detection light, and the first differential circuit 23 starts to perform differential operation on the first charge signal and the third charge signal at time t7 to obtain a first intensity signal. At the same time, the second differential circuit 33 starts to perform differential operation on the second charge signal and the fourth charge signal at time t7 to obtain a second intensity signal.
[0271] In one implementation, the processing module 4 is configured to determine an intensity difference value between the first intensity signal and the second intensity signal, and determine whether the interfering light interferes with the detection light based on a relationship between the intensity difference value and a preset threshold.
[0272] Exemplarily, the processing module 4 is coupled to both the first receiving module 2 and the second receiving module 3. The above analysis of the first strength signal and the second strength signal can be implemented by the processing module 4, and the processing module 4 can also be used to determine whether interference is constituted.
[0273] It is worth noting that the processing module 4 can be a processor, specifically a microprocessor (Microcontroller Unit, MCU), or can also be a processor in the main system of the electronic device, such as a system on chip (System on Chip, SoC). In addition, the processor can also be an application processor (Application Processor, AP), a controller, etc.
[0274] In one implementation, the intensity difference value includes at least any one of the following: a ratio of the first intensity signal divided by the second intensity signal, a ratio of the second intensity signal divided by the first intensity signal, a difference of the first intensity signal minus the second intensity signal, a difference of the second intensity signal minus the first intensity signal, a sum of the first intensity signal and the second intensity signal, and a product of the first intensity signal and the second intensity signal. For the intensity difference values obtained by different processing methods, the specific process of determining whether the interfering light interferes with the detection light according to the intensity difference values can refer to the description of the first aspect above, which will not be repeated here.
[0275] In one implementation, when the intensity difference value includes the ratio of the second intensity signal divided by the first intensity signal, the processing module 4 is configured to: if the intensity difference value is greater than a preset threshold, determine that the interfering light does not interfere with the detection light; if the intensity difference value is less than the preset threshold, determine that the interfering light interferes with the detection light.
[0276] In one example, the intensity difference value includes a ratio of the first intensity signal divided by the second intensity signal. If the intensity of the detection light is greater than the intensity of the interference light, the first intensity signal will be greater than the second intensity signal, and the ratio of the first intensity signal divided by the second intensity signal will be greater than 1. If the intensity of the detection light is less than the intensity of the interference light, the first intensity signal will be less than the second intensity signal, and the ratio of the first intensity signal divided by the second intensity signal will be less than 1. In different situations, the ratio of the first intensity signal divided by the second intensity signal is different, so it is possible to judge whether the interference light interferes with the detection light based on the ratio.
[0277] Based on the relationship between the intensity difference value and the preset threshold, it is determined whether the interference light interferes with the detection light, and the preset threshold at this time may be 1. If the intensity difference value is greater than the preset threshold, it means that the intensity of the detection light is greater than the intensity of the interference light, and it can be determined that the interference light does not interfere with the detection light. If the intensity difference value is less than the preset threshold, it means that the intensity of the detection light is less than the intensity of the interference light, and it can be determined that the interference light interferes with the detection light.
[0278] Take the intensity difference value as a ratio of the first intensity signal divided by the second intensity signal as an example.
[0279] Fig. 20 A circuit structure diagram of a processing device provided in this embodiment.
[0280] like Fig. 20 As shown, the processing module 4 may include a fifth operational amplifier A5, an analog multiplier N1, a first resistor R1, a second resistor R2, a third resistor R3, a thirteenth switch device M13 and a fourteenth switch device M14.
[0281] One end of the first resistor R1 is connected to the negative input terminal of the fifth operational amplifier A5, and the other end of the first resistor R1 is connected to the thirteenth switch device M13.
[0282] One end of the thirteenth switch device M13 is connected to the first resistor R1 , and the other end is connected to the output end of the first receiving module 2 , that is, the output end of the first differential circuit 23 .
[0283] One input terminal of the analog multiplier N1 is connected to the fourteenth switch device M14, and the other input terminal of the analog multiplier N1 is connected to the output terminal of the fifth operational amplifier A5. The output terminal of the analog multiplier N1 is connected to the second resistor R2, and connected to the negative input terminal of the fifth operational amplifier A5 through the second resistor R2.
[0284] One end of the fourteenth switch device M14 is connected to an input end of the analog multiplier N1 , and the other end of the fourteenth switch device M14 is connected to an output end of the second receiving module 3 , that is, an output end of the second differential circuit 33 .
[0285] One end of the third resistor R3 is grounded, and the other end of the third resistor R3 is connected to the positive input terminal of the fifth operational amplifier A5. The third resistor R3 is used to implement current limiting protection for the fifth operational amplifier A5.
[0286] In the processing module 4, the working principle of the analog multiplier N1 is to perform multiplication calculation on two input terminals and output the calculation result from the output terminal. The fifth operational amplifier A5 can form negative feedback between the input terminal and the output terminal of the analog multiplier N1. Negative feedback regulation can make the original multiplication process output a division process, so as to obtain the ratio of the first intensity signal to the second intensity signal. Fig. 20 Wherein V_ratio is the ratio of the voltage value V_IR of the first intensity signal to the voltage value V_VIS of the second intensity signal.
[0287] At this time, the ratio V_ratio of the first intensity signal to the second intensity signal is:
[0288]
[0289] Wherein, r2 is the resistance value of the second resistor R2, r1 is the resistance value of the first resistor R1, and k is a coefficient.
[0290] like Fig. 20 As shown, Fig. 20 In the embodiment, the thirteenth switch device M13 and the fourteenth switch device M14 have a synchronous control signal S6, and the thirteenth switch device M13 and the fourteenth switch device M14 can be controlled by the control signal S6 to be turned on or off at the same time.
[0291] like Fig.19 As shown, Fig.19 The timing curve where S6 is located represents the control timing of the thirteenth switch device M13 and the fourteenth switch device M14, indicating that the thirteenth switch device M13 and the fourteenth switch device M14 are operated simultaneously. The time t1 is the time when a cycle starts, and t 10 The time is the end of a cycle, t1 to t 10 is a working cycle T. From t1 to t8, t9 to t 10 During the time period from t8 to t9, the thirteenth switch device M13 and the fourteenth switch device M14 are in the off state. During the time period from t8 to t9, the thirteenth switch device M13 and the fourteenth switch device M14 are in the on state. At time t8, the fifth switch device M5, the sixth switch device M6, the ninth switch device M9 and the twelfth switch device M12 are turned from the on state to the off state. At this time, the first differential circuit 23 sends the first strength signal and the second differential circuit 33 sends the second strength signal to the analog multiplier N1. The thirteenth switch device M13 and the fourteenth switch device M14 are turned from the off state to the on state, and the first strength signal and the second strength signal are processed. During the time period from t8 to t9, the analog multiplier N1 processes the first strength signal and the second strength signal. At time t9, the analog multiplier N1 finishes the processing and outputs the strength difference value.
[0292] In some embodiments, the processing module 4 may further include a processor and a register. The processor is used to read the first intensity signal output by the first receiving module 2 and the second intensity signal output by the second receiving module 3, and to calculate the first intensity signal and the second intensity signal. The above calculation may include ratio calculation, difference calculation, sum calculation, product value calculation, etc. The calculated intensity difference value is compared with a preset threshold value, and a comparison result is output. The register is used to read the comparison result in the processor and output the comparison result.
[0293] Taking the example that the first intensity signal and the second intensity signal can also be voltage signals, the processor can read the voltage value of the first intensity signal and the voltage value of the second intensity signal, and calculate the voltage values to obtain the intensity difference value.
[0294] The processor is used to compare the intensity difference value with a preset threshold. After the comparison is completed, the processor outputs a comparison result. Taking the intensity difference value as the ratio of the first intensity signal divided by the second intensity signal as an example, the comparison result includes: the intensity difference value is greater than the preset threshold, and the interference light does not interfere with the detection light; or the intensity difference value is less than the preset threshold, and the interference light interferes with the detection light. Afterwards, the comparison result can be stored in a register, and a flag bit can be output to represent the comparison result, such as a flag bit of "0" represents no interference, and a flag bit of "1" represents interference.
[0295] This embodiment also provides an electronic device, which includes the above-mentioned light interference detection device 200. The electronic device may include but is not limited to intelligent terminals (such as mobile phones, tablet computers, personal digital assistants (PDAs), augmented reality (AR) and virtual reality (VR) devices, etc.), robots, drones, automatic doors and other devices that require photoelectric proximity detection, which are not limited in this embodiment.
[0296] The embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer is enabled to execute the above-mentioned methods.
[0297] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the above-mentioned methods.
[0298] The embodiment of the present application also provides a chip system, which includes a processor for supporting the above-mentioned device to implement the functions involved in the above-mentioned aspects, for example, generating or processing the information involved in the above-mentioned method. In a possible design, the chip system also includes a memory for storing necessary computer instructions and data. The chip system can be composed of a chip, or it can include a chip and other discrete devices.
[0299] It should be noted that those skilled in the art will easily think of other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application. The specification and examples are only regarded as exemplary, and the true scope of the present application is indicated by the claims.
[0300] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for detecting light interference, characterized in that: include: In response to the transmitting module transmitting the detection light, the first receiving module and the second receiving module are used to synchronously collect the first ambient light including the detection light to obtain a first intensity signal and a second intensity signal, wherein the first intensity signal corresponds to the light intensity of the first ambient light collected by the first receiving module, and the second intensity signal corresponds to the light intensity of the first ambient light collected by the second receiving module; wherein the first receiving module is configured to collect a first band of the ambient light using a first filter film, and the second receiving module is configured to collect a second band of the ambient light using a second filter film, the detection light is located in the first band, the second band is a band of interference light, and the first band is different from the second band; Based on the relationship between the first intensity signal and the second intensity signal, it is determined whether the interference light interferes with the detection light.
2. The optical interference detection method according to claim 1, characterized in that: Also includes: Before the transmitting module transmits the detection light, the first receiving module and the second receiving module are used to synchronously collect the second ambient light that does not contain the detection light to obtain a first current signal and a second current signal; wherein the first current signal is obtained by the first receiving module performing photoelectric conversion on the collected second ambient light, and the second current signal is obtained by the second receiving module performing photoelectric conversion on the collected second ambient light; The first current signal is integrated to obtain a first charge signal, and the second current signal is integrated to obtain a second charge signal.
3. The optical interference detection method according to claim 2, characterized in that: The method of synchronously collecting the first ambient light source including the detection light by using the first receiving module and the second receiving module to obtain the first intensity signal and the second intensity signal includes: The first ambient light is synchronously collected by the first receiving module and the second receiving module to obtain a third current signal and a fourth current signal; wherein the third current signal is obtained by the first receiving module performing photoelectric conversion on the collected first ambient light, and the fourth current signal is obtained by the second receiving module performing photoelectric conversion on the collected first ambient light; Integrating the third current signal to obtain a third charge signal, and integrating the fourth current signal to obtain a fourth charge signal; The first charge signal and the third charge signal are differentially operated to obtain the first intensity signal, and the second charge signal and the fourth charge signal are differentially operated to obtain the second intensity signal, wherein the first intensity signal and the second intensity signal are both voltage signals.
4. The optical interference detection method according to claim 2, characterized in that: The time length for integrating the first current signal is the same as the time length for integrating the second current signal.
5. The optical interference detection method according to claim 3, characterized in that: The time length for integrating the third current signal is the same as the time length for integrating the fourth current signal.
6. The optical interference detection method according to any one of claims 1 to 5, characterized in that: The determining, based on the relationship between the first intensity signal and the second intensity signal, whether the interference light interferes with the detection light comprises: determining an intensity difference value between the first intensity signal and the second intensity signal; Based on the relationship between the intensity difference value and a preset threshold, it is determined whether the interference light interferes with the detection light.
7. The optical interference detection method according to claim 6, characterized in that: The intensity difference value includes at least any one of the following: a ratio of the first intensity signal divided by the second intensity signal; a ratio of the second intensity signal divided by the first intensity signal; A difference value obtained by subtracting the second intensity signal from the first intensity signal; a difference value obtained by subtracting the first intensity signal from the second intensity signal; a sum of the first intensity signal and the second intensity signal; The product value of the first intensity signal and the second intensity signal.
8. The optical interference detection method according to claim 6, characterized in that: When the intensity difference value includes a ratio of the second intensity signal divided by the first intensity signal, determining whether the interference light interferes with the detection light based on a relationship between the intensity difference value and a preset threshold value includes: If the intensity difference value is greater than the preset threshold, it is determined that the interference light does not interfere with the detection light; If the intensity difference value is smaller than the preset threshold, it is determined that the interference light interferes with the detection light.
9. A light interference detection device, characterized in that: include: A transmitting module, configured to transmit detection light, wherein the detection light is configured to be reflected at an object; The first receiving module and the second receiving module are configured to synchronously collect the first ambient light including the detection light in response to the transmitting module transmitting the detection light; wherein the first receiving module is configured to collect the first band of the ambient light using the first filter film, and the second receiving module is configured to collect the second band of the ambient light using the second filter film; The first receiving module is configured to output a first intensity signal according to the first ambient light collected by itself; The second receiving module is configured to output a second intensity signal according to the first ambient light collected by itself; a processing module, configured to determine whether the interference light interferes with the detection light based on the relationship between the first intensity signal and the second intensity signal; The detection light is located in the first wavelength band, the second wavelength band is a wavelength band of interference light, and the first wavelength band is different from the second wavelength band.
10. The optical interference detection device according to claim 9, characterized in that: The first receiving module includes a first photoelectric conversion circuit and a first integration circuit; The second receiving module includes a second photoelectric conversion circuit and a second integration circuit; The first photoelectric conversion circuit and the second photoelectric conversion circuit are configured to synchronously collect the second ambient light that does not contain the detection light before the transmitting module emits the detection light, so as to obtain a first current signal and a second current signal; wherein the first current signal is obtained by the first photoelectric conversion circuit performing photoelectric conversion on the collected second ambient light, and the second current signal is obtained by the second photoelectric conversion circuit performing photoelectric conversion on the collected second ambient light; The first integration circuit is configured to integrate the first current signal to obtain a first charge signal; The second integration circuit is configured to integrate the second current signal to obtain a second charge signal.
11. The optical interference detection device according to claim 10, characterized in that: The first photoelectric conversion circuit and the second photoelectric conversion circuit are further configured to synchronously collect the first ambient light to obtain a third current signal and a fourth current signal; wherein the third current signal is obtained by the first photoelectric conversion circuit performing photoelectric conversion on the collected first ambient light, and the fourth current signal is obtained by the second photoelectric conversion circuit performing photoelectric conversion on the collected first ambient light; The first integration circuit is further configured to integrate the third current signal to obtain a third charge signal; The second integration circuit is further configured to integrate the fourth current signal to obtain a fourth charge signal; The first receiving module also includes a first differential circuit; The second receiving module further includes a second differential circuit; The first differential circuit is configured to perform a differential operation on the first charge signal and the third charge signal to obtain the first intensity signal; The second differential circuit is configured to perform a differential operation on the second charge signal and the fourth charge signal to obtain the second intensity signal; Wherein, the first intensity signal and the second intensity signal are both voltage signals.
12. The optical interference detection device according to claim 10, characterized in that: The time length for which the first integration circuit integrates the third current signal is the same as the time length for which the second integration circuit integrates the fourth current signal.
13. The optical interference detection device according to claim 10, characterized in that: The time length for which the first integration circuit integrates the first current signal is the same as the time length for which the second integration circuit integrates the second current signal.
14. The optical interference detection device according to any one of claims 11 to 13, characterized in that: The first integration circuit is configured to perform the following steps in sequence before the transmitting module transmits the detection light: Clear its own circuit charge to zero; Integrating the first current signal to obtain the first charge signal; The second integration circuit is configured to perform the following steps in sequence before the transmitting module transmits the detection light: Clear its own circuit charge to zero; The second current signal is integrated to obtain the second charge signal.
15. The optical interference detection device according to any one of claims 11 to 14, characterized in that: The first integration circuit is configured to perform the following steps in sequence during the period when the transmitting module transmits the detection light: sending the first charge signal to the first differential circuit; Clear its own circuit charge to zero; Integrating the third current signal to obtain the third charge signal; The second integration circuit is configured to sequentially perform the following steps during the period when the transmitting module transmits the detection light: sending the second charge signal to the second differential circuit; Clear its own circuit charge to zero; The fourth current signal is integrated to obtain the fourth charge signal.
16. The optical interference detection device according to any one of claims 11 to 15, characterized in that: The first integration circuit is configured to send the third charge signal to the first differential circuit after the emission of the detection light by the emission module ends; The second integration circuit is configured to send the fourth charge signal to the second differential circuit after the emission module finishes emitting the detection light.
17. The optical interference detection device according to any one of claims 11 to 16, characterized in that: The first differential circuit is configured to perform a differential operation on the first charge signal and the third charge signal to obtain the first intensity signal after the emission module finishes emitting the detection light; The second differential circuit is configured to perform a differential operation on the second charge signal and the fourth charge signal to obtain the second intensity signal after the emission module finishes emitting the detection light.
18. The optical interference detection device according to any one of claims 9 to 17, characterized in that: The processing module is configured to determine an intensity difference value between the first intensity signal and the second intensity signal, and determine whether the interference light interferes with the detection light based on a relationship between the intensity difference value and a preset threshold.
19. The optical interference detection device according to claim 18, characterized in that: The intensity difference value includes at least any one of the following: a ratio of the first intensity signal divided by the second intensity signal; a ratio of the second intensity signal divided by the first intensity signal; A difference value obtained by subtracting the second intensity signal from the first intensity signal; a difference value obtained by subtracting the first intensity signal from the second intensity signal; a sum of the first intensity signal and the second intensity signal; The product value of the first intensity signal and the second intensity signal.
20. The optical interference detection device according to claim 18, characterized in that: When the intensity difference value comprises a ratio of the first intensity signal divided by the second intensity signal, the processing module is configured to: If the intensity difference value is greater than the preset threshold, it is determined that the interference light does not interfere with the detection light; If the intensity difference value is smaller than the preset threshold, it is determined that the interference light interferes with the detection light.
21. An electronic device, characterized in that: include: An optical interference detection device as claimed in any one of claims 9 to 20.