CN108195465A - A kind of detection device and method - Google Patents

A kind of detection device and method Download PDF

Info

Publication number
CN108195465A
CN108195465A CN201711317591.5A CN201711317591A CN108195465A CN 108195465 A CN108195465 A CN 108195465A CN 201711317591 A CN201711317591 A CN 201711317591A CN 108195465 A CN108195465 A CN 108195465A
Authority
CN
China
Prior art keywords
circuit
signal
voltage
detection device
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.)
Granted
Application number
CN201711317591.5A
Other languages
Chinese (zh)
Other versions
CN108195465B (en
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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology 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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201711317591.5A priority Critical patent/CN108195465B/en
Publication of CN108195465A publication Critical patent/CN108195465A/en
Application granted granted Critical
Publication of CN108195465B publication Critical patent/CN108195465B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • G01J1/42Photometry, e.g. photographic exposure meter using electric radiation detectors
    • G01J1/44Electric circuits
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01HMEASUREMENT OF MECHANICAL VIBRATIONS OR ULTRASONIC, SONIC OR INFRASONIC WAVES
    • G01H9/00Measuring mechanical vibrations or ultrasonic, sonic or infrasonic waves by using radiation-sensitive means, e.g. optical means
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • G01J1/42Photometry, e.g. photographic exposure meter using electric radiation detectors
    • G01J1/44Electric circuits
    • G01J1/46Electric 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 technical issues of embodiment of the present invention provides a kind of detection device and method, and the accuracy when detection system for solving trigger-type detection detects in different scenes is relatively low.The detection device includes:Biasing circuit;Delay circuit, the charging capacitor including the divider resistance for being used to divide photosensor signal and for carrying out delay disposal to photosensor signal;Comparison circuit is connected respectively with biasing circuit and delay circuit, for comparing the voltage swing of received signal, and exports high level or low level;Feedback circuit, including analog switch it is in parallel with divider resistance, and the output terminal of the input terminal of analog switch and comparison circuit connect;Wherein, when detecting that comparison circuit exports high level, analog switch is switched to conducting state, enables divider resistance short circuit and when detecting that comparison circuit exports low level, analog switch is switched to off-state, and delay circuit is enabled to keep normal work.

Description

A kind of detection device and method
Technical field
The present invention relates to field of communication technology, more particularly to a kind of detection device and method.
Background technology
At present, in detection system, often with a kind of detection mode of low-power consumption --- trigger-type detects.Trigger-type is visited When survey refers to without exception, system major part circuit is in standby mode, and only acquisition comparison circuit in part is working.If occur abnormal Event then causes to acquire comparison circuit trigger signal wake-up system, alarm.It is for example, real by dark detection bright to light It is existing energy saving or by sound size detection, for alarm etc..
Its internal realization of existing trigger-type detection system is upper usually as shown in Figure 1.In the detecting system, by detected letter It number is compared with a fixed voltage, when detected signal is more than the fixed voltage, one indication signal of triggering gives rear class processing System is used as reporting, and sends report information to remote platform in a wired or wireless fashion.Since this mode is typically only capable to refer to Show result of detection with and without two states, environmental suitability is poor, so in many scenes in use, being as a result inaccurate.Than Such as:The switch of light is detected, due to daytime and evening, room is near the window etc., it can all influence the absolute bright of switch lamp judgement Degree.
Therefore, in the prior art using trigger-type detect detection system detected in different scenes when accuracy compared with It is low.
Invention content
The embodiment of the present invention provides a kind of detection device and method, for solving the detection system of trigger-type detection in difference Scene in detect when accuracy it is relatively low the technical issues of.
In a first aspect, the embodiment of the present invention provides a kind of detection device, include the following steps:
Biasing circuit, for adding a bias voltage to the photosensor signal of reception;
Delay circuit, it is in parallel with the biasing circuit, including divider resistance and charging capacitor, the divider resistance for pair The photosensor signal is divided, and the charging capacitor is used to carry out delay disposal to the photosensor signal;
Comparison circuit, including first input end and the second input terminal, the first input end is connected with the biasing circuit, Second input terminal is connected with the delay circuit, for the first input end and the second input terminal received signal Voltage swing, and high level or low level are exported according to comparison result;
Feedback circuit, including an analog switch, the analog switch is in parallel with the divider resistance in the delay circuit, and The input terminal of the analog switch is connect with the output terminal of the comparison circuit, and the feedback circuit is used for according to comparison circuit Output level controls the analog switch to switch between off-state and conducting state;
Wherein, when detecting the comparison circuit output high level, the analog switch is switched to by off-state leads Logical state enables the short circuit of the divider resistance in the delay circuit and when detecting the comparison circuit output low level, described Analog switch is switched to off-state by the conducting state, and the delay circuit is enabled to keep normal work.
Optionally, the detection device further includes:
Block isolating circuit is connect respectively with the biasing circuit and the delay circuit, for being isolated in the photosensor signal DC current, and the photosensor signal after isolated DC electric current is respectively transmitted to the biasing circuit and the deferred telegram Road.
Optionally, when the analog switch is in the conduction state, the divider resistance short circuit in the delay circuit, The charging capacitor is charged using the voltage of the photosensor signal.
Optionally, when the analog switch is off, the voltage of the first input end is the photosensitive letter Number branch pressure voltage generated after the biasing circuit, the voltage of second input terminal are the photosensor signal through the delay The delay voltage generated after circuit.
Second aspect, the embodiment of the present invention provide a kind of detection method, including:
Voltage division processing carries out the photosensor signal of reception by the biasing circuit in detection device respectively, obtains the first processing Signal and by the delay circuit in the detection device to the photosensor signal carry out delay disposal, obtain second processing letter Number;
Described first processing signal and the second processing signal are inputted to the comparator comparison voltage of the detection device Size;
If it is determined that the comparator output high level, then control electric with the partial pressure of the delay circuit in the detection device Resistance analog switch conducting in parallel, with the short circuit divider resistance, and the photosensor signal is passed through where the analog switch Circuit directly inputs the comparator, and during the determining comparator output low level, disconnects the analog switch, prolong described in order Slow circuit keeps normal work.
Optionally, the photosensor signal of reception is carried out respectively by the biasing circuit in detection device voltage division processing it Before, further comprise:
By the block isolating circuit in the detection device to the DC current in the photosensor signal is isolated.
Optionally, further comprise:
The number of pulses that the low and high level of the comparator output is formed in record preset time;
According to the number of pulses and biasing difference, voltage change of the photosensor signal in the preset time is determined Amount;Wherein, the biasing difference is the first voltage of the described first processing signal and the second voltage of the second processing signal Between voltage difference.
The third aspect, the embodiment of the present invention provide a kind of detection device, including:
Acquisition module is carried out at partial pressure the photosensor signal of reception for passing through the biasing circuit in detection device respectively Reason obtains the first processing signal and carries out delay disposal to the photosensor signal by the delay circuit in the detection device, Obtain second processing signal;
Described first processing signal and the second processing signal are inputted the comparator of the detection device by input module Comparison voltage size;
Control module, for if it is determined that the comparator export high level, control in the detection device with the delay The analog switch conducting of the divider resistance parallel connection of circuit with the short circuit divider resistance, and the photosensor signal is passed through described Circuit where analog switch directly inputs the comparator or if it is determined that when the comparator exports low level, disconnects the mould Intend switch, the delay circuit is enabled to keep normal work.
Optionally, the detection device further includes:
Isolation module, for being carried out at partial pressure respectively to the photosensor signal of reception by the biasing circuit in detection device Before reason, by the block isolating circuit in the detection device to the DC current in the photosensor signal is isolated.
Optionally, the detection device further includes:
Logging modle, the number of pulses that the low and high level for recording the comparator output in preset time is formed;
Determining module, for according to the number of pulses and biasing difference, determining the photosensor signal when described default Interior voltage variety;Wherein, first voltage and the second processing of the biasing difference for the described first processing signal Voltage difference between the second voltage of signal.
Fourth aspect, the embodiment of the present invention provide a kind of computer installation, and the computer installation includes processor, described Such as second aspect the method is realized when processor is for performing the computer program stored in memory.
5th aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer-readable storage medium Matter is stored with computer instruction, when described instruction is run on computers so that computer is performed as described in second aspect Method.
In the embodiment of the present invention, since the output terminal of the comparison circuit of detection device and the analog switch of feedback circuit connect It connects, and the analog switch is in parallel with the divider resistance of delay circuit, i.e. the conducting of analog switch and disconnection is by the defeated of comparison circuit Go out level control, therefore, bias voltage is added to the photosensor signal of reception by biasing circuit in detection device and passes through delay Circuit to photosensor signal carry out delay disposal, and be separately input to comparison circuit carry out voltage swing comparison after, if more electric Road exports high level, then triggers analog switch in feedback circuit and be connected, delay circuit short circuit, then the photosensor signal on delay circuit Can comparison circuit be directly inputted by analog switch, then, with the increase of the voltage of photosensor signal, directly input comparison circuit The voltage of photosensor signal will be greater than the voltage of the photosensor signal after bias voltage bias treatment, therefore the level of comparison circuit output It will overturn, low level become from high level, that is, complete a pulse, analog switch disconnects at this time, the normal work of Postponement module Make.Therefore, it when photosensor signal changes, can determine by the low and high level (respective pulses) for detecting comparison circuit output photosensitive Whether the voltage of signal changes or even by calculating number of pulses, can also determine the voltage change amplitude of photosensor signal, Therefore the accuracy of detection is higher.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present invention, for this For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is the internal structure of trigger-type detection system in the prior art;
Fig. 2 is the structure chart of detection device of the embodiment of the present invention;
Fig. 3 is the circuit diagram one of detection device in the embodiment of the present invention;
Fig. 4 is that change schematic diagram of the voltage with applied signal voltage is detected in detection device of the embodiment of the present invention;
Fig. 5 is the circuit diagram two of detection device in the embodiment of the present invention;
Fig. 6 is the flow chart of detection method in the embodiment of the present invention;
Fig. 7 is the module map of detection device in the embodiment of the present invention;
Fig. 8 is the structure chart of Computer device of the embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention is made below in conjunction with attached drawing into It is described in detail to one step, it is clear that the described embodiments are only some of the embodiments of the present invention rather than whole implementation Example.Based on the embodiments of the present invention, those of ordinary skill in the art are obtained without making creative work All other embodiment, shall fall within the protection scope of the present invention.
Detection device in the embodiment of the present invention can be used for detecting the signals such as light or sound, obtain corresponding Detectable signal, and detection device can also trigger corresponding warning device according to the detectable signal detected and alarm etc..
In the following, Figure of description and specific embodiment will be combined, the above described technique is demenstrated in detail.
Embodiment one
As shown in Fig. 2, the embodiment of the present invention provides a kind of detection device, the detection device can include biasing circuit 11, Delay circuit 12, comparison circuit 13 and feedback circuit 14, wherein, biasing circuit 11 and delay circuit 12 respectively with comparison circuit 13 It is attached, feedback circuit 14 includes an analog switch, and the analog switch is in parallel with the divider resistance in delay circuit 12.
In practical applications, detection device may also include block isolating circuit 15, show the circuit together with dotted line frame in Fig. 2 Go out.Block isolating circuit 15 can be used for carrying out blocking processing to the photosensor signal that detection device receives, that is, be isolated in photosensor signal The photosensor signal for including alternating current is inputted biasing circuit 11 and delay circuit 12 by DC current respectively, is contributed to flexibly Adjust the detection sensitivity of rear class amplitude variation.
Certainly, detection device, can also be to photosensitive letter before photosensor signal is inputted biasing circuit 11 and delay circuit 12 It number is filtered, the processing such as noise reduction.
Specifically, biasing circuit 11 can be that the photosensor signal received increases bias voltage, i.e., block isolating circuit 15 is passed The photosensor signal comprising alternating current sent provides a bias voltage, and the voltage value of the bias voltage can be preset in advance 's.In practical applications, the size of bias voltage determines the sensitivity of amplitude measure of the change, and the present invention is not intended to limit biasing Producing method.In the embodiment of the present invention, what the bias voltage in biasing circuit 11 can directly be generated by power supply, alternatively, also may be used Vref can be expressed as with the voltage by the electric resistance partial pressure generation in biasing circuit 11, such as in biasing circuit 11.So, When the voltage of the photosensor signal of input offset voltage is 0V, then the voltage that biasing circuit 11 exports can be bias voltage Verf, if alternatively, further including divider resistance in biasing circuit 11, the voltage that biasing circuit 11 exports can be less than biased electrical Pressure.
Certainly, in practical applications, biasing circuit 11 can also include one or more divider resistances, can be used for light Quick signal is divided.
Delay circuit 12 can postpone photosensor signal, example after the photosensor signal that block isolating circuit 15 inputs is received The AC signal of photosensor signal can such as be postponed according to predetermined time delay, which can be based on prolonging It needs to set late, the time of delay, which determines, can be detected signal amplitude variation speed.
In the embodiment of the present invention, delay circuit 12 can include to divider resistance and charging capacitor, include alternating current Photosensor signal input delay circuit 12 after, by the partial pressure of divider resistance, charging capacitor is filled using the voltage after partial pressure Electricity realizes delay feature.
In the embodiment of the present invention, comparator, the first input end of comparison circuit 13 and second are included in comparison circuit 13 Input terminal is two input terminals of comparator.Wherein, if first input end is in-phase end (i.e.+), the second input terminal is anti- To end (i.e. -), if alternatively, first input end is backward end, the second input terminal is in-phase end.
The first input end of comparator is connected with biasing circuit 11, can receive the increase biased electrical of the output of biasing circuit 11 The photosensor signal of pressure;Second input terminal of comparator is connected with delay circuit 12, is postponed with receiving the output of delay circuit 12 Treated photosensor signal.In a comparator, when the voltage for inputting in-phase end is more than or equal to backward end, then comparator output is high Level, it is on the contrary then export low level.In the embodiment of the present invention, mainly using first input end as "+", the second input terminal is that "-" is Example illustrates, that is, detects comparison circuit 13 and export positive pulse.
Feedback circuit 14 can be used for feeding back the low and high level that comparison circuit 13 exports, with to delay circuit 12 Delay feature is controlled accordingly.The analog switch that feedback circuit 14 includes can be a list for carrying controllable switch function First component, it is in parallel with the divider resistance of delay circuit 12, and the input terminal of analog switch and the output terminal of comparison circuit 13 connect It connects, when the input terminal of analog switch inputs high/low level, controls the conducting and disconnection of analog switch respectively, that is to say, that anti- In current feed circuit 14 analog switch conducting and disconnect controlled by the level that comparison circuit 13 exports.In practical applications, in reality It, can also be by having the function of the relay of controllable switch, MOS, three in existing feedback circuit 14 during the switching effect of analog switch Pole pipe etc. realizes that those skilled in the art can be designed according to actual demand, the embodiment of the present invention is not made this specifically Limitation.
In the embodiment of the present invention, increase with the voltage of photosensor signal, such as light enhancing, if detecting comparison circuit 13 When exporting high level, then the analog switch in feedback circuit 14 will be switched to conducting state by off-state, enable delay circuit 12 Short circuit is compared at this point, current photosensor signal directly will input comparison circuit 13 by analog switch, i.e., in analog switch During conducting, the voltage for the photosensor signal for inputting biasing circuit 11 in comparator and the voltage of photosensor signal are directly compared.
With the increase of photosensor signal, the voltage that delay circuit 12 inputs will be greater than in biasing circuit 11 by partial pressure The voltage of the photosensor signal of reason, the level that comparison circuit 13 exports will be overturn, that is, it is low to detect that comparison circuit 13 exports Level at this point, the analog switch in feedback circuit 14 will be switched to off-state by conducting state, enables delay circuit 12 keep just Often work.
In the embodiment of the present invention, the output result of comparison circuit 13 is fed back to by the defeated of analog switch by feedback circuit 14 Enter end, so as to fulfill the control of conducting state and off-state to analog switch, and then realize the delay to delay circuit 12 The control of function, therefore in photosensor signal change procedure, such as when photosensor signal persistently increases, the level that comparison circuit 13 exports Comparison circuit 13 can be promoted to overturn output level with the delay feature of revertive control delay circuit 12, form a pulse, Therefore the amplitude of variation of photosensor signal can be calculated by the voltage difference in the counting to pulse and comparator.
The detection process of detection device in embodiment is illustrated the present invention with reference to specific circuit diagram.
In the embodiment of the present invention, mainly carried out so that detection device detects the amplitude of variation of photosensor signal by rising edge as an example Illustrate, the circuit diagram designed at this time is as shown in Figure 3.
In Fig. 3, the bias voltage that biasing circuit 11 provides is Verf, and divider resistance R1, R2 are further included in biasing circuit 11 And R4, for carrying out voltage division processing to the photosensor signal for increasing bias voltage.Biasing circuit 11 is compared with comparison circuit 13 The "+" of device is connected, and delay circuit 12 is connected with the "-" of comparator in comparison circuit 13, and delay circuit 12 includes divider resistance (R3) and charging capacitor (C1), wherein R3 is in parallel with the analog switch in feedback circuit 14, the input terminal of feedback circuit 14 with than Output terminal compared with circuit 13 connects, with the conducting and disconnection of low and high level control analog switch exported by comparing circuit 13. Multiple voltage detecting points are also labelled in Fig. 3, i.e. totally five test points, corresponding detection voltage are Va, Vb, Vc, Vd to a-e And Ve, wherein, the "+" of Ve input comparators, the "-" of Vc input comparators.
In practical applications, a points input a photosensor signal (signal i.e. to be measured), which can derive from brightness and sense The electric signal that photoelectric conversion signal or temperature, pressure etc. later is converted to, just being limited property does not embody here.
In general, when a points detection photosensor signal voltage Va for a long time it is unchanged when, then b points detection light The voltage of quick signal maintains Vb=Vref* (R1+R2)/(R1+R2+R4).In value, in order to simplify calculate, usual R1 and R2 is much larger than R4, so b point voltages can be equivalent to Vb=Vref.Meanwhile the e point voltage Ve=Vb*R2/ (R1+R2) of detection =Vref*R2/ (R1+R2), c point voltage Vc=Vb=Vref, due to the Vc of input comparator at this time>Ve, so comparator is defeated Go out low level, i.e. Vd is low level.
If the voltage of the photosensor signal of a points detection rises, due to the presence of C2, then b point voltages Vb can follow the change of Va Change and change, and variable quantity is the same.For example, when b points rise to Vb=Vref* (R1+R2)/R2, Ve also becomes Ve= Vb*R2/ (R1+R2)=Vref, and Vc is due to the presence of R3 and C1, c points voltage needs are electrically charged after a certain period of time just can be Variation, and C1 and R3 (R3 and C1 values here can be from 0 to just infinite, to adapt to various detection scenes) value is bigger, variation The required time is also longer, and meets capacitor charging formula Vc (t)=Vc+ (Vb-Vc) * (1-exp (- t/ (R3*C1))), Therefore, when R3, C1 value are sufficiently large, within a certain period of time, c point voltages of regarding as that can be equivalent remain unchanged, i.e. Vc= Vref then has Vc=Ve=Vref, so Vd exports high level.
At this point, due to the presence of analog switch (K1), K1 is controlled by the high level of Vd, makes R3 short-circuit, Vc quick charges, Vc Become Vc=Vb=Vref* (R1+R2)/R2, Vc is more than Vb, the Vd output low levels of comparator again at this time, and K1 is disconnected.
Continue to rise with the voltage of photosensor signal, Va and Vb continue to increase, when Vb rises to Vb=Vref* (R1+ R2) during ^2/R2^2, then Ve=Vb*R2/ (R1+R2)=Vref* (R1+R2)/R2, and Vc is due to the effect of delay circuit 12, It is still maintained at laststate, i.e. Vc=Vref* (R1+R2)/R2, then, just there is Ve=Vc at this time, therefore Vd exports high electricity again Flat, K1 conductings, R3 is short-circuited.And when Vc becomes Vc=Vb=Vref* (R1+R2) ^2/R2^2>During Ve, Vd output levels occur Overturning, becomes low level, and K1 is disconnected.
The voltage change schematic diagram of each test point is as shown in Figure 4 in the above process.
It can be seen that if the voltage of the photosensor signal of a points input continues to rise, it is increased beyond Vc*R1/R2 every time (Vc refers to the voltage of current c points detection), can all make d points export pulsatile once signal, then, it can be obtained according to number of pulses The amplitude of variation of a point signals.
For example, if Vref is set as 1V, R1 and R2 value 10k, R4 values 100, R3 values 1000, C1 values 100uf brings above-mentioned capacitor charging formula Vc (t)=Vc+ (Vb-Vc) * (1-exp (- t/ (R3*C1))) calculating into, it is known that, as long as Vb paces of change are much smaller than within 23ms, it is possible to be ensured that Vc changes in 23ms less than 5%, that is, be approximately constant.
If when normal, the voltage of the photosensor signal of a points is 0v, and the voltage of the photosensor signal of a points is from 0V saltus steps when abnormal For 3V, then equivalent b points can change to 4V from 1V, and describe as procedure described above, d points can when b points rise to 2V and 4V, A pulse is generated respectively, altogether two pulse signals, this is equivalent to the pulse modulated effect of an equal proportion, if a Point, which continues to rise, then to be needed rising to 7V, i.e. when b point 8V can just generate third pulse.This equal proportion impulsive measurement is more The rational amplitude of variation for having quantified signal to be measured because amplitude of variation greatly to a certain extent when, if continue using etc. between Every quantization, a large amount of pulse can be generated, occupies the resource of processing unit.In practical application, when amplitude of variation is big, detection system Opposite required precision of uniting can also reduce, so the quantization of pulse according to a certain percentage is more reasonable.
In an alternative embodiment of the invention, detection device can also use the amplitude of variation of failing edge detection photosensor signal, At this point, the corresponding circuit design drawing of detection device is as shown in Figure 5.
It compares for the circuit designed by Fig. 3, the divider resistance in Fig. 5 in biasing circuit 11 can only include R4, delay A divider resistance R5 can be added in circuit 12, then, under stable situation, Vc=Vb* (R5/ (R3+R5))<Ve.
So, when the voltage Va of the photosensor signal of a points detection is unchanged for a long time, i.e. va=0, Vref are positive voltage, According to voltage divider principle, Vc=Vb under stable state>Ve.Therefore when realizing failing edge detection, such as several Va decline, then Vb declines, and will Ve is driven to decline until less than the Vc=Vb* (R5/ (R3+R5)) that previous state is kept, that is, ensure that stable state below-center offset circuit 11 is defeated Go out and exported to the voltage of comparison circuit 13 more than delay circuit 12 to the voltage of comparison circuit 13, such biasing circuit 11 follows light During quick signal input real-time change, the output level of comparison circuit 13 can be only caused in the voltage of photosensor signal decline process It overturns, and then the voltage fall of photosensor signal can be calculated according to the number of pulses that comparison circuit 13 exports.
Embodiment two
As shown in fig. 6, the embodiment of the present invention provides a kind of detection method, above-mentioned detection device, the party can be applied to Method can be described as follows:
S11:Voltage division processing carries out the photosensor signal of reception by the biasing circuit in detection device respectively, obtains first It handles signal and delay disposal is carried out to photosensor signal by the delay circuit in detection device, obtain second processing signal.
In the embodiment of the present invention, the circuit structure and operation principle of detection device please refer to earlier figures 2, Fig. 3 and Fig. 5 and phase It should describe, details are not described herein again.
Specifically, photosensor signal can be that detection device passes through sensor, such as luminance sensor, sound transducer etc. The photoelectric conversion signal of acquisition.Certainly, which can also be obtained by conversions such as temperature sensor, pressure sensors Electric signal.
Before S11, it can also be kept away by the block isolating circuit in detection device to the DC current in isolation photosensor signal Exempt from the DC magnitude in photosensor signal being transmitted to the biasing circuit and delay circuit of rear class, and only the alternating current of photosensor signal Rear class is streamed to, helps that the detection sensitivity of rear class amplitude variation is adjusted flexibly.
Certainly, in practical applications, photosensor signal is divided and delay disposal before, can also be to photosensitive progress The processing such as filtering help to improve accuracy when rear class measures.
In the embodiment of the present invention, the first processing signal can be that biasing circuit increases biasing to photosensor signal in detection device Signal after voltage and partial pressure.Second processing signal can be signal after delay circuit postpones photosensor signal or be Delay circuit photosensor signal is divided and is postponed after signal.For example, if the delay circuit in detection device includes partial pressure Resistance and charging capacitor, then, in the case of divider resistance short circuit, second processing signal is the delay letter of photosensor signal Number, the voltage of the first processing signal is the current voltage of photosensor signal at this time, if divider resistance is not short-circuit, second processing letter Number be photosensor signal partial pressure and delay after signal, voltage be divide after signal, usually less than photosensor signal is current Voltage.
S12:By the comparator comparison voltage size of the first processing signal and second processing signal input detection device.
In the embodiment of the present invention, after detection device by first by handling signal and second processing signal input comparator, The voltage swing of the two can be compared, and high/low level is exported according to comparison result.In the embodiment of the present invention, mainly With the in-phase end (+) of the first processing signal input comparator, for the backward end (-) of second processing signal input comparator, then When the voltage of the first processing signal is more than the voltage of second processing signal, then comparator exports high level, anyway, then it exports low Level.
S13:If it is determined that comparator exports high level, then control in parallel with the divider resistance of delay circuit in detection device Analog switch is connected, and with short-circuit divider resistance, and photosensor signal is directly inputted comparator by circuit where analog switch, and When determining that comparator exports low level, analog switch is disconnected, delay circuit is enabled to keep normal work.
In the embodiment of the present invention, with the variation of photosensor signal, if detection device determines that comparator exports high level, by The analog switch of the high level control of comparator turns on, so as to carry out short circuit to the divider resistance in delay circuit, so that light Quick signal can directly input comparator by analog switch, i.e. the voltage of second processing signal is the current electricity of photosensor signal Pressure usually, is more than into first crossed after dividing and handles the voltage of signal, therefore the output level of comparator can be promoted to occur Overturning exports low level, at this point, the low level of comparator output will control analog switch to disconnect, delay circuit restores normal work Make.
Therefore, in photosensor signal change procedure, pass through the level pair and deferred telegram for exporting comparator in detection device The control of the analog switch of divider resistance parallel connection in road can promote the level that comparator exports to overturn, that is, form one Pulse helps to detect the situation of change of photosensor signal.
In the embodiment of the present invention, after S13, the low and high level that can be exported according to comparator in the preset time of record The number of pulses formed, the preset time can be related to the delay time of delay circuit.So, detection device is according to pulse Quantity and biasing difference, it may be determined that voltage variety of the photosensor signal in the preset time, the biasing difference are at first Manage the voltage difference between the first voltage of signal and the second voltage of second processing signal.
In specific measurement process, detection device can be come true by detecting the rising edge or failing edge of photosensor signal Determine the amplitude of variation of photosensor signal, specific detection and calculating process refer to Fig. 3-Fig. 5 and associated description, no longer superfluous herein It states.
In the embodiment of the present invention, since the amplitude of variation for detecting signal can be quantified as the pulse of output by detection device (corresponding low and high level), therefore be directly to be realized by the quantity of recording impulse in the amplitude of variation for calculating photosensor signal, Greatly save power consumption and resource.
Embodiment three
As shown in fig. 7, based on same inventive concept, the embodiment of the present invention also provides a kind of detection device, including obtaining mould Block 21, input module 22 and control module 23.
Acquisition module 21 can be used for dividing the photosensor signal of reception respectively by the biasing circuit in detection device Pressure processing obtains the first processing signal and the photosensor signal is prolonged by the delay circuit in parallel with the biasing circuit Processing late obtains second processing signal;
Described first processing signal and the second processing signal are inputted the comparison of the detection device by input module 22 Device comparison voltage size;
Control module 23, for if it is determined that comparator output high level, controls in the detection device and prolong with described The analog switch conducting of the divider resistance parallel connection of slow circuit, with the short circuit divider resistance, and passes through institute by the photosensor signal It states circuit where analog switch and directly inputs the comparator or if it is determined that when the comparator exports low level, described in disconnection Analog switch enables the delay circuit keep normal work.
Optionally, detection module can also include isolation module, for being docked by the biasing circuit in detection device Before the photosensor signal of receipts carries out voltage division processing respectively, by the block isolating circuit in the detection device to the photosensitive letter is isolated DC current in number.
Optionally, the detection device further includes logging modle and determining module.
Wherein, the pulse that logging modle can be formed in the low and high level that the comparator exports in record preset time Quantity.
Determining module can be used for, according to the number of pulses and biasing difference, determining the photosensor signal described default Voltage variety in time;Wherein, at first voltage and described second of the biasing difference for the described first processing signal Manage the voltage difference between the second voltage of signal.
Example IV
A kind of computer installation is also provided in the embodiment of the present invention, structure is as shown in figure 8, the computer installation includes place Device 31 and memory 32 are managed, wherein, the present invention is realized when processor 31 is for performing the computer program stored in memory 32 The step of data processing method provided in embodiment one.
Optionally, processor 31 can be specifically central processing unit, application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), can be one or more integrated circuits for program to be controlled to perform, Can be the hardware circuit of use site programmable gate array (Field Programmable Gate Array, FPGA) exploitation, It can be baseband processor.
Optionally, processor 31 can include at least one process cores.
Optionally, electronic equipment further includes memory 32, and memory 32 can include read-only memory (Read Only Memory, ROM), random access memory (Random Access Memory, RAM) and magnetic disk storage.Memory 32 is used for Store data required when processor 31 is run.The quantity of memory 32 is one or more.
Embodiment five
A kind of computer readable storage medium is also provided in the embodiment of the present invention, which has Computer instruction can realize that the present invention such as implements the data of an example offer when computer instruction instruction is run on computers The step of processing method.
In embodiments of the present invention, it should be understood that disclosed data processing method and data processing equipment can pass through Other modes are realized.For example, apparatus embodiments described above are only schematical, for example, the division of unit, only For a kind of division of logic function, there can be other dividing mode in actual implementation, such as multiple units or component can combine Or it is desirably integrated into another system or some features can be ignored or does not perform.Another point, shown or discussed phase Coupling, direct-coupling or communication connection between mutually can be by some interfaces, the INDIRECT COUPLING or communication of equipment or unit Connection, can be electrical or other forms.
Each functional unit in embodiments of the present invention can be integrated in a processing unit or each unit also may be used To be independent physical module.
If integrated unit realized in the form of SFU software functional unit and be independent product sale or in use, can To be stored in a computer read/write memory medium.Based on such understanding, the technical solution of the embodiment of the present invention it is complete Portion or part can be embodied in the form of software product, which is stored in a storage medium, packet It includes some instructions to use so that a computer equipment, such as can be personal computer, server or the network equipment etc., Or processor (Processor) performs all or part of step of the method for each embodiment of the present invention.And aforementioned storage is situated between Matter includes:It is general serial bus USB (Universal Serial Bus flash drive, USB), mobile hard disk, read-only Memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or The various media that can store program code such as person's CD.
Above example is only used for that technical scheme of the present invention is described in detail, but the explanation of above example is only It is the method for being used to help understand the embodiment of the present invention, should not be construed as the limitation to the embodiment of the present invention.The art The change or replacement that technical staff can readily occur in should all be covered within the protection domain of the embodiment of the present invention.

