CN107957563B - Lamp state detection circuit and device - Google Patents
Lamp state detection circuit and device Download PDFInfo
- Publication number
- CN107957563B CN107957563B CN201711129729.9A CN201711129729A CN107957563B CN 107957563 B CN107957563 B CN 107957563B CN 201711129729 A CN201711129729 A CN 201711129729A CN 107957563 B CN107957563 B CN 107957563B
- Authority
- CN
- China
- Prior art keywords
- module
- signal
- terminal
- output
- resistor
- 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
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/44—Testing lamps
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The invention discloses a lamp state detection circuit and a lamp state detection device, which aim to solve the problem that the lamp state detection circuit in the prior art is high in power consumption. The lamp state detection circuit includes: the device comprises a photosensitive module, a bias module, a processing module, a first comparator and a second comparator; the photosensitive module is used for outputting a photosensitive signal according to the illumination intensity of the light irradiating the photosensitive module; the bias module is used for adding a bias signal to the signal output by the photosensitive module to obtain a first signal; the processing module is used for processing the first signal to obtain a second signal, a third signal and a fourth signal; the first comparator is used for comparing the second signal with the third signal to obtain a first output result, and the first output result is used for detecting a light-on event; the second comparator is configured to compare the first signal with the fourth signal to obtain a second output result, and the second output result is used to detect a light-off event.
Description
Technical Field
The invention relates to the technical field of electronic circuits, in particular to a lamp state detection circuit and a lamp state detection device.
Background
The tube core of the photosensitive tube is a PN junction with photosensitive characteristics, has unidirectional conductivity and needs to be applied with reverse voltage during operation. When no light is irradiated, the saturation reverse leakage current (namely dark current) of the photosensitive tube is very small, and the photosensitive tube is cut off at the moment; when illuminated, the saturation reverse leakage current of the photodiode increases, forming a photocurrent, wherein the photocurrent increases with increasing intensity of the incident illumination. In the prior art, a photosensitive tube and a single chip microcomputer are used for detecting the state of a lamp in an environment, a circuit schematic diagram is shown in fig. 1, a power supply (VCC) provides reverse voltage for the photosensitive tube and supplies power to the single chip microcomputer, an output end of the photosensitive tube is connected with an Analog-to-digital conversion (ADC) interface of the single chip microcomputer, the single chip microcomputer continuously collects signals output by the photosensitive tube, and the state of the lamp is determined according to the collected signals.
The single chip microcomputer needs to work continuously when the state of the lamp is detected, and the power consumption of the single chip microcomputer is milliampere (mA) level, so that the power consumption of the lamp state detection circuit shown in the figure 1 is large.
Disclosure of Invention
The embodiment of the invention provides a lamp state detection circuit and a lamp state detection device, which aim to solve the problem that the lamp state detection circuit in the prior art is high in power consumption.
The embodiment of the invention provides the following specific technical scheme:
in a first aspect, an embodiment of the present invention provides a lamp status detection circuit, including: the device comprises a photosensitive module, a bias module, a processing module, a first comparator and a second comparator;
the photosensitive module is used for outputting a photosensitive signal according to the illumination intensity of the light irradiating the photosensitive module;
the bias module is used for adding a bias signal to the signal output by the photosensitive module to obtain a first signal added with the bias signal;
the processing module is used for processing the first signal to obtain a second signal, a third signal and a fourth signal;
the first comparator is used for comparing the second signal with the third signal to obtain a first output result, and the first output result is used for detecting a light-on event;
the second comparator is configured to compare the first signal with the fourth signal to obtain a second output result, and the second output result is used to detect a light-off event.
The output end of the photosensitive module is connected with the input end of the bias module, the output end of the bias module is respectively connected with the input end of the processing module and the first input end of the second comparator, and the output end of the processing module is respectively connected with the input end of the first comparator and the second input end of the second comparator.
In a possible embodiment, the lamp status detection circuit further includes a blocking module, an input end of the blocking module is connected to an output end of the photosensitive module, and an output end of the blocking module is connected to an input end of the bias module;
the blocking module is used for removing the direct current signal in the photosensitive signal output by the photosensitive module and outputting the variable quantity of the photosensitive signal.
In a possible embodiment, the dc blocking module is a first capacitor.
In a possible embodiment, the photosensitive module includes a photosensitive element and a first resistor, a first end of the first resistor is connected to the photosensitive element and the input end of the bias module, respectively, and a second end of the first resistor is grounded.
In a possible embodiment, the photosensitive element is a photodiode, a phototransistor, or a photoresistor.
In a possible implementation manner, the bias module includes a second resistor and a third resistor, wherein a first end of the second resistor is connected to a power supply, a second end of the second resistor is connected to the output end of the photosensitive module, the first end of the third resistor, and the input end of the first processing module, respectively, and a second end of the third resistor is grounded.
In a possible implementation manner, the processing module includes a first sub-processing module and a second sub-processing module, the first sub-processing module is configured to process the first signal to obtain the second signal and the third signal, and the second sub-processing module processes the first signal to obtain the fourth signal.
In a possible implementation manner, the first sub-processing module specifically includes: the input end of the first voltage division module is connected with the output end of the bias module, the output end of the first voltage division module is connected with the first input end of the first comparator, the input end of the first delay module is connected with the output end of the bias module, and the output end of the first delay module is connected with the second input end of the first comparator;
the first voltage division module is used for performing voltage division processing on the first signal output by the bias module to obtain the second signal; the first delay module is configured to perform delay processing on the first signal output by the bias module to obtain the third signal.
In a possible embodiment, the first voltage division module includes a fourth resistor and a fifth resistor, wherein a first terminal of the fourth resistor is connected to the output terminal of the bias module, a second terminal of the fourth resistor is respectively connected to a first terminal of the fifth resistor and the first input terminal of the first comparator, and a second terminal of the fifth resistor is grounded.
In a possible implementation manner, the first delay module includes a sixth resistor and a second capacitor, where a first end of the sixth resistor is connected to the output end of the bias module, a second end of the sixth resistor is connected to the first end of the second capacitor and the second input end of the first comparator, respectively, and a second end of the second capacitor is grounded.
In a possible embodiment, when the first input terminal of the first comparator is an inverting input terminal and the second input terminal of the first comparator is a non-inverting input terminal, if a light-on event occurs, the first output result is a low level, otherwise, the first output result is a high level.
In a possible implementation manner, the second sub-processing module specifically includes: the input end of the second voltage division module is connected with the output end of the bias module, the output end of the second voltage division module is connected with the input end of the second delay module, and the output end of the second delay module is connected with the second input end of the second comparator;
the second voltage division module is used for performing voltage division processing on the first signal output by the bias module and outputting a signal after voltage division processing; and the second time delay module is used for carrying out time delay processing on the signal output by the second voltage division module to obtain the third signal.
In a possible embodiment, the second voltage division module includes a seventh resistor and an eighth resistor, wherein a first end of the seventh resistor is connected to the input terminal of the bias module, a second end of the seventh resistor is connected to the input terminal of the second delay module and the first end of the eighth resistor, respectively, and a second end of the eighth resistor is grounded.
In a possible implementation manner, the second delay module includes a ninth resistor and a third capacitor, wherein a first end of the ninth resistor is connected to the output end of the second voltage dividing module, a second end of the ninth resistor is connected to the first end of the third capacitor and the second input end of the second comparator, respectively, and a second end of the third capacitor is grounded.
In a possible embodiment, when the first input terminal of the second comparator is an inverting input terminal and the second input terminal of the second comparator is a non-inverting input terminal, if a light-off event occurs, the second output result is a high level, otherwise, the second output result is a low level.
In a possible implementation manner, the lamp state detection circuit further includes a filtering module, an input end of the filtering module is connected with an output end of the photosensitive module, and an output end of the filtering module is connected with an input end of the blocking module, so as to filter out high-frequency interference in a photosensitive signal output by the photosensitive module.
In a possible implementation manner, the filtering module is a fourth capacitor, a first end of the fourth capacitor is connected to the output end of the photosensitive module and the input end of the bias module, respectively, and a second end of the fourth capacitor is grounded.
In a second aspect, an embodiment of the present invention further provides a lamp status detection apparatus, including any one of the above lamp status detection circuits provided in the embodiments of the present invention.
Based on the above technical solution, in the embodiment of the present invention, the lamp state detection circuit includes a photosensitive module, a bias module, a processing module, a first comparator and a second comparator, the first comparator compares a second signal and a third signal obtained by processing a first signal output by the bias module by the processing module, and detects a lamp-on event, the second comparator compares a first signal output by the bias module and a fourth signal obtained by processing the first signal output by the bias module by the processing module, and detects a lamp-off event, so as to achieve detection of the lamp state, where the first signal output by the bias module is obtained by adding the bias signal to a variation of the photosensitive signal output by the photosensitive module. In addition, the lamp state detection circuit provided by the embodiment of the invention detects the state of the lamp by using the comparator, and the power consumption of the comparator is in microampere (muA) level.
Drawings
FIG. 1 is a schematic diagram of a prior art lamp status detection circuit;
fig. 2 is a schematic structural diagram of a lamp status detection circuit according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a lamp status detection circuit according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a lamp status detection circuit according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a variation of the second signal, the third signal and the first output result with illumination intensity according to an embodiment of the present invention;
fig. 6a is a schematic structural diagram of a lamp status detection circuit according to an embodiment of the present invention;
fig. 6b is a schematic structural diagram of a lamp status detection circuit according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating a fourth signal, a first signal and a second output result varying with illumination intensity according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a lamp status detection circuit according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings.
An embodiment of the present invention provides a lamp status detection circuit, as shown in fig. 2, including: the photosensitive module 201, the bias module 202, the processing module 203, the first comparator 204 and the second comparator 205, wherein an output end of the photosensitive module 201 is connected to an input end of the bias module 202, an output end of the bias module 202 is respectively connected to an input end of the processing module 203 and a first input end of the second comparator 205, and an output end of the processing module 203 is respectively connected to two input ends of the first comparator 205 and a second input end of the second comparator 207.
The photosensitive module 201 is used for outputting a photosensitive signal according to the illumination intensity of the light irradiated on the photosensitive module 201; the bias module 202 is configured to add a bias signal to a signal output by the photosensitive module 202 to obtain a first signal after the bias signal is added, so as to ensure that a voltage difference can be formed between two input ends of the first comparator 204 when there is no illumination (i.e., when an output signal of the photosensitive element (e.g., a current output by a photodiode or a phototransistor) is weak); the processing module 203 is configured to process the first signal output by the bias module 202 to obtain a second signal, a third signal, and a fourth signal; a first comparator 204, configured to compare the second signal and the third signal output by the processing module 203 to obtain a first output result, where the first output result is used to detect a light-on event; and the second comparator 205 is configured to compare the first signal output by the bias module 203 with the fourth signal output by the processing module 203 to obtain a second output result, where the second output result is used to detect a light-off event.
In practical implementation, in the above-mentioned lamp status detecting circuit provided in the embodiment of the present invention, the power terminals of the photosensitive module 201, the first comparator 204, and the second comparator 205 are further connected to a power supply, and the power supply is used for supplying power to the photosensitive module 201, the first comparator 204, and the second comparator 205.
In specific implementation, the lamp status detection circuit provided in the embodiment of the present invention further includes a blocking module 206, configured to remove a dc signal from the photosensitive signal output by the photosensitive module 201 and output a variation of the photosensitive signal output by the photosensitive module, where an input end of the blocking module 206 is connected to an output end of the photosensitive module 201, and an output end of the blocking module 206 is connected to an input end of the bias module 202.
In a specific implementation, the lamp status detection circuit provided in the embodiment of the present invention further includes a filtering module 207, configured to filter high-frequency interference in the photosensitive signal output by the photosensitive module 201, so as to improve accuracy of the first output result and the second output result, so as to achieve an aim of improving accuracy of the lamp status detection result. When the lamp state detection circuit comprises the blocking module 206, the input end of the filtering module 207 is connected with the output end of the photosensitive module 201, the output end of the filtering module 207 is connected with the input end of the blocking module 206, when the lamp state detection circuit does not comprise the blocking module 206, the input end of the filtering module 207 is connected with the output end of the photosensitive module 201, and the output end of the filtering module 207 is connected with the input end of the biasing module 202.
In specific implementation, in the lamp status detecting circuit provided in the embodiment of the present invention, as shown in fig. 3, the processing module 203 includes a first sub-processing module 301 and a second sub-processing module 302, where the first sub-processing module 301 is configured to process the first signal output by the offset module 202 to obtain a second signal and a third signal, and the second sub-processing module 302 is configured to process the first signal output by the offset module 202 to obtain a fourth signal.
In practical implementation, in the lamp status detection circuit provided in the embodiment of the present invention, as shown in fig. 4, the first sub-processing module 301 specifically includes: the circuit comprises a first voltage division module 401 and a first time delay module 402, wherein the input end of the first voltage division module 401 is connected with the output end of the bias module 202, the output end of the first voltage division module 401 is connected with the first input end of the first comparator 204, the input end of the first time delay module 402 is connected with the output end of the bias module 202, and the output end of the first time delay module 402 is connected with the second input end of the first comparator 204. The first voltage dividing module 401 is configured to perform voltage dividing processing on the first signal output by the bias module 202 to obtain a second signal; the first delay module 402 is configured to perform delay processing on the first signal output by the bias module 202 to obtain a third signal.
In specific implementation, when the output end of the first voltage division module 401 is connected to the first input end of the first comparator 204, the output end of the first delay module 402 is connected to the second input end of the first comparator 204, the first input end of the first comparator 204 is connected to the inverting input end, and the second input end of the first comparator 204 is connected to the non-inverting input end, if a light-on event occurs, the first output result is a low level, otherwise, the first output result is a high level. At this time, the signal U1_3 output by the first delay module 402 (i.e. the signal obtained by performing the delay processing on the signal output by the bias module 202), the signal U1_4 output by the first voltage division module 401 (i.e. the signal obtained by performing the voltage division processing on the signal output by the bias module 203), and the result of the first output result U1_1 obtained by the first comparator 204 varying with the illumination intensity are shown in fig. 5. When the illumination intensity is not changed, U1_1 is high because U1_3 is greater than U1_4, i.e., the voltage at the non-inverting input terminal of the first comparator 204 is greater than the voltage at the inverting input terminal of the first comparator 204; when a light-on event occurs and the illumination intensity is increased (the voltage change amount corresponding to the increased illumination intensity makes the voltage at the inverting input end of the first comparator 204 larger than that at the non-inverting input end), due to the existence of the delay of U1_3, the slope of the rising edge of U1_4 is larger than that of the rising edge of U1_3, so that U1_4 is larger than U1_3, U1_1 is turned over and becomes low level until U1_3 is larger than U1_4, and U1_1 becomes high level; when a light-off event occurs, the illumination intensity is weakened, and due to the fact that U1_3 has time delay, the slope of the falling edge of U1_4 is larger than that of the falling edge of U1_3, and U1_4 is smaller than U1_3, U1_1 keeps high level. When the U1_1 changes from low to high, the lamp is turned on if the second output result obtained by the second comparator 205 does not change.
In specific implementation, when the output end of the first voltage division module 401 is connected to the first input end of the first comparator 204, the output end of the first delay module 402 is connected to the second input end of the first comparator 204, the first input end of the first comparator 204 is connected to the non-inverting input end, and the second input end of the first comparator 204 is connected to the inverting input end, if a light-on event occurs, the first output result is a high level, otherwise, the first output result is a low level. When the illumination intensity is not changed, since U1_3 is greater than U1_4, U1_1 remains low; when the light-on event occurs and the illumination intensity is increased, due to the fact that U1_3 has time delay, the slope of the rising edge of U1_4 is larger than that of the rising edge of U1_3, so that U1_4 is larger than U1_3, U1_1 overturns and becomes high level until U1_3 is larger than U1_4, and U1_1 becomes low level; when a light-off event occurs, the illumination intensity is weakened, and due to the fact that U1_3 has time delay, the slope of the falling edge of U1_4 is larger than that of the falling edge of U1_3, and U1_4 is smaller than U1_3, U1_1 becomes low level. When the U1_1 changes from high to low, the lamp is turned on if the second output result obtained by the second comparator 205 does not change.
Specifically, in the lamp status detection circuit provided in the embodiment of the present invention, as shown in fig. 6a, the second sub-processing module 302 specifically includes: the input end of the second voltage division module 601 is connected with the output end of the bias module 202, the output end of the second voltage division module 601 is connected with the input end of the second delay module 602, and the output end of the second delay module 602 is connected with the second input end of the second comparator 205, wherein the second voltage division module 601 is used for performing voltage division processing on the first signal output by the bias module 202 and outputting a signal after the voltage division processing, and the second delay module 602 is used for performing delay processing on the signal output by the second voltage division module 601 to obtain a fourth signal. Or, as shown in fig. 6b, an input end of the second delay module 602 is connected to an output end of the bias module 202, an output end of the second delay module 602 is connected to an input end of the second voltage division module 601, and an output end of the second voltage division module 601 is connected to a second input end of the second comparator 205, where the second delay module 601 is configured to perform delay processing on the first signal output by the bias module 202 and output a delayed signal, and the second voltage division module 601 is configured to perform voltage division processing on the signal output by the second delay module 602 to obtain a fourth signal.
In specific implementation, when the output end of the second voltage dividing module 61 or the output end of the second delay module 602 is connected to the second input end of the second comparator 205, and the second input end of the second comparator 205 is a non-inverting input end, if a light-off event occurs, the second output result is a high level, otherwise, the second output result is a low level. When the output terminal of the second voltage dividing module 601 or the output terminal of the second delay module 602 is connected to the non-inverting input terminal of the second comparator 205, and the output terminal of the offset module 202 is connected to the inverting input terminal of the second comparator 205, the signal U2_3 output by the second voltage dividing module 601 or the signal U3578 _3 output by the second delay module 602, the signal U2_4 output by the offset module 202, and the second output result U2_1 obtained by the second comparator 205 according to U2_3 and U2_4 are shown in fig. 7. When the illumination intensity is not changed, since U2_4 is greater than U2_3, U2_1 is low; when the light-on event occurs and the illumination intensity is increased, due to the fact that U2_3 has time delay, the slope of the rising edge of U2_4 is greater than that of the rising edge of U2_3, U2_4 is greater than U2_3, and U2_1 keeps low level; when a light-off event occurs and the illumination intensity is reduced (the voltage variation corresponding to the reduced illumination is that the voltage at the non-inverting input end of the second comparator 205 is greater than that at the inverting input end), because U2_3 has a delay, the slope of the falling edge of U2_4 is greater than that of the falling edge of U2_3, U2_3 is greater than U2_4, and U2_1 is inverted and becomes high level until U2_3 is less than U2_4 and U2_1 becomes low level. When the U2_1 changes from high to low, the lamp is in the off state if the first output result obtained by the first comparator 204 does not change.
In a specific implementation, when the output terminal of the second voltage dividing module 601 or the output terminal of the second delay module 602 is connected to the second input terminal of the second comparator 205, and the second input terminal of the second comparator 205 is an inverting input terminal, if a light-off event occurs, the second output result is a low level, otherwise, the second output result is a high level. When the output terminal of the second voltage dividing module 601 or the output terminal of the second delay module 602 is connected to the inverting input terminal of the second comparator 207 and the output terminal of the offset module 202 is connected to the non-inverting input terminal of the second comparator 205, and the illumination intensity is not changed, U2_1 is at a high level because U2_4 is greater than U2_ 3; when the light-on event occurs and the illumination intensity is increased, due to the fact that U2_3 has time delay, the slope of the rising edge of U2_4 is greater than that of the rising edge of U2_3, U2_4 is greater than U2_3, and U2_1 keeps high level; when a light-off event occurs and the illumination intensity is reduced, due to the fact that U2_3 has time delay, the slope of the falling edge of U2_4 is larger than that of the falling edge of U2_3, U2_3 is larger than U2_4, U2_1 overturns and becomes low, and the U2_3 is smaller than U2_4, and U2_1 becomes high. When the U2_1 changes from low to high, the lamp is in the off state if the first output result obtained by the first comparator 204 does not change.
The lamp state detection circuit provided by the present invention will be described in detail with reference to the following embodiments. It should be noted that the present embodiment is intended to better explain the present invention, but not to limit the present invention.
In a specific implementation manner, in the above-mentioned lamp status detecting circuit according to the embodiment of the present invention, as shown in fig. 8, the photosensitive module 201 includes a photosensitive element and a first resistor R1, a first end of the first resistor R1 is connected to the photosensitive element and an input end of the dc blocking module 206, respectively, and a second end of the first resistor R1 is connected to ground. The photosensitive element can be a photosensitive diode, a phototriode or a photoresistor. It should be noted that the above-mentioned photosensitive elements are only examples, and any photosensitive element capable of outputting a corresponding electrical signal according to a change in illumination intensity is suitable for use in the embodiments of the present invention. In fig. 8, the photosensitive element is taken as an example of a phototransistor, and the capacitor C5, the capacitor C6, the capacitor C7 and the capacitor C8 are used for filtering out high-frequency interference in the power supply, so as to further improve the accuracy of the lamp state detection result.
Specifically, the dc blocking module 206 is a first capacitor C1, a first terminal of the first capacitor C1 is connected to the output terminal of the photosensitive module 201, and a second terminal of the first capacitor C1 is connected to the input terminal of the bias module 203.
Specifically, the bias module 202 includes a second resistor R2 and a third resistor R3, wherein a first end of the second resistor R2 is connected to the power supply, a second end of the second resistor R2 is connected to the output end of the dc blocking module 202, a first end of the third resistor R3 and the input end of the first sub-processing module 301, respectively, and a second end of the third resistor R3 is connected to Ground (GND), wherein resistance values of R2 and R3 are determined according to the actual power consumption of the lamp status detection circuit. The resistance of R3 determines the maximum intensity of light sensed by the photosensor.
In a specific implementation, the first voltage divider module 401 includes a fourth resistor R4 and a fifth resistor R5, wherein a first terminal of the fourth resistor R4 is connected to the output terminal of the bias module 202, a second terminal of the fourth resistor R4 is connected to a first terminal of the fifth resistor R5 and a first input terminal of the first comparator 204, respectively, and a second terminal of the fifth resistor R5 is grounded.
In a specific implementation, the first delay module 402 includes a sixth resistor R6 and a second capacitor C2, wherein a first end of the sixth resistor R6 is connected to the output terminal of the bias module 202, a second end of the sixth resistor R6 is connected to a first end of the second capacitor C2 and a second input terminal of the first comparator 204, respectively, and a second end of the second capacitor C2 is grounded.
In a specific implementation, the second voltage divider module 601 includes a seventh resistor R7 and an eighth resistor R8, wherein a first terminal of the seventh resistor R7 is connected to the input terminal of the bias module 203, a second terminal of the seventh resistor R7 is connected to the input terminal of the second delay module 602 and the first terminal of the eighth resistor R8, respectively, and a second terminal of the eighth resistor R8 is grounded.
In a specific implementation, the second delay module 602 includes a ninth resistor R9 and a third capacitor C3, wherein a first terminal of the ninth resistor R9 is connected to the output terminal of the second voltage division module 401, a second terminal of the ninth resistor R9 is connected to a first terminal of the third capacitor C3 and a second input terminal of the second comparator 205, respectively, and a second terminal of the third capacitor C3 is grounded.
In a specific implementation, the filtering module 207 is a fourth capacitor C4, a first end of the fourth capacitor C4 is connected to the output end of the photosensitive module 201 and the input end of the dc blocking module 206, respectively, and a second end of the fourth capacitor C4 is grounded.
The above is merely an example to illustrate the specific structure of each module in the lamp status detection circuit provided in the embodiment of the present invention, and in the implementation, the specific structure of each module is not limited to the structure provided in the embodiment of the present invention, and may be other structures known to those skilled in the art, and is not limited herein.
In the embodiment of the invention, the lamp state detection circuit comprises a photosensitive module, a bias module, a processing module, a first comparator and a second comparator, wherein the first comparator is used for comparing a second signal and a third signal which are obtained by processing a first signal output by the bias module through the processing module, detecting a lamp-on event, and comparing a signal output by the bias module with a fourth signal which is obtained by processing a first signal output by the bias module through the processing module, and detecting a lamp-off event to realize the detection of the lamp state, wherein the first signal output by the bias module is obtained by adding the bias signal to the variation of the photosensitive signal output by the photosensitive module. In addition, the lamp state detection circuit provided by the embodiment of the invention detects the state of the lamp by using the comparator, and the power consumption of the comparator is in microampere (muA) level.
Based on the same inventive concept, the embodiment of the invention also provides a lamp state detection device, which comprises any one of the lamp state detection circuits provided by the embodiment of the invention. The principle of the lamp status detection device for solving the problem is similar to that of the lamp status detection circuit, so the implementation of the lamp status detection device can be referred to the implementation of the lamp status detection circuit, and repeated parts are not described herein again. The lamp state detection device can be any product or component which needs to detect the on-off state of the lamp. Other essential components of the lamp status detecting device are all understood by those skilled in the art, and are not described herein nor should they be construed as limiting the present invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (15)
1. A lamp condition detection circuit, comprising: the device comprises a photosensitive module, a bias module, a processing module, a first comparator and a second comparator;
the photosensitive module is used for outputting a photosensitive signal according to the illumination intensity of the light irradiating the photosensitive module;
the bias module is used for adding a bias signal to the signal output by the photosensitive module to obtain a first signal added with the bias signal;
the processing module is used for processing the first signal to obtain a second signal, a third signal and a fourth signal; specifically, the processing module includes a first sub-processing module and a second sub-processing module, where the first sub-processing module is configured to process the first signal to obtain the second signal and the third signal, and the second sub-processing module is configured to process the first signal to obtain the fourth signal;
the first sub-processing module specifically comprises: the input end of the first voltage division module is connected with the output end of the bias module, the output end of the first voltage division module is connected with the first input end of the first comparator, the input end of the first delay module is connected with the output end of the bias module, and the output end of the first delay module is connected with the second input end of the first comparator;
the first voltage division module is used for performing voltage division processing on the first signal output by the bias module to obtain the second signal; the first delay module is configured to perform delay processing on the first signal output by the bias module to obtain the third signal;
the first comparator is used for comparing the second signal with the third signal to obtain a first output result, and the first output result is used for detecting a light-on event;
the second comparator is configured to compare the first signal with the fourth signal to obtain a second output result, and the second output result is used to detect a light-off event.
2. The lamp condition detection circuit of claim 1, further comprising a blocking module, an input of the blocking module being connected to an output of the photosensitive module, an output of the blocking module being connected to an input of the biasing module;
the blocking module is used for removing the direct current signal in the photosensitive signal output by the photosensitive module and outputting the variable quantity of the photosensitive signal.
3. The lamp condition detection circuit of claim 2, wherein the blocking means is a first capacitor.
4. The lamp condition detection circuit of claim 1, wherein the photosensitive module comprises a photosensitive element and a first resistor, a first end of the first resistor is connected to the photosensitive element and the input terminal of the bias module, respectively, and a second end of the first resistor is connected to ground.
5. The lamp condition detection circuit of claim 1, wherein the bias module comprises a second resistor and a third resistor, wherein a first terminal of the second resistor is connected to a power supply, a second terminal of the second resistor is connected to the output terminal of the light sensing module, the first terminal of the third resistor and the input terminal of the processing module, respectively, and a second terminal of the third resistor is connected to ground.
6. The lamp condition detection circuit of claim 1, wherein the first voltage division module comprises a fourth resistor and a fifth resistor, wherein a first terminal of the fourth resistor is connected to the output terminal of the bias module, a second terminal of the fourth resistor is respectively connected to a first terminal of the fifth resistor and the first input terminal of the first comparator, and a second terminal of the fifth resistor is connected to ground.
7. The lamp condition detection circuit of claim 1, wherein the first delay module comprises a sixth resistor and a second capacitor, wherein a first terminal of the sixth resistor is connected to the output terminal of the bias module, a second terminal of the sixth resistor is respectively connected to a first terminal of the second capacitor and a second input terminal of the first comparator, and a second terminal of the second capacitor is grounded.
8. The lamp condition detecting circuit of claim 1, wherein the first input of the first comparator is an inverting input, and the second input of the first comparator is a non-inverting input, the first output is low if a lamp-on event occurs, otherwise the first output is high.
9. The lamp condition detection circuit according to claim 1, wherein the second sub-processing module comprises: the input end of the second voltage division module is connected with the output end of the bias module, the output end of the second voltage division module is connected with the input end of the second delay module, and the output end of the second delay module is connected with the second input end of the second comparator;
the second voltage division module is used for performing voltage division processing on the first signal output by the bias module and outputting a signal after voltage division processing;
and the second time delay module is used for carrying out time delay processing on the signal output by the second voltage division module to obtain the third signal.
10. The lamp condition detecting circuit of claim 9, wherein the second voltage division module comprises a seventh resistor and an eighth resistor, wherein a first terminal of the seventh resistor is connected to the input terminal of the bias module, a second terminal of the seventh resistor is connected to the input terminal of the second delay module and the first terminal of the eighth resistor, respectively, and a second terminal of the eighth resistor is connected to ground.
11. The lamp status detecting circuit according to claim 9, wherein the second delay module comprises a ninth resistor and a third capacitor, wherein a first terminal of the ninth resistor is connected to the output terminal of the second voltage dividing module, a second terminal of the ninth resistor is respectively connected to a first terminal of the third capacitor and a second input terminal of the second comparator, and a second terminal of the third capacitor is grounded.
12. The lamp condition detecting circuit of claim 9, wherein the first input terminal of the second comparator is an inverting input terminal, and the second input terminal of the second comparator is a non-inverting input terminal, and wherein the second output result is high if a lamp-off event occurs, and low otherwise.
13. The lamp condition detecting circuit according to any of claims 1-12, further comprising a filtering module, wherein an input of the filtering module is connected to an output of the photosensitive module, and an output of the filtering module is connected to an input of the biasing module, for filtering out high frequency interference in the photosensitive signal output by the photosensitive module.
14. The lamp condition detecting circuit of claim 13, wherein the filtering module is a fourth capacitor, a first terminal of the fourth capacitor is connected to the output terminal of the photosensitive module and the input terminal of the bias module, respectively, and a second terminal of the fourth capacitor is grounded.
15. A lamp status detection device, characterized by comprising a lamp status detection circuit according to any one of claims 1 to 14.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711129729.9A CN107957563B (en) | 2017-11-15 | 2017-11-15 | Lamp state detection circuit and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711129729.9A CN107957563B (en) | 2017-11-15 | 2017-11-15 | Lamp state detection circuit and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107957563A CN107957563A (en) | 2018-04-24 |
CN107957563B true CN107957563B (en) | 2020-04-03 |
Family
ID=61963434
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711129729.9A Active CN107957563B (en) | 2017-11-15 | 2017-11-15 | Lamp state detection circuit and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107957563B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111537908B (en) * | 2020-05-14 | 2022-08-19 | 青岛海信医疗设备股份有限公司 | Data processing method and related device of ultraviolet sterilization equipment |
CN118368789B (en) * | 2024-06-20 | 2024-09-03 | 深圳市力生美半导体股份有限公司 | Control circuit, power supply circuit and lamp |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101082656A (en) * | 2006-05-30 | 2007-12-05 | 快捷韩国半导体有限公司 | Circuit for detecting end of life of fluorescent lamp |
CN202383272U (en) * | 2011-12-20 | 2012-08-15 | 谭凯文 | Strobe detection device of electric light source |
CN102752933A (en) * | 2012-07-05 | 2012-10-24 | 天津斯巴克瑞汽车电子有限公司 | Self-holding device of road lamp control switch and implementation method of self-holding device |
CN203120243U (en) * | 2013-01-22 | 2013-08-07 | 吴端钦 | Illumination control device |
CN103852735A (en) * | 2012-11-29 | 2014-06-11 | 深圳市海洋王照明工程有限公司 | Lamp fixture discharge timing circuit |
CN104459289A (en) * | 2014-12-22 | 2015-03-25 | 青岛歌尔声学科技有限公司 | Detection circuit and detection method based on waveform transformation |
-
2017
- 2017-11-15 CN CN201711129729.9A patent/CN107957563B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101082656A (en) * | 2006-05-30 | 2007-12-05 | 快捷韩国半导体有限公司 | Circuit for detecting end of life of fluorescent lamp |
CN202383272U (en) * | 2011-12-20 | 2012-08-15 | 谭凯文 | Strobe detection device of electric light source |
CN102752933A (en) * | 2012-07-05 | 2012-10-24 | 天津斯巴克瑞汽车电子有限公司 | Self-holding device of road lamp control switch and implementation method of self-holding device |
CN103852735A (en) * | 2012-11-29 | 2014-06-11 | 深圳市海洋王照明工程有限公司 | Lamp fixture discharge timing circuit |
CN203120243U (en) * | 2013-01-22 | 2013-08-07 | 吴端钦 | Illumination control device |
CN104459289A (en) * | 2014-12-22 | 2015-03-25 | 青岛歌尔声学科技有限公司 | Detection circuit and detection method based on waveform transformation |
Also Published As
Publication number | Publication date |
---|---|
CN107957563A (en) | 2018-04-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9288876B2 (en) | Method and device for automatically controlling state indicator of terminal device | |
CN107957563B (en) | Lamp state detection circuit and device | |
CN105633911B (en) | The protection circuit and method of LED matrix | |
JP5695338B2 (en) | Illuminance sensor | |
CN203056577U (en) | Universal type switching value acquisition circuit | |
CN211375581U (en) | Capacitance detection circuit, touch device and terminal equipment | |
US9746865B2 (en) | Current-to-voltage conversion circuit, reception apparatus, and imaging system | |
CN205005324U (en) | Eliminate photoelectricity receiving sensor background light influences's circuit | |
US7659840B2 (en) | Sigma-delta conversion circuit suitable for photocurrent measurement applications | |
US8228646B2 (en) | Apparatus and method for draining stored power | |
CN203688642U (en) | Power failure detection circuit | |
JP7006189B2 (en) | Capacitance detector | |
CN107508580B (en) | Pulse generating circuit module for detecting rising edge of analog/digital signal of integrated circuit | |
US20180123688A1 (en) | Methods and devices for monitoring optical signals | |
US11004883B2 (en) | System and method for optical sensing | |
CN113287027B (en) | Capacitance detection circuit, touch device, terminal equipment and capacitance detection method | |
CN109217866B (en) | Photoelectric switch | |
CN109917162B (en) | Power supply protection circuit and testing device | |
EP3068053B1 (en) | A control circuit and terminal | |
CN109100564B (en) | Signal fluctuation detection circuit | |
CN111800137A (en) | Circuit arrangement and device for converting a voltage signal | |
JP4180714B2 (en) | Photoelectric switch | |
CN217904004U (en) | Hysteresis over-temperature protection circuit and electronic equipment | |
CN218956657U (en) | Input detection circuit | |
CN215599555U (en) | Intelligent household appliance and light-sensing control device thereof |
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 |