CN108709638B - LED circuit, electronic equipment and detection method - Google Patents
LED circuit, electronic equipment and detection method Download PDFInfo
- Publication number
- CN108709638B CN108709638B CN201810848037.8A CN201810848037A CN108709638B CN 108709638 B CN108709638 B CN 108709638B CN 201810848037 A CN201810848037 A CN 201810848037A CN 108709638 B CN108709638 B CN 108709638B
- Authority
- CN
- China
- Prior art keywords
- led
- driving signal
- providing unit
- voltage
- signal providing
- 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
- 238000001514 detection method Methods 0.000 title claims abstract description 114
- 238000012545 processing Methods 0.000 claims abstract description 18
- 238000013507 mapping Methods 0.000 claims abstract description 17
- 230000002441 reversible effect Effects 0.000 claims description 14
- 230000007423 decrease Effects 0.000 claims description 13
- 238000000034 method Methods 0.000 claims description 9
- 230000029058 respiratory gaseous exchange Effects 0.000 claims description 3
- 230000011664 signaling Effects 0.000 claims 1
- 230000000694 effects Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 230000008859 change Effects 0.000 description 5
- 239000004065 semiconductor Substances 0.000 description 4
- 239000000463 material Substances 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000013459 approach Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000011022 operating instruction Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 239000006059 cover glass Substances 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000005684 electric field Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000005669 field effect Effects 0.000 description 1
- 239000003574 free electron Substances 0.000 description 1
- 230000001678 irradiating effect Effects 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
- G01J1/00—Photometry, e.g. photographic exposure meter
- G01J1/42—Photometry, e.g. photographic exposure meter using electric radiation detectors
- G01J1/4204—Photometry, e.g. photographic exposure meter using electric radiation detectors with determination of ambient light
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
- G01J1/00—Photometry, e.g. photographic exposure meter
- G01J1/42—Photometry, e.g. photographic exposure meter using electric radiation detectors
- G01J1/4228—Photometry, e.g. photographic exposure meter using electric radiation detectors arrangements with two or more detectors, e.g. for sensitivity compensation
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
- G01J1/00—Photometry, e.g. photographic exposure meter
- G01J1/42—Photometry, e.g. photographic exposure meter using electric radiation detectors
- G01J1/44—Electric circuits
-
- 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]
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
- G01J1/00—Photometry, e.g. photographic exposure meter
- G01J1/42—Photometry, e.g. photographic exposure meter using electric radiation detectors
- G01J1/44—Electric circuits
- G01J2001/4446—Type of detector
- G01J2001/4473—Phototransistor
-
- 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/30—Semiconductor lamps, e.g. solid state lamps [SSL] light emitting diodes [LED] or organic LED [OLED]
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Spectroscopy & Molecular Physics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Sustainable Development (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The invention provides an LED circuit, electronic equipment and a detection method, wherein one end of an LED in the LED circuit is connected with the output end of a driving signal providing unit, the other end of the LED is connected with a first end of a selector switch at a detection node, and a second end of the selector switch is connected with a reference signal end; the voltage acquisition unit is connected with the detection node, and the processing circuit is connected with the voltage acquisition unit. The detection method comprises the following steps: controlling a change-over switch of the LED circuit to be switched off; acquiring a voltage value of a detection node acquired by a voltage acquisition unit; and determining the attribute value of the ambient light irradiated on the LED according to the voltage value of the detection node and the mapping relation between the predefined voltage value and the light attribute value. In this embodiment, can detect the attribute value of ambient light through LED, need not set up the ambient light sensor in addition, just also can avoid the ambient light sensor and the required great trompil to occupy the technical problem in electronic equipment space, saved electronic equipment's structural space.
Description
Technical Field
The invention relates to the technical field of detection, in particular to an LED circuit, electronic equipment and a detection method.
Background
With the development of detection technology, the functions of electronic devices become more and more powerful, and the ambient light detection function of electronic devices is already a necessary function. The ambient light detection scheme of the existing electronic equipment is as follows: an ambient light sensor is disposed within the electronic device to detect a light attribute value of ambient light. The ambient light sensor is large in size, and optical holes need to be formed in the cover glass, so that good light transmission between the ambient light sensor and the environment is guaranteed. This results in a larger size of the ambient light sensor and the required optical aperture, occupying more structural space.
Therefore, the existing ambient light detection scheme of the electronic equipment has the technical problem of occupying more structural space.
Disclosure of Invention
The embodiment of the invention provides an LED circuit, electronic equipment and a detection method, and aims to solve the technical problem that an environment light detection scheme of the conventional electronic equipment occupies more structural space.
In order to achieve the purpose, the invention provides the following specific scheme:
in a first aspect, an embodiment of the present invention provides an LED circuit, including: the LED, the driving signal providing unit, the reference signal end, the change-over switch, the voltage acquisition unit and the processing circuit;
one end of the LED is connected with the output end of the driving signal providing unit, and the other end of the LED is connected with the first end of the change-over switch to a detection node;
the second end of the change-over switch is connected with the reference signal end;
the voltage acquisition unit is connected with the detection node and is used for acquiring the voltage of the detection node;
the processing circuit is connected with the voltage acquisition unit and used for determining the attribute value of the ambient light irradiated on the LED according to the voltage value of the detection node and the mapping relation between the predefined voltage value and the light attribute value.
In a second aspect, an embodiment of the present invention provides an electronic device, including the LED circuit according to any one of the first aspect.
In a third aspect, an embodiment of the present invention provides a detection method applied to an LED circuit, where the LED circuit includes: the LED driving circuit comprises an LED, a driving signal providing unit, a reference signal end, a selector switch, a voltage acquisition unit and a processing circuit, wherein one end of the LED is connected with the output end of the driving signal providing unit, the other end of the LED is connected with the first end of the selector switch at a detection node, the second end of the selector switch is connected with the reference signal end, the voltage acquisition unit is connected with the detection node, and the processing circuit is connected with the voltage acquisition unit;
the detection method comprises the following steps:
controlling a change-over switch of the LED circuit to be switched off;
acquiring the voltage value of the detection node acquired by the voltage acquisition unit;
and determining the attribute value of the ambient light irradiated on the LED according to the voltage value of the detection node and the mapping relation between the predefined voltage value and the light attribute value.
According to the LED circuit, the electronic device comprising the LED circuit and the detection method applied to the LED circuit, the voltage acquisition unit is arranged in the LED circuit and used for acquiring the voltage of the detection node connected with the LED and the change-over switch. And after the control change-over switch is switched off, acquiring the voltage value of the detection node, and calculating the attribute value of the ambient light irradiated on the LED according to the mapping relation between the voltage value and the light attribute value. In this embodiment, can detect the attribute value of ambient light through LED, need not set up the ambient light sensor in addition, just also can avoid the ambient light sensor and the required great trompil to occupy the technical problem in electronic equipment space, saved electronic equipment's structural space.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic structural diagram of an LED circuit according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of another LED circuit according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of another LED circuit according to an embodiment of the present invention;
fig. 4 is a diagram of a measured waveform of an LED circuit according to an embodiment of the present invention;
FIG. 5 is a diagram of another measured waveform of an LED circuit according to an embodiment of the present invention;
FIG. 6 is a diagram of another measured waveform of an LED circuit according to an embodiment of the present invention;
fig. 7 is a schematic flowchart of a detection method according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a schematic structural diagram of an LED circuit according to an embodiment of the present invention is shown. As shown in fig. 1, an LED circuit 100 includes: the LED110, the driving signal providing unit 120, the reference signal terminal 130, the switch 140, the voltage collecting unit 150 and the processing circuit 180;
one end of the LED110 is connected to the output end of the driving signal providing unit 120, and the other end of the LED110 and the first end 141 of the switch are connected to a detection node 160;
the second terminal 142 of the switch is connected to the reference signal terminal 130;
the voltage collecting unit 150 is connected to the detection node 160, and the voltage collecting unit 150 is configured to collect a voltage of the detection node 160;
the processing circuit 180 is connected to the voltage collecting unit 150, and configured to determine an attribute value of the ambient light irradiated onto the LED110 according to the voltage value of the detection node 160 and a predefined mapping relationship between the voltage value and the light attribute value.
In the LED circuit 100 provided in this embodiment, the voltage of one end of the LED110 is collected by the voltage collecting unit 150. The output terminal of the driving signal providing unit 120 is connected to one end of the LED110, and the other end of the LED110 and the switch 140 are connected to a detection node 160. The driving signal providing unit 120 is configured to provide a driving signal for the LED110, the switch 140 is configured to control on/off of the LED circuit 100, and the voltage collecting unit 150 is configured to collect the voltage at the detection node 160 when the switch 140 is turned off. The processing circuit 180 stores a mapping relationship between the voltage value at the detection node 160 and the light attribute value of the ambient light irradiated on the LED110 in advance, and the processing circuit 180 is connected to the voltage collecting unit 150 to obtain the voltage at the detection node 160 collected by the voltage collecting unit 150 to determine the attribute value of the ambient light irradiated on the LED 110.
When the LED circuit 100 is connected for use, the driving signal providing unit 120 outputs a driving signal to the LED110, and the on/off state of the LED circuit 100 can be controlled by controlling the connection state of the switch 140. The inside of the LED110 is a PN junction with unidirectional conductivity, and when the LED is connected to the circuit in the forward direction, the forward resistance is small and can be ignored, and the reverse resistance is relatively large.
If the switch 140 is turned on, the LED circuit 100 is in a normal operating state, and at this time, a driving signal flows into the LED110, so that the LED110 is in a lighting state, and an electrical signal flowing out of the LED110 flows into the reference signal terminal 130 via the first switch.
If the switch 140 is turned off, the LED circuit 100 is in an open state, and the driving signal cannot flow to the reference signal terminal 130 through the switch 140 after flowing into the LED110, so that the LED110 is in an off state. At this time, the voltage at the detection node 160 approaches the output voltage of the driving signal providing unit 120.
The related switch 140 is used for controlling the on/off of the LED circuit 100, and the implementation schemes of the switch 140 include but are not limited to: analog switches, load switches, [ electronic ] metal Oxide Semiconductor field effect transistors (MOSFETs for short), Bipolar Junction transistors (BJTs for short), relays, thyristors, etc.
In addition, the PN junction in the LED110 also has an internal photoelectric effect. The internal photoelectric effect of the PN junction is that when the PN junction is irradiated by light, the semiconductor material absorbs the energy of photons, and is used to generate free electrons to overflow the surface and generate electron-hole pairs. Specifically, the internal photoelectric effect can be further divided into a photovoltaic effect and a photoconductive effect. The photovoltaic effect is the photovoltaic effect, which means that under the action of a PN junction self-established electric field, excited electrons and holes losing the electrons move reversely to form positive and negative electrodes, and the external expression is that photovoltage is generated at two ends of the PN junction. The photoconductive effect means that the self-conductance of the semiconductor material is increased by the hole pairs generated by the semiconductor material in the PN junction, and the external appearance is that the resistance in the PN junction direction is reduced along with the increase of the light intensity. Therefore, if the LED110 is irradiated by light, a photovoltage is generated across the LED, and the reverse resistance is significantly reduced.
Therefore, when the switch 140 is turned off, if light irradiates the LED110, a photovoltage is generated across the LED110, and the LED110 can be approximated as a variable voltage source. As the light on the LED110 increases, the reverse resistance of the LED110 decreases, the photovoltage across the LED110 increases, and the voltage of the detection node 160 decreases as the photovoltage across the LED110 increases when the output signal of the driving signal output unit is fixed. The corresponding relationship between the voltage value and the attribute value such as the light intensity value is predefined, and the attribute value of the light irradiated to the LED110 can be calculated according to the voltage variation of the detection node 160.
Specifically, the driving types of the LEDs 110 may be classified into a high voltage driving type and a low voltage driving type, and the connection schemes of the LEDs 110 of different driving types are different. The high voltage and the low voltage merely indicate the relative magnitude relationship of the voltage values, and the specific voltage data thereof can be selected according to the specific situation of the circuit, and is not limited herein. For the LEDs 110 of different driving types, the specific connection scheme is as follows:
first, if the driving type of the LED110 is a high voltage driving type, the output voltage of the driving signal providing unit 120 is a high voltage, and the voltage of the reference signal terminal 130 is a low voltage. At this time, the voltage value of the reference signal terminal 130 may be set to be lower than or equal to a first preset voltage value, the anode of the LED110 is connected to the output terminal of the driving signal providing unit 120, and the cathode of the LED110 is connected to the first terminal 141 of the switch. Specifically, the voltage value of the reference signal terminal 130 is lower than a first preset voltage value, which may be lower than or equal to the cut-off voltage of the LED110, or the reference signal terminal 130 may be directly grounded.
Secondly, if the driving type of the LED110 is a low voltage driving type, the anode of the LED110 may be connected to the driving signal providing unit 120, and the output voltage of the driving signal providing unit 120 is a low voltage. The cathode of the LED110 is connected to the reference signal terminal 130 via the switch 140, and the voltage of the reference signal terminal 130 is a high voltage. Specifically, a high voltage signal may be connected to the reference signal terminal 130, the voltage of the high voltage signal is higher than or equal to the cut-off voltage of the LED110, and the output voltage of the output signal providing unit is lower than the cut-off voltage of the LED 110.
In combination with the light detection function that the LED circuit 100 provided by the present embodiment can realize, the LED circuit 100 may also be disposed in an electronic device for detecting light that irradiates the LED110 end in the electronic device. The mapping relationship between the terminal voltage of the LED110 and the attribute value of the ambient light irradiated on the LED110 may be predefined in the electronic device, so that when the switch 140 is turned off, the voltage of the detection node 160 and the predefined mapping relationship are collected, the attribute values such as the light intensity value of the ambient light irradiated on the LED110 may be calculated, and the purpose of detecting the attribute value of the ambient light by using the LED110 in the electronic device may be achieved.
In the LED circuit provided in the embodiment of the present invention, the voltage acquisition unit is disposed in the LED circuit and is used for acquiring the voltage of the detection node connected to the LED and the change-over switch. And after the control change-over switch is switched off, acquiring the voltage value of the detection node, and calculating the attribute value of the ambient light irradiated on the LED according to the mapping relation between the voltage value and the light attribute value. The LED circuit provided by the embodiment can be arranged in the electronic equipment to detect the light attribute value of the ambient light irradiating the electronic equipment, so that the ambient light sensing device does not need to be additionally arranged in the electronic equipment, and the arrangement of components and parts in the electronic equipment and the occupation of the structural space are saved.
On the basis of the above-described embodiment, as shown in fig. 2, the LED110 may include a first LED111 and a second LED112, and the driving signal providing unit 120 includes a first driving signal providing unit 121 and a second driving signal providing unit 122;
an anode of the first LED111 is connected to an output end of the first driving signal providing unit 121, an anode of the second LED112 is connected to an output end of the second driving signal providing unit 122, and a cathode of the first LED111 and a cathode of the second LED112 are both connected to the first end 141 of the switch.
In this embodiment, the LED circuit 100 includes a first LED111 and a second LED112, an anode of each LED110 is correspondingly connected to an output terminal of the driving signal providing unit 120, and the first LED111 and the second LED112 are connected to the first terminal 141 of the switch in parallel. By controlling the closed state of the switch 140, the connection state of the LED110 and the conduction states of the first LED111 and the second LED112 can be controlled.
If the switch 140 is turned on, the first LED111 and the second LED112 are both biased forward, and the LED circuit 100 is in a normal on state. The first and second driving signal providing units 121 and 122 output driving signals to drive the first and second LEDs 111 and 112 to emit light normally.
If the switch 140 is turned off from the closed state, the first driving signal providing unit 121 is controlled to output a high voltage signal, and the second signal providing unit is controlled to output a low voltage signal, the actual signal trend of the LED circuit 100 is as follows: the first driving signal providing unit 121 outputs a driving signal to the second driving signal providing unit 122 via the first LED111, the detection node 160 and the second LED112 in sequence. At this time, the first LED111 is turned on in a forward direction, and the second LED112 is turned off in a reverse direction, and since the internal resistance of the second LED112 is large and is close to the megaohm level or even higher, the LED circuit 100 may be approximately open, and the voltage of the detection node 160 is close to the output voltage of the first driving signal providing unit 121.
At this time, if light is irradiated onto the first LED111, a photo voltage is generated across the first LED111, and as the light is increased, the voltage of the detection node 160 is decreased as the photo voltage across the first LED111 is increased. If light is irradiated onto the second LED112, the reverse resistance of the second LED112 starts to decrease, and the weak current flowing through the first LED111 increases significantly, so that the voltage of the detection node 160 also decreases as the reverse resistance of the second LED112 decreases. Therefore, the change of the attribute value of the ambient light can be obtained by detecting the voltage of the detection node 160.
Further, as shown in fig. 3, the second LED112 may include at least two LEDs, and the second driving signal providing unit 122 includes at least two driving signal providing units, wherein one end of each of the at least two LEDs is connected to the detection node 160, and the other end of each LED is connected to an output end of one signal driving unit, and the at least two driving signal providing units are in one-to-one correspondence with the at least two LEDs.
In this embodiment, the number of the second LEDs 112 is at least two, the number of the second driving signal providing units 122 is at least two, and each LED is correspondingly connected to one driving signal providing unit. When ambient light irradiates on the LEDs, each second LED112 and the first LED111 may form a series circuit, and the light attribute value of the ambient light may be obtained by detecting the voltage value change of the node 160. The scheme that a plurality of parallel circuits measure together can reflect the change of the attribute value of the ambient light more truly so as to further improve the detection accuracy of the ambient light.
Fig. 4 to 6 are schematic diagrams illustrating changes in the attribute value of the ambient light according to the above embodiments. Fig. 4 shows the detection result corresponding to the application of only the first LED111, fig. 5 shows the detection result corresponding to the application of only the second LED112, and fig. 6 shows the detection result obtained by using both the first LED111 and the second LED 112. As is apparent from these figures, the detection effect of using both the first LED111 and the second LED112 is better than the detection scheme using a single LED. Therefore, it may be preferred to use the first LED111 and the at least two second LEDs 112 to monitor the ambient light.
On the basis of the above embodiment, the LED circuit 100 may further include a control unit, a first end of the control unit is connected to the third end 143 of the switch for controlling the on/off of the switch 140, a second end of the control unit is connected to the input end of the first driving signal providing unit 121 for controlling the driving signal output by the first driving signal providing unit 121, and a third end of the control unit is connected to the input end of the second driving signal providing unit 122 for controlling the driving signal output by the second driving signal providing unit 122.
In the present embodiment, a control unit is added to realize automatic control of the LED circuit 100. The control unit includes three control terminals, each connected to the LED circuit 100 to perform a corresponding control function. The first end of the control unit is connected to the third end 143 of the switch for controlling the switch 140 to be turned on or off, so as to control the functional state of the LED circuit 100. The second terminal of the control unit is connected to the input terminal of the first driving signal providing unit 121, and is used for controlling the driving signal output by the first driving signal providing unit 121, for example, controlling the first driving signal providing unit 121 to output a high-voltage driving signal or outputting a low-voltage driving signal. The third terminal of the control unit is connected to the input terminal of the second driving signal providing unit 122 to control the driving signal output by the second driving signal providing unit 122, for example, to control the second driving signal providing unit 122 to output a high-voltage driving signal or a low-voltage driving signal.
Thus, the control unit can automatically control the on/off of the switch 140 and the driving signal output by the driving signal output unit through three control terminals. The LED circuit 100 can automatically control the LED110 to switch between the normal lighting state and the ambient light detection state, or can execute an automatic control scheme of switching the state of the LED110 at a certain cycle or timing.
On the basis of the above embodiments, as shown in fig. 1 to 3, the LED circuit 100 may further include a protection element 170;
one end of the protection element 170 is connected to the output end of the driving signal providing unit 120, and the other end of the protection element 170 is connected to one end of the LED 110.
In this embodiment, in order to avoid damage to the elements such as the LED110 in the LED circuit 100 caused by transient current, the protection element 170 may be additionally provided, and the applied protection element 170 may be a current limiting resistor, such as the resistors R1, R2, and R3 in fig. 1 to 3. The protection element 170 is connected in series between the driving signal output unit and the LED110 to protect the LED110 from being easily damaged.
Embodiments of the present invention further relate to an electronic device including the LED circuit 100 provided in the embodiments shown in fig. 1 to fig. 3. The LED circuit 100 may include: the LED110, the driving signal providing unit 120, the reference signal terminal 130, the switch 140, the voltage collecting unit 150 and the processing circuit 180;
one end of the LED110 is connected to the output end of the driving signal providing unit 120, and the other end of the LED110 and the first end 141 of the switch are connected to a detection node 160;
the second terminal 142 of the switch is connected to the reference signal terminal 130;
the voltage collecting unit 150 is connected to the detection node 160, and the voltage collecting unit 150 is configured to collect a voltage of the detection node 160;
the processing circuit 180 is connected to the voltage collecting unit 150, and configured to determine an attribute value of the ambient light irradiated onto the LED110 according to the voltage value of the detection node 160 and a predefined mapping relationship between the voltage value and the light attribute value.
According to the electronic device provided by the embodiment of the invention, the voltage acquisition unit is arranged in the LED circuit in the electronic device and is used for acquiring the voltage of the detection node connected with the LED and the change-over switch. After the control change-over switch is switched off, the voltage value of the detection node is obtained, and then the attribute value of the ambient light irradiated on the LED can be determined according to the mapping relation between the voltage value and the light attribute value. In this embodiment, can detect the attribute value of ambient light through LED, need not set up the ambient light sensor in addition in electronic equipment, just also can avoid the ambient light sensor and the required great trompil to occupy the technical problem in electronic equipment space, saved electronic equipment's structural space.
Referring to fig. 7, an embodiment of the present invention further provides a detection method, which is applied to an LED circuit, where the LED circuit may be the LED circuit 100 provided in the embodiment shown in fig. 1. The LED circuit 100 includes: the circuit comprises an LED110, a driving signal providing unit 120, a reference signal terminal 130, a switch 140, a voltage collecting unit 150 and a processing circuit 180, wherein one end of the LED110 is connected with the output end of the driving signal providing unit 120, the other end of the LED110 is connected with a first end 141 of the switch to a detection node 160, and a second end 142 of the switch is connected with the reference signal terminal 130; the voltage acquisition unit 150 is connected to the detection node 160, the processing circuit 180 is connected to the voltage acquisition unit 150, and the processing circuit 180 is configured to perform operations related to the detection method provided in this embodiment. As shown in fig. 7, the detection method mainly includes the following steps:
and 703, determining an attribute value of the ambient light irradiated on the LED according to the voltage value of the detection node and a predefined mapping relation between the voltage value and the light attribute value.
In this embodiment, the property value of the light irradiated on the LED110 is determined according to the voltage value at the end of the LED110 by using the internal photoelectric effect of the PN junction in the LED 110. The attribute value may include, but is not limited to, an intensity value, a color temperature value, a color, etc. of the light.
The LED110 in the LED circuit 100 may be an LED110 provided in an electronic device and dedicated to detecting a light ray property value of ambient light, or may be an LED110 inherent in the electronic device, for example, a breathing lamp, a flash lamp, or the like of the electronic device, and the ambient light detection function is executed when the LED110 is in an off state.
One end of the LED110 is connected to the output terminal of the driving signal providing unit 120, and the other end of the LED110 is connected to the sensing node 160. The driving signal output by the driving signal providing unit 120, and the connection scheme with the LED110 are associated with the driving type of the LED 110.
In a specific implementation scheme, if the LED110 is of a high voltage driving type, the voltage value of the reference signal terminal 130 is set to be lower than or equal to a first preset voltage value, the anode of the LED110 is connected to the output terminal of the driving signal providing unit 120, and the cathode of the LED110 is connected to the first terminal 141 of the switch;
and controlling the driving signal providing unit 120 to output a driving signal, wherein the voltage value of the driving signal is higher than or equal to a second preset voltage value.
The voltage of the driving signal output by the driving signal providing unit 120 is a high voltage, which may be set to be higher than or equal to the off-voltage of the LED 110. The voltage of the reference signal terminal 130 is a low voltage, which may be set lower than the off-voltage of the LED110, or the reference signal terminal 130 is grounded.
Accordingly, if the LED110 is of a low voltage driving type, the output terminal of the driving signal providing unit 120 is connected to the cathode of the LED110, and the anode of the LED110 is connected to the detection node 160. The reference signal terminal 130 is at a high voltage, and the output voltage of the driving signal providing unit 120 is at a low voltage. For a specific implementation scheme of setting the voltages of the driving signal providing unit 120 and the reference signal terminal 130 according to the driving type, reference may be made to the above embodiments, and details are not repeated.
If the electronic device detects the attribute value of the ambient light through the LED110, the voltage value of the detection node 160 needs to be acquired when the switch 140 is turned off. If the LED circuit 100 is in a normal on state, the switch 140 in the LED circuit 100 is first controlled to be turned off. When the switch 140 is turned off, the LED circuit 100 is in an open state, and the voltage at the detection node 160 approaches the output voltage of the driving signal providing unit 120. If light irradiates the LED110, the reverse resistance of the LED110 is significantly reduced, and a photovoltage is generated across the LED110, and the voltage of the detection node 160 is reduced as the intensity of the light is increased.
The mapping relationship between the voltage value of the detection node 160 and the light attribute value is predefined in the electronic device, and is used for determining the attribute value of the light irradiated on the LED110 according to the voltage value of the LED 110. After the electronic device obtains the voltage value of the detection node 160 collected by the voltage collecting unit 150, the electronic device directly searches the attribute value of the corresponding light according to the mapping relationship, or calculates the attribute value of the light irradiated on the LED 110.
After the electronic device obtains the attribute value of the ambient light, parameter values of some components of the electronic device, such as display brightness of a display screen, may be adjusted according to the attribute value of the ambient light. If the light intensity value of the ambient light is calculated to be larger, the display screen can be lightened. If the light intensity value of the ambient light is calculated to be smaller, the display screen can be dimmed. The electronic device can also perform other corresponding adjustments on the output parameters of the components according to the attribute values of the color temperature, the color and the like of the ambient light, and is not limited.
According to the detection method provided by the embodiment of the invention, the attribute value of the ambient light irradiated on the LED can be calculated by collecting the voltage of the detection node connected with the LED and the change-over switch and then according to the mapping relation between the voltage value and the light attribute value. In this embodiment, can detect the attribute value of ambient light through LED, need not set up the ambient light sensor in addition, just also can avoid the ambient light sensor and the required great trompil to occupy the technical problem in electronic equipment space, saved electronic equipment's structural space.
On the basis of the above embodiment, the step of controlling the switch 140 of the LED circuit 100 to turn off in step 701 may include:
if a light detection instruction is detected, switching off a change-over switch of the LED circuit;
after the step of turning off the switch of the LED, the method further comprises:
and if the LED working instruction is detected, closing the change-over switch, wherein the LED working instruction is used for indicating the LED to be lightened.
In this embodiment, when the electronic device detects the light detection command, the switch 140 of the LED circuit 100 is turned off, the LED circuit 100 is controlled to switch to the receiving mode (RX mode), and the voltage detection of the detection node 160 and the calculation of the light attribute value are performed. After the switch 140 of the LED circuit 100 is turned off, if an operating instruction of the LED110 is detected and the operating instruction of the LED110 is used to instruct the LED110 to be turned on, the switch 140 is turned on, the LED circuit 100 is switched to a transmission mode (TX mode), the LED circuit 100 is normally turned on, and the LED110 is turned on.
Thus, the electronic device can control the LED circuit 100 to switch between the normal operating state and the ambient light detection state according to the detection requirement, thereby realizing multiple functions of the LED circuit 100.
Fig. 2 is a schematic structural diagram of an LED circuit 100 applied in another detection method according to an embodiment of the present invention. The LED110 includes a first LED111 and a second LED112, the driving signal providing unit 120 includes a first driving signal providing unit 121 and a second driving signal providing unit 122, an anode of the first LED111 is connected to an output terminal of the first driving signal providing unit 121, an anode of the second LED112 is connected to an output terminal of the second driving signal providing unit 122, and a cathode of the first LED111 and a cathode of the second LED112 are both connected to the first terminal 141 of the switch;
before the step of obtaining the voltage value of the detection node collected by the voltage collecting unit, the method further includes:
the first driving signal providing unit 121 is controlled to output a first driving signal, and the second driving signal providing unit 122 outputs a second driving signal, where a voltage value of the first driving signal is higher than or equal to a third preset voltage value, a voltage value of the second driving signal is lower than or equal to a fourth preset voltage value, and the third preset voltage value is higher than the fourth preset voltage value.
In the present embodiment, the first LED111 and the second LED112 detect the attribute value of the ambient light. The LED circuit 100 includes a first LED111 and a second LED112 connected in parallel, the first LED111 being connected to an output terminal of the first driving signal providing unit 121, and the second LED112 being connected to an output terminal of the second driving signal providing unit 122.
When the ambient light detection is performed, the first driving signal providing unit 121 is controlled to output the first driving signal as a high voltage signal, and the second driving signal providing unit 122 is controlled to output the second driving signal as a low voltage signal, so as to control the switch 140 to be turned off. The actual signal profile of the LED circuit 100 is: the first driving signal providing unit 121 outputs a driving signal to the second driving signal providing unit 122 via the first LED111, the detection node 160 and the second LED112 in sequence. At this time, the first LED111 is turned on in a forward direction, and the second LED112 is turned off in a reverse direction, and since the internal resistance of the second LED112 is large and is close to the megaohm level or even higher, the LED circuit 100 may be approximately open, and the voltage of the detection node 160 is close to the output voltage of the first driving signal providing unit 121.
If light irradiates the first LED111, a photo voltage is generated across the first LED111, and as the light increases, the voltage of the detection node 160 decreases as the photo voltage across the first LED111 increases. If light is irradiated onto the second LED112, the reverse resistance of the second LED112 starts to decrease, and the weak current flowing through the first LED111 increases significantly, so that the voltage of the detection node 160 also decreases as the reverse resistance of the second LED112 decreases. Therefore, the change of the attribute value of the ambient light can be obtained by detecting the voltage of the detection node 160.
In addition, more branches of the second LED112 may be arranged in parallel with the branches of the first LED 111. When ambient light irradiates the LEDs 110, each of the second LEDs 112 and the first LED may form a series circuit, and the light property value of the ambient light may be obtained by detecting the voltage value of the node 160. The scheme that a plurality of parallel circuits measure together can reflect the change of the attribute value of the ambient light more truly so as to further improve the detection accuracy of the ambient light.
In summary, according to the detection method provided by this embodiment, the attribute value of the ambient light can be detected through the LED, so that the LED resource in the electronic device is fully utilized, and the ambient light sensor is not required to be additionally disposed, so that the technical problem that the ambient light sensor and the required large opening occupy the space of the electronic device can be avoided, the structural space of the electronic device is saved, and the limitation of the optical opening on the appearance of the electronic device can be reduced. For a specific implementation process of the detection method provided by the embodiment of the present invention, reference may be made to the specific implementation process of the LED circuit provided by the above embodiment, which is not described in detail herein.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (9)
1. An LED circuit, comprising: the LED, the driving signal providing unit, the reference signal end, the change-over switch, the voltage acquisition unit and the processing circuit;
one end of the LED is connected with the output end of the driving signal providing unit, and the other end of the LED is connected with the first end of the change-over switch to a detection node;
the second end of the change-over switch is connected with the reference signal end;
the voltage acquisition unit is connected with the detection node and is used for acquiring the voltage of the detection node;
the processing circuit is connected with the voltage acquisition unit and is used for determining the attribute value of the ambient light irradiated on the LED according to the voltage value of the detection node and the mapping relation between the predefined voltage value and the light attribute value;
the LED is a breathing lamp or a flash lamp of the electronic equipment;
the LEDs comprise a first LED and a second LED, and the driving signal providing unit comprises a first driving signal providing unit and a second driving signal providing unit;
the anode of the first LED is connected with the output end of the first driving signal providing unit, the anode of the second LED is connected with the output end of the second driving signal providing unit, and the cathode of the first LED and the cathode of the second LED are both connected with the first end of the change-over switch;
when the switch is turned off, the first driving signal providing unit outputs a high voltage signal, and the second driving signal providing unit outputs a low voltage signal, the first LED is turned on in a forward direction, the second LED is turned off in a reverse direction, and a voltage of the detection node decreases with an increase in a photo voltage across the first LED or a decrease in a reverse resistance of the second LED.
2. The LED circuit of claim 1, wherein the voltage value of the reference signal terminal is lower than or equal to a first preset voltage value, the anode of the LED is connected to the output terminal of the driving signal providing unit, and the cathode of the LED is connected to the first terminal of the switch.
3. The LED circuit according to claim 1, further comprising a control unit, wherein a first terminal of the control unit is connected to a third terminal of the switch for controlling the on/off of the switch, a second terminal of the control unit is connected to an input terminal of the first driving signal providing unit for controlling the driving signal output by the first driving signal providing unit, and a third terminal of the control unit is connected to an input terminal of the second driving signal providing unit for controlling the driving signal output by the second driving signal providing unit.
4. The LED circuit of claim 1 or 3, wherein the second LED comprises at least two LEDs, and the second driving signal providing unit comprises at least two driving signal providing units, wherein one end of each of the at least two LEDs is connected to the detection node, the other end of each LED is connected to an output end of one signal driving unit, and the at least two driving signal providing units are in one-to-one correspondence with the at least two LEDs.
5. The LED circuit of claim 1, further comprising a protection element;
one end of the protection element is connected with the output end of the driving signal providing unit, and the other end of the protection element is connected with one end of the LED.
6. An electronic device characterized by comprising the LED circuit according to any one of claims 1 to 5.
7. A detection method is applied to an LED circuit, and the LED circuit comprises the following steps: the LED driving circuit comprises an LED, a driving signal providing unit, a reference signal end, a selector switch, a voltage acquisition unit and a processing circuit, wherein one end of the LED is connected with the output end of the driving signal providing unit, the other end of the LED is connected with the first end of the selector switch at a detection node, the second end of the selector switch is connected with the reference signal end, the voltage acquisition unit is connected with the detection node, and the processing circuit is connected with the voltage acquisition unit;
the detection method comprises the following steps:
controlling a change-over switch of the LED circuit to be switched off;
acquiring the voltage value of the detection node acquired by the voltage acquisition unit;
determining an attribute value of ambient light irradiated on the LED according to the voltage value of the detection node and a predefined mapping relation between the voltage value and a light attribute value;
the LED is a breathing lamp or a flash lamp of the electronic equipment;
the LEDs comprise a first LED and a second LED, the driving signal providing unit comprises a first driving signal providing unit and a second driving signal providing unit, the anode of the first LED is connected with the output end of the first driving signal providing unit, the anode of the second LED is connected with the output end of the second driving signal providing unit, and the cathode of the first LED and the cathode of the second LED are both connected with the first end of the change-over switch;
before the step of obtaining the voltage value of the detection node collected by the voltage collecting unit, the method further includes:
the driving method comprises the steps of controlling a first driving signal providing unit to output a first driving signal, and controlling a second driving signal providing unit to output a second driving signal, wherein the voltage value of the first driving signal is higher than or equal to a third preset voltage value, the voltage value of the second driving signal is lower than or equal to a fourth preset voltage value, and the third preset voltage value is higher than the fourth preset voltage value;
when the switch is turned off, the first driving signal providing unit outputs a high voltage signal, and the second driving signal providing unit outputs a low voltage signal, the first LED is turned on in a forward direction, the second LED is turned off in a reverse direction, and a voltage of the detection node decreases with an increase in a photo voltage across the first LED or a decrease in a reverse resistance of the second LED.
8. The detection method according to claim 7, wherein a voltage value of the reference signal terminal is lower than or equal to a first preset voltage value, an anode of the LED is connected to the output terminal of the driving signal providing unit, and a cathode of the LED is connected to the first terminal of the switch;
before the step of obtaining the voltage value of the detection node collected by the voltage collecting unit, the method further includes:
and controlling the driving signal providing unit to output a driving signal, wherein the voltage value of the driving signal is higher than or equal to a second preset voltage value.
9. The method of claim 7, wherein the step of controlling the switch of the LED circuit to open comprises:
if a light detection instruction is detected, the change-over switch of the LED is switched off;
after the step of turning off the switch of the LED, the method further comprises:
and if the LED working instruction is detected, closing the change-over switch, wherein the LED working instruction is used for indicating the LED to be lightened.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810848037.8A CN108709638B (en) | 2018-07-27 | 2018-07-27 | LED circuit, electronic equipment and detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810848037.8A CN108709638B (en) | 2018-07-27 | 2018-07-27 | LED circuit, electronic equipment and detection method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108709638A CN108709638A (en) | 2018-10-26 |
CN108709638B true CN108709638B (en) | 2021-01-08 |
Family
ID=63875433
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810848037.8A Active CN108709638B (en) | 2018-07-27 | 2018-07-27 | LED circuit, electronic equipment and detection method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108709638B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112967662B (en) * | 2020-10-30 | 2022-05-13 | 重庆康佳光电技术研究院有限公司 | LED driving method and driving device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101404144A (en) * | 2008-11-10 | 2009-04-08 | 友达光电(苏州)有限公司 | Electronic device with automatic brightness adjustment function |
CN102622970A (en) * | 2011-01-28 | 2012-08-01 | 美国博通公司 | Backlight module and control method thereof |
CN102937479A (en) * | 2012-11-15 | 2013-02-20 | 北京昆腾微电子有限公司 | Light intensity detection circuit and method |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6664744B2 (en) * | 2002-04-03 | 2003-12-16 | Mitsubishi Electric Research Laboratories, Inc. | Automatic backlight for handheld devices |
CN101227777A (en) * | 2006-10-08 | 2008-07-23 | 启萌科技有限公司 | Light emitting device and control method thereof |
CN102740530B (en) * | 2011-03-31 | 2016-03-30 | 海洋王照明科技股份有限公司 | A kind of LED signal control circuit, LED signal lamp and LED signal control method |
CN205015086U (en) * | 2015-08-17 | 2016-02-03 | 深圳市亿博兰科技有限公司 | Sunshine light intensity sensor and flowerpot |
JP2018010439A (en) * | 2016-07-13 | 2018-01-18 | 株式会社リコー | Coordinate detection device |
US9974135B1 (en) * | 2017-09-08 | 2018-05-15 | Lumileds Llc | Optoelectronic device and adaptive illumination system using the same |
-
2018
- 2018-07-27 CN CN201810848037.8A patent/CN108709638B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101404144A (en) * | 2008-11-10 | 2009-04-08 | 友达光电(苏州)有限公司 | Electronic device with automatic brightness adjustment function |
CN102622970A (en) * | 2011-01-28 | 2012-08-01 | 美国博通公司 | Backlight module and control method thereof |
CN102937479A (en) * | 2012-11-15 | 2013-02-20 | 北京昆腾微电子有限公司 | Light intensity detection circuit and method |
Also Published As
Publication number | Publication date |
---|---|
CN108709638A (en) | 2018-10-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108318797A (en) | System and method for desaturation detection | |
CN102842893B (en) | Short-circuit protection and control circuit for LED (Lighnt emitting Diode) strip lamp | |
WO2016045644A1 (en) | Bus bar current control circuit, constant-current driving controller and led light source | |
AU2013262421A1 (en) | Method, apparatus and system for controlling an electrical load | |
CN109683012A (en) | For measuring load current and for diagnosing unloaded or overload system | |
WO2017113550A1 (en) | Operational amplifier, driver interface, measuring and control device, driver circuit and driver | |
CN108709638B (en) | LED circuit, electronic equipment and detection method | |
CN112449466B (en) | Linear LED driving circuit, power switch detection method and dimming control method | |
CN205210746U (en) | Constant current control ware and constant current control circuit | |
CN204291474U (en) | LED illumination drive unit and the vehicle with this drive unit | |
CN213126552U (en) | Light emitting diode control circuit and display device | |
CN109991521B (en) | Light emitting diode detection circuit and device | |
CN103874294B (en) | A kind of controlling light illuminating apparatus of sewing machine | |
US20160242249A1 (en) | Light source unit and lighting fixture | |
US3925771A (en) | Voltage checking means for an electric circuit employing two power sources | |
CN108877614B (en) | LED circuit, display screen, electronic equipment and detection method | |
CN109856524A (en) | Voltage measurement method and tension measuring circuit | |
CN214427480U (en) | Multi-path voltage detection circuit and test fixture | |
CN207011029U (en) | LED light control and key input time-division multiplexing circuit | |
CN109037384A (en) | Adjustable photo resistance | |
CN103200735A (en) | Light-emitting diode (LED) actuator preventing LED from flickering | |
CN103376157A (en) | Luminaire illuminance detection device | |
CN203167355U (en) | LED driver preventing LED from flickering | |
JP2022104280A (en) | Electric leakage detection device | |
CN109917306B (en) | Device for testing function of adjusting end of power supply product |
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 |