Claims (12)

1. a kind of detection device, which is characterized in that including:
Biasing circuit, for adding bias voltage to the photosensor signal of reception;
Delay circuit, including divider resistance and charging capacitor, the divider resistance is for dividing the photosensor signal, institute Charging capacitor is stated for carrying out delay disposal to the photosensor signal;
Comparison circuit, including first input end and the second input terminal, the first input end is connected with the biasing circuit, described Second input terminal is connected with the delay circuit, for the first input end and the electricity of the second input terminal received signal Size is pressed, and high level or low level are exported according to comparison result;
Feedback circuit, including an analog switch, the analog switch is in parallel with the divider resistance in the delay circuit, and described The input terminal of analog switch is connect with the output terminal of the comparison circuit, and the feedback circuit is used for the output according to comparison circuit Level controls the analog switch to switch between off-state and conducting state;
Wherein, when detecting the comparison circuit output high level, the analog switch is switched to conducting shape by off-state State enables the short circuit of the divider resistance in the delay circuit and when detecting the comparison circuit output low level, the simulation Switch is switched to off-state by the conducting state, and the delay circuit is enabled to keep normal work.
2. device as described in claim 1, which is characterized in that the detection device further includes:
Block isolating circuit is connect respectively with the biasing circuit and the delay circuit, straight in the photosensor signal for being isolated Galvanic electricity stream, and the photosensor signal after isolated DC electric current is respectively transmitted to the biasing circuit and the delay circuit.
3. device as claimed in claim 2, which is characterized in that when the analog switch is in the conduction state, the delay Divider resistance short circuit in circuit, the charging capacitor are charged using the voltage of the photosensor signal.
4. device as claimed in claim 3, which is characterized in that when the analog switch is off, described first The branch pressure voltage that the voltage of input terminal is generated for the photosensor signal after the biasing circuit, the voltage of second input terminal The delay voltage generated after the delay circuit for the photosensor signal.
5. a kind of detection method, which is characterized in that including:
Voltage division processing carries out the photosensor signal of reception by the biasing circuit in detection device respectively, obtains the first processing letter Number and by the delay circuit in the detection device to the photosensor signal carry out delay disposal, obtain second processing signal;
Described first processing signal and the second processing signal are inputted to the comparator comparison voltage size of the detection device;
If it is determined that comparator output high level, then control in the detection device with the divider resistance of the delay circuit simultaneously The photosensor signal with the short circuit divider resistance, and is passed through circuit where the analog switch by the analog switch conducting of connection When directly inputting the comparator, and determining the comparator output low level, the analog switch is disconnected, enables the deferred telegram Road keeps normal work.
6. method as claimed in claim 5, which is characterized in that by the biasing circuit in detection device to the photosensitive of reception Before signal carries out voltage division processing respectively, further comprise:
By the block isolating circuit in the detection device to the DC current in the photosensor signal is isolated.
7. such as method described in claim 5 or 6, which is characterized in that further comprise:
The number of pulses that the low and high level of the comparator output is formed in record preset time;
According to the number of pulses and biasing difference, voltage variety of the photosensor signal in the preset time is determined; Wherein, the biasing difference is between the first voltage of the described first processing signal and the second voltage of the second processing signal Voltage difference.
8. a kind of detection device, which is characterized in that including:
Acquisition module carries out voltage division processing to the photosensor signal of reception for passing through the biasing circuit in detection device, obtains respectively It obtains the first processing signal and delay disposal is carried out to the photosensor signal by the delay circuit in the detection device, obtain Second processing signal;
Input module, the comparator that the described first processing signal and the second processing signal are inputted to the detection device compare Voltage swing;
Control module, for if it is determined that the comparator export high level, control in the detection device with the delay circuit Divider resistance parallel connection analog switch conducting, with the short circuit divider resistance, and the photosensor signal is passed through into the simulation Circuit where switch directly inputs the comparator or if it is determined that when the comparator exports low level, disconnects the simulation and opens It closes, the delay circuit is enabled to keep normal work.
9. device as claimed in claim 8, which is characterized in that the detection device further includes:
Isolation module, for the photosensor signal of reception is carried out respectively by the biasing circuit in detection device voltage division processing it Before, by the block isolating circuit in the detection device to the DC current in the photosensor signal is isolated.
10. device as claimed in claim 8 or 9, which is characterized in that the detection device further includes:
Logging modle, the number of pulses that the low and high level for recording the comparator output in preset time is formed;
Determining module, for according to the number of pulses and biasing difference, determining the photosensor signal in the preset time Voltage variety;Wherein, first voltage and the second processing signal of the biasing difference for the described first processing signal Second voltage between voltage difference.
11. a kind of computer installation, which is characterized in that the computer installation includes processor, and the processor is used to perform It is realized during the computer program stored in memory such as any claim the method in claim 5-7.
12. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer to refer to It enables, when described instruction is run on computers so that computer performs the side as described in claim any in claim 5-7 Method.
CN201711317591.5A 2017-12-12 2017-12-12 Optical signal detection device and method Active CN108195465B (en)

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 true CN108195465A (en) 2018-06-22
CN108195465B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110299908A (en) * 2019-07-02 2019-10-01 浙江大华技术股份有限公司 A kind of level shifting circuit
CN110311639A (en) * 2019-06-27 2019-10-08 深圳和而泰智能控制股份有限公司 A kind of sound detection circuit, voice recognition circuit and electronic equipment
CN113155282A (en) * 2021-04-23 2021-07-23 京东方科技集团股份有限公司 Sampling circuit, light detection system, display device, and sampling method
CN113759186A (en) * 2020-05-28 2021-12-07 西部数据技术公司 Detecting problematic voltage signals from charge pumps
CN113129637B (en) * 2019-12-30 2022-06-24 上海汽车集团股份有限公司 Parking space detection method and device and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
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
US20070075215A1 (en) * 2005-09-28 2007-04-05 Giovannini Thomas J Optical receiver protection circuit
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
US20070075215A1 (en) * 2005-09-28 2007-04-05 Giovannini Thomas J Optical receiver protection circuit
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

Cited By (8)

* Cited by examiner, † Cited by third party
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
CN110299908A (en) * 2019-07-02 2019-10-01 浙江大华技术股份有限公司 A kind of level shifting circuit
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
CN113759186A (en) * 2020-05-28 2021-12-07 西部数据技术公司 Detecting problematic voltage signals from charge pumps
CN113759186B (en) * 2020-05-28 2024-07-02 西部数据技术公司 Detecting problematic voltage signals from a charge pump
CN113155282A (en) * 2021-04-23 2021-07-23 京东方科技集团股份有限公司 Sampling circuit, light detection system, display device, and sampling method
CN113155282B (en) * 2021-04-23 2024-04-26 京东方科技集团股份有限公司 Sampling circuit, light detection system, display device and sampling method

Also Published As

Publication number Publication date
CN108195465B (en) 2020-04-03

Similar Documents

Publication Publication Date Title
CN108195465A (en) A kind of detection device and method
CN106501618B (en) Capacitor&#39;s capacity measuring circuit
CN103576043A (en) Electric leakage detecting appratus
KR102655071B1 (en) Load detection system and corresponding load detection method
EP2564485A2 (en) Methods and systems for detecting battery presence
CN103713181A (en) Tiny current signal detecting device
US20060015670A1 (en) Apparatus for detecting connection of a peripheral unit to a host system
CN104062504A (en) Super-capacitor detecting circuit
CN103605396B (en) Output current of converter treatment circuit and method
CN103605017A (en) Detection method of vehicle switch quantity signal
US9753063B2 (en) Load side voltage sensing for utility meter
CN210269975U (en) Power failure detection circuit, chip and electronic equipment
CN104898009B (en) Detection equipment and detection method for online sensing equipment
CN208421767U (en) Electronic equipment and its consumable can control circuit
CN204389654U (en) Based on the battery electric quantity detection system that cell resistance is followed the tracks of
CN105051549A (en) Voltage measurement device
CN211856709U (en) Current detection circuit
CN101614763B (en) Method and device for detecting battery information
CN209963797U (en) Charging protection circuit and charging system
CN109624788B (en) Power battery pre-charging state judgment system and judgment method
CN107677876A (en) The dynamic measurement method and device of a kind of bipolar signal
CN103097903B (en) Method for detecting binary signal
CN220671646U (en) Liquid detection circuit of charging interface and electronic product
CN204667091U (en) A kind of intelligent power based on USB power supply interface
RU2017107977A (en) MODULE DRIVER AND EXCITATION METHOD

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