CN217111160U - Detection circuit and electronic equipment - Google Patents

Detection circuit and electronic equipment Download PDF

Info

Publication number
CN217111160U
CN217111160U CN202122963859.0U CN202122963859U CN217111160U CN 217111160 U CN217111160 U CN 217111160U CN 202122963859 U CN202122963859 U CN 202122963859U CN 217111160 U CN217111160 U CN 217111160U
Authority
CN
China
Prior art keywords
module
signal
voltage
resistor
detection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202122963859.0U
Other languages
Chinese (zh)
Inventor
张国良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen H&T Intelligent Control Co Ltd
Original Assignee
Shenzhen H&T Intelligent Control Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen H&T Intelligent Control Co Ltd filed Critical Shenzhen H&T Intelligent Control Co Ltd
Priority to CN202122963859.0U priority Critical patent/CN217111160U/en
Application granted granted Critical
Publication of CN217111160U publication Critical patent/CN217111160U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measurement Of Current Or Voltage (AREA)

Abstract

The application discloses detection circuitry and electronic equipment, this detection circuitry include signal detection module, signal comparison module, signal opposition module, energy storage module, switch module and control module. The switch module is used for switching on or switching off according to the pulse signal output by the signal phase inversion module. The signal detection module is used for charging the energy storage module when the switch module is turned off. The signal comparison module is used for outputting a rising edge signal when the switch module is switched on, and outputting a falling edge signal when the voltage of the energy storage module is charged to a first voltage. The signal inverting module is used for outputting a second voltage when the voltage of the falling edge signal is smaller than a first voltage threshold value and outputting a third voltage when the voltage of the rising edge signal is larger than a second voltage threshold value, wherein the pulse signal comprises the second voltage and the third voltage. The control module is used for acquiring the pulse signal and determining the strength of the detection signal according to the frequency of the pulse signal. By the mode, the detection precision can be improved.

Description

