Sensor module and electronic equipment

By designing a light source with a plurality of second light emitting parts in the sensor module and electrically connecting the proximity sensor to these light emitting parts, the problem of insufficient universality of the sensor module is solved, and flexible adaptation to different installation positions is achieved, and design and manufacturing costs are reduced.

CN119644342APending Publication Date: 2025-03-18HUAWEI DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311209373.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-18
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

The existing sensor modules are poor in versatility and cannot meet the different light intensity requirements of close-light sensors at different installation positions, resulting in insufficient design flexibility.

Method used

A sensor module is designed, wherein the light source has a first light emitting part and a plurality of second light emitting parts, and the proximity sensor is electrically connected to each second light emitting part, and the light emitting power is adjusted by driving part or all of the second light emitting parts to emit light, so as to meet the needs of different installation positions.

Benefits of technology

It improves the versatility of sensor modules, reduces the need for adjustment of light source design, and reduces design and manufacturing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119644342A_ABST
    Figure CN119644342A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of sensors, provides a sensor module and electronic equipment, and can solve the problem that the universality of a sensor module in the related technology is poor. The sensor module is applied to the electronic equipment and comprises a light source module, a driving unit, a TOF receiving sensor and a proximity sensor, the light source module comprises a light source which is provided with a first light-emitting part and a plurality of second light-emitting parts. The driving unit is electrically connected with the first light-emitting part and is used for driving the first light-emitting part to emit first light; the TOF receiving sensor is used for receiving first reflected light, and the first reflected light is light formed by reflecting first light through a target object; the proximity sensor is electrically connected with each second light-emitting part and used for driving at least one second light-emitting part to emit second light, the proximity sensor is further used for receiving second reflected light, and the second reflected light is light formed after the second light is reflected by the target object. The method can be applied to electronic equipment such as a mobile phone.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of sensor technology, and in particular to a sensor module and an electronic device. Background Art

[0002] With the development of electronic technology, electronic devices such as mobile phones are usually equipped with multiple sensors to meet various needs of consumers. For example, electronic devices are currently equipped with TOF (time of flight) sensors and proximity light sensors.

[0003] The TOF sensor includes two modules, the receiving end and the transmitting end. Its working principle is: the transmitting end continuously emits light to the target object. When the light is reflected by the target object and received by the receiving end, the TOF sensor calculates the distance between the TOF sensor and the target object based on the time difference between the transmitting end emitting light and the receiving end receiving light, so as to obtain the depth information of the target object, thereby realizing functions such as object recognition. The proximity light sensor also includes two modules, the receiving end and the transmitting end. Its working principle is: the transmitting end continuously emits light to the target object. When the light reaches the target object, it will be reflected. The proximity light sensor identifies the distance of the target object by the strength of the light reflected by the target object received by the receiving end, thereby realizing functions such as turning off the screen during a call.

[0004] For electronic device designers, the internal space of electronic devices is very valuable. If the TOF sensor and the proximity light sensor are set independently, this will occupy more space inside the electronic device. For this reason, a sensor module is provided in the related art, which reduces the internal space occupied by the electronic device by sharing the transmitting end of the proximity light sensor and the TOF sensor. However, the design flexibility of the shared transmitting end is poor, and it cannot simultaneously meet the different light intensity requirements of the receiving end of the proximity light sensor when it is installed in different positions, thereby reducing the versatility of the sensor module. Summary of the invention

[0005] The embodiments of the present application provide a sensor module and an electronic device, which are used to solve the problem of poor versatility of sensor modules in related technologies.

[0006] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0007] In the first aspect, an embodiment of the present application provides a sensor module, which is applied to an electronic device, including a light source module, a driving unit, a TOF receiving sensor and a proximity sensor; the light source module includes a light source, and the light source has a first light-emitting portion and a plurality of second light-emitting portions; the driving unit is electrically connected to the first light-emitting portion, and is used to drive the first light-emitting portion to emit a first light; the TOF receiving sensor is used to receive a first reflected light, and the first reflected light is a light formed by the first light being reflected by a target object; the proximity sensor is electrically connected to each second light-emitting portion, and is used to drive at least one second light-emitting portion to emit a second light, and the proximity sensor is also used to receive the second reflected light, and the second reflected light is a light formed after the second light is reflected by the target object.

[0008] The sensor module in the embodiment of the present application, since the light source has multiple second light-emitting parts, and the proximity sensor is electrically connected to each second light-emitting part, and is used to drive at least one second light-emitting part to emit a second light, the light-emitting power can be adjusted by driving some or all of the second light-emitting parts to emit light to meet the different requirements of the proximity sensor on the light source's light-emitting power when the proximity sensor is installed in different positions. Therefore, there is no need to adjust the design of the light source when the proximity sensor is installed in different positions, thereby improving the versatility of the sensor module, and further helping to reduce the design and manufacturing costs of the sensor.

[0009] In some embodiments, the light source includes a chip substrate and a light emitting element array disposed on the chip substrate, a portion of the light emitting elements in the light emitting element array constitutes a first light emitting portion, and another portion of the light emitting elements in the light emitting element array constitutes a second light emitting portion; the number of light emitting elements in the first light emitting portion is greater than the sum of the number of light emitting elements in the second light emitting portion of the light source. In this way, the different requirements of the sensor module for the light emitting power of the first light emitting portion and the second light emitting portion of the light source can be balanced.

[0010] In some embodiments, the light source includes a chip substrate and a light emitting element array disposed on the chip substrate, wherein a portion of the light emitting elements in the light emitting element array constitute a first light emitting portion, and another portion of the light emitting elements in the light emitting element array constitute a second light emitting portion; an insulating barrier portion is disposed on the chip substrate, and the insulating barrier portion separates the first light emitting portion from each second light emitting portion. In this manner, contact and short circuit of conductive components (such as electrodes of the light emitting element) on the first light emitting portion and the second light emitting portion on the chip substrate can be avoided.

[0011] In some embodiments, the light emitting element array is a polygonal array, and each second light emitting portion is located at the same corner of the light emitting element array.

[0012] In some embodiments, the array of light emitting elements is a rectangular array.

[0013] In some embodiments, the number of light-emitting elements of the first light-emitting unit is N1, the sum of the number of light-emitting elements of the second light-emitting unit in the light source is N2, and N1 / N2 satisfies: 20≤N1 / N2≤70. This arrangement can better balance the different requirements of the sensor module for the light-emitting power of the first light-emitting unit and the second light-emitting unit of the light source.

[0014] In some embodiments, the light source module includes a housing cavity and an optical element, the housing cavity has a cavity opening, the optical element is arranged at the cavity opening, and the light source is arranged in the housing cavity; the optical element includes a first area and a second area, the first area is used for the first light to pass through, the second area is used for the second light to pass through, and the first field of view angle FOV1 formed after the first light passes through the first area is not equal to the second field of view angle FOV2 formed after the second light passes through the second area. Such a setting can meet the different requirements of electronic devices for the sensing areas of TOF sensors and proximity light sensors.

[0015] In some embodiments, the second field of view FOV2 is greater than the first field of view FOV1. This arrangement can increase the sensing area of ​​the proximity light sensor and can also greatly increase the range of the receiving end of the proximity light sensor.

[0016] In some embodiments, the optical element is a diffusion plate, and the first area and the second area are different diffusion areas in the optical element. This arrangement makes the structure of the optical element simpler while achieving that the first field of view FOV1 is not equal to the second field of view FOV2.

[0017] In some embodiments, the light source module includes a housing cavity and an optical element, the housing cavity has a cavity opening, the optical element is disposed at the cavity opening, and the light source is disposed in the housing cavity; the proximity sensor includes a first photoelectric element, the first photoelectric element is disposed in the housing cavity, and is used to receive the second reflected light. In this arrangement, the first photoelectric element and the light source share a light-transmitting window, which is conducive to simplifying the structure of the sensor module.

[0018] In some embodiments, the first photoelectric element is also used to receive a third reflected light, which is a light formed after the first light is reflected by the optical element; the driving unit includes a first control unit, and a first driving module and a first quantization module electrically connected to the first control unit, respectively, the first driving module is electrically connected to the first light-emitting part, and is used to drive the first light-emitting part to emit the first light; the first quantization module is electrically connected to the first signal port of the first photoelectric element, and the first signal port is used to output a first electrical signal representing the light intensity value of the third reflected light. In this way, the number of components of the sensor module can be reduced.

[0019] In some embodiments, the first quantization module includes a first current-voltage converter and a first analog-to-digital converter, the first analog-to-digital converter is electrically connected to the first control unit, and the first current-voltage converter is connected between the first analog-to-digital converter and the first signal port.

[0020] In some embodiments, the driving unit further includes a second driving module electrically connected to the first control unit, the second driving module is electrically connected to each second light emitting portion, and is used to drive at least one second light emitting portion to emit a second light; the first quantization module is electrically connected to the second signal port of the first photoelectric element, and the second signal port is used to output a second electrical signal representing the light intensity value of the second reflected light; wherein the first photoelectric element, the first control unit, the second driver and the first quantization module constitute a proximity sensor. Such an arrangement can make the structure of the sensor module more compact.

[0021] In some embodiments, the second signal port and the first signal port are the same port. This arrangement can make the structure of the sensor module more concise.

[0022] In some embodiments, the proximity sensor includes a data processing module, the data processing module includes a second control unit, and a second driving module and a second quantization module electrically connected to the second control unit, the second driving module is electrically connected to each second light-emitting unit, and is used to drive at least one second light-emitting unit to emit a second light; the second quantization module is electrically connected to the second signal port of the first photoelectric element, and the second signal port is used to output a second electrical signal representing the light intensity value of the second reflected light. In this way, the second electrical signal output by the first photoelectric element can be converted into a digital signal, so as to facilitate the processor to process.

[0023] In some embodiments, the second quantization module includes a second current-voltage converter and a second analog-to-digital converter, the second analog-to-digital converter is electrically connected to the second control unit, and the second current-voltage converter is connected between the second analog-to-digital converter and the second signal port.

[0024] In some embodiments, the data processing module is arranged outside the accommodating cavity. With such arrangement, when the data processing module is damaged and needs to be replaced, the impact on the light source module can be reduced.

[0025] In some embodiments, the light source module further includes a circuit board, which is located in the accommodating cavity, and the data processing module and the light source are both arranged on the circuit board. This arrangement can reduce the space occupied by the sensor module in the electronic device.

[0026] In a second aspect, an embodiment of the present application provides an electronic device, comprising the sensor module of any one of the first aspects.

[0027] The beneficial effects of the electronic device in the embodiment of the present application are the same as the beneficial effects of the sensor module in the first aspect, and will not be repeated here.

[0028] In some embodiments, the electronic device includes a display screen, and an opening area is provided on the display screen; the TOF receiving sensor and the light source are arranged at the position of the opening area, the proximity sensor is arranged on the back side of the display screen, and the projection of the proximity sensor on the display screen is located outside the opening area; when the sensor module is in the proximity light working state, the proximity sensor drives each second light emitting unit to emit a second light. Such an arrangement can avoid the second light reflected light intensity value received by the proximity sensor being small due to the light power of the second light emitting unit being too small.

[0029] In some embodiments, the electronic device includes a display screen, an opening area is provided on the display screen, and the TOF receiving sensor, the light source, and the proximity sensor are all arranged at the position of the opening area; when the sensor module is in the proximity light working state, the second light emitting parts of the proximity sensor driving part emit the second light. Such an arrangement can avoid the saturation of the proximity sensor caused by the excessive light power of the second light emitting part.

[0030] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and the sensor module of any one of the first aspects, wherein the TOF receiving sensor and the proximity sensor of the sensor module are electrically connected to the processor respectively, and the TOF receiving sensor is electrically connected to the driving unit.

[0031] The beneficial effects of the electronic device in the embodiment of the present application are the same as the beneficial effects of the sensor module in the first aspect, and will not be repeated here.

[0032] In some embodiments, the processor is also electrically connected to the driving unit. Such an arrangement is conducive to reducing the power consumption of the TOF receiving sensor. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A schematic diagram of the structure of a sensor module of an electronic device in the related art;

[0034] Figure 2 A front view schematic diagram of an electronic device (mobile phone) in some embodiments of the present application;

[0035] Figure 3 for Figure 2 A partial view of a top portion of an electronic device;

[0036] Figure 4 for Figure 2 AA cross-sectional view of the electronic device in;

[0037] Figure 5A partial view of the top of an electronic device in some embodiments of the present application;

[0038] Figure 6 A longitudinal cross-sectional view of the top of an electronic device in some embodiments of the present application;

[0039] Figure 7 This is a connection architecture diagram of the sensor module and the processor in the first embodiment of the present application;

[0040] Figure 8 This is a schematic diagram of the working principle of the sensor module in some embodiments of the present application;

[0041] Fig. 9 It is a front view schematic diagram of the light source module of the sensor module in the first embodiment of the present application;

[0042] Fig.10 for Fig. 9 BB section view of the light source module in;

[0043] Fig.11 for Fig.10 A top view of a light source in FIG.

[0044] Fig.12 for Fig.10 A top view of an assembly formed by a light source and a circuit board in the light source module shown;

[0045] Fig.13 for Fig.10 A bottom view of an assembly formed by a light source and a circuit board in the light source module shown;

[0046] Fig.14 This is an external connection diagram of the light source module, the driving unit, and the proximity sensor in the sensor module in the first embodiment of the present application;

[0047] Fig.15 It is a front view schematic diagram of a light source module of a sensor module in a second embodiment of the present application;

[0048] Fig.16a for Fig.15 The CC cross-sectional view of the light source module shown;

[0049] Fig.16b This is a schematic diagram of the structure of the light source module in some other embodiments of the present application;

[0050] Fig.17 This is a connection architecture diagram of the sensor module and the processor in the third embodiment of the present application;

[0051] Fig.18 is a longitudinal cross-sectional view of a light source module of a sensor module in a third embodiment of the present application;

[0052] Fig.19 for Fig.18 A schematic diagram of the structure of the light source module when an abnormality occurs;

[0053] Fig. 20 for Fig.18 A top view of an assembly formed by a light source and a circuit board in the light source module shown;

[0054] Fig.21 for Fig.18 A bottom view of an assembly formed by a light source and a circuit board in the light source module shown;

[0055] Fig. 22 This is an external connection diagram of the light source module, the driving unit, and the proximity sensor in the sensor module in the third embodiment of the present application;

[0056] Fig.23 The working principle of the first photoelectric element of the sensor module in the fourth embodiment of the present application Figure 1 ;

[0057] Fig.24 The working principle of the first photoelectric element of the sensor module in the fourth embodiment of the present application Figure 2 ;

[0058] Fig.25 This is a connection architecture diagram of the sensor module and the processor in the fourth embodiment of the present application;

[0059] Fig.26 for Fig.24 A top view of an assembly formed by a light source and a circuit board in the light source module shown;

[0060] Fig. 27 This is an external connection diagram of the light source module, the driving unit, and the proximity sensor in the sensor module in the fourth embodiment of the present application;

[0061] Fig.28 This is a connection architecture diagram of the sensor module and the processor in the fifth embodiment of the present application;

[0062] Fig.29 is a longitudinal cross-sectional view of a light source module of a sensor module in a fifth embodiment;

[0063] Fig.30 This is a connection architecture diagram of the sensor module and the processor in the sixth embodiment of the present application;

[0064] Fig.31 This is an external connection diagram of the light source module, the driving unit, and the proximity sensor in the sensor module in the sixth embodiment of the present application. DETAILED DESCRIPTION

[0065] The technical solutions in some embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0066] like Figure 1 As shown, Figure 1 The figure is a schematic diagram of the structure of a sensor module of an electronic device in the related art. The sensor module includes a TOF receiving sensor (TOF sensor), a driver IC, a receiving sensor (proximity sensor; referred to as P sensor), a light source (VSCEL shown in the figure), and a sensor hub (also known as: sensor control center; English full name: sensor hub).

[0067] The TOF receiving sensor is connected to the driving chip, the driving chip is connected to the sensor hub, the sensor hub is also connected to the receiving sensor, the light source is VCSEL (vertical cavity surface emitting laser), the anode of the light source is connected to the power supply LDVCC, and the cathode of the light source is respectively connected to the first control port LDOUT of the above-mentioned driving chip and the second control port P OUT of the receiving sensor.

[0068] In the above sensor module, the TOF receiving sensor, the driving chip and the light source constitute the TOF sensor, the light source is the transmitting end of the TOF sensor, and the TOF receiving sensor is the receiving end of the TOF sensor; the receiving sensor and the light source constitute the proximity light sensor, the light source is the transmitting end of the proximity light sensor, and the receiving sensor is the receiving end of the proximity light sensor. It can be seen that in this sensor module in the related art, the TOF sensor and the proximity light sensor share the transmitting end (i.e., the light source), so that the TOF sensor and the proximity light sensor do not need to be configured with a separate light source, which is conducive to reducing the number of components and reducing the occupation of the sensor module in the internal space of the electronic device.

[0069] In electronic devices (such as mobile phones), receiving sensors usually have multiple installation positions. In some electronic devices, the receiving sensor is installed on the back of the display screen. Since the display screen has an attenuation effect on light, if the luminous power of the light source is small, the light intensity of the light emitted by the light source is weak. After the light is reflected by the target object and attenuated by the display screen, it cannot be well received by the receiving sensor. Therefore, the light source needs to have a larger luminous power to meet the receiving sensor's requirements for the intensity of the received light. In other electronic devices, the receiving sensor is installed at the opening area of ​​the display screen. At this time, since there is no display screen to attenuate the light, if the light intensity received by the receiving sensor is large, the receiving sensor is more likely to be saturated, making it impossible for the proximity light sensor to accurately sense the position of the target object. Therefore, when the receiving sensor is installed at the opening area of ​​the display screen, the light source needs to have a smaller luminous power.

[0070] However, the luminous power of the light source in the sensor module in the related art cannot be adjusted to a large extent. For example, when the light source is VCSEL, according to the luminous characteristics of VCSEL, VCSEL has a threshold current. When the driving current of VCSEL is near the threshold current, the luminous power of VCSEL will be unstable. The threshold current limits the adjustment of the luminous power. Therefore, the light source cannot simultaneously meet the luminous power requirements of the receiving sensor at the above-mentioned two installation positions. The light source needs to be designed separately for the above-mentioned two installation positions, which makes the versatility of the sensor module poor, which is not conducive to reducing the design and manufacturing costs of the sensor module.

[0071] To this end, an embodiment of the present application provides a sensor module and an electronic device, wherein the light source has a first light-emitting part and multiple second light-emitting parts, the first light-emitting part is the transmitting end of the TOF sensor, and the multiple second light-emitting parts are the transmitting ends of the proximity light sensor. By driving some or all of the second light-emitting parts to emit light, the different requirements of the receiving end of the proximity light sensor for the light power of the light source at different installation positions can be met, thereby improving the versatility of the sensor module.

[0072] The electronic device in the embodiments of the present application can be a mobile phone, a tablet computer, a wearable device (such as a smart watch, a smart bracelet, smart glasses, smart jewelry, etc.), a vehicle-mounted device, an augmented reality (AR) device, a virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), and other electronic devices with TOF function and proximity light function.

[0073] The following uses a mobile phone as an example to introduce the composition of the sensor module of the electronic device in the embodiment of the present application. Other types of electronic devices can be specifically configured with reference to the composition of the sensor module in the mobile phone embodiment, which will not be described in detail here.

[0074] like Figure 2 to Figure 4 As shown, Figure 2 is a front view of an electronic device (mobile phone) in some embodiments of the present application, Figure 3 for Figure 2 A partial view of the top of an electronic device in Figure 4 for Figure 2 AA cross-sectional view of the electronic device in FIG. The electronic device comprises a housing 200 , a display screen 300 and a sensor module 100 , wherein the sensor module 100 is mounted on the housing 200 .

[0075] In some embodiments, Figure 2 and Figure 4 As shown, the housing 200 includes a middle frame 210 (also called a front shell or front frame) and a back cover 220 (also called a battery cover). The display screen 300 and the back cover 220 are respectively installed on opposite sides of the middle frame 210. The display screen 300 and the middle frame 210 enclose a first accommodation space 230, and the first accommodation space 230 is used to set the sensor module 100. The back cover 220 and the middle frame 210 enclose a second accommodation space 240, and the second accommodation space 240 is used to set the mainboard 250, the battery and other components, and the sensor module 100 is electrically connected to the mainboard 250.

[0076] The middle frame 210 and the back cover 220 may be detachably connected or may be an integrated structure, which is not specifically limited here. The display screen 300 may be a liquid crystal display screen or an OLED (Organic Light-Emitting Diode) display screen, which is not specifically limited here.

[0077] In some embodiments, Figure 2 and Figure 3 As shown, the sensor module 100 includes a light source module 1, a TOF receiving sensor 2 (TOF sensor) and a proximity sensor 3 (P sensor). The light source module 1 and the TOF receiving sensor 2 constitute a TOF sensor, the light source module 1 is the transmitting end of the TOF sensor, the TOF receiving sensor 2 is the receiving end of the TOF sensor, the light source module 1 and the proximity sensor 3 constitute a proximity light sensor, the light source module 1 is the transmitting end of the proximity light sensor, and the proximity sensor 3 is the receiving end of the proximity light sensor.

[0078] There is no unique way to install the sensor module. Figure 3 and Figure 4 The first arrangement of the sensor module is shown, where a display screen 300 is provided with an opening area 310; the TOF receiving sensor 2, the light source module 1 and the proximity sensor 3 are all arranged at the position of the opening area 310. The back side of the display screen 300 refers to the side of the display screen 300 that is away from the display surface, for example Figure 4 The left side of the middle display screen 300.

[0079] Wherein, in some embodiments, Figure 3As shown, the opening area 310 is in the shape of an elongated strip and extends along the width direction X of the electronic device. The TOF receiving sensor 2, the light source module 1 and the proximity sensor 3 are all opposite to the opening area 310, and the TOF receiving sensor 2, the light source module 1 and the proximity sensor 3 are arranged along the extension direction X of the opening area 310. Of course, the opening area 310 can also be circular, and three opening areas 310 are provided, and the three opening areas 310 are respectively arranged opposite to the TOF receiving sensor 2, the light source module 1 and the proximity sensor 3.

[0080] Figure 5 and Figure 6 The second configuration of the sensor module is shown. Figure 5 This is a partial view of the top of an electronic device in some embodiments of the present application. Figure 6 The longitudinal cross-sectional view of the top of the electronic device in some embodiments of the present application. The TOF receiving sensor 2 and the light source module 1 are arranged at the position of the opening area 310, the proximity sensor 3 is arranged on the back side of the display screen 300, and the projection of the proximity sensor 3 on the display screen 300 is located outside the opening area 310.

[0081] Wherein, in some embodiments, Figure 5 As shown, the opening area 310 is in the shape of an elongated strip and extends along the width direction X of the electronic device. The TOF receiving sensor 2 and the light source module 1 are both opposite to the opening area 310, and the TOF receiving sensor 2 and the light source module 1 are arranged along the extension direction X of the opening area 310. Of course, the opening area 310 can also be circular, and two opening areas 310 are provided, and the two opening areas 310 are respectively arranged opposite to the TOF receiving sensor 2 and the light source 11.

[0082] In some embodiments, Figure 5 As shown, along the length direction Y of the electronic device, the projection of the proximity sensor 3 on the display screen 300 is located on one side of the opening area 310, such as Figure 5 Of course, it is not limited thereto. Along the width direction X of the electronic device, the projection of the proximity sensor 3 on the display screen 300 is located on one side of the opening area 310, such as on the left or right side of the opening area 310.

[0083] like Figure 7 and Figure 8 As shown, Figure 7 FIG. 4 is a connection architecture diagram of the sensor module and the processor 400 in the first embodiment of the present application. Figure 8 This is a schematic diagram of the working principle of the sensor module in some embodiments of the present application.

[0084] The light source module 1 includes a light source 11, and the light source 11 has a first light emitting portion 111 and a plurality of second light emitting portions 112. Figure 7As shown, the number of the second light emitting units 112 may be two, but is not limited thereto. The number of the second light emitting units 112 may also be three or more, depending on the actual situation. The luminous powers of the plurality of second light emitting units 112 may be equal or unequal. For example, when the number of the second light emitting units 112 is two, the luminous power of one second light emitting unit 112 may be 1.5 times the luminous power of another second light emitting unit 112.

[0085] like Figure 7 and Figure 8 As shown, the sensor module includes a driving unit 4, which is electrically connected to the first light emitting portion 111 and is used to drive the first light emitting portion 111 to emit a first light 51. The driving unit 4 may be a driver IC.

[0086] The TOF receiving sensor 2 is used to receive the first reflected light 52, which is the light formed by the first light 51 being reflected by the target object. The proximity sensor 3 is electrically connected to each second light emitting unit 112, and is used to drive at least one second light emitting unit 112 to emit the second light 61. The proximity sensor 3 is also used to receive the second reflected light 62, which is the light formed by the second light 61 being reflected by the target object.

[0087] Among them, the first light 51 and the second light 61 can both be infrared light, and the wavelengths of the first light 51 and the second light 61 can be equal. For example, the wavelengths of the first light 51 and the second light 61 can both be 940nm. At this time, the proximity light sensor and the TOF sensor need to work in different time periods to ensure that the TOF receiving sensor 2 can accurately receive the first reflected light 52, and the proximity sensor 3 can accurately receive the second reflected light 62.

[0088] Of course, the wavelengths of the first light 51 and the second light 61 may be different, for example, the wavelength of the first light 51 may be 910 nm, and the wavelength of the second light 61 may be 840 nm. At this time, the proximity light sensor and the TOF sensor may work simultaneously or in different time periods.

[0089] like Figure 7 As shown, the electronic device further includes a processor 400 , the TOF receiving sensor 2 and the proximity sensor 3 are electrically connected to the processor 400 , respectively, and the TOF receiving sensor 2 is connected to the driving unit 4 .

[0090] The processor 400 may be a system on chip (SOC), an AP (Application Processor), a sensor hub, etc. of an electronic device, which is not specifically limited here.

[0091] When the sensor module needs to enter the TOF working state, the processor 400 sends a first control signal, and the first control signal is transmitted to the driving unit 4 via the TOF receiving sensor 2, so that the driving unit 4 drives the first light emitting part 111 to emit the first light 51. Figure 8 As shown in (a), the first light 51 is reflected by the target object (i.e., the first reflected light 52) ​​and is received by the TOF receiving sensor 2. The processor 400 calculates the distance between the electronic device and the target object through the time difference between the first light 51 emitted by the first light-emitting unit 111 and the first reflected light 52 received by the TOF receiving sensor 2 to obtain the depth information of the target object, thereby realizing functions such as object recognition.

[0092] When the sensor module needs to enter the proximity light working state, the processor 400 sends a second control signal, and the first control signal is transmitted to the proximity sensor 3, so that the proximity sensor 3 drives at least one second light emitting unit 112 to emit a second light 61, such as Figure 8 As shown in (b), the second light 61 is reflected by the target object (i.e., the second reflected light 62) and is received by the proximity sensor 3. The processor 400 identifies the distance of the target object by the intensity of the second reflected light 62 received by the proximity sensor 3, thereby realizing the function of object proximity recognition.

[0093] In some embodiments, Figure 7 As shown, the driving unit 4 includes a first driving module 41 and a first control unit 42 . The first driving module 41 is electrically connected to the first light emitting portion 111 and is used to drive the first light emitting portion 111 to emit the first light 51 . The first driving module 41 is electrically connected to the first control unit 42 .

[0094] The proximity sensor 3 includes a first photoelectric element 31, a second control unit 32 and a second driving module 33. The first photoelectric element 31 and the second driving module 33 are electrically connected to the second control unit 32 respectively. The first photoelectric element 31 is used to receive the second reflected light 62. The second driving module 33 is electrically connected to each second light-emitting portion 112 and is used to drive at least one second light-emitting portion 112 to emit a second light 61.

[0095] The TOF receiving sensor 2 includes a second photoelectric element 21 and a third control unit 22. The second photoelectric element 21 is electrically connected to the third control unit 22, and the third control unit 22 is also electrically connected to the first control unit 42. The second control unit 32 and the third control unit 22 are electrically connected to the processor 400, respectively.

[0096] When the sensor module needs to enter the TOF working state, such as when the electronic device needs face unlocking, the first control signal sent by the processor 400 is transmitted to the first control unit 42 via the third control unit 22. After receiving the first control signal, the first control unit 42 controls the first driving module 41 to drive the first light emitting unit 111 to emit the first light 51. When the sensor module needs to enter the proximity light working state, such as when the electronic device is using the call function, the second control signal sent by the processor 400 is transmitted to the second control unit 32. After receiving the second control signal, the second control unit 32 controls the second driving module 33 to drive at least one second light emitting unit 112 to emit the second light 61.

[0097] Among them, Figure 7 As shown, the first photoelectric element 31 may be a photodiode (PD), but it is not limited thereto, and the first photoelectric element 31 may also be a phototransistor, a photomultiplier tube, a phototube, etc., which are not specifically limited here.

[0098] like Figure 7 As shown, the second photoelectric element 21 may be a photodiode (PD), but it is not limited thereto, and the second photoelectric element 21 may also be a phototransistor, a photomultiplier tube, a phototube, etc., which are not specifically limited here.

[0099] In some embodiments, Figure 4 and Figure 8 As shown in (b), the TOF receiving sensor 2, the light source 11 and the proximity sensor 3 are all arranged at the position of the opening area 310. When the sensor module is in the proximity light working state, the proximity sensor 3 drives a part of the second light emitting parts 112 to emit the second light 61, such as Figure 7 As shown, a second light emitting unit 112 is driven to emit a second light 61 .

[0100] Since there is no display screen 300 on the optical path of the second reflected light 62 to attenuate it, if the luminous power of the second light-emitting unit 112 is large, then the light intensity value of the second reflected light 62 received by the proximity sensor 3 is large, and the proximity sensor 3 is easily saturated, making it unable to accurately sense the position of the target object. Therefore, the proximity sensor 3 drives a part of the second light-emitting units 112 to emit the second light 61, which can avoid the saturation of the proximity sensor 3 caused by the excessive luminous power of the second light-emitting unit 112, thereby ensuring that the proximity sensor 3 can accurately sense the position of the target object.

[0101] In some embodiments, Figure 6 and Figure 8As shown in (a), the TOF receiving sensor 2 and the light source 11 are both disposed at the position of the opening area 310, and the projection of the proximity sensor 3 on the display screen 300 is located outside the opening area 310. When the sensor module is in the proximity light working state, the proximity sensor 3 drives each second light emitting portion 112 to emit a second light 61.

[0102] Since the display screen 300 is located on the optical path of the second reflected light 62 and has an attenuation effect on the second reflected light 62, if the luminous power of the second light emitting unit 112 is small, the light intensity value of the second reflected light 62 received by the proximity sensor 3 is small, which makes the proximity sensor 3 unable to accurately sense the position of the target object. Therefore, the proximity sensor 3 drives each second light emitting unit 112 to emit the second light 61, which can avoid the small light intensity value of the second reflected light 62 received by the proximity sensor 3 caused by the small luminous power of the second light emitting unit 112, thereby ensuring that the proximity sensor 3 can accurately sense the position of the target object.

[0103] The sensor module in the embodiment of the present application, since the light source 11 has multiple second light-emitting parts 112, and the proximity sensor 3 is electrically connected to each second light-emitting part 112, and is used to drive at least one second light-emitting part 112 to emit a second light 61, the light-emitting power can be adjusted by driving some or all of the second light-emitting parts 112 to emit light to meet the different requirements of the proximity sensor 3 for the light-emitting power of the light source 11 when the proximity sensor 3 is installed in different positions. Therefore, there is no need to adjust the design of the light source 11 when the proximity sensor 3 is installed in different positions, thereby improving the versatility of the sensor module, and further helping to reduce the design and manufacturing costs of the sensor.

[0104] In some embodiments, Fig. 9 and Fig.10 As shown, Fig. 9 : is a front view of the light source module 1 of the sensor module in the first embodiment of the present application, Fig.10 for Fig. 9 BB cross-sectional view of the light source module 1 in FIG. The light source module 1 includes a housing cavity 12 and an optical element 13. The housing cavity 12 has a cavity opening 121. The optical element 13 is disposed at the cavity opening 121. The light source 11 is disposed in the housing cavity 12. The optical element 13 may be a diffuser plate or a diffractive optical element 13 (DOE), which is not specifically limited here.

[0105] When the sensor module is in the TOF working state, it needs to obtain the depth information of the target at different distances. For example, when the electronic device obtains the depth information of the target when taking pictures, when the target is far away from the electronic device, if the luminous power of the first light-emitting part 111 of the light source 11 is small, then the light intensity value of the first light 51 emitted by it will be small, and the light intensity value of the first reflected light 52 will also be small, which cannot meet the requirements of the TOF receiving sensor 2 for the light intensity value of the received first reflected light 52. Therefore, the first light-emitting part 111 of the light source 11 needs a larger luminous power.

[0106] When the sensor module is in the proximity light working state, it needs to sense whether the target object is close. For example, when the electronic device is making a call, the proximity sensor 3 needs to sense whether the face (i.e., the target object) is close to the display screen 300. If the face is close to the display screen 300, the processor 400 turns off the display screen 300 to avoid the face touching the display screen 300 and causing erroneous operation. The distance of the target object sensed by the proximity sensor 3 is relatively small. Therefore, compared with the first light-emitting part 111, the second light-emitting part 112 of the light source 11 needs a smaller light-emitting power to meet the requirements of the proximity sensor 3 for the light intensity value of the received second reflected light 62.

[0107] In order to balance the different requirements of the sensor module on the light power of the first light emitting part 111 and the second light emitting part 112 of the light source 11, in some embodiments, as Fig.11 As shown, Fig.11 for Fig.10 A top view of the light source 11 in FIG. The light source 11 includes a chip substrate 113, and a light emitting element array 114 disposed on the chip substrate 113, a portion of the light emitting elements 115 in the light emitting element array 114 constitute a first light emitting portion 111, and another portion of the light emitting elements 115 in the light emitting element array 114 constitute a second light emitting portion 112; and the number N1 of the light emitting elements 115 in the first light emitting portion 111 is greater than the sum N2 of the number of the light emitting elements 115 in the second light emitting portion 112 in the light source 11. Such an arrangement can meet the requirement of a larger light emitting power of the first light emitting portion 111 when the sensor module is in a TOF working state, and meet the requirement of a smaller light emitting power of the second light emitting portion 112 when the sensor module is in a near-light working state.

[0108] The number of light emitting elements 115 of each second light emitting portion 112 may be equal, for example Fig.11As shown, each second light-emitting portion 112 has four light-emitting elements 115. However, this is not limited thereto, and the number of light-emitting elements 115 of each second light-emitting portion 112 may be different. For example, when there are two second light-emitting portions 112, the number of light-emitting elements 115 of one second light-emitting portion 112 may be four, and the number of light-emitting elements 115 of the other second light-emitting portion 112 may be six, which may be specifically set according to the light-emitting power of each second light-emitting portion 112.

[0109] In some embodiments, N1 / N2 satisfies: 20≤N1 / N2≤70. Such a configuration can better balance the different requirements of the sensor module for the light emitting power of the first light emitting unit 111 and the second light emitting unit 112 of the light source 11.

[0110] Among them, the range of N1 can be 100 to 360; the range of N2 can be 4 to 12.

[0111] In some embodiments, Fig.11 As shown, the chip substrate 113 is an integrated structure. However, it is not limited thereto. In other embodiments, the chip substrate 113 may also be provided in a split manner. Specifically, the chip substrate 113 includes two sub-substrates, which are provided adjacent to each other. The first light-emitting portion 111 is provided on one of the sub-substrates, and the second light-emitting portion 112 is provided on the other sub-substrate.

[0112] In some embodiments, Fig.11 As shown, the light emitting element 115 may be a laser. Fig.11 As shown, the laser can be a vertical cavity surface emitting laser (VCSEL). The multiple lasers of the first light emitting unit 111 and the second light emitting unit 112 can be connected in a common anode and independent cathode mode, a common cathode and independent anode mode, or an independent anode and independent cathode mode.

[0113] Of course, it is not limited to this, and the laser can also be an edge emitting laser (EEL) or the like.

[0114] In some embodiments, Fig.10 and Fig.11 As shown, a plurality of light exit holes are arranged on one side surface of the chip substrate 113, and the plurality of light exit holes form an array, and a light emitting element 115 is arranged in the light exit hole, and the light emitting element 115 is a vertical cavity surface emitting laser. The light emitting element 115 and the chip substrate 113 constitute a VCSEL chip.

[0115] The light exit hole may be a circular hole, a polygonal hole, such as a square hole, etc., which is not specifically limited here.

[0116] In some embodiments, Fig.11 As shown, the light emitting element array 114 is a polygonal array, and each second light emitting portion 112 is located at the same corner of the light emitting element array 114. In this way, multiple second light emitting portions 112 can be gathered together, so that the second light 61 emitted by the second light emitting portion 112 is more concentrated, so as to better meet the requirements of the proximity light sensor on the light emitting power of the second light emitting portion 112 when working.

[0117] Among them, Fig.11 As shown, the polygonal array may be a rectangular array, but is not limited thereto. The polygonal array may also be a triangular array, a pentagonal array, a hexagonal array, etc., depending on the design requirements of the light source 11.

[0118] In some embodiments, Fig.11 As shown, an insulating barrier 116 is provided on the chip substrate 113, and the insulating barrier 116 separates the first light-emitting portion 111 from each second light-emitting portion 112. Such a configuration can prevent the conductive parts (such as electrodes of the light-emitting element 115) on the first light-emitting portion 111 and the second light-emitting portion 112 on the chip substrate 113 from contacting and short-circuiting, thereby ensuring the normal operation of the first light-emitting portion 111 and the second light-emitting portion 112.

[0119] When the light emitting element 115 is a vertical cavity surface emitting laser, and the light emitting elements 115 in the first light emitting section 111 and the second light emitting section 112 are connected in a manner of common anode and independent cathode, the insulating barrier 116 separates the cathodes of the light emitting elements 115 in the first light emitting section 111 and the second light emitting section 112. When the light emitting element 115 is a vertical cavity surface emitting laser, and the light emitting elements 115 in the first light emitting section 111 and the second light emitting section 112 are connected in a manner of common cathode and independent anode, the insulating barrier 116 separates the anodes of the light emitting elements 115 in the first light emitting section 111 and the second light emitting section 112.

[0120] In some embodiments, Fig.11 As shown, the insulating barrier 116 is in a strip shape. This arrangement can reduce the space occupied by the insulating barrier 116 on the chip substrate 113, thereby facilitating an optimized layout of the devices on the chip substrate 113.

[0121] The insulating barrier 116 may be an insulating barrier wall or an air gap, and any insulating barrier may be provided, and no specific limitation is made herein.

[0122] In some embodiments, Fig.10 and Fig.12 As shown, Fig.12 for Fig.10 A top view of an assembly formed by a light source 11 and a circuit board 14 in the light source module 1 is shown. The light source module 1 further includes a circuit board 14, which is disposed in the accommodating cavity 12, on which a chip substrate 113 of the light source 11 is disposed, on which a first connection terminal 141 and a second connection terminal 142 are disposed, and on which a first pin 1171 and a second pin 1172 are disposed, wherein the first pin 1171 is electrically connected to the first light-emitting portion 111, and the first pin 1171 is also electrically connected to the first connection terminal 141; and the second pin 1172 is electrically connected to the second light-emitting portion 112, and the second pin 1172 is also electrically connected to the second connection terminal 142.

[0123] Among them, Fig.13 and Fig.14 As shown, Fig.13 for Fig.10 The bottom view of the assembly formed by the light source 11 and the circuit board 14 in the light source module 1 is shown. Fig.14 This is an external connection diagram of the light source module 1, the driving unit 4, and the proximity sensor 3 in the sensor module in the first embodiment of the present application. The first connection terminal 141 includes a first positive terminal (such as the V+ terminal in the figure) and a first negative terminal (such as the V- terminal in the figure), and the first positive terminal and the first negative terminal are electrically connected to the driving unit 4, respectively. Specifically, the first positive terminal and the first negative terminal are electrically connected to the first driving module 41 of the driving unit 4, respectively.

[0124] The second connection terminal 142 includes a second positive terminal (such as the Vp+ terminal in the figure) and a second negative terminal (such as the Vp- terminal in the figure), and the second positive terminal and the second negative terminal are electrically connected to the proximity sensor 3 respectively. Specifically, the second positive terminal and the second negative terminal are electrically connected to the second driving module 33 of the proximity sensor 3 respectively.

[0125] like Fig.15 and Fig.16a As shown, Fig.15 : is a front view of the light source module 1 of the sensor module in the second embodiment of the present application, Fig.16a for Fig.15 The CC cross-sectional view of the light source module 1 is shown. The structure of the light source module 1 in this embodiment is similar to Figures 9 to 13 The structure of the light source module 1 is different in that the structure of the optical element 13 is different, as described below:

[0126] The optical element 13 includes a first area 131 and a second area 132. The first area 131 is used for allowing the first light 51 to pass through, and the second area 132 is used for allowing the second light 61 to pass through. The first field of view angle FOV1 formed after the first light 51 passes through the first area 131 is not equal to the second field of view angle FOV2 formed after the second light 61 passes through the second area 132.

[0127] By setting the first field of view angle FOV1 and the second field of view angle FOV2 to be unequal, the TOF sensor and the proximity light sensor have different sensing areas. By reasonably setting the sizes of the first field of view angle FOV1 and the second field of view angle FOV2, the different requirements of electronic devices for the sensing areas of the TOF sensor and the proximity light sensor can be met.

[0128] In some embodiments, Fig.16a As shown, the second field of view angle FOV2 is greater than the first field of view angle FOV1. That is, the second field of view angle FOV2 is set larger. Such a setting can not only increase the irradiation area of ​​the second light 61 emitted by the second light-emitting portion 112, thereby increasing the sensing area of ​​the proximity light sensor, but also the second reflected light 62 after the second light 61 is reflected by the target object also has a larger irradiation area, so that it can be ensured that the receiving end of the proximity light sensor (that is, the first photoelectric element 31) can smoothly receive the second reflected light 62 even when it is far away from the second light-emitting portion 112, thereby greatly increasing the setting range of the receiving end of the proximity light sensor.

[0129] In some embodiments, Fig.16a As shown, the second field of view angle FOV1 is 66°, and the first field of view angle FOV2 is 20°. Of course, the first field of view angle FOV1 and the second field of view angle FOV2 are not limited to the above angles, and other angles can also be selected according to actual conditions.

[0130] In some embodiments, Fig.16a As shown, the optical element 13 is a diffusion plate, and the first area 131 and the second area 132 are different diffusion areas in the optical element 13. Since the first area 131 and the second area 132 are different diffusion areas in the optical element 13, the first area 131 and the second area 132 have different diffusion capabilities for light, and different viewing angles can be formed after the first light 51 passes through the first area 131 and the second light 61 passes through the second area 132. In this way, while achieving the first field of view angle FOV1 and the second field of view angle FOV2 are not equal, the structure of the optical element 13 is made simpler, which is conducive to reducing the design and manufacturing costs of the optical element 13.

[0131] Specifically, different diffusion regions refer to different sizes, structures, shapes, and arrangements of optical protrusions (optical protrusions used to diffuse light) in the diffusion regions. The optical protrusions in the diffusion regions may be located on the inner surface of the diffusion region, or on the outer surface of the diffusion region, or on both the inner and outer surfaces of the diffusion region.

[0132] like Fig.16b As shown, Fig.16b Schematic diagram of the structure of the light source module 11 in some other embodiments of the present application. In this embodiment, the first field of view angle FOV1 is greater than the second field of view angle FOV2. That is, the field of view angle FOV1 is larger. By setting the field of view angle FOV1 to be larger, the irradiation area of ​​the first light 51 emitted by the first light-emitting unit 111 can be increased, so that the TOF sensor can obtain depth information of target objects in a wider range.

[0133] In some embodiments, Fig.15 and Fig.16b As shown, the optical element 13 is a plate-like structure, the first region 131 is a diffusion region, and the second region 132 is a flat region. The material of the second region 132 can be glass or resin.

[0134] Since the first area 131 is a diffusion area, the first light 51 emitted by the first light emitting unit 111 diffuses to all sides after passing through the first area 131, thereby forming a larger field of view FOV1. Since the second area 132 is a flat area, which does not have a diffusion function, the second light 61 emitted by the second light emitting unit 112 maintains the divergence angle of the second light emitting unit 112 unchanged after passing through the flat area, thereby forming a smaller field of view FOV2.

[0135] By providing a diffusion area and a flat plate area in the optical element 13 , the structure of the optical element 13 is made simpler while the field of view angle FOV1 is made larger than the field of view angle FOV2 , thereby facilitating reduction of the design and manufacturing costs of the optical element 13 .

[0136] The specific structure of the diffusion area is: at least one of the inner surface and the outer surface of the diffusion area includes a plurality of optical microstructures for diffusing light. The specific structure of the flat plate area is: neither the inner surface nor the outer surface of the flat plate area is provided with an optical microstructure for diffusing light. The inner surface and the outer surface of the flat plate area can be parallel or approximately parallel (for example, the deviation is within 2°).

[0137] The first area 131 and the second area 132 may be designed as separate bodies or as an integrated structure, which is not specifically limited here.

[0138] In some embodiments, Fig.15 and Fig.16aAs shown, the projection of the first light emitting portion 111 on the optical element 13 is located in the first area 131, and the projection of each second light emitting portion 112 on the optical element 13 is located in the second area 132. This arrangement ensures that the first light 51 emitted by the first light emitting portion 111 passes through the first area 131, and the second light 61 emitted by each second light emitting portion 112 passes through the second area 132.

[0139] like Figure 17 to Figure 22 As shown, Fig.17 FIG. 4 is a connection architecture diagram of the sensor module and the processor 400 in the third embodiment of the present application. Fig.18 is a longitudinal cross-sectional view of the light source module 1 of the sensor module in the third embodiment of the present application, Fig.19 for Fig.18 The schematic diagram of the structure of the light source module 1 when an abnormality occurs, Fig. 20 for Fig.18 The top view of the assembly formed by the light source 11 and the circuit board 14 in the light source module 1 is shown. Fig.21 for Fig.18 The bottom view of the assembly formed by the light source 11 and the circuit board 14 in the light source module 1 is shown. Fig. 22 This is an external connection diagram of the light source module 1, the driving unit 4, and the proximity sensor 3 in the sensor module in the third embodiment of the present application.

[0140] The structure of the light source module 1 in this embodiment is Figures 9 to 14 The structural difference of the middle light source module 1 is that a third photoelectric element 7 for human eye safety monitoring is added in the accommodating cavity 12, as described in detail as follows:

[0141] like Fig.18 As shown, a third photoelectric element 7 is disposed in the accommodating cavity 12 , and the third photoelectric element 7 is used to receive a third reflected light 53 , where the third reflected light 53 is light formed after the first light 51 is reflected by the optical element 13 .

[0142] Among them, Fig.18 As shown, the third photoelectric element 7 may be a photodiode (PD), but it is not limited thereto, and the third photoelectric element 7 may also be a phototransistor, a photomultiplier tube, a phototube, etc., which is not specifically limited here.

[0143] like Fig.17 As shown, the driving unit 4 includes a first control unit 42, and a first driving module 41 and a first quantization module 43 respectively electrically connected to the first control unit 42, and the first quantization module 43 is electrically connected to the third photoelectric element 7; the first control unit 42 is also electrically connected to the third control unit 22 in the TOF receiving sensor 2, and the third control unit 22 is electrically connected to the processor 400.

[0144] Specifically, Fig.17 As shown, the first port L11 of the first control unit 42 is electrically connected to the first driving module 41 , the second port L12 of the first control unit 42 is electrically connected to the first quantization module 43 , and the third port L13 of the first control unit 42 is electrically connected to the third control unit 22 .

[0145] The third photoelectric element 7 and the driving unit 4 constitute a human eye safety monitoring module. The third photoelectric element 7 is the receiving end of the human eye safety monitoring module. When the sensor module is in the TOF working state, the third photoelectric element 7 receives the third reflected light 53 reflected by the optical element 13 and outputs an electrical signal. The electrical signal is quantified by the first quantization module 43 and converted into a digital signal output. The digital signal is transmitted to the processor 400 via the first control unit 42 and the third control unit 22. The processor 400 is used to determine whether the optical element 13 is abnormal according to the size of the digital signal. Among them, the "abnormality" of the optical element 13 includes the optical element 13 falling off from the accommodating cavity 12, cracks appearing on the optical element 13, such as Fig.19 As shown, the optical element 13 falls off from the accommodating cavity 12. Without the blocking of the optical element 13, the light intensity of the first light 51 will increase, which may cause damage to human eyes.

[0146] When an abnormality occurs in the optical element 13, the third reflected light 53 received by the third photoelectric element 7 will decrease, the intensity value of the electrical signal output by the third photoelectric element 7 will become smaller, and the digital signal value output by the first quantization module 43 will be smaller. At this time, the processor 400 sends a shutdown signal to the first control unit 42. After receiving the shutdown signal, the first control unit 42 controls the first driving module 41 to turn off the first light-emitting unit 111 to protect the safety of the human eye.

[0147] The digital signal output by the first quantization module 43 may also be directly transmitted to the first control unit 42 for processing. The first control unit 42 is used to determine whether the optical element 13 is abnormal according to the size of the digital signal.

[0148] In some embodiments, Fig.17 As shown, the first quantization module 43 includes a first current-voltage converter 431 and a first analog-to-digital converter 432, the first analog-to-digital converter 432 is electrically connected to the first control unit 42 (that is, electrically connected to the second port L12 of the first control unit 42), and the first current-voltage converter 431 is connected between the first analog-to-digital converter 432 and the third photoelectric element 7.

[0149] When working, the first current-to-voltage converter 431 converts the electrical signal (the electrical signal is a current signal) output by the third photoelectric element 7 into a voltage signal and sends it to the first analog-to-digital converter 432. The first analog-to-digital converter 432 converts the received voltage signal into a digital signal and sends it to the first control unit 42.

[0150] In some embodiments, Fig. 20 , Fig.21 and Fig. 22 As shown, Fig. 20 for Fig.18 The top view of the assembly formed by the light source 11 and the circuit board 14 in the light source module 1 is shown. Fig.21 for Fig.18 The bottom view of the assembly formed by the light source 11 and the circuit board 14 in the light source module 1 is shown. Fig. 22 This is an external connection diagram of the light source module 1, the driving unit 4, and the proximity sensor 3 in the sensor module in the third embodiment of the present application.

[0151] The third photoelectric element 7 is disposed on the circuit board 14 . The circuit board 14 is provided with a third connection terminal 143 . The third connection terminal 143 is electrically connected to the third photoelectric element 7 , and the third connection terminal 143 is also electrically connected to the first quantization module 43 of the driving unit 4 .

[0152] The third connection terminal 143 includes a positive connection terminal (a P+ terminal shown in the figure) and a negative connection terminal (a P− terminal shown in the figure), and both the positive connection terminal and the negative connection terminal are electrically connected to the first quantization module 43 .

[0153] As for the structure and connection relationship of the light source 11, the proximity sensor 3 and the TOF receiving sensor 2 in this embodiment, please refer to Figures 9 to 14 The structure and connection relationship of the sensor module shown in the figure are set up and will not be repeated here.

[0154] like Figure 23 to Figure 27 As shown, Fig.23 The working principle of the first photoelectric element 31 of the sensor module in the fourth embodiment of the present application is Figure 1 , Fig.24 The working principle of the first photoelectric element 31 of the sensor module in the fourth embodiment of the present application is Figure 2 , Fig.25 FIG. 4 is a connection architecture diagram of the sensor module and the processor 400 in the fourth embodiment of the present application. Fig.26 for Fig.24 The top view of the assembly formed by the light source 11 and the circuit board 14 in the light source module 1 is shown. Fig. 27 This is an external connection diagram of the light source module 1, the driving unit 4, and the proximity sensor 3 in the sensor module in the fourth embodiment of the present application.

[0155] The structure of the light source module 1 in this embodiment is Figures 9 to 14 The structure of the middle light source module 1 is different in that the first photoelectric element 31 is arranged at a different position, as described below:

[0156] like Fig.23 and Fig.25 As shown, the first photoelectric element 31 is disposed in the accommodating cavity 12 and is used to receive the second reflected light 62. In this way, the first photoelectric element 31 and the light source 11 share a light-transmitting window (i.e., the window formed by the optical element 13), so there is no need to set an additional light-transmitting window outside the accommodating cavity 12 on the display screen 300 of the electronic device, which is conducive to simplifying the structure of the electronic device and reducing the cost of the electronic device.

[0157] In some embodiments, Fig.24 and Fig.25 As shown, the first photoelectric element 31 is also used to receive a third reflected light 53 , where the third reflected light 53 is a light formed after the first light 51 is reflected by the optical element 13 .

[0158] The driving unit 4 includes a first control unit 42, and a first driving module 41 and a first quantization module 43 electrically connected to the first control unit 42, respectively. The first quantization module 43 is electrically connected to the first signal port O1 of the first photoelectric element 31, and the first signal port O1 is used to output a first electrical signal representing the light intensity value of the third reflected light 53;

[0159] Specifically, Fig.25 As shown, the first port L11 of the first control unit 42 is electrically connected to the first driving module 41 , and the second port L12 of the first control unit 42 is electrically connected to the first quantization module 43 .

[0160] like Fig.24 As shown, when the sensor module is in the TOF working state, the first photoelectric element 31 receives the third reflected light 53 reflected by the optical element 13, and outputs the first electrical signal from the first signal port O1. The first electrical signal is converted into a first digital signal after being quantized by the first quantization module 43, and the first digital signal is transmitted to the processor 400 via the first control unit 42 and the third control unit 22. The processor 400 is used to determine whether the optical element 13 is abnormal according to the size of the first digital signal. If the optical element 13 is abnormal, the third reflected light 53 received by the first photoelectric element 31 will be reduced, and the first digital signal output by the first quantization module 43 is small. At this time, the processor 400 sends a shutdown signal to the first control unit 42. After receiving the shutdown signal, the first control unit 42 controls the first driving module 41 to turn off the first light-emitting unit 111 to protect the safety of human eyes.

[0161] In this embodiment, the first photoelectric element 31 is used to receive both the second reflected light 62 and the third reflected light 53, that is, the proximity sensor 3 and the human eye safety monitoring module share a receiving end, which can reduce the number of components of the sensor module, thereby simplifying the structure of the sensor module and helping to reduce the cost of the sensor module. By setting the first quantization module 43, the first electrical signal output by the first photoelectric element 31 can be converted into a first digital signal, thereby facilitating processing by the processor 400.

[0162] Of course, the first digital signal output by the first quantization module 43 can also be sent to the first control unit 42 for processing, and the first control unit 42 is used to determine whether the optical element 13 is abnormal according to the size of the first digital signal. In this way, the processor 400 does not need to process the first digital signal, which is conducive to reducing the processing burden of the processor 400 of the electronic device.

[0163] In some embodiments, Fig.25 As shown, the first quantization module 43 includes a first current-voltage converter 431 and a first analog-to-digital converter 432. The first analog-to-digital converter 432 is electrically connected to the first control unit 42 (that is, electrically connected to the second port L2). The first current-voltage converter 431 is connected between the first analog-to-digital converter 432 and the first signal port O1.

[0164] When in operation, the first current-to-voltage converter 431 amplifies the first electrical signal (the first electrical signal is a current signal) output by the first photoelectric element 31 and converts it into a voltage signal and sends it to the first analog-to-digital converter 432. The first analog-to-digital converter 432 converts the received voltage signal into a first digital signal and sends it to the first control unit 42.

[0165] In some embodiments, Fig.25 As shown, the proximity sensor 3 includes a data processing module 35, which includes a second control unit 32, and a second driving module 33 and a second quantization module 34 electrically connected to the second control unit 32 respectively; the second quantization module 34 is electrically connected to the second signal port O2 of the first photoelectric element 31, and the second signal port O2 is used to output a second electrical signal representing the light intensity value of the second reflected light 62.

[0166] Specifically, Fig.25 As shown, the second driving module 33 is electrically connected to the first connection port L21 of the second control unit 32 , and the second quantization module 34 is electrically connected to the second connection port L22 of the second control unit 32 .

[0167] like Fig.23As shown, when the sensor module is in the proximity light working state, the first photoelectric element 31 receives the second reflected light 62 reflected by the target object, and converts it into a second electrical signal and outputs it from the second signal port O2. The second electrical signal is quantized by the second quantization module 34 and converted into a second digital signal output. The second digital signal is transmitted to the processor 400 via the second control unit 32. The processor 400 is used to determine whether the target object is close to the electronic device according to the size of the second digital signal.

[0168] When the sensor module is in the near-light working state and needs to switch to the TOF working state, the processor 400 sends an interrupt control signal to the second control unit 32. After receiving the interrupt control signal, the second control unit 32 controls the second driving module 33 to turn off the second light-emitting unit 112, and the processor 400 sends a first control signal to the first control unit 42, so that the first control unit 42 controls the first driving module 41 to drive the first light-emitting unit 111 to emit the first light 51.

[0169] By providing the second quantization module 34 , the second electrical signal output by the first photoelectric element 31 can be converted into a second digital signal, thereby facilitating processing by the processor 400 .

[0170] The second digital signal output by the second quantization module 34 can also be directly transmitted to the second control unit 32 for processing, and the second control unit 32 is used to determine whether the target object is close to the electronic device according to the size of the second digital signal. In this way, the processor 400 does not need to process the second digital signal, which is conducive to reducing the processing burden of the processor 400 of the electronic device.

[0171] In some embodiments, Fig.25 As shown, the second quantization module 34 includes a second current-voltage converter 341 and a second analog-to-digital converter 342. The second analog-to-digital converter 342 is electrically connected to the second control unit 32 (that is, electrically connected to the second connection port L22). The second current-voltage converter 341 is connected between the second analog-to-digital converter 342 and the second signal port O2.

[0172] When in operation, the second current-to-voltage converter 341 amplifies the second electrical signal (the second electrical signal is a current signal) output by the first photoelectric element 31 and converts it into a voltage signal and sends it to the second analog-to-digital converter 342. The second analog-to-digital converter 342 converts the received voltage signal into a second digital signal and sends it to the second control unit 32.

[0173] In some embodiments, Fig.25As shown, the data processing module 35 is arranged outside the accommodating cavity 12, for example, the data processing module 35 can be arranged on the mainboard 250 of the electronic device. In this way, when the data processing module 35 is damaged and needs to be replaced, there is no need to open the accommodating cavity 12, thereby reducing the impact on the light source module 1.

[0174] In some embodiments, Fig.26 and Fig. 27 As shown, Fig.26 for Fig.24 The top view of the assembly formed by the light source 11 and the circuit board 14 in the light source module 1 is shown. Fig. 27 This is an external connection diagram of the light source module 1, the driving unit 4, and the proximity sensor 3 in the sensor module in the fourth embodiment of the present application.

[0175] The first photoelectric element 31 is disposed on the circuit board 14, and a fourth connection terminal 144 and a fifth connection terminal 145 are provided on the circuit board 14. The fourth connection terminal 144 is electrically connected to the first signal port O1 of the first photoelectric element 31, and the fourth connection terminal 144 is also electrically connected to the first quantization module 43 of the driving unit 4. The fifth connection terminal 145 is electrically connected to the second signal port O2 of the first photoelectric element 31, and the fifth connection terminal 145 is also electrically connected to the second quantization module 34 of the data processing module 35.

[0176] Among them, the fourth connection terminal 144 includes a first positive connection terminal (P1+ terminal shown in the figure) and a first negative connection terminal (P1- terminal shown in the figure), and the first positive connection terminal and the first negative connection terminal are both electrically connected to the first quantization module 43. The fifth connection terminal 145 includes a second positive connection terminal (P2+ terminal shown in the figure) and a second negative connection terminal (P2- terminal shown in the figure), and the second positive connection terminal and the second negative connection terminal are both electrically connected to the second quantization module 34.

[0177] In some embodiments, Fig.25 and Fig. 27 As shown, the data processing module 35 is connected to the processor 400 via an I2C (Inter-Integrated Circuit) bus and an INT control line. The INT control line is used to transmit an interrupt control signal sent by the processor 400 to the second control unit 32.

[0178] like Fig.28 and Fig.29 As shown, Fig.28 FIG. 4 is a connection architecture diagram of the sensor module and the processor 400 in the fifth embodiment of the present application. Fig.29 FIG. 1 is a longitudinal cross-sectional view of the light source module 1 of the sensor module in the fifth embodiment. Figure 23 to Figure 27The main difference between the sensor modules shown is that the data processing module 35 is set in a different position, as described below:

[0179] The data processing module 35 and the light source 11 are both arranged on the circuit board 14. That is, the data processing module 35 is located in the accommodating cavity 12 and is integrated with the light source 11. In this way, the data processing module 35 does not need to occupy the space outside the accommodating cavity 12, thereby making the structure of the sensor module more compact and reducing the space occupied by the sensor module in the electronic device.

[0180] like Fig.30 and Fig.31 As shown, Fig.30 FIG. 4 is a connection architecture diagram of the sensor module and the processor 400 in the sixth embodiment of the present application. Fig.31 FIG. 1 is an external connection diagram of the light source module 1, the driving unit 4, and the proximity sensor 3 in the sensor module in the sixth embodiment of the present application. Figure 23 to Figure 27 The main difference between the sensor modules shown is that the data processing module of the proximity sensor 3 is integrated in the drive unit 4, as described below:

[0181] The driving unit 4 further includes a second driving module 33 electrically connected to the first control unit 42, the first quantization module 43 is electrically connected to the second signal port O2 of the first photoelectric element 31, the second signal port O2 is used to output a second electrical signal, and the second electrical signal is used to characterize the light intensity value of the second reflected light 62. Among them, the first photoelectric element 31, the first control unit 42, the first quantization module 43 and the second driving module 33 constitute the proximity sensor 3.

[0182] Specifically, Fig.30 As shown, the second driving module 33 is electrically connected to the fourth port L14 of the first control unit 42 , and the first quantization module 43 is electrically connected to the second port L12 of the first control unit 42 .

[0183] When the sensor module is in the TOF working state, the first signal port O1 of the first photoelectric element 31 outputs a first electrical signal, which is converted into a first digital signal after quantization by the first quantization module 43, and the first digital signal is transmitted to the processor 400 via the first control unit 42. The processor 400 determines whether the optical element 13 is abnormal according to the size of the first digital signal. If the optical element 13 is abnormal, the processor 400 sends a shutdown signal to the first control unit 42. After receiving the shutdown signal, the first control unit 42 controls the first driving module 41 to turn off the first light-emitting unit 111 to protect the safety of human eyes.

[0184] When the sensor module is in the near-light working state, the second signal port O2 of the first photoelectric element 31 outputs a second electrical signal, which is converted into a second digital signal after being quantized by the first quantization module 43 and output, and the second digital signal is transmitted to the processor 400 via the first control unit 42. The processor 400 determines whether the target object is close to the electronic device according to the size of the second digital signal.

[0185] When the sensor module is in the near-light working state and needs to be switched to the TOF working state, the processor 400 sends an interrupt control signal to the first control unit 42. After receiving the interrupt control signal, the first control unit 42 controls the second driving module 33 to turn off the second light-emitting unit 112, and controls the first driving module 41 to drive the first light-emitting unit 111 to emit the first light 51.

[0186] In this embodiment, the proximity sensor 3 and the human eye safety monitoring module not only share a receiving end, but also the data processing module of the proximity sensor 3 is integrated into the driving unit 4, so that the data processing module of the proximity sensor 3 avoids occupying additional space outside the driving unit 4, thereby making the structure of the sensor module more compact and further reducing the space occupied by the sensor module in the electronic device.

[0187] Of course, the first digital signal and the second digital signal output by the first quantization module 43 can also be directly transmitted to the first control unit 42 for processing. The first control unit 42 is used to determine whether the optical element 13 has an abnormality according to the size of the first digital signal; and determine whether the target object is close to the electronic device according to the size of the second digital signal.

[0188] In some embodiments, Fig.30 As shown, the first quantization module 43 includes a first current-voltage converter 431 and a first analog-to-digital converter 432. The first analog-to-digital converter 432 is electrically connected to the first control unit 42 (that is, electrically connected to the second port L2). The first current-voltage converter 431 is electrically connected to the first analog-to-digital converter 432, the first signal port O1, and the second signal port O2, respectively.

[0189] In some embodiments, Fig.30 and Fig.31 As shown, the first signal port O1 and the second signal port O2 are the same port. This configuration can simplify the structure of the first photoelectric element 31, making the connection between the first photoelectric element 31 and other devices in the sensor module more concise, thereby helping to reduce the cost of the sensor module.

[0190] Of course, the first signal port O1 and the second signal port O2 may also be two independent ports respectively.

[0191] In some embodiments, Fig.30 and Fig.31 As shown, on the basis of the electrical connection between the processor 400 and the TOF receiving sensor 2 , the processor 400 is also electrically connected to the driving unit 4 . Specifically, the fifth port L15 of the first control unit 42 and the third control unit 22 are electrically connected to the processor 400 , respectively.

[0192] By electrically connecting the processor 400 to the drive unit 4, the signal sent by the processor 400 to the drive unit 4, such as the interrupt control signal, can be directly sent to the drive unit 4 without being transferred through the TOF receiving sensor 2. In this way, when the sensor module is in a near-light working state, the TOF receiving sensor 2 can be turned off without being in a standby state, which is beneficial to reduce the power consumption of the TOF receiving sensor 2.

[0193] The types of section lines in the drawings of this application are to distinguish different components and should not be understood as limiting the materials of the components. The drawings of this application are to illustrate the structural composition and are not shown in proportion to the actual product.

[0194] Although the description of this application will be introduced in conjunction with some embodiments, this does not mean that the features of this application are limited to the implementation mode. On the contrary, the purpose of introducing the application in conjunction with the implementation mode is to cover other options or modifications that may be extended based on the claims of this application. In order to provide a deep understanding of this application, many specific details will be included in the following description. This application can also be implemented without using these details. In addition, in order to avoid confusion or blurring the focus of this application, some specific details will be omitted in the description. It should be noted that the embodiments in this application and the features in the embodiments can be combined with each other without conflict.

[0195] In the embodiments of the present application, the terms "first", "second", "third", "fourth", and "fifth" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first", "second", "third", "fourth", and "fifth" may explicitly or implicitly include one or more of the features.

[0196] In the embodiments of the present application, "and / or" is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0197] In the description of the embodiments of the present application, it should be noted that, unless otherwise clearly specified and limited, the terms "installation" and "connection" should be understood in a broad sense. For example, "connection" can be a detachable connection or a non-detachable connection; it can be a direct connection or an indirect connection through an intermediate medium. The directional terms mentioned in the embodiments of the present application, such as "upper", "lower", "left", "right", "inside", "outside", etc., are only reference directions of the accompanying drawings. Therefore, the directional terms used are for better and clearer explanation and understanding of the embodiments of the present application, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the embodiments of the present application. "Multiple" means at least two.

[0198] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear at different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0199] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A sensor module, applied to electronic equipment, characterized in that: include: A light source module (1) comprises a light source (11), wherein the light source (11) has a first light-emitting portion (111) and a plurality of second light-emitting portions (112); A driving unit (4), electrically connected to the first light-emitting portion (111), and used to drive the first light-emitting portion (111) to emit a first light beam (51); A TOF receiving sensor (2) for receiving a first reflected light (52), wherein the first reflected light (52) is light formed by the first light (51) being reflected by a target object; A proximity sensor (3) is electrically connected to each of the second light emitting portions (112) and is used to drive at least one of the second light emitting portions (112) to emit a second light ray (61). The proximity sensor (3) is also used to receive a second reflected light ray (62), wherein the second reflected light ray (62) is light formed after the second light ray (61) is reflected by a target object.

2. The sensor module according to claim 1, characterized in that: The light source (11) comprises a chip substrate (113), and a light emitting element array (114) arranged on the chip substrate (113); a portion of the light emitting elements (115) in the light emitting element array (114) constitute the first light emitting portion (111), and another portion of the light emitting elements (115) in the light emitting element array (114) constitute the second light emitting portion (112); The number of light-emitting elements (115) of the first light-emitting portion (111) is greater than the sum of the numbers of light-emitting elements (115) of the second light-emitting portion (112) in the light source (11); and / or an insulating barrier portion (116) is provided on the chip substrate (113), and the insulating barrier portion (116) separates the first light-emitting portion (111) from each of the second light-emitting portions (112).

3. The sensor module according to claim 2, characterized in that: The light emitting element array (114) is a polygonal array, and each of the second light emitting portions (112) is located at the same corner of the light emitting element array (114).

4. The sensor module according to claim 2 or 3, characterized in that: The number of light-emitting elements (115) of the first light-emitting portion (111) is N1, the sum of the numbers of light-emitting elements (115) of the second light-emitting portion (112) in the light source (11) is N2, and N1 / N2 satisfies: 20≤N1 / N2≤70.

5. The sensor module according to any one of claims 1 to 4, characterized in that: The light source module (1) comprises a accommodating cavity (12) and an optical element (13); the accommodating cavity (12) has a cavity opening (121); the optical element (13) is arranged at the cavity opening (121); and the light source (11) is arranged in the accommodating cavity (12); The optical element (13) comprises a first area (131) and a second area (132); the first area (131) is used for allowing the first light (51) to pass through, and the second area (132) is used for allowing the second light (61) to pass through, and a first field of view angle (FOV1) formed after the first light (51) passes through the first area (131) is not equal to a second field of view angle (FOV2) formed after the second light (61) passes through the second area (132).

6. The sensor module according to claim 5, characterized in that: The second field of view angle (FOV2) is greater than the first field of view angle (FOV1).

7. The sensor module according to claim 5 or 6, characterized in that: The optical element (13) is a diffusion plate, and the first area (131) and the second area (132) are different diffusion areas in the optical element (13).

8. The sensor module according to any one of claims 1 to 7, characterized in that: The light source module (1) comprises a accommodating cavity (12) and an optical element (13), the accommodating cavity (12) having a cavity opening (121), the optical element (13) being arranged at the cavity opening (121), and the light source (11) being arranged in the accommodating cavity (12); the proximity sensor (3) comprises a first photoelectric element (31), the first photoelectric element (31) being arranged in the accommodating cavity (12) and being used for receiving the second reflected light (62).

9. The sensor module according to claim 8, characterized in that: The first photoelectric element (31) is further used to receive a third reflected light (53), wherein the third reflected light (53) is light formed after the first light (51) is reflected by the optical element (13); The driving unit (4) comprises a first control unit (42), and a first driving module (41) and a first quantization module (43) electrically connected to the first control unit (42), respectively; the first driving module (41) is electrically connected to the first light-emitting portion (111), and is used to drive the first light-emitting portion (111) to emit a first light (51); the first quantization module (43) is electrically connected to a first signal port (O1) of the first photoelectric element (31), and the first signal port (O1) is used to output a first electrical signal representing the light intensity value of the third reflected light (53).

10. The sensor module according to claim 9, characterized in that: The driving unit (4) further comprises a second driving module (33) electrically connected to the first control unit (42), the second driving module (33) being electrically connected to each of the second light-emitting portions (112) and being used to drive at least one of the second light-emitting portions (112) to emit a second light (61); the first quantization module (43) being electrically connected to a second signal port (O2) of the first photoelectric element (31), the second signal port (O2) being used to output a second electrical signal representing the light intensity value of the second reflected light (62); The first photoelectric element (31), the first control unit (42), the second driver (33) and the first quantization module (43) constitute the proximity sensor (3).

11. The sensor module according to claim 10, characterized in that: The second signal port (O2) and the first signal port (O1) are the same port.

12. The sensor module according to claim 8 or 9, characterized in that: The proximity sensor (3) comprises a data processing module (35), the data processing module (35) comprising a second control unit (32), and a second driving module (33) and a second quantization module (34) electrically connected to the second control unit (32), respectively, the second driving module (33) being electrically connected to each of the second light-emitting portions (112) and being used to drive at least one of the second light-emitting portions (112) to emit a second light (61); the second quantization module (34) being electrically connected to a second signal port (O2) of the first photoelectric element (31), the second signal port (O2) being used to output a second electrical signal representing the light intensity value of the second reflected light (62).

13. The sensor module according to claim 12, characterized in that: The data processing module (35) is arranged outside the accommodating cavity (12).

14. The sensor module according to claim 12, characterized in that: The light source module (1) further comprises a circuit board (14), wherein the circuit board (14) is located in the accommodating cavity (12), and the data processing module (35) and the light source (11) are both arranged on the circuit board (14).

15. An electronic device, characterized in that: A sensor module (100) comprising any one of claims 1 to 14.

16. The electronic device according to claim 15, characterized in that: The electronic device comprises a display screen (300), and an opening area (310) is provided on the display screen (300); the TOF receiving sensor (2) and the light source (11) are arranged at the position of the opening area (310), and the proximity sensor (3) is arranged on the back side of the display screen (300), and the projection of the proximity sensor (3) on the display screen (300) is located outside the opening area (310); when the sensor module (100) is in a proximity light working state, the proximity sensor (3) drives each of the second light-emitting parts (112) to emit a second light (61).

17. The electronic device according to claim 15, characterized in that: The electronic device comprises a display screen (300), an opening area (310) is provided on the display screen (300), the TOF receiving sensor (2), the light source (11) and the proximity sensor (3) are all arranged at the position of the opening area (310); when the sensor module (100) is in a proximity light working state, the proximity sensor (3) drives part of the number of the second light-emitting parts (112) to emit second light (61).

18. An electronic device, characterized in that: It comprises a processor (400) and a sensor module (100) according to any one of claims 1 to 14, wherein a TOF receiving sensor (2) and a proximity sensor (3) of the sensor module (100) are electrically connected to the processor (400) respectively, and the TOF receiving sensor (2) is electrically connected to the driving unit (4).

19. The electronic device according to claim 18, characterized in that: The processor (400) is also electrically connected to the drive unit (4).