# US 2023/0266162 A1 · Method for measuring intensity of ambient light at electronic device, electronic device, and chip

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0266162 A1
- Document ID: US20230266162A1
- Status: Published application
- Kind: A1
- Application number: 18/054,138
- Filed: 2022-11-09
- Published: 2023-08-24
- Earliest claimed: 2022-02-18
- Assignees: Shenzhen Goodix Technology Co., Ltd.
- Applicants: Shenzhen Goodix Technology Co., Ltd.
- Inventors: Enqi FU; Songjin ZHONG; Leigang CHENG
- Web page: https://patentgrep.com/patent/US20230266162A1

## CPC

- G01J 1/4204: {with determination of ambient light (solar light G01J2001/4266)}
- G01J 1/0214: {Constructional arrangements for removing stray light}
- G09G 3/3208: organic, e.g. using organic light-emitting diodes [OLED]
- G09G 2320/0626: for control of overall brightness
- G09G 2320/064: by time modulation of the brightness of the illumination source
- G09G 2360/144: the light being ambient light
- G01J: MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY (light sources F21, H01J, H01K, H05B; investigating properties of materials by optical means G01N)
- G09G: ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION (arrangements for transferring data between digital computers and displays G06F3/14; static indicating arrangements comprising an association of a number of separate sources or light control cells G09F9/00; static indicating arrangements comprising integral associations of a number of light sources H01J, H01K, H10H, H05B33/12; scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission, details thereof H04N1/00)

## Abstract

A method for measuring an intensity of ambient light at an electronic device, and a electronic device and a chip are provided. The electronic device includes a screen, and the screen is configured to be deemed at a dimming frequency. The method includes the following. Mixed light including the ambient light and screen leakage light is collected. A DC mean value of the mixed light is obtained. A DC mean value of the screen leakage light is obtained. A DC mean value of the ambient light is determined by subtracting the DC mean value of the screen leakage light from the DC mean value of the mixed light. The DC mean value of the ambient light is indicative of the intensity of the ambient light.

## Claims

### Claim 1

A method for measuring an intensity of ambient light at an electronic device, the electronic device comprising a screen configured to be dimmed at a dimming frequency, the method comprising:
collecting mixed light including the ambient light and screen leakage light;
obtaining a direct current (DC) mean value of the mixed light;
obtaining a DC mean value of the screen leakage light; and
determining a DC mean value of the ambient light by subtracting the DC mean value of the screen leakage light from the DC mean value of the mixed light; wherein
the DC mean value of the ambient light is indicative of the intensity of the ambient light.

### Claim 2 (depends on 1)

The method of claim 1, wherein obtaining the DC mean value of the mixed light comprises:
converting the mixed light from a time domain into a frequency domain through a fast Fourier transform; and
obtaining, from a waveform of the mixed light in the frequency domain, a frequency point amplitude corresponding to 0 Hz of the mixed light and a frequency point amplitude corresponding to the dimming frequency of the mixed light; wherein
the frequency point amplitude corresponding to the 0 Hz of the mixed light is the DC mean value of the mixed light.

### Claim 3 (depends on 2)

The method of claim 2, wherein obtaining the DC mean value of the screen leakage light comprises:
obtaining the DC mean value of the screen leakage light according to the frequency point amplitude corresponding to the dimming frequency of the mixed light and at least one calibration parameter.

### Claim 4 (depends on 3)

The method of claim 3, wherein obtaining the DC mean value of the screen leakage light according to the frequency point amplitude corresponding to the dimming frequency of the mixed light and the at least one calibration parameter comprises:
obtaining, in response to a dimming mode of the screen being a pulse-width modulation (PWM) dimming mode, the DC mean value of the screen leakage light by calculating according to a formula:
E
0
=
k
1
·
B
·
E
ω
0
2
·
sin
⁡
(
k
2
·
π
·
B
)
,
wherein E0 represents the DC mean value of the screen leakage light, ω0 represents the dimming frequency, Eω0 represents the frequency point amplitude corresponding to the dimming frequency of the mixed light, B represents a brightness value of the screen, k1 and k2 represent calibration parameters, and B, k1, and k2 are all constants greater than 0.

### Claim 5 (depends on 3)

The method of claim 3, wherein obtaining the DC mean value of the screen leakage light according to the frequency point amplitude corresponding to the dimming frequency of the mixed light and the at least one calibration parameter comprises:
obtaining, in response to a dimming mode of the screen being a DC-like dimming mode, the DC mean value of the screen leakage light by calculating according to a formula:
E0=k3·Eω0,
wherein E0 represents the DC mean value of the screen leakage light, ω0 represents the dimming frequency, Eω0 represents the frequency point amplitude corresponding to the dimming frequency of the mixed light, and k3 represents a calibration parameter, k3 being a constant greater than 0.

### Claim 6 (depends on 3)

The method of claim 3, wherein obtaining the DC mean value of the screen leakage light according to the frequency point amplitude corresponding to the dimming frequency of the mixed light and the at least one calibration parameter comprises:
obtaining, in response to a dimming mode of the screen being a DC dimming mode, the DC mean value of the screen leakage light by calculating according to a formula:
E
0
E
ω
0
=
π
·
(
1
+
k
4
⁢
x
-
x
)
2
⁢
(
k
4
-
1
)
·
sin
⁡
(
π
⁢
x
)
=
k
5
,
wherein E0 represents the DC mean value of the screen leakage light, ω0 represents the dimming frequency, Eω0 represents the frequency point amplitude corresponding to the dimming frequency of the mixed light, x represents a duty cycle of a dimming signal of the screen, k4 represents a ratio of a high-level value to a low-level value of the dimming signal of the screen, k5 is a calibration parameter, and x, k4, and k5 are all constants greater than 0.

### Claim 7 (depends on 3)

The method of claim 3, further comprising:
prior to obtaining the DC mean value of the screen leakage light,
determining the at least one calibration parameter according to a preset DC mean value of the screen leakage light and a frequency point amplitude corresponding to the dimming frequency of the screen leakage light, in response to the electronic device being in a dark environment.

### Claim 8 (depends on 7)

The method of claim 7, wherein determining the at least one calibration parameter according to the preset DC mean value of the screen leakage light and the frequency point amplitude corresponding to the dimming frequency of the screen leakage light comprises:
determining, by performing binary fitting calculation, the at least one calibration parameter according to the preset DC mean value of the screen leakage light, the frequency point amplitude corresponding to the dimming frequency of the screen leakage light, and a brightness value of the screen, in response to the dimming mode of the screen being a PWM dimming mode.

### Claim 9 (depends on 7)

The method of claim 7, wherein determining the at least one calibration parameter according to the preset DC mean value of the screen leakage light and the frequency point amplitude corresponding to the dimming frequency of the screen leakage light comprises:
determining, by performing linear fitting calculation, the at least one calibration parameter according to the preset DC mean value of the screen leakage light and the frequency point amplitude corresponding to the dimming frequency of the screen leakage light, in response to the dimming mode of the screen being a DC-like dimming mode or a DC dimming mode.

### Claim 10

An electronic device, comprising:
a screen configured to be dimmed at a dimming frequency;
an ambient light sensor, configured to collect mixed light including ambient light and screen leakage light; and
a processor, configured to:
obtain a direct current (DC) mean value of the mixed light;
obtain a DC mean value of the screen leakage light; and
determine a DC mean value of the ambient light by subtracting the DC mean value of the screen leakage light from the DC mean value of the mixed light; wherein the DC mean value of the ambient light is indicative of an intensity of the ambient light.

### Claim 11 (depends on 10)

The electronic device of claim 10, wherein the processor configured to obtain the DC mean value of the mixed light is configured to:
convert the mixed light from a time domain into a frequency domain through a fast Fourier transform; and
obtain, from a waveform of the mixed light in the frequency domain, a frequency point amplitude corresponding to 0 Hz of the mixed light and a frequency point amplitude corresponding to the dimming frequency of the mixed light; wherein
the frequency point amplitude corresponding to the 0 Hz of the mixed light is the DC mean value of the mixed light.

### Claim 12 (depends on 11)

The electronic device of claim 11, wherein the processor configured to obtain the DC mean value of the screen leakage light is configured to:
obtain the DC mean value of the screen leakage light according to the frequency point amplitude corresponding to the dimming frequency of the mixed light and at least one calibration parameter.

### Claim 13 (depends on 12)