Detection circuit and electronic equipment
Technical Field
The present disclosure relates to electronic circuits, and particularly to a detection circuit and an electronic device.
Background
Along with the increasing demand of the market on various intelligent electronic products, a plurality of novel products are pushed to the market, and the functions are more and more, so that the competitiveness of the novel products is improved. Use the camera in some refrigerators now, and domestic surveillance camera head, store up products such as cupboard all need monitor its condition in operating condition, need regularly or detect its surrounding environment in real time promptly, need detect the strong and weak function operation on next step again to ambient light this moment. Therefore, how to effectively and conveniently detect the intensity of the ambient light becomes an important consideration.
At present, the scheme for detecting the light intensity generally utilizes the characteristic of phototriodes on the light intensity, and samples numerical values expressed under different light intensities in an AD sampling mode to determine the light intensity.
However, in this method, since the AD conversion is to convert a continuous analog quantity into a discontinuous digital quantity and the number of bits of the digital quantity directly expresses the accuracy in sampling, the detected structure can be only an approximate number close to the actual number. I.e. the detection accuracy is low.
SUMMERY OF THE UTILITY MODEL
The embodiment of the application aims to provide a detection circuit and an electronic device, and the application can improve the detection precision.
To achieve the above object, in a first aspect, the present application provides a detection circuit comprising:
the device comprises a signal detection module, a signal comparison module, a signal inversion module, an energy storage module, a switch module and a control module;
the first end of the signal detection module, the first end of the signal comparison module and the first end of the signal inversion module are all connected with a first power supply, the second end of the signal detection module is respectively connected with the first end of the energy storage module, the second end of the signal comparison module and the first end of the switch module, the third end of the signal comparison module is connected with the second end of the signal inversion module, the third end of the signal inversion module is respectively connected with the control module and the second end of the switch module, and the second end of the energy storage module, the third end of the switch module, the fourth end of the signal comparison module and the fourth end of the signal inversion module are all grounded;
the switch module is used for switching on or off according to the pulse signal output by the signal phase inversion module;
the signal detection module is used for receiving a detection signal and charging the energy storage module according to the first power supply when the switch module is turned off, wherein the stronger the detection signal received by the signal detection module is, the faster the charging speed of the energy storage module is;
the signal comparison module is used for outputting a rising edge signal when the switch module is switched on and outputting a falling edge signal when the voltage of the energy storage module is charged to a first voltage;
the signal inverting module is used for outputting a second voltage when the voltage of the falling edge signal is smaller than a first voltage threshold value and outputting a third voltage when the voltage of the rising edge signal is larger than a second voltage threshold value, wherein the pulse signal comprises a second voltage and a third voltage, the second voltage is used for controlling the switch module to be switched on, and the third voltage is used for controlling the switch module to be switched off;
the control module is used for acquiring the pulse signal and determining the strength of the detection signal according to the frequency of the pulse signal.
In an optional mode, the signal detection module includes a first resistor and a phototransistor;
the first end of the first resistor is connected with the first end of the signal comparison module, the first end of the signal inversion module and the first power supply respectively, the second end of the first resistor is connected with the first end of the phototriode, and the second end of the phototriode is connected with the first end of the energy storage module, the second end of the signal comparison module and the first end of the switch module.
In an alternative form, the energy storage module includes a first capacitor;
the first end of the first capacitor is respectively connected with the second end of the signal detection module, the second end of the signal comparison module and the first end of the switch module, and the second end of the first capacitor is grounded.
In an alternative form, the signal comparison module includes a comparator;
the in-phase input end of the comparator is connected with the first power supply, the reverse phase input end of the comparator is respectively connected with the second end of the signal detection module, the first end of the energy storage module and the first end of the switch module, and the output end of the comparator is connected with the second end of the signal reverse phase module.
In an optional manner, the signal comparison module further includes a second resistor, a third resistor, and a second capacitor;
the second resistor is connected in series with the third resistor, a first end of a circuit formed by connecting the second resistor and the third resistor in series is connected with the first power supply, a first end of the signal detection module and a first end of the signal inverting module respectively, a second end of the circuit formed by connecting the second resistor and the third resistor in series is grounded, a connecting point between the second resistor and the third resistor is connected with a non-inverting input end of the comparator and a first end of the second capacitor, and a second end of the second capacitor is grounded.
In an alternative form, the signal inversion module includes a schmitt inverter;
the input end of the Schmitt phase inverter is connected with the third end of the signal comparison module, the output end of the Schmitt phase inverter is respectively connected with the control module and the second end of the switch module, the power supply end of the Schmitt phase inverter is connected with the first power supply, and the grounding end of the Schmitt phase inverter is grounded.
In an optional manner, the signal inverting module further includes a fourth resistor and a third capacitor;
the fourth resistor is connected in series with the third capacitor, a first end of a circuit formed by connecting the fourth resistor and the third capacitor in series is connected with the first power supply, a second end of the circuit formed by connecting the fourth resistor and the third capacitor in series is grounded, and a connecting point between the fourth resistor and the third capacitor is connected with an input end of the Schmidt inverter.
In an alternative form, the switch module includes a switch tube;
the first end of the switch tube is respectively connected with the third ends of the control module and the signal inverting module, the second end of the switch tube is grounded, and the third end of the switch tube is respectively connected with the first end of the energy storage module, the second end of the signal detection module and the second end of the signal comparison module.
In an optional manner, the detection circuit further includes a fifth resistor and a sixth resistor;
the first end of the fifth resistor is connected with the third end of the signal inverting module and the second end of the switch module respectively, the second end of the fifth resistor is connected with the control module and the first end of the sixth resistor respectively, and the second end of the sixth resistor is grounded.
In a second aspect, the present application provides an electronic device comprising a detection circuit as described above.
The beneficial effects of the embodiment of the application are that: the application provides a detection circuit, including signal detection module, signal comparison module, signal opposition module, energy storage module, switch module and control module. The first power supply is connected with the signal detection module, the signal comparison module and the signal inversion module, the signal detection module is connected with the energy storage module, the signal comparison module and the switch module, and the signal inversion module is connected with the control module, the switch module and the signal comparison module. When the switch module is switched on, the second end of the signal comparison module is grounded, and the signal comparison module outputs a rising edge signal. When the voltage of the rising edge signal is greater than the second voltage threshold, the signal inverting module outputs a third voltage to control the switch module to be switched off. When the switch module is turned off, the signal detection module charges the energy storage module according to the first power supply. When the voltage of the first end of the energy storage module is charged to the first voltage, the second end of the signal comparison module receives the first voltage, and the signal comparison module outputs a falling edge signal. When the voltage of the falling edge signal is smaller than the first voltage threshold value, the signal inverting module outputs a second voltage to control the switch module to be conducted. The above processes are repeatedly executed, and the pulse signal can be obtained at the third end of the signal phase inversion module. Meanwhile, the detection signals with different strengths can correspond to different charging speeds of the energy storage module, so the detection signals with different strengths can correspond to different charging times of the energy storage module, namely, different times for switching from the rising edge signal to the falling edge signal, namely, different switching times of the second voltage and the third voltage, namely, different frequencies of the pulse signals. Then, the control module can determine the strength of the detection signal according to the frequency of the pulse signal. Therefore, the method of AD sampling is not needed, that is, the detection accuracy is not reduced due to AD conversion, in other words, the detection accuracy can be improved.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a schematic structural diagram of a detection circuit provided in an embodiment of the present application;
fig. 2 is a schematic circuit diagram of a detection circuit according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of pulse signals under different light beams according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. 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 application.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a detection circuit according to an embodiment of the present disclosure. As shown in fig. 1, the detection circuit 100 includes a signal detection module 10, a signal comparison module 20, a signal inversion module 30, an energy storage module 40, a switch module 50, and a control module 60. Wherein, the first end of signal detection module 10, the first end of signal comparison module 20, the first end of signal opposition module 30 all is connected with first power, the second end of signal detection module 10 respectively with the first end of energy storage module 40, the second end of signal comparison module 20 and the first end of switch module 50 are connected, the third end of signal comparison module 20 is connected with the second end of signal opposition module 30, the third end of signal opposition module 30 is connected with the second end of control module 60 and switch module 50 respectively, the second end of energy storage module 40, the third end of switch module 50, the fourth end of signal comparison module 20 and the fourth end of signal opposition module 30 all ground connection GND.
Specifically, the switching module 50 is configured to turn on or off according to the pulse signal output by the signal inverting module 30, and the signal detecting module 10 is configured to receive the detection signal and charge the energy storage module 40 according to the first power supply V1 when the switching module 50 is turned off, where the stronger the detection signal received by the signal detecting module 10 is, the faster the charging speed of the energy storage module 40 is. The signal comparing module 20 is configured to output a rising edge signal when the switching module 40 is turned off, and output a falling edge signal when the voltage of the energy storage module 40 is charged to a first voltage, where a second end of the signal comparing module 20 receives the first voltage when the voltage of the first end of the energy storage module 40 is charged to the first voltage. The signal inverting module 30 is configured to output a second voltage when the voltage of the falling edge signal is smaller than the first voltage threshold, and output a third voltage when the voltage of the rising edge signal is greater than the second voltage threshold, where the pulse signal includes the second voltage and the third voltage, the second voltage is used to control the switching module 50 to be turned on, and the third voltage is used to control the switching module 50 to be turned off. The control module 60 is configured to acquire the pulse signal and determine the strength of the detection signal according to the frequency of the pulse signal.
It should be noted that, in this embodiment, the first voltage threshold and the second voltage threshold may be set according to an actual application, for example, the first voltage threshold and the second voltage threshold may be set according to characteristics of an electronic component selected by the signal inverting module 30, which is not limited in this embodiment of the application. Meanwhile, the first voltage threshold and the second voltage threshold may be the same or different.
In practical applications, when the switch module 50 is turned on, the second terminal of the signal comparison module 20 is grounded to GND, and the signal comparison module 20 outputs a rising edge signal. Then, when the voltage of the rising edge signal is greater than the second voltage threshold, the signal inverting module 30 outputs a third voltage to control the switching module 50 to turn off.
When the switching module 50 is turned off, the signal detection module 10 charges the energy storage module 40 according to the first power source V1. When the voltage at the first end of the energy storage module 40 is charged to the first voltage, the second end of the signal comparison module 20 receives the first voltage, and the signal comparison module 20 outputs a falling edge signal. When the voltage of the falling edge signal is less than the first voltage threshold, the signal inverting module 30 outputs a second voltage to control the switch module 50 to be turned on. Then, the second terminal of the signal comparing module 20 is grounded to GND again, and the signal comparing module 20 outputs a rising edge signal.
It can be seen that, by performing the above process, a pulse signal including the second voltage and the third voltage can be obtained at the third end of the signal inverting module.
Meanwhile, the stronger the detection signal received by the signal detection module 10, the larger the first voltage is, and the shorter the time for charging the voltage of the first end of the energy storage module 40 to the first voltage is. In other words, the detection signals with different strengths can correspond to different charging speeds of the energy storage module. Therefore, the detection signals with different strengths may correspond to different charging times (time for charging to the first voltage) of the energy storage module 40, that is, the detection signals with different strengths may correspond to different times for switching from the rising edge signal to the falling edge signal, that is, the detection signals with different strengths correspond to different switching times of the second voltage and the third voltage. The switching time of the second voltage and the third voltage determines the frequency of the pulse signal, so that the detection signals with different strengths and weaknesses can be finally obtained to correspond to different frequencies of the pulse signal.
In turn, the control module 60 may determine the strength of the detection signal according to the frequency of the pulse signal. Therefore, when the detection signal is light, that is, when the scheme of the present application is used for detecting the intensity of light, it is not necessary to adopt an AD sampling manner as in the related art. Therefore, the detection accuracy is not reduced by the AD conversion, which is advantageous for improving the detection accuracy.
In one embodiment, as shown in fig. 2, the signal detecting module 10 includes a first resistor R1 and a photo transistor IR 1. A first end of the first resistor R1 is connected to the first end of the signal comparing module 20, the first end of the signal inverting module 30, and the first power source V1, a second end of the first resistor R1 is connected to the first end of the phototransistor IR1, and a second end of the phototransistor IR1 is connected to the first end of the energy storing module 40, the second end of the signal comparing module 20, and the first end of the switch module 50.
Specifically, the first resistor R1 can limit current to prevent excessive current from damaging the phototransistor IR 1. The resistance value of the phototriode IR1 can be changed along with the intensity of light, wherein the stronger the light, the smaller the resistance value of the phototriode IR1, the smaller the voltage drop of the first power supply V1 in the phototriode IR1, the larger the first voltage, and the shorter the charging time of the energy storage module 40; conversely, the weaker the light, the larger the resistance of the phototransistor IR1, and the larger the voltage drop of the first power supply V1 across the phototransistor IR1, the smaller the first voltage, and the longer the charging time of the energy storage module 40.
In one embodiment, the energy storage module 40 includes a first capacitor C1. A first end of the first capacitor C1 is connected to the second end of the signal detection module 10, the second end of the signal comparison module 20, and the first end of the switch module 50, respectively, and a second end of the first capacitor C1 is grounded to GND.
Specifically, the first capacitor C1 is used to be charged when the switch module 50 is turned off, and the charging time of the first capacitor C1 is related to the magnitude of the first voltage when the capacitance value of a capacitor C1 is unchanged. The charging time of the first capacitor C1 is shorter as the first voltage is larger, and conversely, the charging time of the first capacitor C1 is longer as the first voltage is smaller.
In an embodiment, the signal comparing module 20 includes a comparator U1, wherein a non-inverting input terminal of the comparator U1 is connected to the first power source V1, an inverting input terminal of the comparator U1 is connected to the second terminal of the signal detecting module 10, the first terminal of the energy storage module 40 and the first terminal of the switching module 50, respectively, and an output terminal of the comparator U1 is connected to the second terminal of the signal inverting module 30.
Specifically, when the voltage at the non-inverting input of the comparator U1 remains unchanged while the voltage at the inverting input of the comparator U1 gradually increases from being less than the voltage at the non-inverting input of the comparator U1 to being greater than the voltage at the non-inverting input of the comparator U1, the comparator U1 outputs a falling edge signal.
When the voltage at the non-inverting input of comparator U1 remains constant while the voltage at the inverting input of comparator U1 decreases from being greater than the voltage at the non-inverting input of comparator U1 to being less than the voltage at the non-inverting input of comparator U1, comparator U1 outputs a rising edge signal.
In one embodiment, the signal comparing module 20 further includes a second resistor R2, a third resistor R3, and a second capacitor C2. The second resistor R2 is connected in series with the third resistor R3, a first end of a circuit in which the second resistor R2 and the third resistor R3 are connected in series is connected to the first power supply V1, a first end of the signal detection module 10 and a first end of the signal inversion module 30, respectively, a second end of a circuit in which the second resistor R2 and the third resistor R3 are connected in series is grounded GND, a connection point between the second resistor R2 and the third resistor R3 is connected to the non-inverting input terminal of the comparator U1 and the first end of the second capacitor C2, and a second end of the second capacitor C2 is grounded GND.
In this embodiment, the second resistor R2 and the third resistor R3 are used for dividing the voltage of the first power source V1. The voltage across the third resistor R3 is the voltage input to the non-inverting input of the comparator U1. The second capacitor C2 is used for filtering the voltage of the first power source V1 to provide a stable input voltage to the non-inverting input of the comparator U1.
In one embodiment, signal inversion module 30 includes a Schmitt inverter U2. An input end of the schmitt inverter U2 (i.e., the 2 nd pin of the schmitt inverter U2) is connected to the third end of the signal comparison module 20, an output end of the schmitt inverter U2 (i.e., the 4 th pin of the schmitt inverter U2) is connected to the second ends of the control module 60 and the switch module 50, respectively, a power supply end of the schmitt inverter U2 (i.e., the 6 th pin of the schmitt inverter U2) is connected to the first power supply V1, and a ground end of the schmitt inverter U2 (i.e., the 3 rd pin of the schmitt inverter U2) is grounded to GND.
In one embodiment, the signal inverting module 30 further includes a fourth resistor R4 and a third capacitor C3. The fourth resistor R4 is connected in series with the third capacitor C3, a first end of a circuit formed by connecting the fourth resistor R4 and the third capacitor C3 in series is connected with the first power supply V1, a second end of a circuit formed by connecting the fourth resistor R4 and the third capacitor C3 in series is grounded GND, and a connecting point between the fourth resistor R4 and the third capacitor C3 is connected with an input end of the Schmidt inverter U2.
Specifically, the schmitt inverter U2 is configured to output a third voltage when the voltage at its input is greater than the second voltage threshold, and to output a second voltage when the voltage at its input is less than the first voltage threshold. Wherein the second voltage is greater than the third voltage. The third capacitor C3 is used to filter the voltage input to the schmitt inverter U2.
In one embodiment, the switching module 50 includes a switching tube Q1. The first end of the switching tube Q1 is connected to the third ends of the control module 60 and the signal inverting module 30, the second end of the switching tube Q1 is grounded GND, and the third end of the switching tube Q1 is connected to the first end of the energy storage module 40, the second end of the signal detecting module 10, and the second end of the signal comparing module 20. In this embodiment, the switch transistor Q1 is an NMOS transistor, for example.
Specifically, when a high-level signal, such as a second voltage, is input to the first terminal of the switching transistor Q1, the switching transistor Q1 is turned on. When the first terminal of the switching tube Q1 inputs a low level signal, such as a third voltage, the switching tube Q1 is turned off.
It is understood that in this embodiment, the first terminal of the switching transistor Q1 is the gate of the NMOS transistor, the second terminal of the switching transistor Q1 is the source of the NMOS transistor, and the third terminal of the switching transistor Q1 is the drain of the NMOS transistor.
In one embodiment, the detection circuit 100 further includes a fifth resistor R5 and a sixth resistor R6. A first end of the fifth resistor R5 is connected to the third end of the signal inverting module 30 and the second end of the switch module 50, a second end of the fifth resistor R5 is connected to the first ends of the control module 60 and the sixth resistor R6, and a second end of the sixth resistor R6 is grounded to GND.
The fifth resistor R5 and the sixth resistor R6 are used for dividing the voltage input to the control module 60. Meanwhile, the fifth resistor R5 can play a role of current limiting.
For a better understanding of the present application, the operation of the circuit shown in fig. 2 will be described below by way of example.
Assume that the photo transistor TR1 exhibits a resistance value of rTR1 when the light intensity is positive. When the switching tube Q1 is turned off, the first capacitor C1 is connected to the first power source V1, that is, the voltage across the first capacitor C1 increases instantaneously, and the first capacitor C1 is charged. And the maximum charging current of the first capacitor C1 is obtained by the following equation:
Imax=v1÷(rTR1+rR1)(1)
where Imax is the maximum current, V1 is the voltage of the first power supply V1, and rR1 is the resistance of the first resistor R1.
Meanwhile, before the first capacitor C1 is charged from the beginning and charged to the first voltage (the first voltage is the voltage of the V1 of the first power supply divided after passing through the second resistor R2 and the third resistor R3), the voltage at the inverting input terminal of the comparator U1 is always smaller than the voltage at the non-inverting input terminal of the comparator U1. At this time, the comparator U1 keeps the output high. Then, when the first capacitor C1 is charged to the first voltage, the voltage at the inverting input terminal of the comparator U1 is greater than the voltage at the non-inverting input terminal of the comparator U1, and the output of the comparator U1 switches from high to low, i.e., a falling edge signal is output.
During the process that the output of the comparator U1 drops from the high level to the low level, if the voltage output by the comparator U1 is smaller than the first voltage threshold, the Schmitt inverter U2 outputs the second voltage and keeps outputting the second voltage. The second voltage is a high level signal, and is input to the switching tube Q1 to turn on the switching tube Q1.
When the switching tube Q1 is turned on, the voltage at the inverting input terminal of the comparator U1 is pulled down to 0 immediately, i.e., the output of the comparator U1 is switched from low level to high level, and a rising edge signal is output. In the process of the output of the comparator U1 going from the low level to the high level, if the voltage output by the comparator U1 is greater than the second voltage threshold, the schmitt inverter U2 outputs the third voltage and maintains the third voltage. The third voltage is a low level signal, and is input to the switching tube Q1 to turn off the switching tube Q1.
By repeating the above-described operation, a pulse signal is output from the schmitt inverter U2.
Meanwhile, as can be seen from equation (2), when the voltage V1 of the first power source V1 and the resistance rR1 of the first resistor R1 remain unchanged (i.e., no electronic component is replaced), the maximum current Imax is only related to the resistance rTR1 exhibited by the phototransistor TR 1. And the larger the maximum current Imax, the faster the first capacitor C1 is charged. The stronger the light intensity, the smaller the resistance rTR 1. In other words, the stronger the light intensity, the smaller the resistance rTR1, the larger the maximum current Imax, and the faster the first capacitor C1 is charged. Conversely, the weaker the light intensity, the larger the resistance rTR1, the smaller the maximum current Imax, and the slower the first capacitor C1 is charged.
Secondly, the faster the first capacitor C1 is charged, the shorter the time for the voltage of the first capacitor C1 to reach the first voltage, and the shorter the time for the output of the comparator U1 to be held at the low level, the shorter the time for the schmitt inverter U2 to be held at the third voltage. The third voltage is at a low level, and the lower the time of the available low level of the pulse signal is, i.e. the time between two adjacent high levels in the pulse signal is shorter, i.e. the frequency of the pulse signal is higher.
Taking the pulse signal shown in fig. 3 as an example, fig. 3 shows the frequencies of the pulse signals corresponding to two light beams with different intensities. As shown in fig. 3, a curve L1 is a pulse signal corresponding to the first light, and a curve L2 is a pulse signal corresponding to the second light. The light intensity of the first light is weaker than that of the second light.
Specifically, as can be seen from the curves L1 and L2, since the first capacitor C1 charges slower when the first light is detected than the first capacitor C1 charges when the second light is detected, the time during which the output of the comparator U1 is kept at the low level when the first light is detected (i.e., the time period T1) is longer than the time during which the output of the comparator U1 is kept at the low level when the second light is detected (i.e., the time period T2). The frequency of the pulse signal obtained when the first light is detected is smaller than the frequency of the pulse signal obtained when the second light is detected.
In summary, the stronger the light intensity, the higher the frequency of the pulse signal, and the weaker the light intensity, the lower the frequency of the pulse signal. Therefore, the control module 60 can determine the intensity of the light by obtaining the frequency of the pulse signal. Therefore, when the scheme of the application is used for detecting the light intensity, an AD sampling mode is not needed as in the related art, so that the detection precision is not reduced due to AD conversion, namely, the detection precision is favorably improved.
An embodiment of the present application further provides an electronic device, where the electronic device includes the detection circuit 100 in any of the above embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; within the context of the present application, where technical features in the above embodiments or in different embodiments can also be combined, the steps can be implemented in any order and there are many other variations of the different aspects of the present application as described above, which are not provided in detail for the sake of brevity; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A detection circuit, comprising:
the device comprises a signal detection module, a signal comparison module, a signal inversion module, an energy storage module, a switch module and a control module;
the first end of the signal detection module, the first end of the signal comparison module and the first end of the signal inversion module are all connected with a first power supply, the second end of the signal detection module is respectively connected with the first end of the energy storage module, the second end of the signal comparison module and the first end of the switch module, the third end of the signal comparison module is connected with the second end of the signal inversion module, the third end of the signal inversion module is respectively connected with the control module and the second end of the switch module, and the second end of the energy storage module, the third end of the switch module, the fourth end of the signal comparison module and the fourth end of the signal inversion module are all grounded;
the switch module is used for switching on or off according to the pulse signal output by the signal phase inversion module;
the signal detection module is used for receiving a detection signal and charging the energy storage module according to the first power supply when the switch module is turned off, wherein the stronger the detection signal received by the signal detection module is, the faster the charging speed of the energy storage module is;
the signal comparison module is used for outputting a rising edge signal when the switch module is switched on and outputting a falling edge signal when the voltage of the energy storage module is charged to a first voltage;
the signal inverting module is used for outputting a second voltage when the voltage of the falling edge signal is smaller than a first voltage threshold value and outputting a third voltage when the voltage of the rising edge signal is larger than a second voltage threshold value, wherein the pulse signal comprises a second voltage and a third voltage, the second voltage is used for controlling the switch module to be switched on, and the third voltage is used for controlling the switch module to be switched off;
the control module is used for acquiring the pulse signal and determining the strength of the detection signal according to the frequency of the pulse signal.
2. The detection circuit of claim 1, wherein the signal detection module comprises a first resistor and a phototransistor;
the first end of the first resistor is connected with the first end of the signal comparison module, the first end of the signal inversion module and the first power supply respectively, the second end of the first resistor is connected with the first end of the phototriode, and the second end of the phototriode is connected with the first end of the energy storage module, the second end of the signal comparison module and the first end of the switch module.
3. The detection circuit of claim 1, wherein the energy storage module comprises a first capacitor;
the first end of the first capacitor is respectively connected with the second end of the signal detection module, the second end of the signal comparison module and the first end of the switch module, and the second end of the first capacitor is grounded.
4. The detection circuit of claim 1, wherein the signal comparison module comprises a comparator;
the in-phase input end of the comparator is connected with the first power supply, the reverse phase input end of the comparator is respectively connected with the second end of the signal detection module, the first end of the energy storage module and the first end of the switch module, and the output end of the comparator is connected with the second end of the signal reverse phase module.
5. The detection circuit of claim 4, wherein the signal comparison module further comprises a second resistor, a third resistor, and a second capacitor;
the second resistor is connected in series with the third resistor, a first end of a circuit formed by connecting the second resistor and the third resistor in series is connected with the first power supply, a first end of the signal detection module and a first end of the signal inverting module respectively, a second end of the circuit formed by connecting the second resistor and the third resistor in series is grounded, a connecting point between the second resistor and the third resistor is connected with a non-inverting input end of the comparator and a first end of the second capacitor, and a second end of the second capacitor is grounded.
6. The detection circuit of claim 1, wherein the signal inversion module comprises a schmitt inverter;
the input end of the Schmitt phase inverter is connected with the third end of the signal comparison module, the output end of the Schmitt phase inverter is respectively connected with the control module and the second end of the switch module, the power supply end of the Schmitt phase inverter is connected with the first power supply, and the grounding end of the Schmitt phase inverter is grounded.
7. The detection circuit of claim 6, wherein the signal inverting module further comprises a fourth resistor and a third capacitor;
the fourth resistor is connected in series with the third capacitor, a first end of a circuit formed by connecting the fourth resistor and the third capacitor in series is connected with the first power supply, a second end of the circuit formed by connecting the fourth resistor and the third capacitor in series is grounded, and a connecting point between the fourth resistor and the third capacitor is connected with an input end of the Schmidt inverter.
8. The detection circuit of claim 1, wherein the switching module comprises a switching tube;
the first end of the switch tube is respectively connected with the third ends of the control module and the signal inverting module, the second end of the switch tube is grounded, and the third end of the switch tube is respectively connected with the first end of the energy storage module, the second end of the signal detection module and the second end of the signal comparison module.
9. The detection circuit of claim 1, further comprising a fifth resistor and a sixth resistor;
the first end of the fifth resistor is connected with the third end of the signal inverting module and the second end of the switch module respectively, the second end of the fifth resistor is connected with the control module and the first end of the sixth resistor respectively, and the second end of the sixth resistor is grounded.
10. An electronic device, characterized in that it comprises a detection circuit according to any one of claims 1-9.
CN202122963859.0U 2021-11-29 2021-11-29 Detection circuit and electronic equipment Active CN217111160U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202122963859.0U CN217111160U (en) 2021-11-29 2021-11-29 Detection circuit and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202122963859.0U CN217111160U (en) 2021-11-29 2021-11-29 Detection circuit and electronic equipment

