CN108195465B - Optical signal detection device and method - Google Patents
Optical signal detection device and method Download PDFInfo
- Publication number
- CN108195465B CN108195465B CN201711317591.5A CN201711317591A CN108195465B CN 108195465 B CN108195465 B CN 108195465B CN 201711317591 A CN201711317591 A CN 201711317591A CN 108195465 B CN108195465 B CN 108195465B
- Authority
- CN
- China
- Prior art keywords
- voltage
- circuit
- signal
- photosensitive
- analog switch
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 106
- 230000003287 optical effect Effects 0.000 title claims abstract description 78
- 238000000034 method Methods 0.000 title claims abstract description 26
- 239000003990 capacitor Substances 0.000 claims abstract description 11
- 238000012545 processing Methods 0.000 claims description 67
- 230000000903 blocking effect Effects 0.000 claims description 14
- 238000004590 computer program Methods 0.000 claims description 3
- 238000002955 isolation Methods 0.000 claims description 3
- 230000008859 change Effects 0.000 description 15
- 238000010586 diagram Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005259 measurement Methods 0.000 description 3
- 238000003672 processing method Methods 0.000 description 3
- 230000035945 sensitivity Effects 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 238000013139 quantization Methods 0.000 description 2
- 230000000630 rising effect Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000003708 edge detection Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000009532 heart rate measurement Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 239000000523 sample Substances 0.000 description 1
- 238000011895 specific detection Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
- G01J1/00—Photometry, e.g. photographic exposure meter
- G01J1/42—Photometry, e.g. photographic exposure meter using electric radiation detectors
- G01J1/44—Electric circuits
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01H—MEASUREMENT OF MECHANICAL VIBRATIONS OR ULTRASONIC, SONIC OR INFRASONIC WAVES
- G01H9/00—Measuring mechanical vibrations or ultrasonic, sonic or infrasonic waves by using radiation-sensitive means, e.g. optical means
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
- G01J1/00—Photometry, e.g. photographic exposure meter
- G01J1/42—Photometry, e.g. photographic exposure meter using electric radiation detectors
- G01J1/44—Electric circuits
- G01J1/46—Electric circuits using a capacitor
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Spectroscopy & Molecular Physics (AREA)
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Optical Communication System (AREA)
- Electronic Switches (AREA)
Abstract
The embodiment of the invention provides an optical signal detection device and method, which are used for solving the technical problem of low accuracy of a detection system of trigger type detection in different scenes. The detection device includes: a bias circuit; the delay circuit comprises a voltage division resistor for dividing the photosensitive signal and a charging capacitor for delaying the photosensitive signal; the comparison circuit is respectively connected with the bias circuit and the delay circuit and is used for comparing the voltage of the received signal and outputting a high level or a low level; the feedback circuit comprises an analog switch connected with the divider resistor in parallel, and the input end of the analog switch is connected with the output end of the comparison circuit; when the comparison circuit outputs a high level, the analog switch is switched to a conducting state to enable the divider resistor to be short-circuited, and when the comparison circuit outputs a low level, the analog switch is switched to a disconnecting state to enable the delay circuit to keep normal work.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an optical signal detection apparatus and method.
Background
At present, in a detection system, a detection mode with low power consumption, namely trigger type detection, is often used. When the trigger type detection means no abnormality, most circuits of the system are in a standby state, and only part of the acquisition comparison circuits work. If an abnormal event occurs, the acquisition comparison circuit triggers a signal to wake up the system and alarm. For example, energy saving is achieved by detecting the brightness of light, or by detecting the sound level, for alarming, etc.
The internal implementation of the existing trigger type detection system is generally shown in fig. 1. In the detection system, a detected signal is compared with a fixed voltage, when the detected signal exceeds the fixed voltage, an indication signal is triggered to a post-stage processing system for reporting, and reporting information is sent to a remote platform in a wired or wireless mode. Since this method can only indicate the presence or absence of two states of the detection result, and the environmental adaptability is poor, the result is not accurate when used in many scenes. Such as: the switch of the detection light influences the absolute brightness of the judgment of the switch light because the room is close to the window and not close to the window in the daytime and at night.
Therefore, the detection system adopting the trigger detection in the prior art has low accuracy in detection in different scenes.
Disclosure of Invention
The embodiment of the invention provides an optical signal detection device and method, which are used for solving the technical problem of low accuracy of a detection system of trigger type detection in different scenes.
In a first aspect, an embodiment of the present invention provides an optical signal detection apparatus, including:
a bias circuit for adding a bias voltage to the received photo-sensitive signal;
the delay circuit is connected with the bias circuit in parallel and comprises a voltage division resistor and a charging capacitor, the voltage division resistor is used for dividing the photosensitive signal, and the charging capacitor is used for delaying the photosensitive signal;
the comparison circuit comprises a first input end and a second input end, wherein the first input end is connected with the bias circuit, the second input end is connected with the delay circuit, and the comparison circuit is used for comparing the voltage of signals received by the first input end and the second input end and outputting a high level or a low level according to a comparison result;
the feedback circuit comprises an analog switch, the analog switch is connected with a voltage dividing resistor in the delay circuit in parallel, the input end of the analog switch is connected with the output end of the comparison circuit, and the feedback circuit is used for controlling the analog switch to be switched between an off state and an on state according to the output level of the comparison circuit;
when the comparison circuit is detected to output a high level, the analog switch is switched from an off state to an on state, so that the voltage dividing resistor in the delay circuit is short-circuited, and when the comparison circuit is detected to output a low level, the analog switch is switched from the on state to the off state, so that the delay circuit keeps normal operation.
Optionally, the apparatus further comprises:
and the direct current blocking circuit is respectively connected with the bias circuit and the delay circuit and is used for blocking the direct current in the photosensitive signal and respectively transmitting the photosensitive signal after the direct current is blocked to the bias circuit and the delay circuit.
Optionally, when the analog switch is in a conducting state, the voltage dividing resistor in the delay circuit is short-circuited, and the charging capacitor charges by using the voltage of the photosensitive signal.
Optionally, when the analog switch is in an off state, the voltage of the first input terminal is a divided voltage generated after the photosensitive signal passes through the bias circuit, and the voltage of the second input terminal is a delay voltage generated after the photosensitive signal passes through the delay circuit.
In a second aspect, an embodiment of the present invention provides an optical signal detection method, including:
the method comprises the steps that a bias circuit in an optical signal detection device is used for conducting voltage division processing on a received photosensitive signal to obtain a first processing signal, and a delay circuit in the optical signal detection device is used for conducting delay processing on the photosensitive signal to obtain a second processing signal;
inputting the first processing signal and the second processing signal into a comparator of the optical signal detection device to compare the voltage;
if the comparator is determined to output high level, the analog switch in the optical signal detection device, which is connected in parallel with the voltage dividing resistor of the delay circuit, is controlled to be switched on to short-circuit the voltage dividing resistor, the photosensitive signal is directly input into the comparator through a circuit where the analog switch is located, and when the comparator is determined to output low level, the analog switch is switched off to enable the delay circuit to keep normal work.
Optionally, before the voltage division processing is performed on the received photosensitive signal by a bias circuit in the optical signal detection apparatus, the method further includes:
and isolating the direct current in the photosensitive signal through a DC blocking circuit in the optical signal detection device.
Optionally, further comprising:
recording the number of pulses formed by high and low levels output by the comparator within preset time;
determining the voltage variation of the photosensitive signal within the preset time according to the pulse number and the offset difference; wherein the offset difference is a voltage difference between a first voltage of the first processed signal and a second voltage of the second processed signal.
In a third aspect, an embodiment of the present invention provides an optical signal detection apparatus, including:
the acquisition module is used for carrying out voltage division processing on the received photosensitive signal through a bias circuit in the optical signal detection device to obtain a first processing signal, and carrying out delay processing on the photosensitive signal through a delay circuit in the optical signal detection device to obtain a second processing signal;
the input module inputs the first processing signal and the second processing signal into a comparator of the optical signal detection device to compare the voltage;
and the control module is used for controlling an analog switch in the optical signal detection device, which is connected with a voltage division resistor of the delay circuit in parallel, to be switched on to short-circuit the voltage division resistor if the comparator is determined to output a high level, and directly inputting the photosensitive signal into the comparator through a circuit where the analog switch is located, or switching off the analog switch if the comparator is determined to output a low level, so that the delay circuit is kept to normally work.
Optionally, the apparatus further comprises:
the isolation module is used for isolating direct current in the photosensitive signal through a DC blocking circuit in the optical signal detection device before voltage division processing is carried out on the received photosensitive signal through a bias circuit in the optical signal detection device.
Optionally, the apparatus further comprises:
the recording module is used for recording the pulse number formed by the high and low levels output by the comparator within preset time;
the determining module is used for determining the voltage variation of the photosensitive signal within the preset time according to the pulse number and the offset difference; wherein the offset difference is a voltage difference between a first voltage of the first processed signal and a second voltage of the second processed signal.
In a fourth aspect, embodiments of the present invention provide a computer apparatus comprising a processor configured to implement the method according to the second aspect when executing a computer program stored in a memory.
In a fifth aspect, the present invention provides a computer-readable storage medium storing computer instructions, which when executed on a computer, cause the computer to perform the method according to the second aspect.
In the embodiment of the invention, because the output end of the comparison circuit of the optical signal detection device is connected with the analog switch of the feedback circuit, and the analog switch is connected with the divider resistance of the delay circuit in parallel, namely the on and off of the analog switch is controlled by the output level of the comparison circuit, therefore, the optical signal detection device adds bias voltage to the received photosensitive signal through the bias circuit, and carries out delay processing on the photosensitive signal through the delay circuit, and respectively inputs the photosensitive signal to the comparison circuit to compare the voltage magnitude, if the comparison circuit outputs high level, the analog switch in the feedback circuit is triggered to be on, the delay circuit is short-circuited, the photosensitive signal on the delay circuit can be directly input to the comparison circuit through the analog switch, and along with the increase of the voltage of the photosensitive signal, the voltage of the photosensitive signal directly input to the comparison circuit is larger than the voltage of the photosensitive signal after bias processing of the bias voltage, therefore, the level output by the comparison circuit is inverted and is changed from high level to low level, namely a pulse is completed, at the moment, the analog switch is switched off, and the delay module works normally. Therefore, when the photosensitive signal changes, whether the voltage of the photosensitive signal changes can be determined by detecting the high and low levels (corresponding pulses) output by the comparison circuit, even the voltage change amplitude of the photosensitive signal can be determined by calculating the number of the pulses, and therefore the detection accuracy is high.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 illustrates the internal structure of a prior art trigger probe system;
FIG. 2 is a block diagram of an optical signal detection apparatus according to an embodiment of the present invention;
FIG. 3 is a first schematic circuit diagram of an optical signal detection apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating the variation of the detection voltage with the input signal voltage in the optical signal detection apparatus according to the embodiment of the present invention;
FIG. 5 is a second schematic circuit diagram of an optical signal detection apparatus according to an embodiment of the present invention;
FIG. 6 is a flow chart of a method for detecting an optical signal according to an embodiment of the present invention;
FIG. 7 is a block diagram of an optical signal detection apparatus according to an embodiment of the present invention;
FIG. 8 is a block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the 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 invention.
The optical signal detection device in the embodiment of the invention can be used for detecting signals such as lamplight or sound and the like to obtain corresponding detection signals, and the optical signal detection device can also trigger corresponding alarm equipment to alarm and the like according to the detected detection signals.
The technical solution is described in detail below with reference to the drawings and the detailed description.
Example one
As shown in fig. 2, an optical signal detection apparatus according to an embodiment of the present invention may include a bias circuit 11, a delay circuit 12, a comparison circuit 13, and a feedback circuit 14, where the bias circuit 11 and the delay circuit 12 are respectively connected to the comparison circuit 13, and the feedback circuit 14 includes an analog switch connected in parallel to a voltage dividing resistor in the delay circuit 12.
In practical applications, the optical signal detection device may further include a dc blocking circuit 15, which is shown together with a dashed box in fig. 2. The blocking circuit 15 may be configured to block the photosensitive signal received by the optical signal detection apparatus, that is, to isolate the direct current in the photosensitive signal, so as to input the photosensitive signal containing the alternating current to the bias circuit 11 and the delay circuit 12, respectively, which is helpful to flexibly adjust the detection sensitivity of the amplitude variation of the subsequent stage.
Of course, the optical signal detection apparatus may also perform filtering, noise reduction, and other processing on the photosensitive signal before inputting the photosensitive signal into the bias circuit 11 and the delay circuit 12.
Specifically, the bias circuit 11 may add a bias voltage to the received photosensitive signal, that is, provide a bias voltage to the photosensitive signal transmitted by the dc blocking circuit 15, which includes an ac current, and the voltage value of the bias voltage may be preset in advance. In practical applications, the magnitude of the bias voltage determines the sensitivity of the amplitude variation measurement, and the invention does not limit the generation manner of the bias. In the embodiment of the present invention, the bias voltage in the bias circuit 11 may be generated directly by the power supply, or may also be generated by dividing the voltage by a resistor in the bias circuit 11, for example, the voltage in the bias circuit 11 may be represented as Vref. Then, when the voltage of the photosensitive signal to which the bias voltage is input is 0V, the voltage output by the bias circuit 11 may be the bias voltage Verf, or, if a voltage dividing resistor is further included in the bias circuit 11, the voltage output by the bias circuit 11 may be smaller than the bias voltage.
Of course, in practical applications, the bias circuit 11 may further include one or more voltage dividing resistors, which may be used for dividing the photosensitive signal.
The delay circuit 12 may delay the photosensitive signal after receiving the photosensitive signal input by the dc blocking circuit 15, for example, an ac signal of the photosensitive signal may be delayed by a preset delay time, which may be set based on a delay requirement, and the delay time determines how fast the amplitude of the detectable signal changes.
In the embodiment of the present invention, the delay circuit 12 may include a voltage dividing resistor and a charging capacitor, and after the photosensitive signal including the ac current is input to the delay circuit 12, the voltage is divided by the voltage dividing resistor, and the charging capacitor is charged by using the divided voltage, so as to implement the delay function.
In the embodiment of the present invention, the comparison circuit 13 includes a comparator, and the first input end and the second input end of the comparison circuit 13 are two input ends of the comparator. Wherein, if the first input end is the in-phase end (i.e. +), the second input end is the reverse end (i.e. -), or, if the first input end is the reverse end, the second input end is the in-phase end.
The first input end of the comparator is connected with the bias circuit 11 and can receive the photosensitive signal which is output by the bias circuit 11 and increases the bias voltage; the second input terminal of the comparator is connected to the delay circuit 12 to receive the photosensitive signal after the delay processing output by the delay circuit 12. In the comparator, when the voltage input to the in-phase terminal is greater than or equal to the reverse terminal, the comparator outputs a high level, otherwise, the comparator outputs a low level. In the embodiment of the present invention, the first input terminal is "+" and the second input terminal is "-" as an example, that is, the detection comparing circuit 13 outputs a positive pulse.
The feedback circuit 14 may be used to feed back the high and low levels output by the comparison circuit 13 to control the delay function of the delay circuit 12 accordingly. The feedback circuit 14 may include an analog switch, which may be a unit component with a controllable switch function, connected in parallel with the voltage dividing resistor of the delay circuit 12, and an input terminal of the analog switch is connected to an output terminal of the comparison circuit 13, and controls the analog switch to be turned on and off when a high/low level is input to the input terminal of the analog switch, that is, the analog switch in the feedback circuit 14 is controlled to be turned on and off by the level output from the comparison circuit 13. In practical applications, when the switching effect of the analog switch in the feedback circuit 14 is realized, the analog switch can be realized by a relay, an MOS, a triode, and the like with a controllable switching function, and a person skilled in the art can design the analog switch according to actual requirements, which is not specifically limited in the embodiment of the present invention.
In the embodiment of the present invention, as the voltage of the photosensitive signal increases, for example, the light is increased, if it is detected that the comparison circuit 13 outputs a high level, the analog switch in the feedback circuit 14 is switched from the off state to the on state, so as to short the delay circuit 12, at this time, the current photosensitive signal is directly input to the comparison circuit 13 through the analog switch for comparison, that is, when the analog switch is turned on, the voltage of the photosensitive signal input by the bias circuit 11 is directly compared with the voltage of the photosensitive signal in the comparator.
With the increase of the photosensitive signal, the voltage input by the delay circuit 12 will be greater than the voltage of the photosensitive signal subjected to voltage division processing in the bias circuit 11, the level output by the comparison circuit 13 will be inverted, that is, it is detected that the comparison circuit 13 outputs a low level, at this time, the analog switch in the feedback circuit 14 will be switched from the on state to the off state, so that the delay circuit 12 keeps working normally.
In the embodiment of the present invention, the output result of the comparison circuit 13 is fed back to the input end of the analog switch through the feedback circuit 14, so as to control the on state and the off state of the analog switch, and further to control the delay function of the delay circuit 12, so that in the process of changing the photosensitive signal, for example, when the photosensitive signal continuously increases, the level output by the comparison circuit 13 can inversely control the delay function of the delay circuit 12, so as to cause the comparison circuit 13 to invert the output level to form a pulse, so that the change amplitude of the photosensitive signal can be calculated by counting the pulse and the voltage difference in the comparator.
The following describes an exemplary detection process of the optical signal detection apparatus according to an embodiment of the present invention with reference to a specific circuit diagram.
In the embodiment of the present invention, the optical signal detection apparatus is mainly described by taking the example of detecting the variation amplitude of the photosensitive signal by the rising edge, and the designed circuit diagram is shown in fig. 3.
In fig. 3, the bias circuit 11 provides a bias voltage Verf, and the bias circuit 11 further includes voltage dividing resistors R1, R2, and R4 for performing voltage dividing processing on the photosensitive signal to which the bias voltage is added. The bias circuit 11 is connected to "+" of the comparator in the comparison circuit 13, the delay circuit 12 is connected to "-" of the comparator in the comparison circuit 13, the delay circuit 12 includes a voltage dividing resistor (R3) and a charging capacitor (C1), wherein R3 is connected in parallel with the analog switch in the feedback circuit 14, and the input terminal of the feedback circuit 14 is connected to the output terminal of the comparison circuit 13 to control the on and off of the analog switch by the high and low levels output by the comparison circuit 13. Fig. 3 also marks a plurality of voltage detection points, that is, five detection points a-e, and the corresponding detection voltages are Va, Vb, Vc, Vd, and Ve, where Ve is input to "+" of the comparator and Vc is input to "-" of the comparator.
In practical application, the point a inputs a photosensitive signal (i.e. a signal to be measured), which may be derived from a photoelectric conversion signal after the brightness sensing, or may be an electrical signal converted from temperature, pressure, etc., and is not limited herein.
In a normal case, when the voltage Va of the photo-sensitive signal detected at the point a does not change for a long time, the voltage of the photo-sensitive signal detected at the point b is maintained at Vb equal to Vref (R1+ R2)/(R1+ R2+ R4). In taking values, in order to simplify the calculation, R1 and R2 are generally much larger than R4, so the voltage at the point b can be equivalent to Vb ═ Vref. Meanwhile, the detected voltage Ve at the point e is Vb R2/(R1+ R2) Vref R2/(R1+ R2), and the voltage Vc at the point c is Vb Vref.
If the voltage of the photosensitive signal detected at the point a rises, the voltage Vb at the point b changes along with the change of Va due to the existence of C2, and the change is the same. For example, when the b point rises to Vb ═ Vref ═ R (R1+ R2)/R2, Ve also becomes Ve ═ Vb ═ R2/(R1+ R2) ═ Vref, and Vc changes after the C point voltage needs to be charged for a certain time due to the presence of R3 and C1, and the larger the values of C1 and R3 (where R3 and C1 can be from 0 to positive infinity to adapt to various detection scenarios), the longer the time required for the change is, and it conforms to the capacitance charging formula of Vc t) (+ Vc (Vb-Vc) ((1-exp (-t/(R3C 1)), so when R3 and C1 are large enough, the equivalent voltage at the C point can be regarded as constant, that is Vc ═ Vref, and then the output level is high.
At this time, due to the presence of the analog switch (K1), K1 is controlled by Vd at a high level, R3 is short-circuited, Vc is rapidly charged, Vc becomes Vc (Vb) ═ Vref (R1+ R2)/R2, and at this time, Vc is again greater than Vb, Vd of the comparator outputs a low level, and K1 is turned off.
Va and Vb continue to increase with the voltage of the photosensitive signal, when Vb rises to Vb ═ Vref (R1+ R2) ^2/R2^2, Ve ═ Vb ^ R2/(R1+ R2) ═ Vref (R1+ R2)/R2, and Vc remains in the last state due to the action of the delay circuit 12, that is, Vc ═ Vref (R1+ R2)/R2, and then Ve ═ Vc, Vd high level is output again, K1 is turned on, and R3 is short-circuited. When Vc becomes Vc ═ Vb ═ Vref (R1+ R2) ^2/R2^2> Ve, Vd output level is inverted to become low level, and K1 is disconnected.
Fig. 4 is a schematic diagram of voltage changes at the detection points in the above process.
Therefore, if the voltage of the photosensitive signal input at the point a continues to rise, each time the voltage rises to exceed Vc × R1/R2(Vc refers to the voltage detected at the current point c), a pulse signal is output at the point d, and then the change amplitude of the signal at the point a can be obtained according to the number of pulses.
For example, if Vref is set to 1V, R1 and R2 both take 10k, R4 takes 100, R3 takes 1000, and C1 takes 100uf, and the capacitance charging formula Vc (t) ═ Vc + (Vb-Vc) × (1-exp (-t/(R3 × C1))) is substituted for calculation, it is known that as long as Vb change speed is far less than 23ms, Vc can be guaranteed to change by less than 5% within 23ms, i.e., to be approximately constant.
If the voltage of the photosensitive signal at the point a is 0V in normal state, and the voltage of the photosensitive signal at the point a jumps from 0V to 3V in abnormal state, the equivalent point b changes from 1V to 4V, and according to the above process, the point d generates a pulse and two pulse signals respectively when the point b rises to 2V and 4V, which is equivalent to the effect of pulse modulation with equal proportion, and if the point a continues to rise, the third pulse is generated when the point a rises to 7V, namely, the point b is 8V. The equal-proportion pulse measurement can more reasonably quantize the variation amplitude of the signal to be measured, because when the variation amplitude is large to a certain degree, if the equal-interval quantization is continuously adopted, a large number of pulses can be generated, and the resources of a processing unit are occupied. In practical application, when the variation amplitude is large, the relative accuracy requirement of the detection system is also reduced, so that pulse quantization according to a certain proportion is more reasonable.
In another embodiment of the present invention, the optical signal detecting apparatus may also use a falling edge to detect the variation amplitude of the photosensitive signal, and the circuit design diagram corresponding to the optical signal detecting apparatus is shown in fig. 5.
Compared with the circuit designed in fig. 3, the voltage dividing resistor in the bias circuit 11 in fig. 5 may only include R4, and a voltage dividing resistor R5 may be added to the delay circuit 12, so that Vc ═ Vb (R5/(R3+ R5)) < Ve in the steady state.
Then, when the voltage Va of the photosensitive signal detected at the point a does not change for a long time, that is, Va is 0 and Vref is a positive voltage, Vc is Vb > Ve in a steady state according to the principle of voltage division. Therefore, when the falling edge detection is implemented, if a plurality of Va drops, Vb drops, and Ve is driven to drop until Vc kept in the previous state is lower than Vb (R5/(R3+ R5)), that is, it is ensured that the voltage output by the bias circuit 11 to the comparison circuit 13 in the steady state is greater than the voltage output by the delay circuit 12 to the comparison circuit 13, so that when the bias circuit 11 changes in real time along with the input of the photosensitive signal, the voltage drop process of the photosensitive signal only causes the inversion of the output level of the comparison circuit 13, and the voltage drop amplitude of the photosensitive signal can be calculated according to the number of pulses output by the comparison circuit 13.
Example two
As shown in fig. 6, an embodiment of the present invention provides an optical signal detection method, which can be applied to the optical signal detection apparatus described above, and the method can be described as follows:
s11: the received photosensitive signals are respectively subjected to voltage division processing through a bias circuit in the optical signal detection device to obtain first processing signals, and the photosensitive signals are subjected to delay processing through a delay circuit in the optical signal detection device to obtain second processing signals.
In the embodiment of the present invention, please refer to fig. 2, fig. 3, and fig. 5 and the corresponding description for the circuit structure and the operation principle of the optical signal detection apparatus, which are not repeated herein.
Specifically, the photosensitive signal may be a photoelectric conversion signal obtained by the optical signal detection device through a sensor, such as a luminance sensor, a sound sensor, or the like. Of course, the light-sensitive signal may be an electrical signal converted by a temperature sensor, a pressure sensor, or the like.
Before S11, the dc current in the photosensitive signal may be isolated by a dc blocking circuit in the optical signal detection apparatus, so as to avoid transmitting the dc amplitude in the photosensitive signal to the bias circuit and the delay circuit of the subsequent stage, and transmit only the ac current of the photosensitive signal to the subsequent stage, which facilitates flexible adjustment of the detection sensitivity of amplitude variation of the subsequent stage.
In practical application, filtering and other processing can be performed on the photosensitive signal before voltage division and delay processing is performed on the photosensitive signal, which is beneficial to improving the accuracy of the subsequent measurement.
In the embodiment of the present invention, the first processing signal may be a signal obtained by adding a bias voltage and dividing a voltage to the photosensitive signal by a bias circuit in the optical signal detection apparatus. The second processing signal may be a signal obtained by delaying the photosensitive signal by the delay circuit, or a signal obtained by dividing and delaying the photosensitive signal by the delay circuit. For example, if the delay circuit in the optical signal detection device includes a voltage dividing resistor and a charging capacitor, the second processing signal is the delayed signal of the photosensitive signal when the voltage dividing resistor is short-circuited, the voltage of the first processing signal is the current voltage of the photosensitive signal, and if the voltage dividing resistor is not short-circuited, the second processing signal is the signal obtained by dividing and delaying the photosensitive signal, and the voltage of the signal is the divided signal and is generally smaller than the current voltage of the photosensitive signal.
S12: the first processed signal and the second processed signal are input to a comparator of the optical signal detection device to compare the voltage magnitude.
In the embodiment of the invention, after the first processing signal and the second processing signal are input into the comparator, the optical signal detection device can compare the voltage of the first processing signal and the second processing signal, and output high/low level according to the comparison result. In the embodiment of the present invention, mainly taking the example that the first processing signal is input to the non-inverting terminal (+) of the comparator, and the second processing signal is input to the inverting terminal (-) of the comparator, when the voltage of the first processing signal is greater than the voltage of the second processing signal, the comparator outputs a high level, and when the voltage of the first processing signal is greater than the voltage of the second processing signal, the comparator outputs a low level.
S13: if the comparator is determined to output high level, the analog switch in the optical signal detection device, which is connected in parallel with the voltage dividing resistor of the delay circuit, is controlled to be switched on to short-circuit the voltage dividing resistor, the photosensitive signal is directly input into the comparator through the circuit where the analog switch is located, and when the comparator is determined to output low level, the analog switch is switched off to enable the delay circuit to normally work.
In the embodiment of the invention, along with the change of the photosensitive signal, if the optical signal detection device determines that the comparator outputs a high level, the analog switch controlled by the high level of the comparator is switched on, so that a voltage dividing resistor in the delay circuit is short-circuited, so that the photosensitive signal can be directly input into the comparator through the analog switch, namely the voltage of the second processing signal is the current voltage of the photosensitive signal, generally speaking, the voltage is greater than the voltage of the first processing signal after voltage division, therefore, the output level of the comparator can be overturned, a low level is output, at the moment, the low level output by the comparator controls the analog switch to be switched off, and the delay circuit recovers normal operation.
Therefore, during the change of the photosensitive signal, the level output by the comparator in the optical signal detection device is controlled by the analog switch connected in parallel with the voltage-dividing resistor in the delay circuit, so that the level output by the comparator can be prompted to be inverted, namely, a pulse is formed, and the change of the photosensitive signal can be favorably detected.
In the embodiment of the present invention, after S13, the number of pulses formed according to the high and low levels output by the comparator within the recorded preset time may be related to the delay time of the delay circuit. Then, the optical signal detection device can determine the voltage variation of the photosensitive signal in the preset time according to the number of pulses and an offset difference, wherein the offset difference is a voltage difference between a first voltage of the first processing signal and a second voltage of the second processing signal.
In a specific measurement process, the optical signal detection apparatus may determine the variation amplitude of the photosensitive signal by detecting a rising edge or a falling edge of the photosensitive signal, and for a specific detection and calculation process, please refer to fig. 3 to 5 and related descriptions, which are not described herein again.
In the embodiment of the invention, the optical signal detection device can quantize the change amplitude of the detection signal into the output pulse (corresponding to high and low levels), so that the calculation of the change amplitude of the photosensitive signal can be directly realized by recording the number of the pulses, and the power consumption and the resource are greatly saved.
EXAMPLE III
As shown in fig. 7, based on the same inventive concept, an embodiment of the present invention further provides an optical signal detection apparatus, which includes an obtaining module 21, an input module 22, and a control module 23.
The obtaining module 21 may be configured to perform voltage division processing on the received photosensitive signals through a bias circuit in the optical signal detection device to obtain first processed signals, and perform delay processing on the photosensitive signals through a delay circuit connected in parallel to the bias circuit to obtain second processed signals;
an input module 22, which inputs the first processed signal and the second processed signal into a comparator of the optical signal detection apparatus for comparing voltage;
and the control module 23 is configured to control an analog switch in the optical signal detection device, which is connected in parallel with a voltage-dividing resistor of the delay circuit, to be turned on to short-circuit the voltage-dividing resistor if it is determined that the comparator outputs a high level, and directly input the photosensitive signal to the comparator through a circuit where the analog switch is located, or turn off the analog switch if it is determined that the comparator outputs a low level, so that the delay circuit keeps working normally.
Optionally, the detection module may further include an isolation module, configured to isolate, by a dc blocking circuit in the optical signal detection apparatus, a dc current in the photosensitive signal before voltage division processing is performed on the received photosensitive signal by a bias circuit in the optical signal detection apparatus.
Optionally, the optical signal detection apparatus further includes a recording module and a determining module.
The recording module can record the number of pulses formed by the high and low levels output by the comparator within a preset time.
The determining module may be configured to determine a voltage variation of the photosensitive signal within the preset time according to the pulse number and the offset difference; wherein the offset difference is a voltage difference between a first voltage of the first processed signal and a second voltage of the second processed signal.
Example four
In an embodiment of the present invention, a computer apparatus is further provided, which has a structure as shown in fig. 8, and includes a processor 31 and a memory 32, where the processor 31 is configured to implement the steps of the data processing method provided in the first embodiment of the present invention when executing the computer program stored in the memory 32.
Optionally, the processor 31 may specifically be a central processing unit, an Application Specific Integrated Circuit (ASIC), one or more Integrated circuits for controlling program execution, a hardware Circuit developed by using a Field Programmable Gate Array (FPGA), or a baseband processor.
Optionally, the processor 31 may include at least one processing core.
Optionally, the electronic device further includes a Memory 32, and the Memory 32 may include a Read Only Memory (ROM), a Random Access Memory (RAM), and a disk Memory. The memory 32 is used for storing data required by the processor 31 in operation. The number of the memory 32 is one or more.
EXAMPLE five
The embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores computer instructions, and when the computer instructions are executed on a computer, the steps of the data processing method according to an embodiment of the present invention may be implemented.
In the embodiments of the present invention, it should be understood that the disclosed data processing method and data processing apparatus may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical or other form.
The functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be an independent physical module.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device, such as a personal computer, a server, or a network device, or a Processor (Processor), to execute all or part of the steps of the methods of the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a Universal Serial Bus flash drive (USB), a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
The above embodiments are only used to describe the technical solutions of the present invention in detail, but the above embodiments are only used to help understanding the method of the embodiments of the present invention, and should not be construed as limiting the embodiments of the present invention. Variations or substitutions that may be readily apparent to one skilled in the art are intended to be included within the scope of the embodiments of the present invention.
Claims (12)
1. An optical signal detection device, comprising:
a bias circuit for adding a bias voltage to the received photo-sensitive signal;
the delay circuit comprises a voltage division resistor and a charging capacitor, wherein the voltage division resistor is used for dividing the photosensitive signal, and the charging capacitor is used for delaying the photosensitive signal;
the comparison circuit comprises a first input end and a second input end, wherein the first input end is connected with the bias circuit, the second input end is connected with the delay circuit, and the comparison circuit is used for comparing the voltage of signals received by the first input end and the second input end and outputting a high level or a low level according to a comparison result;
the feedback circuit comprises an analog switch, the analog switch is connected with a voltage dividing resistor in the delay circuit in parallel, the input end of the analog switch is connected with the output end of the comparison circuit, and the feedback circuit is used for controlling the analog switch to be switched between an off state and an on state according to the output level of the comparison circuit;
when the comparison circuit is detected to output a high level, the analog switch is switched from an off state to an on state, so that the voltage dividing resistor in the delay circuit is short-circuited, and when the comparison circuit is detected to output a low level, the analog switch is switched from the on state to the off state, so that the delay circuit keeps normal operation.
2. The apparatus of claim 1, wherein the apparatus further comprises:
and the direct current blocking circuit is respectively connected with the bias circuit and the delay circuit and is used for blocking the direct current in the photosensitive signal and respectively transmitting the photosensitive signal after the direct current is blocked to the bias circuit and the delay circuit.
3. The apparatus of claim 2, wherein when the analog switch is in a conducting state, the voltage dividing resistor in the delay circuit is shorted, and the charging capacitor is charged with a voltage of the photosensitive signal.
4. The apparatus of claim 3, wherein when the analog switch is in an off state, the voltage of the first input terminal is a divided voltage generated after the photosensitive signal passes through the bias circuit, and the voltage of the second input terminal is a delay voltage generated after the photosensitive signal passes through the delay circuit.
5. An optical signal detection method, comprising:
the method comprises the steps that a bias circuit in an optical signal detection device is used for conducting voltage division processing on a received photosensitive signal to obtain a first processing signal, and a delay circuit in the optical signal detection device is used for conducting delay processing on the photosensitive signal to obtain a second processing signal;
inputting the first processing signal and the second processing signal into a comparator of the optical signal detection device to compare the voltage;
if the comparator is determined to output high level, the analog switch in the optical signal detection device, which is connected in parallel with the voltage dividing resistor of the delay circuit, is controlled to be switched on to short-circuit the voltage dividing resistor, the photosensitive signal is directly input into the comparator through a circuit where the analog switch is located, and when the comparator is determined to output low level, the analog switch is switched off to enable the delay circuit to keep normal work.
6. The method of claim 5, wherein before the dividing the received photosensitive signal by the bias circuit in the optical signal detection device, further comprising:
and isolating the direct current in the photosensitive signal through a DC blocking circuit in the optical signal detection device.
7. The method of claim 5 or 6, further comprising:
recording the number of pulses formed by high and low levels output by the comparator within preset time;
determining the voltage variation of the photosensitive signal within the preset time according to the pulse number and the offset difference; wherein the offset difference is a voltage difference between a first voltage of the first processed signal and a second voltage of the second processed signal.
8. An optical signal detection device, comprising:
the acquisition module is used for carrying out voltage division processing on the received photosensitive signal through a bias circuit in the optical signal detection device to obtain a first processing signal, and carrying out delay processing on the photosensitive signal through a delay circuit in the optical signal detection device to obtain a second processing signal;
the input module inputs the first processing signal and the second processing signal into a comparator of the optical signal detection device to compare the voltage;
and the control module is used for controlling an analog switch in the optical signal detection device, which is connected with a voltage division resistor of the delay circuit in parallel, to be switched on to short-circuit the voltage division resistor if the comparator is determined to output a high level, and directly inputting the photosensitive signal into the comparator through a circuit where the analog switch is located, or switching off the analog switch if the comparator is determined to output a low level, so that the delay circuit is kept to normally work.
9. The apparatus of claim 8, wherein the apparatus further comprises:
the isolation module is used for isolating direct current in the photosensitive signal through a DC blocking circuit in the optical signal detection device before voltage division processing is carried out on the received photosensitive signal through a bias circuit in the optical signal detection device.
10. The apparatus of claim 8 or 9, wherein the apparatus further comprises:
the recording module is used for recording the pulse number formed by the high and low levels output by the comparator within preset time;
the determining module is used for determining the voltage variation of the photosensitive signal within the preset time according to the pulse number and the offset difference; wherein the offset difference is a voltage difference between a first voltage of the first processed signal and a second voltage of the second processed signal.
11. A computer arrangement comprising a processor for implementing a method according to any one of claims 5-7 when executing a computer program stored in a memory.
12. A computer-readable storage medium having stored thereon computer instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 5-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711317591.5A CN108195465B (en) | 2017-12-12 | 2017-12-12 | Optical signal detection device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711317591.5A CN108195465B (en) | 2017-12-12 | 2017-12-12 | Optical signal detection device and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108195465A CN108195465A (en) | 2018-06-22 |
CN108195465B true CN108195465B (en) | 2020-04-03 |
Family
ID=62574250
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711317591.5A Active CN108195465B (en) | 2017-12-12 | 2017-12-12 | Optical signal detection device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108195465B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110311639A (en) * | 2019-06-27 | 2019-10-08 | 深圳和而泰智能控制股份有限公司 | A kind of sound detection circuit, voice recognition circuit and electronic equipment |
CN110299908B (en) * | 2019-07-02 | 2023-03-31 | 浙江大华技术股份有限公司 | Level conversion circuit |
CN113129637B (en) * | 2019-12-30 | 2022-06-24 | 上海汽车集团股份有限公司 | Parking space detection method and device and computer storage medium |
US11073570B1 (en) * | 2020-05-28 | 2021-07-27 | Western Digital Technologies, Inc. | Detecting problematic voltage signals from charge pumps |
CN113155282B (en) * | 2021-04-23 | 2024-04-26 | 京东方科技集团股份有限公司 | Sampling circuit, light detection system, display device and sampling method |
CN115328087B (en) * | 2022-08-10 | 2025-04-15 | 成都市易冲半导体有限公司 | Primary side information detection circuit, method and chip of secondary side PD controller |
CN115407105A (en) * | 2022-08-24 | 2022-11-29 | 上海普源精电企业发展有限公司 | Signal detection circuit and radio frequency power detection device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4075507A (en) * | 1975-03-18 | 1978-02-21 | G.A.O. Gesellschaft Fur Automation Und Organisation Mbh | Circuit arrangement for evaluating signals, particularly output signals of optical measuring devices |
CN101650223A (en) * | 2009-09-10 | 2010-02-17 | 天津大学 | Digitized photoelectric detector sensing circuit |
CN106714428A (en) * | 2017-03-31 | 2017-05-24 | 吴芷境 | Remote-control teaching classroom smart lamp system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7297922B2 (en) * | 2005-09-28 | 2007-11-20 | Intel Corporation | Optical receiver protection circuit |
-
2017
- 2017-12-12 CN CN201711317591.5A patent/CN108195465B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4075507A (en) * | 1975-03-18 | 1978-02-21 | G.A.O. Gesellschaft Fur Automation Und Organisation Mbh | Circuit arrangement for evaluating signals, particularly output signals of optical measuring devices |
CN101650223A (en) * | 2009-09-10 | 2010-02-17 | 天津大学 | Digitized photoelectric detector sensing circuit |
CN106714428A (en) * | 2017-03-31 | 2017-05-24 | 吴芷境 | Remote-control teaching classroom smart lamp system |
Also Published As
Publication number | Publication date |
---|---|
CN108195465A (en) | 2018-06-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108195465B (en) | Optical signal detection device and method | |
US8749224B2 (en) | Voltage detection circuit and method for controlling the same | |
US10692362B2 (en) | Systems and methods for comparing signal channels having different common mode transient immunity | |
US7911185B2 (en) | Battery voltage detection circuit | |
EP3657187B1 (en) | Fault detection in a low voltage differential signaling (lvds) system | |
CN110988571B (en) | Load insertion detection circuit, system and method | |
US20090212826A1 (en) | Hysteresis comparator | |
CN113519122B (en) | Circuit arrangement for determining the level of an over-bias voltage of a single photon avalanche diode | |
CN111220929B (en) | Control circuit capable of realizing short circuit detection and short circuit detection method thereof | |
US8604812B2 (en) | Voltage limiting test system and assistant test device | |
US20130328405A1 (en) | Ground test circuit | |
US20200021424A1 (en) | Communication apparatus, replacement unit, and image forming apparatus | |
CN104390718A (en) | Temperature detection method | |
CN109038692B (en) | Power supply device | |
US20150234420A1 (en) | Clock Switching Circuit | |
US8314679B2 (en) | Monitoring system and input device thereof | |
US20170315161A1 (en) | Detection circuit | |
US11500789B2 (en) | Automatic threshold adjustment for USB power delivery to work with cables out of specification | |
JP6276601B2 (en) | Trigger detection circuit and trigger detection IC chip | |
US9093961B2 (en) | Operational amplifier | |
CN110690689B (en) | Overcurrent protection device and method | |
CN111323691A (en) | Detection circuit and diagnosis method of pulse width modulation circuit | |
CN107579570B (en) | A voltage sampling control method, voltage sampling control circuit and adapter | |
US12287356B2 (en) | Voltage hold circuit, voltage monitoring circuit, and semiconductor integrated circuit | |
US8253615B2 (en) | Current sensing circuit |
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 |