The electronic device of claim 12, wherein the processor configured to obtain the DC mean value of the screen leakage light is configured to:
obtain, in response to a dimming mode of the screen being a pulse-width modulation (PWM) dimming mode, the DC mean value of the screen leakage light by calculating according to a formula:
E
0
=
k
1
·
B
·
E
ω
0
2
·
sin
⁡
(
k
2
·
π
·
B
)
,
wherein E0 represents the DC mean value of the screen leakage light, ω0 represents the dimming frequency, Eω0 represents the frequency point amplitude corresponding to the dimming frequency of the mixed light, B represents a brightness value of the screen, k1 and k2 represent calibration parameters, and B, k1, and k2 being constants greater than 0.

### Claim 14 (depends on 12)

The electronic device of claim 12, wherein the processor configured to obtain the DC mean value of the screen leakage light is configured to:
obtain, in response to a dimming mode of the screen being a DC-like dimming mode, the DC mean value of the screen leakage light by calculating according to a formula:
E0=k3·Eω0,
wherein E0 represents the DC mean value of the screen leakage light, ω0 represents the dimming frequency, Eω0 represents the frequency point amplitude corresponding to the dimming frequency of the mixed light, and k3 represents a calibration parameter, k3 being a constant greater than 0.

### Claim 15 (depends on 12)

The electronic device of claim 12, wherein the processor configured to obtain the DC mean value of the screen leakage light is configured to:
obtain, in response to a dimming mode of the screen being a DC dimming mode, the DC mean value of the screen leakage light by calculating according to a formula:
E
0
E
ω
0
=
π
·
(
1
+
k
4
⁢
x
-
x
)
2
⁢
(
k
4
-
1
)
·
sin
⁡
(
π
⁢
x
)
=
k
5
,
wherein E0 represents the DC mean value of the screen leakage light, ω0 represents the dimming frequency, Eω0 represents the frequency point amplitude corresponding to the dimming frequency of the mixed light, x represents a duty cycle of a dimming signal of the screen, k4 represents a ratio of a high-level value to a low-level value of the dimming signal of the screen, k5 is a calibration parameter, and x, k4, and k5 are all constants greater than 0.

### Claim 16 (depends on 12)

The electronic device of claim 12, wherein the processor is further configured to:
determine the at least one calibration parameter according to a preset DC mean value of the screen leakage light and a frequency point amplitude corresponding to the dimming frequency of the screen leakage light, in response to the electronic device being in a dark environment.

### Claim 17 (depends on 16)

The electronic device of claim 16, wherein the processor is configured to:
determine, by performing binary fitting calculation, the at least one calibration parameter according to the preset DC mean value of the screen leakage light, the frequency point amplitude corresponding to the dimming frequency of the screen leakage light, and a brightness value of the screen, in response to the dimming mode of the screen being a PWM dimming mode.

### Claim 18 (depends on 16)

The electronic device of claim 16, wherein the processor is configured to:
determine, by performing linear fitting calculation, the at least one calibration parameter according to the preset DC mean value of the screen leakage light and the frequency point amplitude corresponding to the dimming frequency of the screen leakage light, in response to the dimming mode of the screen being a DC-like dimming mode or a DC dimming mode.

### Claim 19

A chip, comprising:
a memory; and
a processor, wherein the memory is coupled with the processor, the memory is configured to store program instructions, and the processor is configured to invoke the program instructions stored in the memory, to cause the chip to:
collect mixed light including ambient light and screen leakage light;
obtain a direct current (DC) mean value of the mixed light;
obtain a DC mean value of the screen leakage light; and
determine a DC mean value of the ambient light by subtracting the DC mean value of the screen leakage light from the DC mean value of the mixed light; wherein
the DC mean value of the ambient light is indicative of an intensity of the ambient light.

### Claim 20 (depends on 19)

The chip of claim 19, wherein the processor configured to obtain the DC mean value of the mixed light is configured to:
convert the mixed light from a time domain into a frequency domain through a fast Fourier transform; and
obtain, from a waveform of the mixed light in the frequency domain, a frequency point amplitude corresponding to 0 Hz of the mixed light and a frequency point amplitude corresponding to the dimming frequency of the mixed light; wherein
the frequency point amplitude corresponding to the 0 Hz of the mixed light is the DC mean value of the mixed light.