Publications (1)

Publication Number Publication Date
CN217111160U true CN217111160U (en) 2022-08-02

Family

ID=82589333

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202122963859.0U Active CN217111160U (en) 2021-11-29 2021-11-29 Detection circuit and electronic equipment

Country Status (1)

Country Link
CN (1) CN217111160U (en)

Similar Documents

Publication Publication Date Title
US7015716B2 (en) Method for detecting a power load of a power supply module according to duty cycle detection, and related device
EP2677647A2 (en) Synchronous rectifier timer for discontinuous mode DC/DC converter
CN110022155B (en) Asynchronous over-level sampling analog-to-digital converter with sampling threshold changing along with input signal
CN102193032A (en) Self-capacitance change measuring circuit with high precision and high stability
CN103633974A (en) Power-on reset circuit with fixed resistance-capacitance time delay characteristic
CN110829540B (en) Load access identification method, charging control method and device
CN104062504A (en) Super-capacitor detecting circuit
CN111900782B (en) Charging control circuit, charging chip and charging equipment
KR20060085185A (en) Voltage-frequency converter and method of changing reference voltage therein
JP2009153130A (en) Time difference analog comparator, and method to compare time difference analog signal
US20030179123A1 (en) Analog-to-digital conversion using a counter
CN208461792U (en) A kind of key applied to FPGA/CPLD, which disappears, trembles logic circuit
CN217111160U (en) Detection circuit and electronic equipment
CN113009854B (en) Device for obtaining effective value of analog input signal
CN101592528A (en) Temperature detector and using method thereof
US20190003883A1 (en) Light Intensity Detection Circuit, Light Intensity Detector, Detection Method Thereof and Display Device
CN107505498B (en) Peak and valley value detection circuit
CN216819821U (en) High-speed low-power-consumption capacitive touch detection circuit and chip
CN103674100B (en) A kind of encoder photoelectric sensor detection circuit and code-disc detection system
CN110888518A (en) Control system and method of standby power system
CN211791469U (en) Oscillator circuit and switch Hall sensor
CN115032441A (en) Voltage peak detection circuit and electronic equipment
CN209787134U (en) Low-delay pulse jitter elimination circuit
CN112924762A (en) Pulse width detection circuit
CN203590181U (en) Audio frequency power amplifier starting charging circuit

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant