CN216013588U - Switch detection circuit and detection device - Google Patents
Switch detection circuit and detection device Download PDFInfo
- Publication number
- CN216013588U CN216013588U CN202121642903.1U CN202121642903U CN216013588U CN 216013588 U CN216013588 U CN 216013588U CN 202121642903 U CN202121642903 U CN 202121642903U CN 216013588 U CN216013588 U CN 216013588U
- Authority
- CN
- China
- Prior art keywords
- resistor
- power supply
- switch
- detection circuit
- capacitor
- 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
Abstract
The utility model relates to the technical field of power electronics, and provides a switch detection circuit and a detection device, wherein the detection circuit comprises: the circuit comprises an optical coupler, a first resistor, a second resistor and a third resistor; the first input end of the optical coupler is respectively connected with the first end of the first resistor and the first end of the second resistor, the second input end of the optical coupler is connected with the second end of the second resistor, the second input end of the optical coupler is also used for being connected with one end of the switch, the first output end of the optical coupler is connected with the first end of the third resistor, the first output end of the optical coupler is also used for outputting a switch state signal, and the second output end of the optical coupler is connected with the first grounding end; the second end of the third resistor is connected with the first power supply end, and the second end of the first resistor is connected with the second power supply end. The utility model detects the state of the switch through the optical coupler, and has simple circuit structure and low cost.
Description
Technical Field
The utility model belongs to the technical field of power electronics, and particularly relates to a switch detection circuit and a detection device.
Background
With the continuous development of the automation industry, a contact switch is generally adopted to control equipment, and the feedback of the switch state plays a crucial role in knowing the running state of the equipment for workers.
In the prior art, the state of the switch is usually detected by adopting contact detection, and the contact detection circuit has a complex structure and high cost.
SUMMERY OF THE UTILITY MODEL
In view of this, embodiments of the present invention provide a switch detection circuit and a detection device, so as to solve the problems of complex structure and high cost of a contact detection circuit in the prior art.
A first aspect of an embodiment of the present invention provides a switch detection circuit, including: the circuit comprises an optical coupler, a first resistor, a second resistor and a third resistor;
the first input end of the optical coupler is respectively connected with the first end of the first resistor and the first end of the second resistor, the second input end of the optical coupler is connected with the second end of the second resistor, the second input end of the optical coupler is also used for being connected with one end of the switch, the first output end of the optical coupler is connected with the first end of the third resistor, the first output end of the optical coupler is also used for outputting a switch state signal, and the second output end of the optical coupler is connected with the first grounding end;
the second end of the third resistor is connected with the first power supply end, and the second end of the first resistor is connected with the second power supply end.
Optionally, the switch detection circuit further includes: a voltage stabilizing element;
and the first end of the voltage stabilizing element is connected with the first end of the second resistor, and the second end of the voltage stabilizing element is connected with the second end of the second resistor.
Optionally, the voltage stabilizing element is a voltage stabilizing diode;
and the anode of the voltage stabilizing diode is connected with the second end of the second resistor, and the cathode of the voltage stabilizing diode is connected with the first end of the second resistor.
Optionally, the switch detection circuit further includes: a first capacitor;
and the first end of the first capacitor is connected with the first end of the third resistor, and the second end of the first capacitor is connected with the first grounding end.
Optionally, the switch detection circuit further includes: an isolated power supply module;
and the input end of the isolation power supply module is connected with the first power supply end, the input grounding end is connected with the first grounding end, the output end of the isolation power supply module is connected with the second power supply end, and the output grounding end of the isolation power supply module is connected with the second grounding end.
Optionally, the isolated power supply module includes: the power supply chip, the second capacitor, the third capacitor and the fourth resistor are isolated;
and the input end of the isolation power supply chip is respectively connected with the first end of the fourth resistor, the first end of the second capacitor and the input end of the isolation power supply module, the input grounding end of the isolation power supply chip is respectively connected with the second end of the fourth resistor, the second end of the second capacitor and the input grounding end of the isolation power supply chip, the output end of the isolation power supply chip is respectively connected with the first end of the third capacitor and the output end of the isolation power supply module, and the output grounding end of the isolation power supply chip is respectively connected with the second end of the third capacitor and the output grounding end of the isolation power supply module.
Optionally, the switch is a contact switch.
Optionally, the voltage of the first power supply terminal is 3.3V.
Optionally, the voltage of the second power supply terminal is 15V.
A second aspect of an embodiment of the present invention provides a detection apparatus including any one of the switch detection circuits of the first aspect of an embodiment of the present invention.
An embodiment of the present invention provides a switch detection circuit, including: the circuit comprises an optical coupler, a first resistor, a second resistor and a third resistor; the first input end of the optical coupler is respectively connected with the first end of the first resistor and the first end of the second resistor, the second input end of the optical coupler is connected with the second end of the second resistor, the second input end of the optical coupler is also used for being connected with one end of the switch, the first output end of the optical coupler is connected with the first end of the third resistor, the first output end of the optical coupler is also used for outputting a switch state signal, and the second output end of the optical coupler is connected with the first grounding end; the second end of the third resistor is connected with the first power supply end, and the second end of the first resistor is connected with the second power supply end. The embodiment of the utility model detects the state of the switch through the optical coupler, and has simple circuit structure and low cost.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic circuit diagram of a switch detection circuit according to an embodiment of the present invention;
FIG. 2 is a schematic circuit diagram of another switch detection circuit according to an embodiment of the present invention;
fig. 3 is a circuit schematic diagram of an isolated power supply module according to an embodiment of the utility model.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the utility model. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Referring to fig. 1, in an implementation of the present invention, there is provided a switch detection circuit including: the circuit comprises an optical coupler IC1, a first resistor R1, a second resistor R2 and a third resistor R3;
the first input end of the optocoupler IC1 is respectively connected with the first end of the first resistor R1 and the first end of the second resistor R2, the second input end of the optocoupler IC1 is connected with the second end of the second resistor R2, the second input end of the optocoupler IC1 is also used for being connected with one end of the switch, the first output end of the optocoupler IC is connected with the first end of the third resistor R3, the first output end of the optocoupler IC is also used for outputting a switch state signal, and the second output end of the optocoupler IC1 is connected with a first grounding end GND 1;
a second terminal of the third resistor R3 is connected to the first power supply terminal VCC1, and a second terminal of the first resistor R1 is connected to the second power supply terminal VCC 2.
In the embodiment of the utility model, the second input end of the optical coupler IC1 is connected with one end of the switch, and when the switch is turned on or turned off, the voltage at the second input end of the optical coupler IC1 changes, so that the divided voltage at two ends of the second resistor R2, namely the voltage difference between the first input end of the optical coupler IC1 and the second input end of the optical coupler IC1, is influenced, and the on-off state of the optical coupler IC1 is further influenced. For example, the resistances of the first resistor R1 and the second resistor R2 are adjusted, so that the optocoupler IC1 is turned on when the switch is turned off, and the switch state signal is at a low level; when the switch is switched off, the optical coupler IC1 is switched off, and the switch state signal is high level; the on/off of the switch can thus be determined directly by the switch status signal. The switch detection circuit provided by the embodiment of the utility model has the advantages of simple circuit structure and low cost, and can meet the requirements of practical application.
In some embodiments, the switch detection circuit may further include: a voltage stabilizing element;
and the first end of the voltage stabilizing element is connected with the first end of the second resistor R2, and the second end of the voltage stabilizing element is connected with the second end of the second resistor R2.
Static electricity can be generated when the switch is switched on and switched off, and a voltage stabilizing element is arranged between a first input end and a second input end of the optical coupler IC1 to prevent the electrostatic voltage from being too high and damaging the optical coupler IC 1.
In some embodiments, referring to fig. 2, the voltage stabilizing component may be a zener diode D1;
the anode of the zener diode D1 is connected to the second end of the second resistor R2, and the cathode is connected to the first end of the second resistor R2.
In some embodiments, referring to fig. 2, the switch detection circuit may further include: a first capacitance C1;
the first end of the first capacitor C1 is connected to the first end of the third resistor R3, and the second end is connected to the first ground GND 1.
The first capacitor C1 is used for filtering.
In some embodiments, the switch detection circuit may further include: an isolated power supply module 10;
the input terminal of the isolated power module 10 is connected to the first power terminal VCC1, the input ground terminal is connected to the first ground terminal GND1, the output terminal is connected to the second power terminal VCC2, and the output ground terminal is connected to the second ground terminal GND 2.
In some embodiments, referring to fig. 3, the isolated power module 10 may include: the isolation power chip IC2, the second capacitor C2, the third capacitor C3 and the fourth resistor R4;
an input end Vin (pin 14) of the isolation power chip IC2 is connected to the first end of the fourth resistor R4, the first end of the second capacitor C2, and the input end of the isolation power module 10, an input ground GND (pin 1) is connected to the second end of the fourth resistor R4, the second end of the second capacitor C2, and the input ground of the isolation power chip IC2, an output end + VO (pin 8) is connected to the first end of the third capacitor C3 and the output end of the isolation power module 10, and an output ground 0V (pin 10) is connected to the second end of the third capacitor C3 and the output ground of the isolation power module 10.
In the embodiment of the utility model, the isolation between the detection equipment end and the switch is realized through signal isolation (optical coupler IC1) and power isolation (isolated power module 10).
In some embodiments, the switches may be active switches or passive switches.
In some embodiments, the switch may be a contact switch.
In some embodiments, the voltage of the first power supply terminal VCC1 may be 3.3V.
The voltage of the first power terminal VCC1 can be 3.3V, so that the switch status signal can be directly input to the control chip, simplifying the circuit.
In some embodiments, the voltage of the second power supply terminal VCC2 may be 15V.
Corresponding to any of the above switch detection circuits, an embodiment of the present invention further provides a detection device, which includes any of the above switch detection circuits and has advantages of the above switch detection circuits, and details are not repeated herein.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.
Claims (10)
1. A switch detection circuit, comprising: the circuit comprises an optical coupler, a first resistor, a second resistor and a third resistor;
a first input end of the optocoupler is connected with a first end of the first resistor and a first end of the second resistor respectively, a second input end of the optocoupler is connected with a second end of the second resistor, the second input end of the optocoupler is also used for being connected with one end of a switch, a first output end of the optocoupler is connected with a first end of the third resistor, the first output end of the optocoupler is also used for outputting a switch state signal, and a second output end of the optocoupler is connected with a first grounding end;
the second end of the third resistor is connected with a first power supply end, and the second end of the first resistor is connected with a second power supply end.
2. The switch detection circuit of claim 1, further comprising: a voltage stabilizing element;
and the first end of the voltage stabilizing element is connected with the first end of the second resistor, and the second end of the voltage stabilizing element is connected with the second end of the second resistor.
3. The switch detection circuit of claim 2, wherein the voltage regulation element is a voltage regulation diode;
and the anode of the voltage stabilizing diode is connected with the second end of the second resistor, and the cathode of the voltage stabilizing diode is connected with the first end of the second resistor.
4. The switch detection circuit of claim 1, further comprising: a first capacitor;
and a first end of the first capacitor is connected with a first end of the third resistor, and a second end of the first capacitor is connected with the first grounding end.
5. The switch detection circuit of claim 1, further comprising: an isolated power supply module;
the input end of the isolation power supply module is connected with the first power supply end, the input grounding end of the isolation power supply module is connected with the first grounding end, the output end of the isolation power supply module is connected with the second power supply end, and the output grounding end of the isolation power supply module is connected with the second grounding end.
6. The switch detect circuit of claim 5, wherein the isolated power supply module comprises: the power supply chip, the second capacitor, the third capacitor and the fourth resistor are isolated;
the input end of the isolation power supply chip is connected with the first end of the fourth resistor, the first end of the second capacitor and the input end of the isolation power supply module respectively, the input grounding end of the isolation power supply chip is connected with the second end of the fourth resistor, the second end of the second capacitor and the input grounding end of the isolation power supply chip respectively, the output end of the isolation power supply chip is connected with the first end of the third capacitor and the output end of the isolation power supply module respectively, and the output grounding end of the isolation power supply chip is connected with the second end of the third capacitor and the output grounding end of the isolation power supply module respectively.
7. The switch detection circuit of any of claims 1-6, wherein the switch is a contact switch.
8. The switch detection circuit according to any one of claims 1 to 6, wherein the voltage of the first power supply terminal is 3.3V.
9. The switch detection circuit according to claim 8, wherein the voltage of said second power supply terminal is 15V.
10. A detection device comprising the switch detection circuit of any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202121642903.1U CN216013588U (en) | 2021-07-19 | 2021-07-19 | Switch detection circuit and detection device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202121642903.1U CN216013588U (en) | 2021-07-19 | 2021-07-19 | Switch detection circuit and detection device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN216013588U true CN216013588U (en) | 2022-03-11 |
Family
ID=80590251
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202121642903.1U Active CN216013588U (en) | 2021-07-19 | 2021-07-19 | Switch detection circuit and detection device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN216013588U (en) |
-
2021
- 2021-07-19 CN CN202121642903.1U patent/CN216013588U/en active Active
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN211429601U (en) | Open circuit and short circuit detection circuit and LED switching power supply control system | |
CN105788556A (en) | Overvoltage protection circuit and method and liquid crystal drive circuit | |
CN106849627B (en) | Ripple compensation circuit based on COT pattern buck converters | |
CN102594299A (en) | Square-wave generator circuit | |
CN216013588U (en) | Switch detection circuit and detection device | |
CN110502092B (en) | Power supply circuit and electronic equipment | |
CN104749423A (en) | Power failure detection circuit for direct current power supply | |
CN106300248A (en) | A kind of under-voltage protecting circuit of current control mode | |
CN213661578U (en) | Negative voltage protection circuit | |
CN215419641U (en) | Communication system | |
CN115453404A (en) | Power supply voltage difference detection circuit, chip, electronic component, and electronic device | |
CN212380941U (en) | Overvoltage and surge protection circuit and electronic equipment | |
CN210693431U (en) | Simple, practical and automatic-recovery input overvoltage protection circuit | |
CN113809914A (en) | Constant voltage control circuit | |
CN111984103B (en) | Power supply control circuit and electronic device applying same | |
CN114859108A (en) | Bidirectional zero-crossing detection circuit and method | |
CN215871369U (en) | Voltage-frequency conversion circuit and sensor | |
CN110212488A (en) | A kind of simple direct current anti-overvoltage circuit | |
CN216900696U (en) | Sampling circuit for switching far-end sampling and local sampling | |
CN213484842U (en) | Anti-interference circuit structure of sensitive signal | |
CN108631400B (en) | Control circuit and method for power supply | |
CN220603574U (en) | Input voltage detection circuit, switching power supply control chip and switching power supply | |
CN112017579B (en) | Display device and driving system thereof | |
CN216162615U (en) | Active remote signaling anti-parallel conflict circuit | |
CN113114211A (en) | Voltage-frequency conversion circuit and sensor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant |