CN213937869U - Isolated switching value signal tri-state detection circuit - Google Patents
Isolated switching value signal tri-state detection circuit Download PDFInfo
- Publication number
- CN213937869U CN213937869U CN202120123074.XU CN202120123074U CN213937869U CN 213937869 U CN213937869 U CN 213937869U CN 202120123074 U CN202120123074 U CN 202120123074U CN 213937869 U CN213937869 U CN 213937869U
- Authority
- CN
- China
- Prior art keywords
- optocoupler
- resistor
- input end
- photodiode
- controller
- 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
Images
Landscapes
- Photo Coupler, Interrupter, Optical-To-Optical Conversion Devices (AREA)
- Electronic Switches (AREA)
Abstract
The utility model relates to an isolated switching value signal tristate detection circuit, which comprises an optical coupler U1, an optical coupler U2, an optical coupler U3 and a controller; the photodiode of the optocoupler U1 is connected with the first control input end of the controller, and the phototriode of the optocoupler U1 is connected with the signal input end of the switch; the photodiode of the optocoupler U2 is connected with a switching signal input end, the phototriode of the optocoupler U2 is connected with a switching signal output end, and the switching signal output end is connected with a controller; the photodiode of the optocoupler U3 is connected with the second control input end of the controller, and the phototriode of the optocoupler U3 is connected with the input end of the switch signal. Through setting up three opto-coupler and controller, realized being in detection function of abnormal operating condition such as open circuit to the high level signal of switch signal, low level signal and signal introduction circuit, the circuit is simple, and the reliability is high.
Description
Technical Field
The utility model relates to a switching signal detection circuitry technical field, concretely relates to three state detection circuitry of isolated form switching value signal.
Background
The switch signal is used as a state signal for indicating that a certain state of the actuator exists in the automobile circuit in a large amount, such as a high beam switch signal, a turn signal switch signal, and the like. The switch signal is used as a necessary acquisition signal of automobile electronic acquisition equipment in the aftermarket, such as driving auxiliary equipment, driving training and driving test equipment and the like, and a general switch detection circuit can only detect two working states: the external load of the switch signal input end can not be accurately detected in abnormal working states such as disconnection, for example, turning on a steering lamp when turning in driving test judgment, turning off the steering lamp when turning, and the like.
At present, the three-state voltage signal is generally realized by adopting an A/D conversion mode, and is converted into a signal suitable for the input voltage range of an A/D chip through conditioning, and the voltage is converted into a digital signal. When the voltage of the input signal has a continuous linear variation trend, the method has the phenomena of complex hardware circuit, high cost and resource waste.
SUMMERY OF THE UTILITY MODEL
The utility model discloses to the problem that present detection method circuit is complicated, with high costs, provide an isolated form switching value signal tristate detection circuitry.
The utility model provides an above-mentioned technical problem's technical scheme as follows: an isolated switch value signal tri-state detection circuit comprises an optical coupler U1, an optical coupler U2, an optical coupler U3 and a controller;
the photodiode of the optocoupler U1 is connected with the first control input end of the controller, and the phototriode of the optocoupler U1 is connected with the signal input end of the switch;
the photodiode of the optocoupler U2 is connected with a switching signal input end, the phototriode of the optocoupler U2 is connected with a switching signal output end, and the switching signal output end is connected with a controller;
the photodiode of the optocoupler U3 is connected with the second control input end of the controller, and the phototriode of the optocoupler U3 is connected with the input end of the switch signal.
The utility model has the advantages that: by arranging the three optocouplers and the controller, the detection function of high-level signals and low-level signals of switch signals is realized, and accurate signals can be correctly obtained when a signal introducing circuit is in abnormal working states such as open circuit and the like; meanwhile, the circuit is simplified, unnecessary fault points are avoided, the reliability of the collector is improved, the areas of devices and circuit boards are reduced, limited resources are saved, and the tri-state collection which can be realized only by A/D conversion is overcome by using a switch detection mode. The circuit and the test circuit are completely isolated by adopting the optical coupler, the influence of the test circuit on the circuit is avoided, the requirement on the isolation characteristic of the circuit is met, and the application range of the detection circuit is widened.
On the basis of the technical scheme, the utility model discloses a reach the convenience of use and the stability of equipment, can also make following improvement to foretell technical scheme:
further, the anode of the photodiode of the optocoupler U1 is connected with an isolation power supply through a resistor R4, and the cathode of the photodiode of the optocoupler U1 is connected with the first control input end of the controller; and a phototriode of the optocoupler U1 and a resistor R1 are connected in series between the non-isolated power supply and the switch signal input end.
The beneficial effect of adopting the further technical scheme is that: prevent that the electric current is too big and damage opto-coupler U1 through resistance R1 and resistance R4, realize the protection to opto-coupler U1, realize the control to opto-coupler U1 on-off state through the state that changes control input end one to the realization is to switching signal's detection.
Further, the collector of the phototriode of the optocoupler U1 is connected with a non-isolated power supply, the emitter of the phototriode is connected with a resistor R1, and the other end of the resistor R1 is connected with a switch signal input end.
The beneficial effect of adopting the further technical scheme is that: the phototriode is connected with the non-isolated power supply, so that electricity is conveniently taken, and the circuit is simple.
Further, a collector of the optocoupler U1 is connected with a non-isolated power supply through a resistor R1, and an emitter of the optocoupler U1 is connected with a switching signal input end.
The beneficial effect of adopting the further technical scheme is that: the resistor R1 is arranged to prevent circuit interference and increase the stability of the circuit.
Further, the anode of the photodiode of the optical coupler U2 is connected with the resistor R2, the other end of the resistor R2 is connected with the switching signal input end, and the cathode of the photodiode of the optical coupler U2 is grounded.
The beneficial effect of adopting the further technical scheme is that: the resistor R2 can avoid overlarge current and protect the optocoupler U2; the detection of the switching signal is realized through the on-off of the photodiode, the circuit is simple, and the detection is reliable.
Further, the collector of the phototriode of the optocoupler U2 is connected with the resistor R5, the other end of the resistor R5 is connected with the isolation power supply, the common end of the phototriode of the optocoupler U2 and the common end of the resistor R5 are connected with the switch signal output end, and the emitter of the phototriode of the optocoupler U2 is grounded.
The beneficial effect of adopting the further technical scheme is that: the resistor R5 can avoid overlarge current, protect the optical coupler and improve the stability of the circuit.
Further, the anode of the photodiode of the optocoupler U3 is connected with an isolation power supply through a resistor R6, and the cathode of the photodiode is connected with a second control input end of the controller; the phototriode of the optocoupler U3 and the resistor R3 are connected in series between the switching signal input end and the ground.
The beneficial effect of adopting the further technical scheme is that: the resistor R6 can avoid overlarge current passing through the photodiode, and avoid the condition that the photodiode is burnt out; the resistor R3 can not only prevent the phototriode from being burnt out, but also provide the stability of the circuit.
Further, a collector of a phototriode of the optocoupler U3 is connected with the resistor R3, the other end of the resistor R3 is connected with a switching signal input end, and an emitter of the phototriode of the optocoupler U3 is grounded.
The beneficial effect of adopting the further technical scheme is that: the resistor R3 is arranged to prevent interference and increase the stability of the circuit.
Further, resistance R3 is pull-down resistance, the projecting pole and the resistance R3 of opto-coupler U3's phototriode are connected, resistance R3's other end ground connection, opto-coupler U3's phototriode's collecting electrode and switching signal input end are connected.
The beneficial effect of adopting the further technical scheme is that: the resistor R3 can avoid overlarge current and protect the optocoupler U2.
Further, a voltage stabilizing diode D1 is connected with the common end of the switch signal input end and the optical coupler U1, the optical coupler U2 and the optical coupler U3.
The beneficial effect of adopting the further technical scheme is that: the voltage stabilizing diode is added to stabilize the signal at the input end of the switching signal within a certain limit value, so that the stability of the circuit is improved.
Drawings
Fig. 1 is a schematic diagram of a detection circuit according to a first embodiment of the present application;
fig. 2 is a schematic diagram of a detection circuit according to a second embodiment of the present application.
Detailed Description
The principles and features of the present invention are described below in conjunction with the following drawings, the examples given are only intended to illustrate the present invention and are not intended to limit the scope of the present invention.
Example one
As shown in fig. 1, an isolated switching value signal tri-state detection circuit includes an optical coupler U1, an optical coupler U2, an optical coupler U3, and a controller;
the photodiode of the optocoupler U1 is connected with the first control input end of the controller, and the phototriode of the optocoupler U1 is connected with the signal input end of the switch;
the photodiode of the optocoupler U2 is connected with a switching signal input end, the phototriode of the optocoupler U2 is connected with a switching signal output end, and the switching signal output end is connected with a controller;
the photodiode of the optocoupler U3 is connected with the second control input end of the controller, and the phototriode of the optocoupler U3 is connected with the input end of the switch signal.
Optionally, the controller is a single chip microcomputer.
The high and low level signals of the first control input end and the second control input end are adjusted through the controller, the on and off states of the optical coupler U1 and the optical coupler U3 are controlled, and therefore the signals of the input end of the switch signal are detected, the circuit structure is simple, and reliability is high.
The anode of the photodiode of the optocoupler U1 is connected with an isolation power supply through a resistor R4, and the cathode of the photodiode of the optocoupler U1 is connected with a first control input end of the controller; and a phototriode of the optocoupler U1 and a resistor R1 are connected in series between the non-isolated power supply and the switch signal input end.
The collecting electrode and the non-isolation power of the phototriode of the optocoupler U1 are connected, the emitting electrode of the phototriode is connected with the resistor R1, and the other end of the resistor R1 is connected with the input end of the switch signal.
The positive pole of the photodiode of the optocoupler U2 is connected with the resistor R2, the other end of the resistor R2 is connected with the input end of the switch signal, and the negative pole of the photodiode of the optocoupler U2 is grounded.
The collecting electrode of the phototriode of optocoupler U2 is connected with resistor R5, the other end of resistor R5 is connected with the isolation power supply, the phototriode of optocoupler U2 is connected with switch signal output end with the common terminal of resistor R5, the emitting electrode of the phototriode of optocoupler U2 is grounded.
The anode of a photodiode of the optocoupler U3 is connected with an isolation power supply through a resistor R6, and the cathode of the photodiode is connected with a second control input end of the controller; the phototriode of the optocoupler U3 and the resistor R3 are connected in series between the switching signal input end and the ground.
The collecting electrode of the phototriode of the optocoupler U3 is connected with the resistor R3, the other end of the resistor R3 is connected with the input end of the switch signal, and the emitting electrode of the phototriode of the optocoupler U3 is grounded.
When the switching signal of the automobile needs to be detected, the non-isolated power supply is communicated with the anode of the storage battery of the automobile, and the non-isolated ground is communicated with the ground or the cathode of the storage battery of the automobile. The isolated power supply and the isolated ground are the power supply and the ground which are isolated and are not communicated with the anode and the cathode of the vehicle battery.
And in the default condition, the controller simultaneously sets the first control input end and the second control input end to be at a high level.
1. When the input end of the switching signal is at high level:
the photodiode of optocoupler U2 switches on, and then the phototriode of optocoupler U2 switches on, the switch signal output that the controller read through B department promptly switch signal's output is the low level.
2. When the input end of the switching signal is at low level:
the photodiode of opto-coupler U2 does not switch on, and then opto-coupler U2's phototriode does not switch on, the switching signal output that the controller read through B department promptly switching signal's output is the high level.
Namely, when the input end of the switch signal is input, the input switch signal controls the on or off of the optocoupler U2, the controller directly detects the corresponding switch signal through the position B, and at the moment, the on or off of the optocoupler U1 and the optocoupler U3 has no influence on the detection result.
3. When the switch signal input end is suspended or disconnected, namely the switch signal input end has no input:
(1) setting a first control input end to be at a low level through a controller, conducting a photodiode of the optocoupler U1, further conducting a phototriode of the optocoupler U1, conducting the voltage of a non-isolated power supply to a voltage point A through a resistor R1, wherein the A is at a high level because the resistor R1 is a pull-up resistor at the moment;
setting the second control input end to be at a high level through the controller, and disconnecting the photodiode of the optocoupler U3, so that the phototriode of the optocoupler U3 is disconnected;
because voltage point 1 is connected with the positive pole of the photodiode of the optocoupler U2 through the resistor R2, the photodiode of the optocoupler U2 is conducted, and then the phototriode of the optocoupler U2 is conducted, and the controller is low level through the switch signal output end read by the switch signal output end at the position B.
(2) Setting a first control input end to be at a high level through a controller, and enabling a photodiode of the optocoupler U1 to be not conducted, so that a phototriode of the optocoupler U1 is not conducted;
the control input end two is set to be low level through the controller, the photodiode of the optical coupler U3 is conducted, and then the phototriode of the optical coupler U3 is conducted, the voltage point A is changed into low level through the resistor R3, the optical coupler U2 is not conducted, and the controller is high level through the switch signal output end which is read by the switch signal output end at the position B.
The control logic of this embodiment is shown in table 1:
table 1 table of control logics of example 1
Example two
As shown in fig. 2, the difference from the first embodiment is that a zener diode is added, and the connection position of the resistor R1 and the resistor R3 is adjusted, and the rest is the same as the first embodiment.
And the collector of the optocoupler U1 is connected with a non-isolated power supply through a resistor R1, and the emitter of the optocoupler U1 is connected with a switching signal input end.
The resistance R3 is pull-down resistance, the projecting pole and the resistance R3 of opto-coupler U3's phototriode are connected, resistance R3's other end ground connection, opto-coupler U3's phototriode's collecting electrode and switching signal input end are connected.
And the switch signal input end and the common ends of the optocoupler U1, the optocoupler U2 and the optocoupler U3 are connected with a voltage stabilizing diode D1.
When the switch signal input terminal has a signal, the control logic of this embodiment is the same as that of embodiment 1, and when the switch signal input terminal is floating or disconnected, that is, the switch signal input terminal has no input, the control principle is as follows:
(1) setting a first control input end to be at a low level through a controller, conducting a photodiode of the optocoupler U1, further conducting a phototriode of the optocoupler U1, conducting the voltage of a non-isolated power supply to a voltage point A through a resistor R1, wherein the A is at a high level because the resistor R1 is a pull-up resistor at the moment;
setting the second control input end to be at a high level through the controller, and disconnecting the photodiode of the optocoupler U3, so that the phototriode of the optocoupler U3 is disconnected;
because voltage point 1 is connected with the positive pole of the photodiode of the optocoupler U2 through the resistor R2, the photodiode of the optocoupler U2 is conducted, and then the phototriode of the optocoupler U2 is conducted, and the controller is low level through the switch signal output end read by the switch signal output end at the position B.
(2) Setting a first control input end to be at a high level through a controller, and enabling a photodiode of the optocoupler U1 to be not conducted, so that a phototriode of the optocoupler U1 is not conducted;
the control input end two is set to be low level through the controller, the photodiode of the optical coupler U3 is conducted, and then the phototriode of the optical coupler U3 is conducted, the voltage point A is changed into low level through the resistor R3, the optical coupler U2 is not conducted, and the controller is high level through the switch signal output end which is read by the switch signal output end at the position B.
The control logic of this embodiment is shown in table 2:
table 2 table of control logic of example 2
To sum up, this application passes through the state of controller adjustment control input end one and control input end two to signal realization through detecting control signal output is to the detection of switching value tristate promptly high level, low level and unsettled state, and circuit structure is simple, has avoided the unnecessary fault point, has satisfied the requirement of the isolation characteristic of circuit itself simultaneously. According to the protection requirements of different degrees of the optical coupler, the connecting position of the resistor R1 and the resistor R3 is adjusted, and the application range of the detection circuit is widened.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the present invention, and any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention should be included within the protection scope of the present invention.
Claims (10)
1. An isolated switch value signal tri-state detection circuit is characterized by comprising an optical coupler U1, an optical coupler U2, an optical coupler U3 and a controller;
the photodiode of the optocoupler U1 is connected with the first control input end of the controller, and the phototriode of the optocoupler U1 is connected with the signal input end of the switch;
the photodiode of the optocoupler U2 is connected with a switching signal input end, the phototriode of the optocoupler U2 is connected with a switching signal output end, and the switching signal output end is connected with a controller;
the photodiode of the optocoupler U3 is connected with the second control input end of the controller, and the phototriode of the optocoupler U3 is connected with the input end of the switch signal.
2. The isolated switching value signal tri-state detection circuit according to claim 1, wherein an anode of a photodiode of the optocoupler U1 is connected with an isolated power supply through a resistor R4, and a cathode of the photodiode of the optocoupler U1 is connected with a first control input end of the controller; and a phototriode of the optocoupler U1 and a resistor R1 are connected in series between the non-isolated power supply and the switch signal input end.
3. The isolated switching value signal tri-state detection circuit according to claim 2, wherein a collector of a photo-transistor of the optocoupler U1 is connected to a non-isolated power supply, an emitter of the photo-transistor is connected to a resistor R1, and the other end of the resistor R1 is connected to the switching signal input terminal.
4. The isolated switching value signal tri-state detection circuit of claim 2, wherein a collector of the optocoupler U1 is connected with a non-isolated power supply through a resistor R1, and an emitter of the optocoupler U1 is connected with a switching signal input end.
5. The isolated switching value signal tri-state detection circuit according to claim 1, wherein an anode of the photodiode of the optocoupler U2 is connected with a resistor R2, the other end of the resistor R2 is connected with a switching signal input end, and a cathode of the photodiode of the optocoupler U2 is grounded.
6. The isolated switching value signal tristate detection circuit according to claim 1 or 5, characterized in that a collector of a phototransistor of the optocoupler U2 is connected with a resistor R5, the other end of the resistor R5 is connected with an isolated power supply, a common end of the phototransistor of the optocoupler U2 and the resistor R5 is connected with a switching signal output end, and an emitter of the phototransistor of the optocoupler U2 is grounded.
7. The isolated switching value signal tri-state detection circuit of claim 1, wherein an anode of a photodiode of the optocoupler U3 is connected with an isolated power supply through a resistor R6, and a cathode is connected with a second control input end of the controller; the phototriode of the optocoupler U3 and the resistor R3 are connected in series between the switching signal input end and the ground.
8. The isolated switching value signal tri-state detection circuit according to claim 7, wherein a collector of a phototransistor of the optocoupler U3 is connected to a resistor R3, the other end of the resistor R3 is connected to a switching signal input terminal, and an emitter of the phototransistor of the optocoupler U3 is grounded.
9. The isolated switching value signal tri-state detection circuit according to claim 7, wherein the resistor R3 is a pull-down resistor, an emitter of a phototransistor of the optocoupler U3 is connected to the resistor R3, the other end of the resistor R3 is grounded, and a collector of the phototransistor of the optocoupler U3 is connected to the switching signal input terminal.
10. The isolated switching value signal tri-state detection circuit of claim 1, wherein a zener diode D1 is connected between the switching signal input end and the common end of the optocoupler U1, the optocoupler U2 and the optocoupler U3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202120123074.XU CN213937869U (en) | 2021-01-18 | 2021-01-18 | Isolated switching value signal tri-state detection circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202120123074.XU CN213937869U (en) | 2021-01-18 | 2021-01-18 | Isolated switching value signal tri-state detection circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
CN213937869U true CN213937869U (en) | 2021-08-10 |
Family
ID=77158781
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202120123074.XU Active CN213937869U (en) | 2021-01-18 | 2021-01-18 | Isolated switching value signal tri-state detection circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN213937869U (en) |
-
2021
- 2021-01-18 CN CN202120123074.XU patent/CN213937869U/en active Active
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101720147B (en) | LED driving circuit and LED device | |
CN201854007U (en) | High-precision overcurrent protection circuit | |
CN105071469A (en) | Solar charging circuit | |
CN102377326A (en) | Insulated gate bipolar transistor (IGBT)-bridge-switch-topology-based driving circuit and protection module thereof | |
CN102749501B (en) | Isolated direct current high voltage detection method and isolated direct current high voltage detection circuit | |
CN208707289U (en) | A kind of power protecting circuit and vehicle power supply protective device | |
CN213937869U (en) | Isolated switching value signal tri-state detection circuit | |
CN204882781U (en) | High -power converter drives detection circuitry in advance | |
CN204669330U (en) | The Acquisition Circuit of universal On-off signal signal | |
CN212845737U (en) | Low-cost IGBT short circuit detection circuit | |
CN212255590U (en) | Elevator door lock detection circuit | |
CN208092205U (en) | A kind of closed-loop detection circuit for detecting relay output state | |
CN210401512U (en) | Vehicle control unit-based digital signal acquisition circuit and vehicle control unit | |
CN206023280U (en) | Over-discharge protection circuit | |
CN205583660U (en) | Output overcurrent protection circuit of frequency converter | |
CN216209439U (en) | Circuit for detecting surge voltage | |
CN213875857U (en) | Phase loss detection circuit for input power supply of servo driver | |
CN219107047U (en) | Power supply system protection circuit and power supply system | |
CN215180468U (en) | Zero-crossing detection circuit and device | |
CN216449021U (en) | Switching value input/output switching circuit of instrument | |
CN221010090U (en) | High-side driving circuit, controller and vehicle | |
CN216564493U (en) | Hysteresis circuit and vehicle-mounted controller weak current and under-voltage detection circuit | |
CN210016416U (en) | Intelligent power supply module | |
CN214674316U (en) | Multifunctional hard-line output circuit | |
CN217689147U (en) | Overcurrent detection circuit with protection function |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant |