CN116839726A - Ambient light detection circuit, terminal, method, apparatus and storage medium - Google Patents

Ambient light detection circuit, terminal, method, apparatus and storage medium Download PDF

Info

Publication number
CN116839726A
CN116839726A CN202210303001.8A CN202210303001A CN116839726A CN 116839726 A CN116839726 A CN 116839726A CN 202210303001 A CN202210303001 A CN 202210303001A CN 116839726 A CN116839726 A CN 116839726A
Authority
CN
China
Prior art keywords
capacitor
illumination intensity
ambient light
terminal
light detection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210303001.8A
Other languages
Chinese (zh)
Inventor
王月
王玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202210303001.8A priority Critical patent/CN116839726A/en
Publication of CN116839726A publication Critical patent/CN116839726A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • G01J1/42Photometry, e.g. photographic exposure meter using electric radiation detectors
    • G01J1/4204Photometry, e.g. photographic exposure meter using electric radiation detectors with determination of ambient light
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • G01J1/42Photometry, e.g. photographic exposure meter using electric radiation detectors
    • G01J1/44Electric circuits

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Sustainable Development (AREA)
  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)

Abstract

The disclosure relates to an ambient light detection circuit, a terminal, a method, an apparatus and a storage medium. The ambient light detection circuit includes: a photosensitive sensor including a first capacitor and a first display transistor; the first display transistor is used for charging the first capacitor based on photocurrent generated by exposure, and the first display transistor is connected with the first capacitor in parallel; and the control circuit is connected with the photosensitive sensor and is used for determining the illumination intensity of the ambient light based on the charge accumulated by the first capacitor. The ambient light detection circuit provided by the disclosure can reduce the deployment cost of the photosensitive sensor.

Description

Ambient light detection circuit, terminal, method, apparatus and storage medium
Technical Field
The disclosure relates to the technical field of light detection, and in particular relates to an ambient light detection circuit, a terminal, a method, a device and a storage medium.
Background
A photosensor is a common light detecting element, which is often found in various scenes of daily life because of wide application prospects.
In the related art, a photosensitive sensor is commonly configured on a display screen of a terminal, so as to cooperate with a control circuit of the terminal to complete ambient light detection. Aiming at the flow of configuring the photosensitive sensor on the display screen, a mode of adding a coating between a plurality of display layers of the display screen is generally adopted to independently deploy the photosensitive sensor, so that the problem of high deployment cost exists.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides an ambient light detection circuit, a terminal, a method, an apparatus, and a storage medium.
According to a first aspect of embodiments of the present disclosure, there is provided an ambient light detection circuit comprising:
a photosensitive sensor including a first capacitor and a first display transistor; the first display transistor is used for charging the first capacitor based on photocurrent generated by exposure, and the first display transistor is connected with the first capacitor in parallel; and the control circuit is connected with the photosensitive sensor and is used for determining the illumination intensity of the ambient light based on the charge accumulated by the first capacitor.
In one embodiment, the control circuit includes a voltage amplification circuit including an operational amplifier and a second capacitor; the second capacitor is used for being charged through the discharge charge of the first capacitor under the condition that the first capacitor is discharged; the operational amplifier is connected with the second capacitor in parallel through an inverting input end and an output end and is used for amplifying the voltage at two ends of the second capacitor; the control circuit is used for determining illumination intensity of ambient light based on the voltage of the second capacitor.
In one embodiment, the control circuit further comprises a first control switch, and the control circuit is connected with the photosensitive sensor through the first control switch; the control circuit further comprises a second control switch, and the second control switch is connected with the second capacitor in parallel; when the first control switch is in an off state, the first display transistor charges the first capacitor, when the first control switch is in an on state, the first capacitor discharges, when the first control switch is in an on state and the second control switch is in an off state, the first capacitor charges the second capacitor in a discharging mode, and when the second control switch is in an on state, the second capacitor discharges.
In one embodiment, the ambient light detection circuit further comprises an infrared light emitting component for emitting infrared light; the photosensitive sensor is also used for receiving the infrared light emitted by the infrared light emitting component and reflected to the photosensitive sensor by a human body; the control circuit is also used for determining the illumination intensity of the infrared light received by the photosensitive sensor and judging whether the human body approaches or is far away according to the change condition of the illumination intensity of the infrared light in the second time period.
In one embodiment, the first display transistor is disposed at an upper boundary region of the display screen.
According to a second aspect of embodiments of the present disclosure, there is provided a terminal comprising the ambient light detection circuit according to any one of the embodiments of the first aspect.
According to a third aspect of embodiments of the present disclosure, there is provided an ambient light detection method applied to a terminal including a first capacitor, a first display transistor, and a control circuit including a second capacitor, a first control switch, and a second control switch, the method including: controlling the first control switch and the second control switch to be in a conducting state so as to enable the first capacitor and the second capacitor to be discharged, and controlling the control circuit to read the current first voltage value of the second capacitor under the condition that the first capacitor and the second capacitor are completely discharged; controlling the first control switch and the second control switch to be in an off state so as to enable the first display transistor to charge the first capacitor; controlling the first control switch to be switched from an off state to an on state in response to the charging time of the first capacitor reaching a first time, so that the first capacitor charges the second capacitor, and controlling the control circuit to read a current second voltage value of the second capacitor under the condition that the second capacitor is charged; an illumination intensity is determined based on a voltage difference between the first voltage value and the second voltage value.
In one embodiment, the ambient light detection circuit further comprises an infrared light emitting assembly, the method further comprising: controlling the infrared light emitting assembly to emit infrared light; the first display transistor charging the first capacitor, comprising: the first display transistor charges the first capacitor based on the received infrared light; the method further comprises the steps of: and judging whether the human body approaches or is far away based on the change condition of the illumination intensity in the second time period.
According to a fourth aspect of embodiments of the present disclosure, there is provided an ambient light detection method applied to a terminal including a photosensitive sensor and a control circuit, the method including:
responding to the exposure time of the photosensitive sensor reaching a first exposure time, controlling the photosensitive sensor to stop exposure, and prohibiting the terminal from switching the on-off state of a second display transistor in a display screen; controlling a first capacitor of the photosensitive sensor to charge a second capacitor of the control circuit in a discharging manner; and responding to the first capacitor to finish discharging, determining the current first voltage of the second capacitor, and determining the illumination intensity of the environment where the terminal is currently positioned based on the first voltage.
In one embodiment, the determining, based on the current first voltage of the second capacitor, the illumination intensity of the environment in which the terminal is currently located includes: determining a first illumination intensity corresponding to the first voltage based on a correspondence between the voltage and the illumination intensity; if the first illumination intensity is greater than or equal to the preset illumination intensity, determining the first illumination intensity as the illumination intensity of the environment where the terminal is currently located; and if the first illumination intensity is smaller than the preset illumination intensity, adjusting the exposure time length of the photosensitive sensor, and determining the illumination intensity of the current environment of the terminal according to the adjusted exposure time length.
In one embodiment, the adjusting the exposure time of the photosensitive sensor and determining the illumination intensity of the current environment of the terminal according to the adjusted exposure time include: determining a second exposure time length corresponding to the first illumination intensity based on a corresponding relation between the illumination intensity and the exposure time length; controlling the photosensitive sensor to perform re-exposure, and controlling the photosensitive sensor to stop exposure under the condition that the exposure time of the photosensitive sensor reaches the second exposure time; the terminal is forbidden to switch the on-off state of the second display transistor, and the first capacitor is controlled to charge the second capacitor in a discharging mode; and responding to the completion of discharging of the photosensitive sensor, determining the current second voltage of the second capacitor, determining the second illumination intensity corresponding to the second voltage based on the corresponding relation between the voltage and the illumination intensity, and determining the second illumination intensity as the illumination intensity of the environment where the terminal is currently located.
In one embodiment, the method further comprises: and responding to the first capacitor to finish discharging, and allowing the terminal to switch the on-off state of the second display transistor.
In one embodiment, the disabling the terminal from switching the on/off state of the second display transistor includes: and closing the touch control function and the display function of the terminal.
In an embodiment, the method is applied to the terminal according to the second aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided an ambient light detection device applied to a terminal including a first capacitor, a first display transistor, and a control circuit including a second capacitor, a first control switch, and a second control switch, the device comprising:
the control unit is used for controlling the first control switch and the second control switch to be in a conducting state so as to enable the first capacitor and the second capacitor to be discharged, and controlling the control circuit to read the current first voltage value of the second capacitor under the condition that the first capacitor and the second capacitor are completely discharged; controlling the first control switch and the second control switch to be in an off state so as to enable the first display transistor to charge the first capacitor; controlling the first control switch to be switched from an off state to an on state in response to the charging time of the first capacitor reaching a first time, so that the first capacitor charges the second capacitor, and controlling the control circuit to read a current second voltage value of the second capacitor under the condition that the second capacitor is charged; and a determining unit for determining the illumination intensity based on the voltage difference between the first voltage value and the second voltage value.
In one embodiment, the ambient light detection circuit further comprises an infrared light emitting assembly, and the control unit is further configured to: controlling the infrared light emitting assembly to emit infrared light; the first display transistor charging the first capacitor, comprising: the first display transistor charges the first capacitor based on the received infrared light; the determining unit is further configured to: and judging whether the human body approaches or is far away based on the change condition of the illumination intensity in the second time period.
According to a sixth aspect of embodiments of the present disclosure, an ambient light detection device is applied to a terminal including a photosensitive sensor and a control circuit, the device including:
the control unit is used for controlling the photosensitive sensor to stop exposure and prohibiting the terminal from switching the on-off state of a second display transistor in the display screen in response to the exposure time of the photosensitive sensor reaching the first exposure time; and a first capacitor for controlling the photosensor to charge a second capacitor of the control circuit in a discharging manner; and the determining unit is used for responding to the first capacitor to finish discharging, determining the current first voltage of the second capacitor and determining the illumination intensity of the current environment of the terminal based on the first voltage.
In one embodiment, the determining unit determines the illumination intensity of the environment in which the terminal is currently located based on the current first voltage of the second capacitor in the following manner: determining a first illumination intensity corresponding to the first voltage based on a correspondence between the voltage and the illumination intensity; if the first illumination intensity is greater than or equal to the preset illumination intensity, determining the first illumination intensity as the illumination intensity of the environment where the terminal is currently located; and if the first illumination intensity is smaller than the preset illumination intensity, adjusting the exposure time length of the photosensitive sensor, and determining the illumination intensity of the current environment of the terminal according to the adjusted exposure time length.
In one embodiment, the determining unit adjusts the exposure time of the photosensitive sensor in the following manner, and determines the illumination intensity of the current environment of the terminal according to the adjusted exposure time: determining a second exposure time length corresponding to the first illumination intensity based on a corresponding relation between the illumination intensity and the exposure time length; controlling the photosensitive sensor to perform re-exposure, and controlling the photosensitive sensor to stop exposure under the condition that the exposure time of the photosensitive sensor reaches the second exposure time; the terminal is forbidden to switch the on-off state of the second display transistor, and the first capacitor is controlled to charge the second capacitor in a discharging mode; and responding to the completion of discharging of the photosensitive sensor, determining the current second voltage of the second capacitor, determining the second illumination intensity corresponding to the second voltage based on the corresponding relation between the voltage and the illumination intensity, and determining the second illumination intensity as the illumination intensity of the environment where the terminal is currently located.
In one embodiment, the control unit is further configured to: and responding to the first capacitor to finish discharging, and allowing the terminal to switch the on-off state of the second display transistor.
In one embodiment, the control unit prohibits the terminal from switching the on/off state of the second display transistor in the following manner: and closing the touch control function and the display function of the terminal.
In an embodiment, the apparatus is applied to the terminal described in the second aspect.
According to a seventh aspect of the embodiments of the present disclosure, there is provided an ambient light detection device, including:
a processor; a memory for storing processor-executable instructions;
wherein the processor is configured to: the ambient light detection method according to the fifth aspect or any one of the embodiments thereof is performed, or the ambient light detection method according to the sixth aspect or any one of the embodiments thereof is performed.
According to an eighth aspect of the disclosed embodiments, there is provided a storage medium having stored therein instructions which, when executed by a processor, enable the processor to perform the ambient light detection method described in the fifth aspect or any one of the embodiments of the fifth aspect, or perform the ambient light detection method described in the sixth aspect or any one of the embodiments of the sixth aspect.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: the present disclosure provides an ambient light detection circuit having an interconnected photosensor and control circuitry, wherein the photosensor includes a display transistor and a capacitance in parallel with the display transistor. Since the display transistor can charge the capacitor connected in parallel with the display transistor through the photocurrent generated by exposure, a control circuit connected with the photosensor can determine the illumination intensity of the ambient light through the charge accumulated by the capacitor, and thus the ambient light detection is completed. In addition, since the photosensor used in the present disclosure is obtained by connecting the display transistors and the capacitors in parallel, for the display screen having the display transistors, the photosensor capable of performing ambient light detection can be obtained directly by connecting a capacitor in parallel to any one of the display transistors in the display screen. In other words, the ambient light detection circuit of the present disclosure is easy to deploy on a display screen having display transistors, and can reduce the deployment cost of the photosensor.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic diagram of an ambient light detection circuit, according to an example embodiment.
Fig. 2 is a schematic diagram of another ambient light detection circuit shown in accordance with an exemplary embodiment.
Fig. 3 is a schematic diagram of yet another ambient light detection circuit shown according to an exemplary embodiment.
Fig. 4 is a schematic diagram of another ambient light detection circuit shown according to an example embodiment.
Fig. 5 is a schematic diagram of a display screen according to an exemplary embodiment.
Fig. 6 is a flow chart illustrating an ambient light detection method according to an exemplary embodiment.
Fig. 7 is a flowchart illustrating a method for human proximity detection by an ambient light detection circuit, according to an exemplary embodiment.
Fig. 8 is a schematic view of a scene of human body proximity detection by an ambient light detection circuit.
Fig. 9 is a flow chart illustrating an ambient light detection method according to an exemplary embodiment.
Fig. 10 is a flowchart illustrating a method of determining an illumination intensity of an environment in which a terminal is currently located based on a current first voltage of a second capacitor, according to an exemplary embodiment.
Fig. 11 is a flowchart illustrating a method for adjusting an exposure time period of a photosensitive sensor and determining an illumination intensity of an environment in which a terminal is currently located according to the adjusted exposure time period according to an exemplary embodiment.
Fig. 12 is a flowchart illustrating another ambient light detection method according to an exemplary embodiment.
Fig. 13 is a block diagram of an ambient light detection device, according to an example embodiment.
Fig. 14 is a block diagram of another ambient light detection device, according to an example embodiment.
Fig. 15 is a block diagram illustrating an apparatus for ambient light detection according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure.
In the drawings, the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The described embodiments are some, but not all, embodiments of the present disclosure. The embodiments described below by referring to the drawings are exemplary and intended for the purpose of explaining the present disclosure and are not to be construed as limiting the present disclosure. Based on the embodiments in this disclosure, all other embodiments that a person of ordinary skill in the art would obtain without making any inventive effort are within the scope of protection of this disclosure. Embodiments of the present disclosure are described in detail below with reference to the attached drawings.
A photosensor is a common light detecting element, which is often found in various scenes of daily life because of wide application prospects.
In the related art, a photosensitive sensor is commonly configured on a display screen of a terminal, so as to cooperate with a control circuit of the terminal to complete ambient light detection. Aiming at the flow of configuring the photosensitive sensor on the display screen, a mode of adding a coating between a plurality of display layers of the display screen is generally adopted to independently deploy the photosensitive sensor, so that the problem of high deployment cost exists.
In view of this, the present disclosure provides an ambient light detection circuit including a photosensitive sensor and a control circuit. The photosensitive sensor is connected with the control circuit and comprises a display transistor and a capacitor connected with the display transistor in parallel. Through the ambient light inspection circuit provided by the disclosure, the display transistor can charge the capacitor connected in parallel with the display transistor through the photocurrent generated by exposure, and the control circuit can determine the illumination intensity of ambient light through the charge accumulated by the capacitor, so that the ambient light detection is completed. Since the photosensor is obtained by connecting the display transistors and the capacitor in parallel, the photosensor capable of performing ambient light detection can be obtained by directly connecting a capacitor in parallel to any display transistor in the display screen for the display screen with the display transistor. In other words, the ambient light detection circuit of the present disclosure is easy to deploy on a display screen having display transistors, which may reduce the deployment cost of the photosensor compared to conventional approaches that deploy the photosensor alone between multiple display layers of the display screen in an incremental coating.
Fig. 1 is a schematic diagram of an ambient light detection circuit according to an exemplary embodiment, as shown in fig. 1, the ambient light detection circuit 1 comprises a photosensor 11 and a control circuit 12 connected to each other. Wherein the photosensor 11 comprises a first capacitor 111 and a first display transistor 112.
For example, the control circuit 12 may control the first display transistor 112 to perform exposure, and the first display transistor may charge the first capacitor 111 through a photocurrent generated by the exposure. Further, the control circuit 12 can determine the illumination intensity of the ambient light by the charge accumulated by the first capacitor 111.
In one embodiment, the first display transistor 112 may be connected in parallel with the first capacitor 111 through a source and a drain.
By way of example, the control circuit 12 may include a voltage amplifying circuit 121. The voltage amplifying circuit 121 may include an operational amplifier 121b and a second capacitor 121a. In one embodiment, the operational amplifier 121b may be connected in parallel with the second capacitor 121a through the inverting input terminal and the output terminal.
Fig. 2 is a schematic diagram of another ambient light detection circuit shown according to an exemplary embodiment, as shown in fig. 2, the control circuit 12 includes a voltage amplification circuit 121, and the voltage amplification circuit 121 includes an operational amplifier 121b and a second capacitor 121a.
For example, the control circuit 12 may control the first capacitor 111 to discharge while controlling the first display transistor 112 to stop exposure. Further, the second capacitor 121a may be charged by the discharge charge of the first capacitor 111 in a case where the first capacitor 111 is discharged.
For example, the voltage across the first capacitor 111 may be amplified by the voltage amplifying circuit 121, so as to improve the detection accuracy of the illumination intensity. Specifically, since the operational amplifier 121b may be connected in parallel with the second capacitor 121a through the inverting input terminal and the output terminal, if the first capacitor 111 is used to charge the second capacitor 121a, the voltage after the second capacitor 121a is charged is greater than the voltage before the first capacitor is discharged. On the basis, the control circuit replaces the voltage at two ends of the first capacitor with the voltage at two ends of the second capacitor to detect the voltage, and the illumination intensity is determined through the detected voltage, so that the detection precision of the illumination intensity can be improved.
In an embodiment, the control circuit 12 may further include a first control switch 122 and a second control switch 123. The control circuit 12 is connected to the photosensitive sensor 11 through a first control switch 122, and a second control switch 123 is connected in parallel to the second capacitor 121 a.
Fig. 3 is a schematic diagram of yet another ambient light detection circuit shown according to an exemplary embodiment.
As illustrated in fig. 3, the control circuit 12 may control the charge and discharge of the first capacitor 111 and the second capacitor 121a through the first control switch 122 and the second control switch 123.
Specific implementation of charge/discharge control will be described below with respect to different on/off states of the first control switch 122 and the second control switch 123.
In an example, the first display transistor 112 charges the first capacitor 111 with the first control switch 122 in an off state.
In another example, with the first control switch 122 in the on state, the first capacitor 111 is discharged. On the other hand, if the second control switch 123 is in the off state, the first capacitor 111 charges the second capacitor 121a by discharging. If the second control switch 123 is in the on state, the charge accumulated in the first capacitor 111 is released through the second control switch, and the second capacitor 121a is not charged by the charge released by the first capacitor 111.
In still another example, the second capacitor 121a is discharged with the second control switch 123 in the on state.
A specific implementation of the control circuit 12 for detecting the ambient light by controlling the on-off states of the first control switch 122 and the second control switch 123 will be described below.
For example, since the ambient light detection circuit 1 may continuously perform the ambient light detection task a plurality of times, in order to ensure that the previous ambient light detection task does not interfere with the subsequent ambient light detection task, it is necessary to control the ambient light detection circuit 1 to perform a reset operation on the first capacitor 111 and the second capacitor 121a before performing each ambient light detection to remove the charges accumulated in the first capacitor 111 and the second capacitor 121a before performing each ambient light detection. In one embodiment, the on/off states of the first control switch 122 and the second control switch 123 may be set to be off states, so that the first capacitor 111 and the second capacitor 121a are discharged. In this case, the control circuit 12 may take a voltage reading of the discharged second capacitor as the initial voltage.
Further, the control circuit 12 may switch the on/off state of the first control switch 122 from the off state to the on state, so that the first display transistor 112 charges the first capacitor 111. Also, the control circuit 12 may switch the on-off state of the second control switch 123 from the on-state to the off-state and switch the on-off state of the first control switch 122 from the off-state to the on-state in a case where the charging period of the first capacitor 111 satisfies the specified period of time for performing the ambient light detection, so that the first capacitor 111 charges the second capacitor 121 a. On this basis, the control circuit 12 may read the second capacitor again when the second capacitor 121a is charged, to obtain the voltage across the charged second capacitor 121 a. Further, the control circuit 12 can determine the illumination intensity of the ambient light by the voltage difference between the two readings.
In one embodiment, the first control switch 122 and the second control switch 123 may be transistor switches. On the basis of this, the first control switch 122 and the second control switch 123 can switch the on-off state according to the received level signal. Taking an N-MONS transistor switch as an example, the first control switch 122 and/or the second control switch 123 may be in an on state when receiving a high level signal and in an off state when receiving a low level signal.
The ambient light detection circuit may also comprise an infrared light emitting component 13 for emitting infrared light, for example. In one embodiment, the infrared light emitting component 13 may be connected to the control circuit 12, and emits infrared light according to a control signal sent by the control circuit 12. In another embodiment, the infrared light emitting component 13 can also be independently controlled by other control components than the control circuit 12.
Fig. 4 is a schematic diagram of another ambient light detection circuit shown according to an exemplary embodiment, as shown in fig. 4, which may include a photosensitive sensor 11, a control circuit 12, and an infrared light emitting assembly 13.
The control circuit 12 may be connected to the infrared light emitting component 13, and the photosensitive sensor 11, the control circuit 12, and the infrared light emitting component 13 may cooperatively perform human proximity detection. For example, the infrared light emitting component 13 may emit infrared light, which may reflect off of the photosensitive sensor 11 via the human body. On the basis of this, the photosensor 11 can receive the infrared light and determine the illumination intensity of the received infrared light by the control circuit 12. Further, the change condition of the illumination intensity of the infrared light within the second time period can be used for judging whether the human body approaches or is far away. For example, if the illumination intensity of the infrared light decreases within a specified period of time, it may be determined that the human body is in a distant state. For another example, if the illumination intensity of the infrared light increases within a specified period of time, it may be determined that the human body is in a state of proximity.
In general, a liquid crystal display (Liquid Crystal Display) screen is a common type of display screen, and display transistors for performing display functions generally include a plurality of types. Whereas, among the types of display transistors commonly used for liquid crystal display panels, amorphous silicon thin film transistors (a-Si Thin Film Transistor, a-Si TFTs) generally have good photosensitive characteristics (i.e., can generate photocurrent in the case of exposure to light).
In an embodiment, in a display screen using an amorphous silicon thin film transistor as a display transistor, any display transistor of a thin film transistor layer in the display screen may be selected as the first display transistor, so as to implement the ambient light detection circuit in any of the above embodiments.
Of course, the first display transistor may be a display transistor having photosensitive characteristics other than an amorphous silicon thin film transistor, and the specific type of the first display transistor is not limited in the present disclosure.
Fig. 5 is a schematic diagram of a display screen according to an exemplary embodiment. Generally, as shown in fig. 5, the display screen includes a display area for performing a display function, and an upper boundary area other than the display area. For a plurality of different display transistors of the thin film transistor layer, the display function is typically performed using only the display transistors in the display area of the display screen. The upper border region is still configured with idle display transistors due to process limitations.
In an embodiment of the present disclosure, the first display transistor 112 may be disposed at an upper boundary region of the display screen.
By way of example, the first display transistor 112 may be any display transistor in the upper boundary region.
Because the display transistor of the upper boundary area is usually an unused display transistor, the display function of the display area is not affected by the way of configuring the first display transistor in the upper boundary area, and the utilization rate of the display transistor in the display screen can be improved by taking the display transistor of the upper boundary area which is idle as the first display transistor, so that the display transistor is more suitable for actual use requirements.
Based on the same conception, the present disclosure provides a terminal that may include the ambient light detection circuit of any of the above embodiments.
Based on the same conception, the present disclosure also provides an ambient light detection method applied to a terminal. The terminal for performing the ambient light detection method may include, for example, the ambient light detection circuit of any one of the embodiments described above. In addition, it is understood that the ambient light detection method provided by the embodiments of the present disclosure is implemented by the ambient light detection circuit of any of the above embodiments, and reference may be made to any of the above embodiments for a description of the ambient light detection method in not exhaustive detail.
For convenience of description, the voltage value read by the control circuit when the second capacitor finishes discharging is referred to as a first voltage value, and the voltage value read by the control circuit when the second capacitor finishes charging is referred to as a first voltage value.
Fig. 6 is a flowchart of an ambient light detection method, as shown in fig. 6, according to an exemplary embodiment, including the following steps.
In step S11, the first control switch and the second control switch are controlled to be in a conductive state, so that the first capacitor and the second capacitor are discharged, and the control circuit is controlled to read the current first voltage value of the second capacitor when the first capacitor and the second capacitor are completely discharged.
In step S12, the first control switch and the second control switch are controlled to be in an off state, so that the first display transistor charges the first capacitor.
In step S13, in response to the charging duration of the first capacitor reaching the first duration, the first control switch is controlled to switch from the off state to the on state, so that the first capacitor charges the second capacitor, and in case that the charging of the second capacitor is completed, the control circuit is controlled to read the current second voltage value of the second capacitor.
In step S14, the illumination intensity is determined based on the voltage difference between the first voltage value and the second voltage value.
For example, the illumination intensity of the environment in which the terminal is currently located may be determined through a pre-configured correspondence table between the voltage value and the illumination intensity. For example, the illumination intensity corresponding to the voltage difference is determined by mapping in a correspondence table between the voltage value and the illumination intensity, where the illumination intensity is the illumination intensity of the environment where the terminal is currently located.
The ambient light detection method provided by the embodiment of the present disclosure may be applied to the ambient light detection circuit related to any one of the above embodiments to implement ambient light detection.
Further, for an ambient light detection circuit comprising an infrared light emitting assembly, the human body proximity detection can be achieved through cooperative control of the infrared light emitting assembly, the photosensitive sensor and the control circuit. For convenience of description, the time period set for performing the human body proximity detection is referred to as a second time period for characterizing an interval time period between the first infrared light illumination intensity detection and the last infrared light illumination intensity detection.
Fig. 7 is a flowchart of a method for detecting human body proximity by an ambient light detection circuit according to an exemplary embodiment, and as shown in fig. 7, steps S21, S24 and S25 in the embodiment of the present disclosure are similar to the execution methods of steps S11, S13 and S14 in fig. 6, and are not described herein. In addition, fig. 8 is a schematic diagram of a scene of human body proximity detection by the ambient light detection circuit, and for convenience of understanding, the following description is made in connection with fig. 8.
In step S22, the infrared light emitting assembly is controlled to emit infrared light.
For example, as shown in fig. 8, the infrared light emitted from the infrared light emitting assembly may be reflected to the first display transistor via the human body.
In step S23, the first control switch and the second control switch are both controlled to be in an off state, so that the first display transistor charges the first capacitor based on the received infrared light.
In step S26, it is determined whether the human body is approaching or moving away based on the change of the illumination intensity in the second period.
By way of example, repeated execution of the above steps S21 to S25 may realize a plurality of times of detection of the illumination intensity of infrared light. Further, the approach or the separation of the human body can be judged according to the change condition of the illumination intensity of the infrared light in the second time period. For example, if the illumination intensity of the infrared light decreases for the second period of time, it may be determined that the human body is far from the terminal. If the illumination intensity of the infrared light is increased in the second time period, the approach of the human body to the terminal can be determined. In addition, the second duration can be set in a self-defined manner according to actual use requirements, and the specific setting mode of the second duration is not limited in the present disclosure.
Based on the same conception, the present disclosure also provides another ambient light detection method applied to the terminal.
Typically, as shown in fig. 5, the photosensor is typically disposed in an upper border region of the display screen, and the control circuit for reading the photosensor is typically disposed in a lower border region of the display screen, as affected by the hardware layout of the terminal. In one aspect, the control circuit requires control circuitry to transfer charge from the upper boundary to the lower boundary via the trace (e.g., the capacitance of the photosensor discharges and charges the capacitance of the control circuit with the discharged charge) during the reading. On the other hand, the display transistor for executing the display function may switch the on-off state during the execution of the display function, and generate electromagnetic interference. Therefore, in the conventional method for detecting the ambient light, there is a problem that the ambient light detection accuracy is low due to electromagnetic interference.
In view of this, the present disclosure provides an ambient light detection method that can prohibit a terminal from switching on and off states of a display transistor for performing a display function in the case where a photosensor completes exposure. Furthermore, the light intensity of the current environment of the terminal can be controlled by controlling the capacitor discharge mode of the photosensitive sensor, and the charge transfer process can not be affected by electromagnetic interference generated by the on-off state switching of the display transistor, so that the ambient light detection precision can be ensured.
For convenience of description, the initial exposure period set for the photosensor is referred to as a first exposure period, the display transistor for performing the display function is referred to as a second display transistor, the capacitance of the photosensor is referred to as a first capacitance, and the capacitance of the control circuit is referred to as a second capacitance.
Fig. 9 is a flowchart of an ambient light detection method according to an exemplary embodiment, and as shown in fig. 9, the ambient light detection method is applied to a terminal, and includes the following steps S31 to S33.
In step S31, in response to the exposure time period of the photosensitive sensor reaching the first exposure time period, the photosensitive sensor is controlled to stop exposure, and the terminal is inhibited from switching the on-off state of the second display transistor in the display screen.
In the embodiment of the disclosure, the terminal can be prohibited from switching the on-off state of the second display transistor in the display screen in various modes. In one example, the terminal may be inhibited from performing a designated function that needs to be implemented by changing the on-off state of the second display transistor. For example, the touch function and the display function of the terminal are turned off. In another example, the terminal may also be directly disabled from switching the level signal sent to the second display transistor.
In step S32, the first capacitor of the control photosensor charges the second capacitor of the control circuit in a discharging manner.
The control circuit is used for determining the illumination intensity of the current environment of the terminal according to the voltage of the second capacitor.
In step S33, in response to the first capacitor completing the discharging, a current first voltage of the second capacitor is determined, and the illumination intensity of the environment in which the terminal is currently located is determined based on the first voltage.
According to the ambient light detection method provided by the embodiment of the disclosure, in the process that the first capacitor charges the second capacitor of the control circuit in a discharging manner, the second display transistor for executing the display function cannot switch on-off states, and further, the ambient light detection precision is ensured in a manner of reducing electromagnetic interference in a charge transmission process.
Since, in general, a single long-time exposure to a photosensor causes damage to the photosensor having sensitive characteristics. Accordingly, the initial exposure time period set for the photosensor is generally small to reduce the likelihood of damaging the photosensor in a strong light environment. However, the smaller exposure time period cannot enable the photosensitive sensor to accumulate enough charges in the weak light environment, which can cause detection deviation of the light intensity of the weak light environment by the environment light detection circuit. Therefore, it is generally necessary to make a balance between the exposure time period and the detection accuracy.
In an embodiment of the present disclosure, the initial exposure time period (i.e., the first exposure time period) of the photosensitive sensor may be set to a smaller value (e.g., 30 ms), and in the case of determining the illumination intensity for the first time, the accuracy of the illumination intensity determined for the first time may be evaluated according to the correspondence between the predetermined voltage and the illumination intensity. Further, if the illumination intensity is determined to be an accurate value through the corresponding relation between the voltage and the illumination intensity, the illumination intensity determined for the first time is determined to be the illumination intensity of the current environment of the terminal. If the illumination intensity is determined to be inaccurate through the corresponding relation between the voltage and the illumination intensity, the exposure time length is readjusted to determine the accurate value of the illumination intensity of the current environment of the terminal.
For convenience of description, in the following disclosure, in the correspondence between the voltage and the illumination intensity, the illumination intensity corresponding to the first voltage is referred to as a first illumination intensity.
Fig. 10 is a flowchart illustrating a method for determining the illumination intensity of the environment in which the terminal is currently located based on the current first voltage of the second capacitor according to an exemplary embodiment, as shown in fig. 10, including the following steps.
In step S41, a first illumination intensity corresponding to the first voltage is determined based on the correspondence between the voltage and the illumination intensity.
In step S42a, if the first illumination intensity is greater than or equal to the preset illumination intensity, the first illumination intensity is determined as the illumination intensity of the environment where the terminal is currently located.
The preset illumination intensity is used for judging whether the first illumination intensity is an accurate value or not, can be set to be a fixed value based on an empirical value, and can be adjusted according to different use environments of the terminal. The setting mode of the preset illumination intensity is not particularly limited in the present disclosure.
In step S42b, if the first illumination intensity is smaller than the preset illumination intensity, the exposure time of the photosensitive sensor is adjusted, and the illumination intensity of the current environment of the terminal is determined according to the adjusted exposure time.
For example, the exposure time period of the photosensor can be adjusted as follows.
In the following, for convenience of description, in the corresponding relationship between the illumination intensity and the exposure time period, the exposure time period corresponding to the first illumination intensity is referred to as a second exposure time period.
Fig. 11 is a flowchart illustrating a method for adjusting an exposure time period of a photosensitive sensor and determining an illumination intensity of an environment in which a terminal is currently located according to the adjusted exposure time period, as shown in fig. 11, including the following steps.
In step S51, a second exposure period corresponding to the first illumination intensity is determined based on the correspondence between the illumination intensity and the exposure period.
For example, mapping may be performed in a correspondence between the illumination intensity and the exposure time period, so as to determine a second exposure time period corresponding to the first illumination intensity.
In step S52, the photosensor is controlled to perform re-exposure, and in the case where the exposure period of the photosensor reaches the second exposure period, the photosensor is controlled to stop exposure.
In step S53, the terminal is disabled from switching the on/off state of the second display transistor, and the first capacitor is controlled to charge the second capacitor in a discharging manner.
In step S54, in response to the completion of the discharging of the photosensitive sensor, a current second voltage of the second capacitor is determined, and based on a correspondence between the voltage and the illumination intensity, a second illumination intensity corresponding to the second voltage is determined, and the second illumination intensity is determined as the illumination intensity of the environment in which the terminal is currently located.
For example, when the first capacitor finishes discharging, switching the on-off state of the second display transistor does not cause electromagnetic interference to ambient light detection, and the terminal is allowed to switch the on-off state of the second display transistor so as to enable the second display transistor to resume normal functions.
Fig. 12 is a flowchart of another ambient light detection method according to an exemplary embodiment, and as shown in fig. 12, step S61 and step S62 in the embodiment of the present disclosure are similar to the execution method of step S31 and step S32 in fig. 9, and are not described here again.
In step S63, in response to the first capacitor completing the discharging, the terminal is allowed to switch the on-off state of the second display transistor, the current first voltage of the second capacitor is determined, and the illumination intensity of the environment in which the terminal is currently located is determined based on the first voltage.
The ambient light detection method provided by the embodiment of the disclosure can be applied to the terminal related to any one of the embodiments.
In addition, it should be noted that, the ambient light detection method provided by the embodiment of the present disclosure is universal, and for any type of terminal including a liquid crystal display and an ambient light detection circuit, ambient light detection can be performed by using the ambient light detection method provided by the present disclosure. However, the method for detecting ambient light provided in the present disclosure performed by the terminal referred to in any of the foregoing embodiments is merely an exemplary embodiment.
Based on the same conception, the embodiment of the disclosure also provides an ambient light detection device.
It will be appreciated that, in order to implement the above-described functions, the ambient light detection device provided in the embodiments of the present disclosure includes corresponding hardware structures and/or software modules that perform the respective functions. The disclosed embodiments may be implemented in hardware or a combination of hardware and computer software, in combination with the various example elements and algorithm steps disclosed in the embodiments of the disclosure. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application, but such implementation is not to be considered as beyond the scope of the embodiments of the present disclosure.
Fig. 13 is a block diagram of an ambient light detection device, according to an example embodiment. Referring to fig. 13, the apparatus 200 includes a control unit 201 and a determination unit 202.
The control unit 201 is configured to control the first control switch and the second control switch to be in a conductive state, so that the first capacitor and the second capacitor are discharged, and control the control circuit to read the current first voltage value of the second capacitor when the first capacitor and the second capacitor are completely discharged. The first control switch and the second control switch are controlled to be in an off state, so that the first display transistor charges the first capacitor. And controlling the first control switch to be switched from the off state to the on state in response to the charging time of the first capacitor reaching the first time, so that the first capacitor charges the second capacitor, and controlling the control circuit to read the current second voltage value of the second capacitor under the condition that the charging of the second capacitor is completed. A determining unit 202 for determining the illumination intensity based on a voltage difference between the first voltage value and the second voltage value.
In one embodiment, the ambient light detection circuit further comprises an infrared light emitting component, and the control unit 201 is further configured to: the infrared light emitting assembly is controlled to emit infrared light. The first display transistor charges a first capacitor, comprising: the first display transistor charges a first capacitance based on the received infrared light. The determining unit 202 is further configured to: and judging whether the human body approaches or is far away based on the change condition of the illumination intensity in the second time period.
Based on the same conception, the disclosed embodiments also provide another ambient light detection device.
Fig. 14 is a block diagram of another ambient light detection device, according to an example embodiment. Referring to fig. 14, the apparatus 300 includes a control unit 301 and a determination unit 302.
The control unit 301 controls the photosensitive sensor to stop exposure and prohibits the terminal from switching the on/off state of the second display transistor in the display screen in response to the exposure time of the photosensitive sensor reaching the first exposure time. And a first capacitor for controlling the photosensor charges a second capacitor of the control circuit in a discharging manner. The determining unit 302 determines a current first voltage of the second capacitor in response to the first capacitor completing the discharge, and determines an illumination intensity of an environment in which the terminal is currently located based on the first voltage.
In one embodiment, the determining unit 302 determines the illumination intensity of the environment in which the terminal is currently located based on the current first voltage of the second capacitor in the following manner: based on a correspondence between the voltage and the illumination intensity, a first illumination intensity corresponding to the first voltage is determined. If the first illumination intensity is greater than or equal to the preset illumination intensity, determining the first illumination intensity as the illumination intensity of the current environment of the terminal. If the first illumination intensity is smaller than the preset illumination intensity, adjusting the exposure time of the photosensitive sensor, and determining the illumination intensity of the current environment of the terminal according to the adjusted exposure time.
In one embodiment, the determining unit 302 adjusts the exposure duration of the photosensitive sensor, and determines the illumination intensity of the current environment of the terminal according to the adjusted exposure duration: and determining a second exposure time length corresponding to the first illumination intensity based on the corresponding relation between the illumination intensity and the exposure time length. And controlling the photosensitive sensor to perform re-exposure, and controlling the photosensitive sensor to stop exposure under the condition that the exposure time of the photosensitive sensor reaches the second exposure time. And prohibiting the terminal from switching the on-off state of the second display transistor, and controlling the first capacitor to charge the second capacitor in a discharging mode. And responding to the completion of the discharge of the photosensitive sensor, determining the current second voltage of the second capacitor, determining the second illumination intensity corresponding to the second voltage based on the corresponding relation between the voltage and the illumination intensity, and determining the second illumination intensity as the illumination intensity of the environment where the terminal is currently located.
In one embodiment, the control unit 301 is further configured to: in response to the first capacitor completing the discharge, the terminal is allowed to switch the on-off state of the second display transistor.
In one embodiment, the control unit 301 prohibits the terminal from switching the on/off state of the second display transistor in the following manner: and closing the touch control function and the display function of the terminal.
In an embodiment, the apparatus is applied to a terminal of the second aspect.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 15 is a block diagram illustrating an apparatus 400 for ambient light detection, according to an example embodiment. For example, apparatus 400 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 15, apparatus 400 may include one or more of the following components: a processing component 402, a memory 404, a power component 406, a multimedia component 408, an audio component 410, an input/output (I/O) interface 412, a sensor component 414, and a communication component 416.
The processing component 402 generally controls the overall operation of the apparatus 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
Memory 404 is configured to store various types of data to support operations at apparatus 400. Examples of such data include instructions for any application or method operating on the apparatus 400, contact data, phonebook data, messages, pictures, videos, and the like. The memory 404 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power component 406 provides power to the various components of the device 400. The power components 406 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 400.
The multimedia component 408 includes a screen between the device 400 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 400 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 further includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 414 includes one or more sensors for providing status assessment of various aspects of the apparatus 400. For example, the sensor assembly 414 may detect the on/off state of the device 400, the relative positioning of the components, such as the display and keypad of the device 400, the sensor assembly 414 may also detect the change in position of the device 400 or a component of the device 400, the presence or absence of user contact with the device 400, the orientation or acceleration/deceleration of the device 400, and the change in temperature of the device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate communication between the apparatus 400 and other devices in a wired or wireless manner. The apparatus 400 may access a wireless network based on a communication standard, such as WiFi,4G or 5G, or a combination thereof. In one exemplary embodiment, the communication component 416 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as memory 404, including instructions executable by processor 420 of apparatus 400 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
It is understood that the term "plurality" in this disclosure means two or more, and other adjectives are similar thereto. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. The singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It is further understood that the terms "first," "second," and the like are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish one type of information from another and do not denote a particular order or importance. Indeed, the expressions "first", "second", etc. may be used entirely interchangeably. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure.
It will be further understood that "connected" includes both direct connection where no other member is present and indirect connection where other element is present, unless specifically stated otherwise.
It will be further understood that although operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.

Claims (17)

1. An ambient light detection circuit, comprising:
a photosensitive sensor including a first capacitor and a first display transistor; the first display transistor is used for charging the first capacitor based on photocurrent generated by exposure, and the first display transistor is connected with the first capacitor in parallel;
and the control circuit is connected with the photosensitive sensor and is used for determining the illumination intensity of the ambient light based on the charge accumulated by the first capacitor.
2. The ambient light detection circuit of claim 1, wherein the control circuit comprises a voltage amplification circuit comprising an operational amplifier and a second capacitor;
the second capacitor is used for being charged through the discharge charge of the first capacitor under the condition that the first capacitor is discharged;
the operational amplifier is connected with the second capacitor in parallel through an inverting input end and an output end and is used for amplifying the voltage at two ends of the second capacitor;
the control circuit is used for determining illumination intensity of ambient light based on the voltage of the second capacitor.
3. The ambient light detection circuit of claim 2, wherein the control circuit further comprises a first control switch, the control circuit being coupled to the photosensitive sensor through the first control switch; the control circuit further comprises a second control switch, and the second control switch is connected with the second capacitor in parallel;
When the first control switch is in an off state, the first display transistor charges the first capacitor, when the first control switch is in an on state, the first capacitor discharges, when the first control switch is in an on state and the second control switch is in an off state, the first capacitor charges the second capacitor in a discharging mode, and when the second control switch is in an on state, the second capacitor discharges.
4. The ambient light detection circuit of any one of claims 1 to 3, further comprising an infrared light emitting assembly for emitting infrared light;
the photosensitive sensor is also used for receiving the infrared light emitted by the infrared light emitting component and reflected to the photosensitive sensor by a human body;
the control circuit is also used for determining the illumination intensity of the infrared light received by the photosensitive sensor and judging whether the human body approaches or is far away according to the change condition of the illumination intensity of the infrared light in the second time period.
5. An ambient light detection circuit as claimed in any one of claims 1 to 3, wherein the first display transistor is disposed in an upper border region of a display screen.
6. A terminal comprising the ambient light detection circuit of any one of claims 1 to 5.
7. An ambient light detection method, characterized by being applied to a terminal, the terminal comprising a first capacitor, a first display transistor, and a control circuit, the control circuit comprising a second capacitor, a first control switch, and a second control switch, the method comprising:
controlling the first control switch and the second control switch to be in a conducting state so as to enable the first capacitor and the second capacitor to be discharged, and controlling the control circuit to read the current first voltage value of the second capacitor under the condition that the first capacitor and the second capacitor are completely discharged;
controlling the first control switch and the second control switch to be in an off state so as to enable the first display transistor to charge the first capacitor;
controlling the first control switch to be switched from an off state to an on state in response to the charging time of the first capacitor reaching a first time, so that the first capacitor charges the second capacitor, and controlling the control circuit to read a current second voltage value of the second capacitor under the condition that the second capacitor is charged;
An illumination intensity is determined based on a voltage difference between the first voltage value and the second voltage value.
8. The ambient light detection method of claim 7, wherein the ambient light detection circuit further comprises an infrared light emitting assembly, the method further comprising:
controlling the infrared light emitting assembly to emit infrared light;
the first display transistor charging the first capacitor, comprising:
the first display transistor charges the first capacitor based on the received infrared light;
the method further comprises the steps of:
and judging whether the human body approaches or is far away based on the change condition of the illumination intensity in the second time period.
9. An ambient light detection method, characterized by being applied to a terminal comprising a photosensitive sensor and a control circuit, the method comprising:
responding to the exposure time of the photosensitive sensor reaching a first exposure time, controlling the photosensitive sensor to stop exposure, and prohibiting the terminal from switching the on-off state of a second display transistor in a display screen;
controlling a first capacitor of the photosensitive sensor to charge a second capacitor of the control circuit in a discharging manner;
And responding to the first capacitor to finish discharging, determining the current first voltage of the second capacitor, and determining the illumination intensity of the environment where the terminal is currently positioned based on the first voltage.
10. The ambient light detection method of claim 9, wherein the determining the illumination intensity of the environment in which the terminal is currently located based on the current first voltage of the second capacitor comprises:
determining a first illumination intensity corresponding to the first voltage based on a correspondence between the voltage and the illumination intensity;
if the first illumination intensity is greater than or equal to the preset illumination intensity, determining the first illumination intensity as the illumination intensity of the environment where the terminal is currently located;
and if the first illumination intensity is smaller than the preset illumination intensity, adjusting the exposure time length of the photosensitive sensor, and determining the illumination intensity of the current environment of the terminal according to the adjusted exposure time length.
11. The method for detecting ambient light according to claim 10, wherein the adjusting the exposure time period of the photosensitive sensor and determining the illumination intensity of the environment in which the terminal is currently located according to the adjusted exposure time period includes:
Determining a second exposure time length corresponding to the first illumination intensity based on a corresponding relation between the illumination intensity and the exposure time length;
controlling the photosensitive sensor to perform re-exposure, and controlling the photosensitive sensor to stop exposure under the condition that the exposure time of the photosensitive sensor reaches the second exposure time;
the terminal is forbidden to switch the on-off state of the second display transistor, and the first capacitor is controlled to charge the second capacitor in a discharging mode;
and responding to the completion of discharging of the photosensitive sensor, determining the current second voltage of the second capacitor, determining the second illumination intensity corresponding to the second voltage based on the corresponding relation between the voltage and the illumination intensity, and determining the second illumination intensity as the illumination intensity of the environment where the terminal is currently located.
12. The ambient light detection method of claim 11, wherein the method further comprises:
and responding to the first capacitor to finish discharging, and allowing the terminal to switch the on-off state of the second display transistor.
13. The ambient light detection method of claim 11, wherein the disabling the terminal from switching the on/off state of the second display transistor comprises:
And closing the touch control function and the display function of the terminal.
14. The ambient light detection method according to any one of claims 9 to 13, characterized in that the method is applied to the terminal of claim 6.
15. An ambient light detection device, characterized by being applied to a terminal comprising a first capacitor, a first display transistor and a control circuit comprising a second capacitor, a first control switch and a second control switch, the device comprising:
the control unit is used for controlling the first control switch and the second control switch to be in a conducting state so as to enable the first capacitor and the second capacitor to be discharged, and controlling the control circuit to read the current first voltage value of the second capacitor under the condition that the first capacitor and the second capacitor are completely discharged; controlling the first control switch and the second control switch to be in an off state so as to enable the first display transistor to charge the first capacitor; controlling the first control switch to be switched from an off state to an on state in response to the charging time of the first capacitor reaching a first time, so that the first capacitor charges the second capacitor, and controlling the control circuit to read a current second voltage value of the second capacitor under the condition that the second capacitor is charged;
And a determining unit for determining the illumination intensity based on the voltage difference between the first voltage value and the second voltage value.
16. An ambient light detection device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: performing the method of any one of claims 7 to 8, or performing the method of any one of claims 9 to 14.
17. A storage medium having instructions stored therein which, when executed by a processor, cause the processor to perform the method of any one of claims 7 to 8 or to perform the method of any one of claims 9 to 14.
CN202210303001.8A 2022-03-25 2022-03-25 Ambient light detection circuit, terminal, method, apparatus and storage medium Pending CN116839726A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210303001.8A CN116839726A (en) 2022-03-25 2022-03-25 Ambient light detection circuit, terminal, method, apparatus and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210303001.8A CN116839726A (en) 2022-03-25 2022-03-25 Ambient light detection circuit, terminal, method, apparatus and storage medium

Publications (1)

Publication Number Publication Date
CN116839726A true CN116839726A (en) 2023-10-03

Family

ID=88160457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210303001.8A Pending CN116839726A (en) 2022-03-25 2022-03-25 Ambient light detection circuit, terminal, method, apparatus and storage medium

Country Status (1)

Country Link
CN (1) CN116839726A (en)

Similar Documents

Publication Publication Date Title
CN110796988B (en) Backlight adjusting method and device
US11334401B2 (en) Application page interception method and device
US20160211692A1 (en) Method and apparatus for controlling charging of terminal device
CN111261081B (en) Screen display method and device
CN108040213B (en) Method and apparatus for photographing image and computer-readable storage medium
EP3629318A2 (en) Method and apparatus for compensating operating parameter of display circuit
CN109788530B (en) Device and method for adjusting radiation power and electronic equipment
CN218957372U (en) Brightness adjustment assembly for display panel and electronic device
CN109922203B (en) Terminal, screen off method and device
CN116839726A (en) Ambient light detection circuit, terminal, method, apparatus and storage medium
CN106775246B (en) Screen brightness adjusting method and device
CN112702514B (en) Image acquisition method, device, equipment and storage medium
CN112965653B (en) Touch position reporting method and device and electronic equipment
CN108881625B (en) Terminal device and sensing method and device
CN112153207A (en) Terminal and control method of display panel
CN112187326A (en) Antenna control method, device, equipment and storage medium
CN112087539A (en) Screen light adjusting method for terminal equipment and terminal equipment
CN112448052A (en) Battery charging control method and device
CN112437234B (en) Flash lamp, and flash lamp control method and device
CN113079255B (en) Method and device for preventing false touch of sliding cover operation and intelligent equipment
US11876495B2 (en) Working state adjustment method and apparatus, terminal and storage medium
CN114208062B (en) Beam receiving method, beam receiving device, electronic equipment and computer readable storage medium
EP4170856A1 (en) Charging method and device, terminal device and computer readable storage medium
CN112489603B (en) Electronic device, display control method, and readable storage medium
US20230244287A1 (en) Method and apparatus of temperature control, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination