Light sensation detection circuit based on operational amplifier
Technical field
Circuit is detected the present invention relates to a kind of light sensation based on operational amplifier.
Background technology
Be compared for the voltage of photodiode and reference voltage by comparator by traditional light sensation detection circuit, in light
When quick diode is blocked, detection signal is exported.This detection method is when detecting that pedestrian passes through, if being subject to certain static simultaneously
Object masks, testing result will be interfered.
The content of the invention
The present invention to be solved the deficiencies in the prior art, there is provided a kind of light based on operational amplifier of detection AC signal
Sense detection circuit.The detection circuit of the light sensation based on operational amplifier in the present invention only detects AC signal by coupled capacitor,
Can avoid stationary object from covering the interference that causes, detect pedestrian by when improve the accuracy of detection.
Therefore, the method for the detection exchange optical signal the invention also discloses light sensation detection circuit.
In order to solve the above technical problems, the present invention provides following technical scheme:
It is a kind of based on operational amplifier light sensation detection circuit, it is characterised in that including a photodiode, one
NMOS tube, five resistance, three electric capacity, two operational amplifiers and a Schmidt triggers.
The positive termination input voltage vin of photodiode, bears terminated nodes P1;
One end of the drain electrode connecting resistance R1 of NMOS tube, grid meets control signal CE, and source electrode connects with substrate, is grounded;
The one terminated nodes P1 of resistance R1, the drain electrode of another termination NMOS tube;
The one terminated nodes P2 of resistance R2, other end ground connection;
The one terminated nodes P3, another terminated nodes P2 of resistance R3;
The one terminated nodes P4 of resistance R4, other end ground connection;
The one terminated nodes P5, another terminated nodes P4 of resistance R5;
The one terminated nodes P1 of electric capacity C1, other end ground connection;
The one terminated nodes P1 of electric capacity C2, the in-phase input end of another termination operational amplifier A 1;
The one terminated nodes P5, another terminated nodes P4 of electric capacity C3;
One end of the homophase input termination electric capacity C2 of operational amplifier A 1, anti-phase input termination node P2, output termination section
Point P3;
The homophase input termination node P3 of operational amplifier A 2, anti-phase input termination node P4, output terminated nodes P5;
The input terminated nodes P5 of Schmidt trigger A3, output termination output Vout;
R3/R2=6/1, R5/R4=320/1 are met between resistance.
Light sensation of the present invention based on operational amplifier detects that the work detecting method of circuit is:
Input voltage vin is about 5V, and photodiode pressure drop when there is no light is different, therefore flows through photodiode
Electric current is different.Only when the light conditions that photodiode is received change, alternating current is produced on photodiode.Coupling
Electric capacity C2 can filter the DC current for flowing through photodiode, and the only alternating current on photodiode can be by coupling electricity
Hold C2.
Resistance R1 is current-limiting resistance, prevents from flowing through the electric current on photodiode excessive and burn photodiode;Electric capacity
C1 is used to filter off circuit noise;By outside CE pin controls, as CE=1, CE=0 is worked as in circuit work to the grid of NMOS tube N1
When, circuit is standby.
Alternating current on photodiode can be by after coupled capacitor C2, in the in-phase input end of operational amplifier A 1
Produce the voltage of about 1mV;Conversely, when no current on coupled capacitor C2, the voltage of the in-phase input end of operational amplifier A 1 is
0V.Two-stage calculation amplifier A1 and A2 are the connections of in-phase proportion computing circuit.
Electric capacity C3 plays high-pass filtering, can avoid the higher-order of oscillation, eliminates self-excitation, plays a part of phase compensation.
Operational amplifier A 1 and A2 can realize that low-power consumption works, and quiescent current is no more than 7 μ A during work.
The multiplication factor A of two-stage calculation amplifier A1 and A2V1And AV2Respectively:
When the input of operational amplifier A 1 is 1mV, the output V of two-stage calculation amplifierP5For:
VP5=AV1·AV2·VinA1=7 × 321 × 1mV=2.247V
When the input of operational amplifier A 1 is 0V, the output V of two-stage calculation amplifierP5For:
VP5=0V
By that can be electricity high by the voltage conversion of more than Schmidt trigger input 2V after Schmidt trigger A3 shapings
Flat 5V, when Schmidt trigger input is 0V, Schmidt trigger output end is also low level 0V.According to Schmidt trigger
The magnitude of voltage of output end can decide whether that pedestrian passes through:When Schmidt trigger output end is 5V, there is pedestrian to pass through;Apply
When schmitt trigger output end is 0V, no pedestrian passes through.
Brief description of the drawings
Fig. 1 is the circuit diagram of one embodiment of light sensation detection circuit of the present invention based on operational amplifier.
Fig. 2 is the timing diagram of one embodiment of light sensation detection circuit of the present invention based on operational amplifier.
Specific embodiment
Fig. 1 is referred to, this is one embodiment that light sensation of the present invention based on operational amplifier detects circuit, specific electricity
Line structure is applied including a photodiode, a NMOS tube, five resistance, three electric capacity, two operational amplifiers and one
Schmitt trigger.
The positive termination input voltage vin of photodiode, bears terminated nodes P1;
One end of the drain electrode connecting resistance R1 of NMOS tube, grid meets control signal CE, and source electrode connects with substrate, is grounded;
The one terminated nodes P1 of resistance R1, the drain electrode of another termination NMOS tube;
The one terminated nodes P2 of resistance R2, other end ground connection;
The one terminated nodes P3, another terminated nodes P2 of resistance R3;
The one terminated nodes P4 of resistance R4, other end ground connection;
The one terminated nodes P5, another terminated nodes P4 of resistance R5;
The one terminated nodes P1 of electric capacity C1, other end ground connection;
The one terminated nodes P1 of electric capacity C2, the in-phase input end of another termination operational amplifier A 1;
The one terminated nodes P5, another terminated nodes P4 of electric capacity C3;
One end of the homophase input termination electric capacity C2 of operational amplifier A 1, anti-phase input termination node P2, output termination section
Point P3;
The homophase input termination node P3 of operational amplifier A 2, anti-phase input termination node P4, output terminated nodes P5;
The input terminated nodes P5 of Schmidt trigger A3, output termination output Vout;
R3/R2=6/1, R5/R4=320/1 are met between resistance.
Light sensation of the present invention based on operational amplifier detects that the work detecting method of circuit is:
Input voltage vin is about 5V, and photodiode pressure drop when there is no light is different, therefore flows through photodiode
Electric current is different.Only when the light conditions that photodiode is received change, alternating current is produced on photodiode.Coupling
Electric capacity C2 can filter the DC current for flowing through photodiode, and the only alternating current on photodiode can be by coupling electricity
Hold C2.
Resistance R1 is current-limiting resistance, prevents from flowing through the electric current on photodiode excessive and burn photodiode;Electric capacity
C1 is used to filter off circuit noise;By outside CE pin controls, as CE=1, CE=0 is worked as in circuit work to the grid of NMOS tube N1
When, circuit is standby.
Alternating current on photodiode can be by after coupled capacitor C2, in the in-phase input end of operational amplifier A 1
Produce the voltage of about 1mV;Conversely, when no current on coupled capacitor C2, the voltage of the in-phase input end of operational amplifier A 1 is
0V.Two-stage calculation amplifier A1 and A2 are the connections of in-phase proportion computing circuit.
Electric capacity C3 plays high-pass filtering, can avoid the higher-order of oscillation, eliminates self-excitation, plays a part of phase compensation.
Operational amplifier A 1 and A2 can realize that low-power consumption works, and quiescent current is no more than 7 μ A during work.
The multiplication factor A of two-stage calculation amplifier A1 and A2V1And AV2Respectively:
When the input of operational amplifier A 1 is 1mV, the output V of two-stage calculation amplifierP5For:
VP5=AV1·AV2·VinA1=7 × 321 × 1mV=2.247V
When the input of operational amplifier A 1 is 0V, the output V of two-stage calculation amplifierP5For:
VP5=0V
By that can be electricity high by the voltage conversion of more than Schmidt trigger input 2V after Schmidt trigger A3 shapings
Flat 5V, when Schmidt trigger input is 0V, Schmidt trigger output end is also low level 0V.According to Schmidt trigger
The magnitude of voltage of output end can decide whether that pedestrian passes through:When Schmidt trigger output end is 5V, there is pedestrian to pass through;Apply
When schmitt trigger output end is 0V, no pedestrian passes through.
The preferred embodiments of the present invention are these are only, is not intended to limit the present invention.Come for those skilled in the art
Say, the present invention there can be various modifications and variations.It is all any modifications within the spirit and principles in the present invention, made, equivalent
Replace, improve etc., should be included within the scope of the present invention.