Summary of the invention
Even if providing one kind firewire the technical problem to be solved by the present invention is to status in view of the above technology to go out with zero curve
Existing wiring error, also can self-identifying zero curve, connect route to zero curve always, to avoid causing machine casing to charge because of wrong,
Ensure the electronic circuit of production safety.
The technical scheme of the invention to solve the technical problem is: a kind of electronic circuit of self-identifying zero curve, packet
Firewire (J1) is included, the zero curve (J2) in circuit is constituted with the firewire (J1) and connects protection ground wire (J4) through first resistor (R9)
Voltage sampling end (D), it is characterised in that: further include voltage comparator circuit, for the voltage of voltage sampling end (D) and electronics is electric
The voltage that road is obtained through partial pressure sampling is compared;
Selection circuit is connect with the output end of the voltage comparator circuit, the output signal choosing based on voltage comparator circuit
Branch where selecting zero curve;
Bleeder circuit is divided for the supply voltage to electronic circuit, is sampled, and the voltage that partial pressure sampling is obtained
It is transmitted to the voltage comparator circuit;
Rectification circuit, between bleeder circuit and firewire (J1), rectification comes from the alternating current of firewire (J1), and output is stablized
Supply voltage;
The voltage comparator circuit includes the first operational amplifier (U1), second operational amplifier (U2), and the first operation is put
The non-inverting input terminal of big device (U1) is connected with voltage sampling end (D), and output end connects the second operation by second resistance (R8) and puts
The non-inverting input terminal of big device (U2), the inverting input terminal connection institute of the first operational amplifier (U1), second operational amplifier (U2)
Bleeder circuit is stated, the output end of second operational amplifier (U2) is connect with the selection circuit.
Further, the bleeder circuit include one end be connected with that output end of the rectifying circuit 3rd resistor (R5),
It is grounded with the other end of concatenated 4th resistance (R4) of the other end of 3rd resistor (R5), the 4th resistance (R4), partial pressure samples
To the voltage anti-phase input that is divided to two branches to be separately connected first operational amplifier (U1), second operational amplifier (U2)
End.
Further, the rectification circuit includes first diode (D1), the second diode (D2) and the first voltage-stabiliser tube
(D3), the second voltage-stabiliser tube (D4), the cathode of anode connection firewire (J1) and the first voltage-stabiliser tube (D3) of first diode (D1), the
One diode (D1) cathode connection the second diode (D2) cathode, the second diode (D2) anode connection zero curve (J2) and
The cathode of second voltage-stabiliser tube (D4) is grounded after positive and the second voltage-stabiliser tube (D4) the anode of the first voltage-stabiliser tube (D3) is in parallel.
Further, the selection circuit includes relay coil, the third diode for being parallel to relay coil both ends
(D5), with the commutator of relay coil interoperation, triode Q1, the in described relay coil one end and bleeder circuit
One end of three resistance (R5) is in parallel, the collector of other end connecting triode Q1, and the base stage of triode Q1 passes through the 5th resistance
(R7) it is connect with the output end of the second operational amplifier (U2), emitter ground connection, the first contact (F) of the commutator
It is connect with firewire (J1), the second contact (G) and the anode of the second diode (D2) are correspondingly connected with, and the second contact (G) is normally closed, double-throw
The zero curve layer (J3) of fixing end (E) the connection external device of switch.
Further, the other end of the 4th resistance (R4) is also connected in parallel the 6th resistance (R3), the 6th resistance (R3) it is another
One end is connected first resistor (R9), and first resistor (R9) other end directly connects protection ground wire (J4) or connected by series capacitance and protected
It protects ground wire (J4), voltage sampling end (D) is formed between the 6th resistance (R3) and first resistor (R9).
Further, the electronic circuit further includes protecting positioned at the current foldback circuit of the front end firewire (J1), positioned at overcurrent
Reduction voltage circuit between protection circuit and rectification circuit, the first filter circuit that the output of rectification circuit is filtered, for first, the
Two operational amplifiers the driving circuit of driving power is provided and the voltage of the first operational amplifier (U1) is filtered the
Two filter circuits, to the third filter circuit that the voltage of second operational amplifier (U2) is filtered, the of the commutator
(F) is connected between current foldback circuit and voltage reduction module for one contact.
Further, the current foldback circuit is overcurrent protection protective tube (F1);The reduction voltage circuit is by parallel with one another
The 7th resistance (R2) and first capacitor (C1) constitute;First filter circuit includes one end and the second diode (D2) cathode
It connects, the 8th resistance (R1) of other end connection one end 3rd resistor (R5) and one end are in parallel with the 8th resistance (R1), the other end
The first polar capacitor (C2) of ground connection;The driving circuit includes that one end is in parallel with one end of 3rd resistor (R5), the other end point
It is respectively the 9th resistance (R6) of the first operational amplifier (U1), second operational amplifier (U2) offer power supply at two branches;Institute
Stating the second filter circuit includes both ends the second capacitor (C5) and the second polar capacitor (C3) parallel with one another, a parallel connected end and the 9th
The other end of resistance (R6) is connected, another parallel connected end ground connection;The third filter circuit is one end and second operational amplifier
(U2) non-inverting input terminal is connected, the third polar capacitor (C4) of other end ground connection.
Compared with the prior art, the advantages of the present invention are as follows: this circuits under normal circumstances, the second contact G of commutator
It is normally closed, when firewire J1 and zero curve J2 wiring are correct, there is the electricity that voltage sampling end D is transmitted to amplifier U1 non-inverting input terminal at this time
The voltage that amplifier inverting input terminal is transmitted to after rectified circuit rectifies, bleeder circuit partial pressure is forced down, thus through two-phase amplifier
Output signal afterwards is low level, and corresponding triode Q1 is not turned on, and relay coil does not work, and commutator keeps the end G closure
It is constant, constant, the proper device operation that connects with zero curve J2 is kept with the zero curve layer of the external device of the circuit connection;When wiring mistake
Accidentally, there is zero curve J2 and connect firewire, when firewire J1 has connect zero curve, voltage sampling end D is transmitted to the electricity of amplifier U1 non-inverting input terminal
Pressure is higher than the voltage that the rectified device of alternating current rectifies, is transmitted to amplifier inverting input terminal after bleeder circuit partial pressure, thus by two
Output signal after phase amplifier is high level, corresponding triode Q3 conducting, relay coil work, is attracted commutator and goes to the
One contact F, what it is at this point, external electrical zero curve layer is connect with firewire J1, and due to firewire J1 connection at this time is zero curve, so
When external connection electrical apparatus be still in safe condition, once avoid previous wiring error, cause to leak exceeded, machine casing electrification,
Phenomena such as earth leakage protective device can not work normally causes accident frequently to occur.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and for explaining only the invention, and is not considered as limiting the invention.
The electronic circuit of self-identifying zero curve according to an embodiment of the present invention is described below with reference to Fig. 1, which includes firewire
J1, the zero curve J2 and protection ground wire J4 that circuit is constituted with firewire J1.
Overcurrent protection protective tube F1 is connected on firewire J1 route, by the 7th resistance R2 parallel with one another and first capacitor C1
The anode of reduction voltage circuit, the rectification circuit of composition, the rectification circuit is connect by reduction voltage circuit above-mentioned with firewire, cathode connection
Zero curve J2, the rectification circuit include first diode D1, the second diode D2 and the first voltage-stabiliser tube D3, the second voltage-stabiliser tube D4, and
The cathode of anode the connection reduction voltage circuit and the first voltage-stabiliser tube D3 of one diode D1, the cathode connection the two or two of first diode D1
The cathode of pole pipe D2, the cathode of anode the connection zero curve and the second voltage-stabiliser tube D4 of the second diode D2, the first voltage-stabiliser tube D3 is just
It is grounded after the anode of pole and the second voltage-stabiliser tube D4 are in parallel, the cathode of the second diode D2, i.e., the output end of rectification circuit connects the
The other end of other end parallel connection the first polar capacitor C2, the first polar capacitor C2 of eight resistance R1, the 8th resistance R1 are grounded, and the 8th
Resistance R1 and the first polar capacitor C2 constitutes the first filter circuit being filtered to rectification circuit.Enable firewire J1 and the one or two pole
The junction of pipe D1 anode is A point, and the junction of zero curve J2 and the second diode D2 anode is B point, and the first voltage-stabiliser tube D3 is just
Pole place in parallel with the anode of the second voltage-stabiliser tube D4 is C point.
Overcurrent protection protective tube for preventing overtension, burn by circuit overcurrent;Reduction voltage circuit is by being depressured alternating current
It is divided into and is suitable for the voltage that subsequent conditioning circuit uses, guarantee the safety of circuit system;And rectification circuit and the first filter circuit knot
Close, the alternating voltage of positive and negative variation is become into unidirectional pulsating volage using the unilateral conduction of diode, by AC conversion at
The direct current of loaded work piece eliminates as much as the alternating component in direct current using filter circuit, makes the supply voltage of output more
Stablize, guarantees the stability of circuit.Meanwhile double voltage stabilizing tube is used in rectification circuit, it can effectively keep the input on bleeder circuit
Voltage holding stablize it is constant, so that benchmark fiducial value is provided relatively for subsequent voltage, conducive to the realization of System Working Principle.
Further, the other end of the 8th resistance R1 bleeder circuit, selection circuit, driving circuit also in parallel.Wherein, it divides
Circuit include the 3rd resistor R5 being connect with the 8th resistance R1 other end, with the concatenated 4th resistance R4 of 3rd resistor R5, the 4th
The other end of resistance R4 is grounded, and carries out partial pressure sampling to the supply voltage of electronic circuit, and be transported to voltage comparator circuit;
Ground wire J4 includes concatenated 6th resistance R3 and first resistor R9, and the 4th resistance R4's of other end parallel connection of the 6th resistance R3 is another
End, another termination protecting field line J4 of first resistor R9 form voltage sampling end D between the 6th resistance R3 and first resistor R9.Certainly,
First resistor R9 can also by connect after series capacitance with protection ground wire J4, for example, by connect one or more Y capacitances and
Protect ground wire J4 connection.
Selection circuit includes relay coil, the third diode D5 for being parallel to relay coil both ends and relay line
The single-pole double-throw switch (SPDT) and triode Q1 of interoperation are enclosed, relay coil one end is connect with the other end of the 8th resistance R1, separately
The base stage of the collector of one end connecting triode Q1, triode Q1 is connected by the output end of the 5th resistance R7 and voltage comparator circuit
It connecing, emitter ground connection, the first contact F of single-pole double-throw switch (SPDT) is connected between overcurrent protection protective tube F1 and reduction voltage circuit, the
Two contact G are connect with the anode of the second diode D2, and the end G is normally closed, the zero curve layer of the fixing end E connection external device of commutator
J3;Certainly, in the present embodiment, single-pole double-throw switch (SPDT) can also change other conversion selecting switch, such as double-point double-throw switch into
Deng, those skilled in the art can corresponding selection according to actual needs, details are not described herein.
Voltage comparator circuit includes two the first operational amplifier U1, second operational amplifier U2, the first operational amplifier
The non-inverting input terminal of U1 is connected with voltage sampling end D, and output end is same by second resistance R8 connection second operational amplifier U2's
Phase input terminal, the first operational amplifier U1, second operational amplifier U2 inverting input terminal connect aforementioned bleeder circuit partial pressure after
Supply voltage, triode Q1 base stage connection is second operational amplifier U2 output end.
Driving circuit includes one end nineth resistance R6 in parallel with one end of relay coil, the pressure drop on the 9th resistance R6
It is divided into the driving end that two branches connect the first operational amplifier U1, second operational amplifier U2 through its other end end, to provide
Driving power.
Further, the circuit further include the second filter circuit for being filtered to the first operational amplifier U1, it is right
The third filter circuit that second operational amplifier U2 is filtered, the selection of filter circuit can there are many.Specifically, in this reality
It applies in example, the second filter circuit includes both ends the second capacitor C5 parallel with one another and the second polar capacitor C3, a parallel connected end and the
The other end of nine resistance R6 is connected, another parallel connected end ground connection;The third filter circuit is one end and second operational amplifier U2
Non-inverting input terminal is connected, the third polar capacitor C4 of other end ground connection.By guaranteeing amplifier for each operational amplifier design filter circuit
It works more steady.
Specific works are as follows:
Taking resistance value 200K Ω, the 8th resistance R1, the 9th each value of resistance R6 of the 7th resistance R2 is 100R, the 4th resistance
Each value 10K Ω of R4,3rd resistor R5, the 6th resistance R3, each value 10M Ω of first resistor R9, the 5th resistance R7, second resistance
Each value 1K Ω of R8;
When firewire J1 normally starts to exchange fire line, when zero curve J2 normally connects zero curve, enabling protection ground wire J4 ground terminal is H point, then B point and
H point equipotential is equivalent to B point voltage equal to voltage sampling end D voltage, can not consider, voltage sampling end D then mainly passes through
If under type obtains, i.e. firewire J1 is to A point after resistance-capacitance depressurization, and voltage (about 12V) is through the first voltage-stabiliser tube D3 after the decompression of A point
To C point, the A point voltage that C point voltage is about 1/4, as 3V, voltage sampling end D are divided through the 6th resistance R3 and first resistor R9
It is afterwards 1/2 C point voltage, the inverting input terminal voltage of about 1.5V, the first operational amplifier U1 are through the 4th resistance R4, third electricity
It hinders and obtains about 6V after R5 is divided, the inverting input terminal voltage due to voltage sampling end D less than the first operational amplifier U1, first
Operational amplifier U1 output end exports low level, while the output end of second operational amplifier U2 is also low level, triode Q1
Cut-off, relay coil do not work, and the normally closed end G of commutator is still closed, i.e. the E point of commutator connects J2 zero curve through G point
Output, it is ensured that the safety of rear end external connection electrical apparatus;
Work as wiring error, firewire J1 occur and connect zero curve, zero curve J2 start to exchange fire line when, A point and H point are equipotential, are equivalent to A point
Voltage is equal to voltage sampling end D, can not consider, voltage sampling end D is mainly obtained by following manner, J2's (about 220V)
B point is through the second voltage-stabiliser tube D4 to C point, the B point voltage that C point voltage is about 1/4, and about 55V, voltage sampling end D are divided through R3, R9
For 1/2 C point voltage, about 27.5V, the inverting input terminal of the first operational amplifier U1 is through the 4th resistance R4,3rd resistor R5
Obtaining after partial pressure is about 6V voltage, since voltage sampling end D is greater than the first operational amplifier U1 inverting input terminal voltage, is then exported
High level, second operational amplifier U2 also export high level, triode Q1 conducting simultaneously, and relay coil work is attracted double-throw
Switch turns to the end F closure, i.e. E point is connect through F point with J1, and J1 is due to wiring error at this time, the zero curve connect, then ensure that rear end
External connection electrical apparatus still connects zero curve circuit, ensures that safety, that is to say, that even if because circuit question or other originals
Because leading to system wiring mistake, this circuit also can automatic identification zero curve, and guarantee that rear end external device contacts zero curve always, avoid
Phenomena such as previous device terminal mistake, causes leakage current exceeded, and outer casing electrification and earth leakage protective device can not work normally.
It need to point out, the modules in this circuit can also be other deformations mentioned in addition to the present embodiment,
Those skilled in the art can carry out equivalence replacement according to actual needs.Meanwhile the capacity of the resistance value of each resistance, capacitor can root
It is selected according to actual needs, as long as the circuit after value is able to achieve the comparison of the application, to realize automatic identification zero curve, herein
It repeats no more.
Although an embodiment of the present invention has been shown and described, it will be appreciated by those skilled in the art that: do not departing from this
These embodiments can be carried out with a variety of variations, modification, replacement and deformation in the case where the principle and objective of invention, it is of the invention
Range is defined by the claims and their equivalents.