CN115379615B - Electronic equipment and method for controlling brightness of light-emitting device - Google Patents
Electronic equipment and method for controlling brightness of light-emitting device Download PDFInfo
- Publication number
- CN115379615B CN115379615B CN202211287994.0A CN202211287994A CN115379615B CN 115379615 B CN115379615 B CN 115379615B CN 202211287994 A CN202211287994 A CN 202211287994A CN 115379615 B CN115379615 B CN 115379615B
- Authority
- CN
- China
- Prior art keywords
- light
- temperature
- emitting device
- brightness
- electronic device
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/10—Controlling the intensity of the light
- H05B45/18—Controlling the intensity of the light using temperature feedback
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/10—Controlling the intensity of the light
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/16—Controlling the light source by timing means
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The embodiment of the application provides electronic equipment and a method for controlling the brightness of a light-emitting device, and relates to the technical field of illumination. The method comprises the following steps: when the light-emitting device is in a light-emitting state, if the temperature of a temperature monitoring area in the electronic equipment reaches or exceeds a preset temperature, the light-emitting brightness of the light-emitting device is reduced for the first time; the temperature monitoring area is an area which is influenced by the luminescence to generate temperature change; after the first round of reduction of the light-emitting brightness of the light-emitting device is performed, if the duration of the light-emitting device in the light-emitting state reaches or exceeds the preset duration, the second round of reduction of the light-emitting brightness of the light-emitting device is performed. This application can avoid the cell-phone to last the drive illuminator with great drive current and give off light to avoid the temperature in temperature monitoring area too high, in order to reduce the risk that user's low temperature was scalded.
Description
Technical Field
The present disclosure relates to lighting technologies, and in particular, to an electronic device and a method for controlling brightness of a light emitting device.
Background
Light Emitting Diodes (LEDs) are embedded in electronic devices such as mobile phones and tablets, and a user can control the LEDs to be lit up through a flashlight application app installed on the electronic device, so that the lighting effect is achieved.
At present, in the process of lighting an LED by an electronic device, a current is required to drive the LED lamp to continuously work, and if the brightness of the LED is to be improved, a larger driving current is required to be configured. As the length of time that the LED is lit increases, the temperature around the LED continues to rise, causing the temperature of the housing of the electronic device to continue to rise. After the temperature of the shell of the electronic device rises, if the electronic device is stuck to the skin of a user for a long time, low-temperature scald is easily caused.
Disclosure of Invention
The purpose of this application lies in: an electronic device and a method for controlling the brightness of a light-emitting device are provided, which can reduce the risk of low-temperature scalding of a flashlight.
In a first aspect, the present application provides a method for controlling the brightness of a light emitting device, which may be applied to an electronic device having a light emitting device, where the electronic device may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a notebook computer, an ultra mobile personal computer, a handheld computer, a netbook, a personal digital assistant, a wearable electronic device, a smart watch, and the like. The method comprises the following steps: the light-emitting device can be turned on or off by controlling the electronic equipment, and when the light-emitting device is in a light-emitting state, the light-emitting brightness of the light-emitting device is reduced for the first time when the temperature of a temperature monitoring area of the electronic equipment reaches or exceeds a preset temperature, wherein the temperature monitoring area is an area which is influenced by the light-emitting device to generate temperature change. After the first round of reduction of the light-emitting brightness of the light-emitting device is performed, further, if the duration of the light-emitting device of the electronic device in the light-emitting state reaches or exceeds the preset duration, the second round of reduction of the light-emitting brightness of the light-emitting device is performed. Therefore, the situation that the mobile phone continuously drives the LED with larger driving current can be avoided, and the risk of low-temperature scalding of a user is reduced.
In some possible implementations, the preset duration set by the user is inversely related to the brightness value of the first reduced light-emitting brightness of the light-emitting device of the electronic device. That is, if the brightness value of the light emitting device after the first reduction is higher, a shorter preset time period can be set, and the risk of low-temperature scald of the user is reduced.
In some possible implementations, the preset duration may be: and determining the obtained corresponding preset time length according to the time period information, such as the daytime time period, of the current time obtained by the electronic equipment, wherein different time period information corresponds to different environment brightness. That is, if the time period information to which the current time obtained by the electronic device belongs is daytime, a short preset time period can be set, and the risk of low-temperature scalding of the user is reduced.
In some possible implementations, the preset duration may be: and determining the corresponding preset time length according to the external environment temperature information obtained by the electronic equipment, wherein the size of the preset time length is in negative correlation with the external environment temperature information obtained by the electronic equipment. Therefore, the risk of low-temperature scalding of the user can be reduced.
In some possible implementations, the preset duration may be: and determining the obtained corresponding preset time according to the self heat dissipation state of the electronic equipment. Therefore, the risk of low-temperature scalding of the user can be reduced.
In some possible implementations, the preset duration may be: and determining the corresponding preset time length according to the temperature of the temperature monitoring area before the temperature is reduced for the first round and the reduction amplitude of the brightness reduction for the first round. Thereby, the risk of low temperature scalding of the user can be reduced.
In some possible implementations, the second round of reduction of the light emitting brightness of the light emitting device may be: and reducing the brightness of the second round according to at least one condition including the time period of the current time of the electronic equipment, the temperature of the environment and the self-heat dissipation index of the electronic equipment by a corresponding reduction amplitude. Thereby, the risk of low temperature scalding of the user can be reduced.
In some possible implementations, the method of controlling the brightness of the light emitting device further includes: and if the time length of the light-emitting device of the electronic equipment in the light-emitting state reaches the closing time length after the second round of brightness reduction is carried out, closing the light-emitting device. Thereby, the risk of low temperature scalding of the user can be reduced.
In some possible implementations, the light emitting brightness of the light emitting device of the electronic device may be reduced by reducing the magnitude of the driving current of the light emitting device.
In some possible implementations, the light-emitting device of the electronic apparatus may include a plurality of sub-devices, and the light-emitting brightness of the light-emitting device of the electronic apparatus may be reduced by turning off some of the sub-devices in the plurality of sub-devices.
In some possible implementations, the temperature of the temperature monitoring area in the electronic device may be: the temperature of a temperature monitoring area in the electronic equipment is determined through at least one of the starting time of a light-emitting device of the electronic equipment, the preset driving current, the internal resistance and the heat dissipation capacity.
In some possible implementations, the temperature monitoring area in the electronic device is a connection area of a light emitting device of the electronic device and the electronic device.
In a second aspect, the present application provides an electronic device comprising a processor and a memory; the memory stores computer-executable instructions; the processor executes computer-executable instructions stored by the memory to cause the processor to perform the method of the first aspect described above.
In a third aspect, the present application provides a computer readable storage medium having stored thereon a computer program or instructions which, when executed, implement the method of the first aspect.
In a fourth aspect, the present application provides a computer program product comprising a computer program or instructions which, when executed by a processor, performs the method of the first aspect described above.
Based on the technical scheme, the method has the following beneficial effects:
when a user turns on the flashlight application of the electronic device, the electronic device obtains the turn-on duration of the LED and the temperature of the shell nearby the LED, namely the temperature of the temperature monitoring area. When the LED is in a light-emitting state, if the temperature of the temperature monitoring area of the electronic equipment reaches or exceeds a preset temperature, the light-emitting brightness is reduced for the first time. After the first round of reduction of the light emitting brightness, if the duration of the turn-on of the LED reaches or exceeds the preset duration, the light emitting brightness is further reduced, and the local temperature of the LED of the electronic device is controlled within a safe range, for example, 25 ℃ to 55 ℃. Therefore, in the scheme, the size of the driving current of the LED is actively reduced, so that the situation that the mobile phone continuously drives the LED with larger driving current can be avoided, and the risk of low-temperature scalding of a user is reduced. In addition, under the scene that the user forgets to turn off the flashlight, the electric energy consumption of the electronic equipment can be reduced by actively reducing the magnitude of the driving current of the LED, the standby time of the electronic equipment is prolonged, and the user experience is optimized. In addition, in the scheme, additional hardware does not need to be added in the electronic equipment, the change is small, and the implementation is easier.
It should be appreciated that the description of technical features, solutions, benefits, or similar language in this application does not imply that all of the features and advantages may be realized in any single embodiment. Rather, it is to be understood that the description of a feature or advantage is intended to include the specific features, aspects or advantages in at least one embodiment. Therefore, the descriptions of technical features, technical solutions or advantages in the present specification do not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions and advantages described in the present embodiments may also be combined in any suitable manner. One skilled in the relevant art will recognize that an embodiment may be practiced without one or more of the specific features, aspects, or advantages of a particular embodiment. In other embodiments, additional features and advantages may be recognized in certain embodiments that may not be present in all embodiments.
Drawings
Fig. 1 is a schematic diagram of an LED driving and controlling circuit according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a step size gear of an LED adjusting current according to an embodiment of the present disclosure;
fig. 3 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure;
fig. 4A is a schematic interface diagram of an electronic device according to an embodiment of the present disclosure;
fig. 4B is a schematic interface diagram of another electronic device according to an embodiment of the present application;
fig. 5A is a schematic view illustrating a touch operation according to an embodiment of the present disclosure;
FIG. 5B is a schematic view of an exemplary flashlight application interface provided in accordance with an embodiment of the present application;
fig. 5C is a schematic view illustrating another touch operation provided in the present embodiment;
fig. 6 is a schematic diagram of an air-separated triggering operation provided in an embodiment of the present application;
fig. 7 is a flowchart of a brightness control method according to an embodiment of the present application;
FIG. 8A is a schematic diagram of the variation of current with time according to an embodiment of the present disclosure;
FIG. 8B is a schematic diagram of temperature variation with time according to an embodiment of the present disclosure;
FIG. 9A is a schematic diagram of another current variation with time according to an embodiment of the present disclosure;
FIG. 9B is a schematic illustration of yet another temperature variation over time as provided by an embodiment of the present application;
fig. 10 is a flowchart of a second brightness control method according to an embodiment of the present application;
fig. 11 is a schematic diagram of obtaining a current time according to an embodiment of the present application;
fig. 12 is a flowchart of a third brightness control method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. The terminology used in the following examples is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of this application and the appended claims, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, such as "one or more", unless the context clearly indicates otherwise. It should also be understood that in the embodiments of the present application, "one or more" means one, two, or more than two; "and/or" describes the association relationship of the associated objects, indicating that three relationships may exist; for example, a and/or B, may represent: a alone, both A and B, and B alone, where A, B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The embodiments of the present application relate to a plurality of numbers greater than or equal to two. It should be noted that, in the description of the embodiments of the present application, the terms "first", "second", and the like are used for distinguishing the description, and are not to be construed as indicating or implying relative importance or order.
Referring to fig. 1, the figure is a schematic diagram of an LED driving and controlling circuit according to an embodiment of the present disclosure. The processor can configure the register in the LED driving chip through the I2C control bus, control the LED to work in a flash lamp mode or a flashlight mode, and simultaneously configure the current of the LED to determine the light emitting brightness.
Referring to table 1 below, table 1 illustrates 64-step adjustable brightness, the register of the LED driving chip may be divided into 64-step configurations, and each step of LED current may be incremented by 5mA current. Where the register is configured to step1, the LED current is 5mA, and similarly, the register is configured to step2, the LED current is 10mA. The brightness of the LED and the magnitude of the driving current of the LED are linearly changed.
TABLE 1
Referring to fig. 2, the drawing is a schematic diagram of a step size of an LED adjusting current step according to an embodiment of the present disclosure. The control register can control the switching of the current source reference currents IREF, S1 to Sn, and set the magnitude of the reference current IREF. Since the output current on the LED and the reference current IREF have a relationship of Iled = R1/R2 × IREF, thereby controlling the current step size step, the brightness of the LED and the LED driving current are in a linear relationship.
However, in an electronic device such as a mobile phone or a tablet, a light emitting device such as an LED is driven with a fixed current, and if the luminance of the LED is to be ensured, a larger driving current of the LED needs to be configured. As the LED on time increases, the temperature of the periphery of the LED lamp continuously increases, resulting in an increase in the temperature of the housing of the electronic device. If the LED of the electronic device is kept close to the skin, the risk of burning the skin with the flashlight at a low temperature is caused.
Therefore, when a user opens the flashlight application of the electronic equipment, the electronic equipment obtains the starting time of the LED and the temperature of the shell near the LED, namely the temperature of the temperature monitoring area. When the LED is in a light-emitting state, if the temperature of the temperature monitoring area of the electronic equipment reaches or exceeds a preset temperature, the light-emitting brightness is reduced for the first time. After the first round of reduction of the light emitting brightness, if the duration of turning on the LED reaches or exceeds the preset duration, the light emitting brightness is further reduced, and the local temperature of the LED of the electronic device is controlled within a safe range, for example, 25 ℃ to 55 ℃. Therefore, in the scheme, the size of the driving current of the LED is actively reduced, so that the situation that the mobile phone continuously drives the LED with larger driving current can be avoided, and the risk of low-temperature scalding of a user is reduced.
In addition, under the scene that the user forgets to turn off the flashlight, the electric energy consumption of the electronic equipment can be reduced by actively reducing the magnitude of the driving current of the LED, the standby time of the electronic equipment is prolonged, and the user experience is optimized. In addition, in the scheme, additional hardware does not need to be added in the electronic equipment, the change is small, and the implementation is easier.
First, an exemplary electronic device 300 provided in the embodiment of the present application is described. Fig. 3 is a schematic diagram of a hardware structure of the electronic device 300.
The electronic device 300 may be a mobile phone with a flashlight function, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a Personal Digital Assistant (PDA), an Augmented Reality (AR) device, a Virtual Reality (VR) device, an Artificial Intelligence (AI) device, a wearable device, a vehicle-mounted device, a smart home device, and/or a city device, and the embodiment of the present application does not particularly limit the specific type of the electronic device 300.
As shown in fig. 3, the electronic device 300 may include a processor 310, a display screen 320, LEDs 330, a temperature sensor 340, a camera 350, a light sensor 360, and the like. It is to be understood that the illustrated structure of the present embodiment does not constitute a specific limitation to the electronic device 300. In other embodiments, the electronic device 300 may include more or fewer components than illustrated, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 310 may include one or more processor units, for example, the processor 310 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. Wherein, the different processing units may be independent devices or may be integrated in one or more processors.
The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 310 for storing instructions and data. In some embodiments, the memory in the processor 310 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 310. If the processor 310 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 310, thereby increasing the efficiency of the system.
The processor 310 has a timing function. In some embodiments, the processor 310 may obtain the time period for which the LED330 is turned on based on a timing function, and when the time period for which the LED330 is turned on exceeds a preset time period, or the time period is about to exceed the preset time period, the heat generated by the LED330 is reduced by reducing the driving current of the LED330, so as to reduce the local temperature of the housing around the LED330.
In some embodiments, processor 310 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose-output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a USB interface, etc.
The I2C interface is a bidirectional synchronous serial bus including a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, the processor 310 may include multiple sets of I2C buses. The processor 310 may be coupled to the LED330, the temperature sensor 340, the light sensor 360, etc. through different I2C bus interfaces. For example: the processor 310 may be coupled to the LED330 via an I2C interface, such that the processor 310 and the LED330 communicate via the I2C bus interface to implement the lighting function of the electronic device.
The MIPI interface may be used to connect the processor 310 with peripheral devices such as the display screen 320, the camera 350, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 310 and camera 350 communicate over a CSI interface to implement the capture functionality of the electronic device. In some embodiments, the processor 310 and the display screen 320 communicate through a DSI interface to implement display functionality of the electronic device.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 310 with the display screen 320, the LED330, the temperature sensor 340, the camera 350, the light sensor 360, and the like. The GPIO interface may also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, and the like.
It should be understood that the interface connection relationship between the modules illustrated in this embodiment is only an exemplary illustration, and does not constitute a limitation on the structure of the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
A display screen 320 may be communicatively coupled to the processor 310 for displaying information, such as images, to a user. The display screen 320 includes a display panel, which may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an organic matrix organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), or the like.
The LED330 is a solid-state semiconductor device that converts electrical energy into visible light and directly converts an electrical signal into an optical signal. In one embodiment, the electronic device 300 can control the LED330 to emit light or to turn off by controlling the LED driving current to be turned on or off, and the lighting function of the flashlight can be completed when the LED emits light.
The temperature sensor 340 may be placed next to the LED330 of the electronic device 300 so that when the flashlight application on the electronic device 300 controls the flashlight to turn on, the temperature of the housing around the LED330 continues to rise, which is applied to the temperature sensor 340. In one embodiment, the processor 310 obtains the temperature detected by the temperature sensor 340, and when the temperature detected by the temperature sensor is not within the safety range or the temperature is about to exceed the safety range, the heat generated by the LED330 is reduced by reducing the driving current of the LED330, so that the local housing temperature of the LED330 is reduced.
The camera 350 is used to capture still images or video. The object is projected through the lens to a photosensitive element, which may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to be converted into a digital image signal.
The light sensor 360 can be disposed at any position of the electronic device 300, such that the light sensor 360 can generate a photoelectric effect when being irradiated by visible light, and convert a light signal into an electrical signal to be output, thereby controlling the magnitude of the driving current of the LED330. The magnitude of the driving current of the LED330 is in direct proportion to the intensity of the light emitted by the LED330, and the intensity of the light emitted by the LED330 can be adjusted by adjusting the magnitude of the driving current, so as to adjust the local shell temperature of the LED330. In one embodiment, the processor 310 can adjust the temperature of the housing around the LED330 in the electronic device 300 by adjusting the driving current of the LED330 according to the light sensation value of the environment where the electronic device 300 is detected by the light sensation sensor 360.
In an embodiment of the application, an electronic device includes a hardware layer, an operating system layer running on top of the hardware layer, and an application layer running on top of the operating system layer. The hardware layer may include hardware such as a Central Processing Unit (CPU), a Memory Management Unit (MMU), and a memory (also referred to as a main memory). The operating system of the operating system layer may be any one or more computer operating systems that implement business processing through processes (processes), such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a windows operating system. The application layer can comprise applications such as a flashlight, a browser, an address book, word processing software, instant messaging software, audio playing software and video playing software.
It will be apparent to one skilled in the art that some of the details presented above with respect to the electronic device 300 may not be required to practice a particular described embodiment or an equivalent thereof. Similarly, other electronic devices may include a greater number of subsystems, modules, components, etc. Some sub-modules may be implemented as hardware or firmware, where appropriate. Accordingly, it should be understood that the above description is not intended to be exhaustive or to limit the disclosure to the precise form disclosed herein. On the contrary, many modifications and variations are possible in light of the above teaching, as would be apparent to those of ordinary skill in the art.
Referring to fig. 4A, the interface schematic diagram of an electronic device provided in the embodiment of the present application is shown, where the scene includes the electronic device 300, and the electronic device 300 is taken as a smartphone for example for description. In fig. 4A, the electronic device 300 may present a human-machine interface. After the user unlocks the electronic device 300, the electronic device 300 may present the user with a desktop 400 that includes icons for various applications, such as an icon for a camera, an icon for a flashlight 401, an icon for music, and so forth. The user may trigger an operation on an icon of the application, such as clicking, long pressing, sliding, and the like. After receiving the operation triggered by the user, the electronic device 300 may start the corresponding application. In an embodiment, referring to fig. 5A, fig. 5A is a schematic diagram of a touch operation applicable to the embodiment of the present disclosure. The user may directly click on the flashlight icon 401 in the desktop 400 of the electronic device 300 to enter the flashlight application interface from starting the flashlight application. Referring to fig. 5B, fig. 5B is a schematic diagram of an application interface for a flashlight according to an embodiment of the present application. The user can click, long press, etc. on the icon 501 in the flashlight application interface 500 to control the turning on or off of the LED330.
Referring to fig. 4B, the interface schematic diagram of another electronic device provided in the embodiment of the present application is shown, where the scene includes the electronic device 300, and the electronic device 300 is taken as a smartphone for example for description. In FIG. 4B, the electronic device 300 may present another human interaction page. After the user unlocks the electronic device 300, the status bar of the electronic device 300 may be pulled down, and the electronic device 300 may present the user with a status bar interface 402, where the status bar interface 402 includes icons for various applications, such as an icon for music, an icon for a WLAN, an icon for a flashlight 401, and so forth. Similarly, the user may trigger an operation on an icon of the application, such as clicking, long pressing, sliding, and so forth. After receiving the operation triggered by the user, the electronic device 300 may start a corresponding application. In an embodiment, referring to fig. 5C, fig. 5C is a schematic view illustrating another touch operation provided in the application embodiment. The user may click on the flashlight icon 401 in the status bar interface 402 to control the turning on or off of the LED330.
In some embodiments, the application may also be opened by an air-break trigger operation. The user can perform a trigger operation on the electronic device 300, and the camera 350 obtains an image of the trigger operation sent by the user, determines a mapping relationship between the gesture and an application in the electronic device 300, and further starts a corresponding application. The mapping relationship may be a corresponding relationship preset in the electronic device 300 by a technician or a user, and is not limited in this application. In one embodiment, refer to fig. 6, which is a schematic diagram of an operation of triggering an empty space applicable to the embodiment of the present application. The user opens the palm above the electronic device 300, and the camera determines the correspondence between the palm opening gesture and the application in the electronic device 300 after acquiring the image of the opened palm sent by the user. The mapping relationship for the gesture of opening the palm in the electronic device 300 is to turn on the flashlight application, so the user can control the turn-on of the flashlight application by the gesture of opening the palm, and further control the turn-on or turn-off of the LED330. It can be understood that the trigger operation may be a static operation such as opening a palm and making a fist, or a dynamic operation of sliding from the left side to the right side of the screen in a spaced manner, which is not limited in the present application.
Referring to fig. 7, it is a flowchart of a brightness control method according to an embodiment of the present disclosure. The brightness control method may include:
s71: the electronic equipment receives the trigger operation of the user on the icon of the flashlight.
The flashlight icon 401 may be disposed in the desktop 400 and may also be disposed in the status bar interface 402, which is not limited in this application. The electronic device 300 receives a trigger operation of the user on the icon 401 of the flashlight, and a specific process of the trigger operation may be shown in fig. 5A, fig. 5B, and fig. 5C, which is not described herein again.
In other embodiments, the electronic device 300 may further receive an air-to-air trigger operation of the flashlight application by the user, and a specific trigger operation process may be as shown in fig. 6, which is not described herein again.
S72: and the electronic equipment controls the LED to be turned on according to the triggering operation.
When the electronic device 300 receives a trigger operation sent by a user to the electronic device 300, the driving current of the LED330 is turned on, so as to control the LED330 to be turned on, thereby achieving an effect of illuminating the environment.
S73: the electronic equipment obtains the temperature of the shell and the time length of the LED on.
After the electronic device 300 controls the LED330 to be turned on, the temperature of the housing around the LED330, that is, the temperature of the temperature monitoring area, is detected, and the time length of the turn-on of the LED330 and the time length of the light-emitting device in the light-emitting state are counted.
In some embodiments, the electronic device 300 may detect the temperature through an infrared temperature sensor built in the electronic device 300, the infrared temperature sensor may be embedded around the LED330 of the electronic device 300, and a motherboard of the electronic device 300 may have an infrared receiver and a processor, so as to receive the detected housing temperature around the LED330, and process the subsequent processes. In some embodiments, the temperature may be detected by using a thermocouple sensor, a logic output type temperature sensor, a thermometer, or the like, which is not limited in the present application.
In some embodiments, the electronic device 300 may be interconnected with the LED330 through a timer built in the processor 310 of the electronic device 300, so as to count the on-time of the LED330. In some embodiments, the timing may also be performed using a stopwatch application or the like in the electronic device 300, which is not limited in this application.
S74: and when the temperature of the shell reaches a first preset temperature threshold value, reducing the brightness of the LED for the first time.
When a user needs to illuminate, the LED330 of the electronic device 300 may be turned on, and the brightness of the LED330 is in a linear relationship with the magnitude of the driving current of the LED330, that is, in order to make the brightness of the LED lamp of the flashlight larger and facilitate the user to hold the flashlight for illumination, a larger driving current of the LED330, that is, the first preset driving current i1, needs to be configured. The first preset driving current i1 is preset by the electronic device 300. In some embodiments, since the components of the PCB board for mounting the LEDs 330 on different electronic devices 300 are arranged differently, the current before adjustment, i.e. the first preset driving current i1, needs to be determined according to the heat dissipation capability of the arrangement environment of the LEDs 330.
As the turn-on time of the LED330 increases, the temperature of the surrounding housing of the LED330 rises, reaching or exceeding the first preset temperature threshold T1. The first preset temperature threshold T1 is preset by the electronic device 300. In some embodiments, since the temperature of the human body sensing that the hand is hot is about 55 ℃, the temperature of the housing around the LED330 may reach 55 ℃, that is, 55 ℃ is used as the first preset temperature threshold T1, and 56 ℃, 57 ℃ or the like may also be used as the first preset temperature threshold T1, which is not limited in this application. When the temperature sensor 340 embedded in the electronic device 300 detects that the temperature of the housing around the LED330 reaches or exceeds the first preset temperature threshold T1, which indicates that the temperature of the housing around the LED330 is too high and easily scalds a user, the light-emitting brightness of the LED330 is reduced, so as to reduce the temperature of the housing around the LED330.
In one embodiment, the driving current of the LED330 may be reduced, that is, the driving current of the LED330 is reduced from the first preset driving current i1 to the second preset driving current i2. Referring to fig. 8A, a schematic diagram of a current variation with time according to an embodiment of the present application is shown. The second preset driving current i2 is preset by the electronic device 300, and the current of the second preset driving current i2 can be adjusted and determined by controlling the temperature of the surrounding housing of the LED330 within a certain range. Wherein, the temperature range can be 45-55 ℃, and can also be other temperatures, and the application is not limited. Although the temperature in this interval is in the range of low-temperature burn, the low-temperature burn event can be prevented by controlling the on-time of the driving circuit of the LED330 to be not as long as the low-temperature burn. Referring to fig. 8B, a schematic diagram of temperature variation with time is provided in the embodiments of the present application. Since the driving current of the LED330 is decreased from the first preset driving current i1 to the second preset driving current i2, the temperature of the peripheral housing of the LED330 is decreased from the first preset temperature threshold T1 to below the first preset temperature threshold T1.
In another embodiment, the driving current of the LED330 may be first reduced from the first preset driving current i1 to the second preset driving current i2. Referring to fig. 9A, a schematic diagram of a current variation with time according to an embodiment of the present application is shown. The second preset driving current i2 may be very small, so that the temperature of the housing around the LED330 may be lower than the temperature of the user for scalding the user at a low temperature, which may be 44 ℃, 40 ℃ or 38 ℃, and the present application is not limited thereto. Referring to fig. 9B, a schematic diagram of a temperature variation with time according to an embodiment of the present application is shown. When the driving current of the LED330 is reduced from the first preset driving current i1 to the second preset driving current i2, the temperature of the housing around the LED330 starts to decrease from the first preset temperature threshold T1, gradually, the heat balance between the heat productivity of the LED330 and the heat dissipation of the electronic device 300 can be achieved, the temperature tends to be stable, and is lower than the low-temperature scalding range, so that the low-temperature scalding of the user can be effectively prevented.
S75: after the first round of reduction of the light-emitting brightness of the LED is carried out, if the time length of the LED in the light-emitting state reaches or exceeds a first preset time length threshold value, the second round of reduction of the light-emitting brightness of the LED is carried out.
After the first reduction of the light emitting brightness of the LED330, the driving current may be larger due to a poor heat dissipation state of the electronic device 300 itself, or the light emitting brightness of the LED330 of the electronic device 300 is still higher, so that the temperature of the housing around the LED330 is still higher, and the temperature of the housing around the LED330 is still within the low-temperature scalding range. At this time, if the duration of the LED330 in the light emitting state reaches or exceeds the first preset duration threshold t1, the light emitting brightness of the LED330 may be reduced for the second time. The first preset time threshold t1 is a time preset by the electronic device 300 and has exceeded a time period for which the flashlight is generally turned on by a user.
In some embodiments, the predetermined duration may be inversely related to the brightness value of the first reduction of the brightness of the LED330. That is, if the brightness value of the light emitting brightness of the LED330 after the first round of reduction is higher, which indicates that the current magnitude of the driving circuit of the LED330 is larger at this time, which indicates that the temperature of the housing around the LED330 is higher at this time, a shorter preset time period can be set, and a user is prevented from being scalded at a low temperature.
In some embodiments, the obtained corresponding preset time duration may also be determined according to the self heat dissipation state of the electronic device 300. That is, if the element arrangement density of the PCB board on which the LEDs 330 are mounted in the electronic device 300 is high, it indicates that the heat dissipation state of the electronic device is poor, and then it indicates that the temperature of the housing around the LEDs 330 is high, so that a short preset time can be set, and a user is prevented from being scalded at a low temperature.
In some embodiments, the obtained corresponding preset time duration may also be determined according to the temperature of the temperature monitoring area before the first round of reduction and the reduction amplitude of the first round of reduction.
Referring to fig. 8A, when the flashlight application of the electronic device 300 reaches a preset time period, that is, the first preset time period threshold t1, it can be inferred that the user does not need to use the LED330 with a strong illumination capability any more, and since the brightness of the LED330 and the magnitude of the driving current of the LED330 are in a linear relationship, the driving current of the LED330 can be further reduced from the second preset driving current i2 to the third preset driving current i3, so as to reduce the brightness of the flashlight. In some embodiments, the second round of reduction may be performed with a corresponding reduction range according to at least one condition, including an ambient temperature of the electronic device 300 and a self-heat dissipation index of the electronic device 300. Referring to fig. 8B, after the second reduction of the light emitting brightness of the LED330 is performed, the heat balance between the heat productivity of the LED330 and the heat dissipation of the electronic device 300 can be achieved, the temperature tends to be stable, and is lower than the low-temperature scalding range, so that the user can be effectively prevented from being scalded at low temperature. In some embodiments, the driving current of the LED330 may be further reduced from the second preset driving current i2 to the third preset driving current i3. Referring to fig. 9A, the third preset driving current i3 may be very small, so that the temperature of the housing at the peripheral position of the LED330 may also be controlled below a temperature that will not scald the user, which may be 44 ℃, 40 ℃ or 38 ℃, and the present application is not limited thereto. Referring to fig. 9B, until the on time of the LED330 reaches the first preset time threshold t1, the temperature of the peripheral housing of the LED330 may be controlled below 44 ℃, i.e. the user is not scalded at a low temperature, which may also be 40 ℃ and 38 ℃, which is not limited in the present application. Gradually, the heat balance between the heat productivity of the LED330 and the heat dissipation of the electronic device 300 can be achieved, the temperature tends to be stable, and is lower than the low-temperature scalding range, so that the low-temperature scalding of the user can be effectively prevented.
In some embodiments, a light emitting device, such as the LED330, may include a plurality of sub-devices, such that the luminance of the light emitting device may be reduced by turning off some of the sub-devices in the plurality of sub-devices.
In some embodiments, the LED330 may be turned off if the duration that the light emitting device, such as the LED330, is in the light emitting state reaches a preset off duration after the second reduction.
In the present application, the two-wheel lowering is taken as an example, and in some embodiments, the third-wheel lowering and the fourth-wheel lowering may be performed. The application is not limited with respect to the reduced runs.
When a user opens a flashlight application of the electronic equipment, the electronic equipment obtains the starting time of an LED and the temperature of a shell nearby the LED, namely the temperature of a temperature monitoring area. When the LED is in a light-emitting state, if the temperature of the temperature monitoring area of the electronic equipment reaches or exceeds a preset temperature, the light-emitting brightness is reduced for the first round. After the first round of reduction of the light emitting brightness, if the duration of turning on the LED reaches or exceeds the preset duration, the light emitting brightness is further reduced, and the local temperature of the LED of the electronic device is controlled within a safe range, for example, 25 ℃ to 55 ℃. Therefore, in the scheme, the size of the driving current of the LED is actively reduced, so that the situation that the mobile phone continuously drives the LED with larger driving current can be avoided, and the risk of low-temperature scalding of a user is reduced. In addition, under the scene that the user forgets to turn off the flashlight, the electric energy consumption of the electronic equipment can be reduced by actively reducing the magnitude of the driving current of the LED, the standby time of the electronic equipment is prolonged, and the user experience is optimized. In addition, in the scheme, additional hardware does not need to be added in the electronic equipment, the change is small, and the implementation is easier.
Referring to fig. 10, it is a flowchart of a second brightness control method provided in the embodiments of the present application. S101, S103, S104, and S105 are respectively the same as S71, S72, S73, and S74, and are not described herein again.
S101: the electronic equipment receives the trigger operation of the user on the icon of the flashlight.
S102: the electronic device obtains a current time.
The current time is the time currently displayed in the electronic device 300. As shown in fig. 11, which is a schematic diagram of obtaining the current time according to the embodiment of the present application, the electronic device 300 may obtain the current time by reading the time displayed on the desktop 400. It is understood that there are other methods of obtaining the current time, and the present application is not limited thereto.
Specifically, when the electronic device 300 receives a trigger operation of the user on the LED330 in the electronic device 300, the current time is obtained to determine whether the current time is in the daytime, and the initial brightness of the LED330 in the electronic device 300 is adjusted based on sufficient ambient light in the daytime, so as to meet the requirement of the user on the brightness of the flashlight. The daytime period may be a period preset in the electronic device 300 by a technician, for example, 6:00-19:00 is the daytime time period; or the time period may be set by the user in the electronic device 300 according to the actual situation of the address where the user is located, for example, if the user a is in Xinjiang and the sunrise and sunset time are later than those of the eighty-th area, the user a may set by the user a to 9:00-22:00 is the daytime time period; if the user B is located in beijing, the user B can set 6:00-19:00 is the daytime time period. The method for determining whether the time is in the daytime is not limited to the above method, and the present application is not limited thereto.
S103: and the electronic equipment controls the LED to be turned on according to the triggering operation.
S104: the electronic equipment obtains the temperature of the shell and the time length of the LED on.
S105: and when the temperature of the shell reaches a first preset temperature threshold value, reducing the brightness of the LED for the first time.
S106: after the first round of reduction of the light-emitting brightness of the LED is carried out, if the time length of the LED in the light-emitting state reaches or exceeds a first preset time length threshold value, the second round of reduction of the light-emitting brightness of the LED is carried out.
After the first reduction of the light emitting brightness of the LED330, the driving current may be larger due to a poor heat dissipation state of the electronic device 300 itself, or the light emitting brightness of the LED330 of the electronic device 300 is still higher, so that the temperature of the housing around the LED330 is still higher, and the temperature of the housing around the LED330 is still within the low-temperature scalding range. At this time, if the duration of the LED330 in the light emitting state reaches or exceeds the first preset duration threshold t1, the light emitting brightness of the LED330 may be reduced for the second time. The first preset time threshold t1 is a time preset by the electronic device 300, which exceeds the time that the user generally turns on the flashlight. In some embodiments, the corresponding preset time duration, that is, the first preset time duration threshold t1, may be determined according to the time period information of the current time acquired by the electronic device. That is, since the different period information corresponds to different environmental luminances, if the period information of the environment where the electronic device is located is the daytime period, it indicates that the environmental luminance of the electronic device is higher, and the user may not need to use the LED330 with higher luminance as the light emitting device for a long time, so that the preset time period may be appropriately shortened, and the user is prevented from being scalded at low temperature.
In some embodiments, the predetermined duration is inversely related to the brightness value of the first reduction of the brightness of the LED330. That is, if the brightness value of the light emitting brightness of the LED330 after the first reduction is higher, which indicates that the current magnitude of the driving circuit of the LED330 is larger at this time, it indicates that the temperature of the housing around the LED330 is higher at this time, so that a shorter preset time period can be set, and the user is prevented from being scalded at a low temperature.
In some embodiments, the obtained corresponding preset time duration may also be determined according to the self heat dissipation state of the electronic device 300. That is, if the element arrangement density of the PCB board on which the LEDs 330 are mounted in the electronic device 300 is high, it indicates that the heat dissipation state of the electronic device is poor, and then it indicates that the temperature of the housing around the LEDs 330 is high, so that a short preset time can be set, and a user is prevented from being scalded at a low temperature.
In some embodiments, the obtained corresponding preset time duration may also be determined according to the temperature of the temperature monitoring area before the first round of reduction and the reduction amplitude of the first round of reduction.
Referring to fig. 8A, when the flashlight application of the electronic device 300 reaches a preset time period, i.e., the first preset time period threshold t1, it can be presumed that the user does not need to use the LED330 with stronger illumination capability, and since the brightness of the LED330 is linear with the magnitude of the driving current of the LED330, the driving current of the LED330 can be further reduced from the second preset driving current i2 to the third preset driving current i3, so as to reduce the brightness of the flashlight. In some embodiments, the second round of reduction may be performed with a corresponding reduction range according to at least one condition, including an ambient temperature of the electronic device 300 and a self-heat dissipation index of the electronic device 300. Referring to fig. 8B, after the light emitting brightness of the LED330 is reduced for the second round, the heat balance between the heat generation amount of the LED330 and the heat dissipation of the electronic device 300 can be achieved, the temperature tends to be stable, and is lower than the low-temperature scalding range, so that the user can be effectively prevented from being scalded at low temperature. In some embodiments, the driving current of the LED330 may be further reduced from the second preset driving current i2 to the third preset driving current i3. Referring to fig. 9A, the third preset driving current i3 may be very small, so that the temperature of the housing at the peripheral position of the LED330 may also be controlled below a temperature that will not scald the user, which may be 44 ℃, 40 ℃ or 38 ℃, and the present application is not limited thereto. Referring to fig. 9B, until the on time of the LED330 reaches the first preset time threshold t1, the temperature of the peripheral housing of the LED330 may be controlled below 44 ℃, i.e. the user is not scalded at a low temperature, which may also be 40 ℃ and 38 ℃, which is not limited in the present application. Gradually, the heat balance between the heat productivity of the LED330 and the heat dissipation of the electronic device 300 can be achieved, the temperature tends to be stable, and is lower than the low-temperature scalding range, so that the low-temperature scalding of the user can be effectively prevented.
In some embodiments, a light emitting device, such as the LED330, may include a plurality of sub-devices, such that the luminance of the light emitting device may be reduced by turning off some of the sub-devices in the plurality of sub-devices.
In some embodiments, the LED330 may be turned off if the duration that the light emitting device, such as the LED330, is in the light emitting state reaches a preset off duration after the second reduction.
The application provides an electronic device and a method for controlling brightness of a light-emitting device. The electronic device then obtains the length of time that the LED was turned on and the temperature of the housing in the vicinity of the LED, i.e., the temperature of the temperature monitoring area. When the LED is in a light-emitting state, if the temperature of the temperature monitoring area of the electronic equipment reaches or exceeds a preset temperature, the light-emitting brightness is reduced for the first time. After the first round of reduction of the light emitting brightness, if the duration of the turn-on of the LED reaches or exceeds the preset duration, the light emitting brightness is further reduced, and the local temperature of the LED of the electronic device is controlled within a safe range, for example, 25 ℃ to 55 ℃. If the time period information of the environment where the electronic device is located is the daytime time period, which indicates that the environment where the electronic device is located is brighter, the user may not need to use the LED with higher brightness as the light emitting device for a long time, so that the preset time period can be appropriately shortened. Therefore, in the scheme, the size of the driving current of the LED is actively reduced, so that the situation that the mobile phone continuously drives the LED with larger driving current can be avoided, and the risk of low-temperature scalding of a user is reduced. In addition, in the scheme, additional hardware does not need to be added in the electronic equipment, the change is small, and the implementation is easier.
Referring to fig. 12, it is a flowchart of a third brightness control method provided in the embodiments of the present application. S121, S123, S124, and S125 are the same as S71, S72, S73, and S74, and are not described in detail here.
S121: the electronic equipment receives the trigger operation of the user on the icon of the flashlight.
S122: the electronic equipment acquires a light sensation value of the current environment.
When the electronic device 300 receives a trigger operation of a user on an icon of a flashlight in the electronic device 300, the electronic device 300 obtains a light sensation value of the current environment to determine whether the illumination of the current environment is sufficient, and then adjusts the initial brightness of the LED330 in the electronic device 300 to meet the requirement of the user on the brightness of the flashlight. In some embodiments, the higher the obtained light sensation value of the current environment is, the more sufficient the illumination of the current environment is; the lower the obtained light sensation value of the current environment is, the less sufficient the illumination of the current environment is.
The electronic device 300 may obtain a light sensing value through the light sensor 360. It is understood that the light sensing of the electronic device 300 includes, but is not limited to, a method using the light sensor 360, and in another embodiment, the light sensing value can be calculated by providing a light sensing element in the electronic device 300, and detecting the light sensing degree of the environment where the electronic device 300 is located by the light sensing element. The method for obtaining the light sensation value of the current environment is not limited in the present application.
S123: and the electronic equipment controls the LED to be turned on according to the triggering operation.
S124: the electronic equipment obtains the temperature of the shell and the time length of the LED on.
S125: and when the temperature of the shell reaches a first preset temperature threshold value, reducing the brightness of the LED for the first time.
S126: after the first round of reduction of the light-emitting brightness of the LED is carried out, if the time length of the LED in the light-emitting state reaches or exceeds a first preset time length threshold value, the second round of reduction of the light-emitting brightness of the LED is carried out.
After the first reduction of the light emitting brightness of the LED330, the driving current may be larger due to a poor heat dissipation state of the electronic device 300 itself, or the light emitting brightness of the LED330 of the electronic device 300 is still higher, so that the temperature of the housing around the LED330 is still higher, and the temperature of the housing around the LED330 is still within the low-temperature scalding range. At this time, if the duration of the LED330 in the light emitting state reaches or exceeds the first preset duration threshold t1, the light emitting brightness of the LED330 may be reduced for the second time. The first preset time threshold t1 is a time preset by the electronic device 300, which exceeds the time that the user generally turns on the flashlight. In some embodiments, the corresponding preset time length, that is, the first preset time length threshold t1, may be determined according to the light sensation value of the current environment acquired by the electronic device. That is, if the light sensation value of the environment where the electronic device is located is higher, which indicates that the brightness of the environment where the electronic device is located is higher, the user may not need to use the LED330 with higher brightness as the light emitting device for a long time, so that the preset time period can be appropriately shortened, and the user is prevented from being scalded at low temperature.
In some embodiments, the predetermined duration is inversely related to the brightness value of the first reduction of the brightness of the LED330. That is, if the brightness value of the light emitting brightness of the LED330 after the first reduction is higher, which indicates that the current magnitude of the driving circuit of the LED330 is larger at this time, it indicates that the temperature of the housing around the LED330 is higher at this time, so that a shorter preset time period can be set, and the user is prevented from being scalded at a low temperature.
In some embodiments, the obtained corresponding preset time duration may also be determined according to the self heat dissipation state of the electronic device 300. That is, if the component arrangement density of the PCB board on which the LEDs 330 are mounted on the electronic device 300 is high, it indicates that the heat dissipation state of the electronic device is poor, and it indicates that the temperature of the housing around the LEDs 330 is high, and thus a short preset duration can be set, thereby preventing a user from being scalded at a low temperature.
In some embodiments, the obtained corresponding preset time duration may also be determined according to the temperature of the temperature monitoring area before the first round of reduction and the reduction amplitude of the first round of reduction.
Referring to fig. 8A, when the flashlight application of the electronic device 300 reaches a preset time period, i.e., the first preset time period threshold t1, it can be presumed that the user does not need to use the LED330 with stronger illumination capability, and since the brightness of the LED330 is linear with the magnitude of the driving current of the LED330, the driving current of the LED330 can be further reduced from the second preset driving current i2 to the third preset driving current i3, so as to reduce the brightness of the flashlight. In some embodiments, the second round of reduction may be performed with a corresponding reduction range according to at least one condition, including an ambient temperature of the electronic device 300 and a self-heat dissipation index of the electronic device 300. Referring to fig. 8B, after the light emitting brightness of the LED330 is reduced for the second round, the heat balance between the heat generation amount of the LED330 and the heat dissipation of the electronic device 300 can be achieved, the temperature tends to be stable, and is lower than the low-temperature scalding range, so that the user can be effectively prevented from being scalded at low temperature. In some embodiments, the driving current of the LED330 may be further reduced from the second preset driving current i2 to the third preset driving current i3. Referring to fig. 9A, the third preset driving current i3 may be very small, so that the temperature of the housing at the peripheral position of the LED330 may also be controlled below a temperature that will not scald the user, which may be 44 ℃, 40 ℃ or 38 ℃, and the present application is not limited thereto. Referring to fig. 9B, until the on time of the LED330 reaches the first preset time threshold t1, the temperature of the peripheral housing of the LED330 may be controlled below 44 ℃, i.e. the user is not scalded at a low temperature, which may also be 40 ℃ and 38 ℃, which is not limited in the present application. Gradually, can reach thermal balance between the calorific capacity of LED330 and electronic equipment 300's the heat dissipation, the temperature tends to stably, and is less than the scope that low temperature scalded, then can effectively prevent user's low temperature scald.
In some embodiments, a light emitting device, such as the LED330, may include a plurality of sub-devices, such that the luminance of the light emitting device may be reduced by turning off some of the sub-devices in the plurality of sub-devices.
In some embodiments, the LED330 may be turned off if the duration that the light emitting device, such as the LED330, is in the light emitting state reaches a preset off duration after the second reduction.
The application provides electronic equipment and a method for controlling the brightness of a light-emitting device, and when a user turns on a flashlight application of the electronic equipment, a light sensation value of the environment where the electronic equipment is located is obtained. The electronic device then obtains the length of time that the LED was turned on and the temperature of the housing in the vicinity of the LED, i.e., the temperature of the temperature monitoring area. When the LED is in a light-emitting state, if the temperature of the temperature monitoring area of the electronic equipment reaches or exceeds a preset temperature, the light-emitting brightness is reduced for the first time. After the first round of reduction of the light emitting brightness, if the duration of the turn-on of the LED reaches or exceeds the preset duration, the light emitting brightness is further reduced, and the local temperature of the LED of the electronic device is controlled within a safe range, for example, 25 ℃ to 55 ℃. If the light sensation value of the environment where the electronic device is located is high, which indicates that the brightness of the environment where the electronic device is located is high, the user may not need to use the LED with high brightness as the light emitting device for a long time, so that the preset time can be appropriately shortened. Therefore, in the scheme, the size of the driving current of the LED is actively reduced, so that the situation that the mobile phone continuously drives the LED with larger driving current can be avoided, and the risk of low-temperature scalding of a user is reduced. In addition, in the scheme, additional hardware does not need to be added in the electronic equipment, the change is small, and the implementation is easier.
The embodiment of the present application further provides an electronic device 300, which includes a processor and a memory. The memory stores computer-executable instructions that are executed by the processor to cause the processor to perform the functions or steps performed by the electronic device 300 in the above-described method embodiments.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program or an instruction is stored in the computer-readable storage medium, and when the computer program or the instruction is executed, the computer program or the instruction implements each function or step performed by the electronic device 300 in the foregoing method embodiment.
The present application further provides a computer program product, which includes a computer program or instructions, and is characterized in that when the computer program or instructions is executed by a processor, the computer program or instructions implement the functions or steps performed by the electronic device 300 in the foregoing method embodiments.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in this embodiment, it should be understood that the disclosed system and method may be implemented in other ways. For example, the above-described embodiments are merely illustrative, and for example, the division of the modules or units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, each functional unit in each embodiment of the present embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present embodiment essentially or partially contributes to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the method described in the embodiments. And the aforementioned storage medium includes: various media that can store program code, such as flash memory, removable hard drive, read-only memory, random-access memory, magnetic or optical disk, etc.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (12)
1. A method for controlling the brightness of a light-emitting device is applied to an electronic device with the light-emitting device, and the method comprises the following steps:
when the light-emitting device is in a light-emitting state, if the temperature of a temperature monitoring area in the electronic equipment reaches or exceeds a preset temperature, the light-emitting brightness of the light-emitting device is reduced for the first time; the temperature monitoring area is an area which is influenced by the luminescence to generate temperature change;
after the first round of reduction of the light-emitting brightness of the light-emitting device is carried out, if the duration of the light-emitting device in a light-emitting state reaches or exceeds the preset duration, the second round of reduction of the light-emitting brightness of the light-emitting device is carried out;
the preset duration and the brightness value of the light-emitting device after the first round of reduction are in negative correlation;
the second round of reduction of the emission brightness of the light emitting device includes:
and performing the second round of reduction according to at least one condition including the time period of the current time, the ambient temperature of the electronic equipment and the self heat dissipation index of the electronic equipment by a corresponding reduction amplitude.
2. The method of claim 1, wherein the preset duration comprises:
and determining the corresponding preset duration according to the time period information of the current time acquired by the electronic equipment, wherein different time period information corresponds to different environment brightness.
3. The method of claim 1, wherein the preset duration comprises:
and determining the corresponding preset time length according to the external environment temperature information obtained by the electronic equipment, wherein the size of the preset time length is in negative correlation with the external environment temperature information obtained by the electronic equipment.
4. The method of claim 1, wherein the preset duration comprises:
and determining the obtained corresponding preset time according to the self heat dissipation state of the electronic equipment.
5. The method of claim 1, wherein the preset duration comprises:
and determining the corresponding preset time length according to the temperature of the temperature monitoring area before the first round of reduction and the reduction amplitude of the first round of reduction.
6. The method of claim 1, further comprising: and if the duration that the light-emitting device is in the light-emitting state reaches the closing duration after the second round of reduction, closing the light-emitting device.
7. The method of claim 1, wherein the driving current of the light emitting device is reduced to reduce the brightness of the light emitting device.
8. The method of claim 1, wherein the light-emitting device comprises a plurality of sub-devices, and wherein the brightness of the light-emitting device is reduced by turning off some of the plurality of sub-devices.
9. The method of claim 1, wherein monitoring the temperature of the area in the electronic device comprises:
and determining the temperature of a temperature monitoring area in the electronic equipment through at least one of the starting time of the light-emitting device, the preset driving current of the light-emitting device, the internal resistance of the light-emitting device and the heat dissipation capacity of the electronic equipment.
10. The method of claim 1, wherein the temperature monitoring region is a connection region of the light emitting device and the electronic device.
11. An electronic device comprising a light emitting device, a processor, and a memory;
the light-emitting device is used for emitting light;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory, causing the processor to perform the method of any of claims 1-10.
12. A computer-readable storage medium, in which a computer program or instructions are stored which, when executed, implement the method of any one of claims 1-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211287994.0A CN115379615B (en) | 2022-10-20 | 2022-10-20 | Electronic equipment and method for controlling brightness of light-emitting device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211287994.0A CN115379615B (en) | 2022-10-20 | 2022-10-20 | Electronic equipment and method for controlling brightness of light-emitting device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115379615A CN115379615A (en) | 2022-11-22 |
CN115379615B true CN115379615B (en) | 2023-04-07 |
Family
ID=84073901
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211287994.0A Active CN115379615B (en) | 2022-10-20 | 2022-10-20 | Electronic equipment and method for controlling brightness of light-emitting device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115379615B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116184720A (en) * | 2023-03-13 | 2023-05-30 | 重庆惠科金渝光电科技有限公司 | Light emitting module, display device and control method of control circuit |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001312249A (en) * | 2000-05-02 | 2001-11-09 | Nippon Signal Co Ltd:The | Controller for luminance of led |
JP2005137171A (en) * | 2003-10-31 | 2005-05-26 | Sanyo Electric Co Ltd | Mobile phone with camera, and control method of light emitting element driving current and its program |
CN108521692A (en) * | 2018-03-21 | 2018-09-11 | 深圳市富满电子集团股份有限公司 | The temprature control method and LED illumination System of LED illumination System |
CN114077133A (en) * | 2020-08-12 | 2022-02-22 | 中强光电股份有限公司 | Projection apparatus and control method thereof |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009028058A1 (en) * | 2007-08-29 | 2009-03-05 | Pioneer Corporation | Light emitting control device and the like |
CN106791021B (en) * | 2016-11-30 | 2018-11-30 | 维沃移动通信有限公司 | A kind of control method and mobile terminal of flash lamp |
CN106961516B (en) * | 2017-02-27 | 2020-07-03 | 维沃移动通信有限公司 | Flash lamp control method and device |
CN107277386B (en) * | 2017-06-23 | 2020-01-17 | Oppo广东移动通信有限公司 | Method for reducing temperature rise, computer readable storage medium and mobile terminal |
CN112714212B (en) * | 2019-10-25 | 2024-03-15 | 环鸿电子(昆山)有限公司 | Flashlight mode control method for flashlight of mobile phone |
CN111355836A (en) * | 2020-03-10 | 2020-06-30 | Tcl移动通信科技(宁波)有限公司 | Flashlight control method and device, storage medium and mobile terminal |
-
2022
- 2022-10-20 CN CN202211287994.0A patent/CN115379615B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001312249A (en) * | 2000-05-02 | 2001-11-09 | Nippon Signal Co Ltd:The | Controller for luminance of led |
JP2005137171A (en) * | 2003-10-31 | 2005-05-26 | Sanyo Electric Co Ltd | Mobile phone with camera, and control method of light emitting element driving current and its program |
CN108521692A (en) * | 2018-03-21 | 2018-09-11 | 深圳市富满电子集团股份有限公司 | The temprature control method and LED illumination System of LED illumination System |
CN114077133A (en) * | 2020-08-12 | 2022-02-22 | 中强光电股份有限公司 | Projection apparatus and control method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN115379615A (en) | 2022-11-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11663983B2 (en) | Lighting techniques for display devices | |
US8830067B2 (en) | Illumination device | |
WO2018006794A1 (en) | Brightness adjustment method and apparatus, and mobile terminal and computer storage medium | |
WO2019095622A1 (en) | Light control system for led light | |
TW201205042A (en) | Electronic apparatus, proximity sensor and control method thereof | |
CN106098019B (en) | A kind of method and electronic equipment adjusting display parameters | |
CN103607822B (en) | A kind of method of overheat protector of photoflash lamp of terminal and device | |
CN115379615B (en) | Electronic equipment and method for controlling brightness of light-emitting device | |
WO2017197756A1 (en) | Method and terminal for controlling screen display | |
CN102750520A (en) | Capacitive fingerprint detection device | |
CN104661413A (en) | Method and device for adjusting brightness of flashlight | |
WO2018210636A1 (en) | Lighting system that maintains melanopic lux levels at the eye regardless of distance to user | |
CN104955217B (en) | Flasher is adjusted based on temperature | |
CN107092352A (en) | A kind of screen control method answered based on distance perspective and terminal | |
JP4699330B2 (en) | IMAGING DEVICE, IMAGING METHOD, DISPLAY DEVICE, DISPLAY METHOD, AND PROGRAM | |
CN105741766A (en) | Display control method and display control device based on optical sensor, and intelligent terminal | |
CN102879977B (en) | Camera flash control method, control device and mobile terminal | |
WO2015154531A1 (en) | Method and device for adjusting illumination brightness, illumination method and illumination device | |
CN113225870B (en) | VR equipment positioning method and VR equipment | |
CN104503267A (en) | Electric appliance equipment and power-on/standby control method thereof | |
CN113873122A (en) | Independent flash control method, system and device for double-flash camera and storage medium | |
TW201134304A (en) | Illumination device capable of adjusting brightness and adjusting method thereof | |
CN108830160A (en) | Facial characteristics acquisition method, mobile terminal and storage medium | |
CN102737611A (en) | Method for automatically adjusting brightness of display and portable electronic device | |
CN208156339U (en) | A kind of glasses |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |