Detection circuit for switching value input

By introducing the current stabilizing module and detection module into the switching input detection circuit, combined with the clamping and filtering modules, the problems of electromagnetic interference and insufficient voltage range applicability are solved, and more reliable and stable switching input detection is achieved.

CN221804160UActive Publication Date: 2024-10-01川泽电气(厦门)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202323622746.X
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2023-12-28
Publication Date
2024-10-01
Estimated Expiration
2033-12-28

AI Technical Summary

Technical Problem

Existing switching input detection circuits are prone to errors when faced with interference such as electromagnetic interference, external static electricity, and surges, and are not suitable for different voltage ranges, leading to misidentification of signals and misoperation of equipment.

Method used

A switching input detection circuit including a current stabilizing module and a detection module is designed. The input signal is stabilized through the current stabilizing module, and a driving signal is generated to control the working status of the detection module. A clamping module and a clamping module are added when necessary. Filter module to resist interference.

Benefits of technology

It improves the voltage applicable range of the switching input signal, enhances the anti-interference ability and reliability of the detection circuit, and avoids misidentification and equipment misoperation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221804160U_ABST
    Figure CN221804160U_ABST
Patent Text Reader

Abstract

The utility model provides a detection circuit for switching value input, which comprises a current stabilization module and a detection module, after a to-be-detected switching value input signal is input into the current stabilization module, the current stabilization module carries out current stabilization processing on the to-be-detected switching value input signal, so that a driving signal output by the current stabilization module can be kept stable, and accurate control on the driving signal input into the detection module is realized; therefore, the detection module can work in the first working state or the second working state, and the voltage application range of the to-be-detected switching value input signal is widened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of electronic circuits, and more specifically to a switch value input detection circuit. Background Art

[0002] The detection of switch input is often used for the transmission of signal quantities, such as the feedback of circuit breaker position signals, the detection of button or switch status, etc.

[0003] The detection circuit of switch input is widely used in various industries for detecting state quantities. During the detection process, electromagnetic interference is easily generated when the switch input is turned on and off, which will impact the detection circuit of the switch input, resulting in detection errors or signal jitter.

[0004] If the detection circuit is unreliable, or caused by external static electricity, surge, or electromagnetic interference, the detection circuit is damaged or the detection circuit misidentifies the signal, it may cause the device to receive the wrong instruction, resulting in misoperation or false alarm. In addition, facing different application scenarios, the voltage of the switch input ranges from 5V to 220V, so the detection circuit of the switch input is also required to have a larger input voltage range to improve its applicability.

[0005] Therefore, it is very important to design a reliable detection circuit for switch input with a wide input voltage range. Utility Model Content

[0006] In view of this, in order to solve the above problems, the utility model provides a detection circuit for switch input, and the technical solution is as follows:

[0007] A detection circuit for switch value input, the detection circuit for switch value input comprising: a current stabilization module and a detection module;

[0008] The current stabilization module is used to receive a switch quantity input signal to be detected, perform current stabilization processing on the switch quantity input signal to be detected, and generate a driving signal;

[0009] The detection module is used to be in a first working state or a second working state according to the driving signal; output a first detection signal in the first working state, the first detection signal indicating that the switch input signal to be detected is a low-level signal; output a second detection signal in the second working state, the second detection signal indicating that the switch input signal to be detected is a high-level signal.

[0010] Optionally, in the above-mentioned detection circuit for switch value input, the detection circuit for switch value input further includes: a clamping module;

[0011] One end of the clamping module is connected to the input end of the current stabilizing module, and the other end of the clamping module is grounded;

[0012] The clamping module is used to perform voltage clamping processing on the switch value input signal to be detected before the switch value input signal to be detected is input into the current stabilization module.

[0013] Optionally, in the above-mentioned detection circuit for switch value input, the detection circuit for switch value input further includes: a filtering module;

[0014] The input end of the filter module is connected to the output end of the detection module; the output end of the filter module serves as the output end of the detection circuit of the switch input;

[0015] The filtering module is used to perform filtering processing on the first detection signal and the second detection signal.

[0016] Optionally, in the above-mentioned detection circuit of switch input, the current stabilization module includes:

[0017] A first resistor, a triode, a diode and a second resistor;

[0018] One end of the first resistor is connected to one end of the diode, and the connection point serves as the input end of the current stabilization module;

[0019] The other end of the first resistor is connected to the emitter of the transistor;

[0020] The base of the transistor is connected to the other end of the diode, and the connection point is connected to one end of the second resistor;

[0021] The collector of the transistor serves as the output end of the current stabilization module; the other end of the second resistor is grounded.

[0022] Optionally, in the above-mentioned detection circuit for switch quantity input, the second resistor is a pull-down resistor.

[0023] Optionally, in the above-mentioned detection circuit of switch quantity input, the transistor is a PNP transistor.

[0024] Optionally, in the above-mentioned detection circuit of switch input, the detection module includes:

[0025] A photocoupler and a third resistor;

[0026] The positive electrode of the input end of the photoelectric coupler is connected to the output end of the current stabilization module;

[0027] The positive electrode of the output end of the photoelectric coupler is connected to one end of the third resistor, and the connection point serves as the output end of the detection module;

[0028] The other end of the third resistor is connected to the power supply; the negative electrode of the input end of the photoelectric coupler is grounded; and the negative electrode of the output end of the photoelectric coupler is grounded.

[0029] Optionally, in the above-mentioned detection circuit of switch quantity input, the third resistor is a pull-up resistor.

[0030] Optionally, in the above-mentioned detection circuit of switch quantity input, the clamping module includes:

[0031] A transient voltage suppression diode, one end of which is connected to the input end of the current stabilization module; and the other end of which is grounded.

[0032] Optionally, in the above-mentioned detection circuit of switch input, the filtering module includes:

[0033] A fourth resistor and a filter capacitor;

[0034] One end of the fourth resistor is connected to the output end of the detection module; the second end of the fourth resistor is connected to one end of the filter capacitor, and the connection point serves as the output end of the detection circuit of the switch input;

[0035] The other end of the filter capacitor is grounded.

[0036] Compared with the prior art, the beneficial effects achieved by the utility model are:

[0037] The utility model provides a detection circuit for switch quantity input, in which a current stabilization module and a detection module are included; after the switch quantity input signal to be detected is input into the current stabilization module, the current stabilization module performs current stabilization processing on the switch quantity input signal to be detected, so that the driving signal output by the current stabilization module can be maintained stable, and accurate control of the driving signal of the input detection module is achieved, so that the detection module can work in the first working state or the second working state, and the voltage application range of the switch quantity input signal to be detected is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the utility model or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only embodiments of the utility model. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0039] Figure 1 It is a structural schematic diagram of an existing detection circuit for switch quantity input;

[0040] Figure 2A schematic diagram of the structure of a detection circuit for a switch input provided by the utility model;

[0041] Figure 3 A schematic diagram of the structure of another switch input detection circuit provided by the utility model;

[0042] Figure 4 This is a structural schematic diagram of another switch input detection circuit provided by the utility model. DETAILED DESCRIPTION

[0043] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments in the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.

[0044] Based on the content in the background technology, refer to Figure 1 , Figure 1 The present invention is a schematic diagram of the structure of an existing detection circuit for switch input; wherein, one end of a transient suppression diode D6 is connected to one end of a current limiting resistor R52, and the connection point serves as the input end of a switch input signal DI2; the other end of the transient suppression diode D6 is grounded GNDREF; the other end of the current limiting resistor R52 is connected to the positive electrode 1 of the input end of a photoelectric coupler U9; the negative electrode 2 of the input end of the photoelectric coupler U9 is grounded; the positive electrode 4 of the output end of the photoelectric coupler U9 is connected to one end of a pull-up resistor R54, and the connection point serves as the output end of the detection circuit for the entire switch input; the other end of the pull-up resistor R54 is connected to a power supply, and the power supply outputs a voltage of +5V; and the negative electrode 3 of the output end of the photoelectric coupler U9 is grounded GNDREF.

[0045] When the switch input signal DI2 exceeds the preset voltage range, the current flowing through the current limiting resistor R52, the positive pole 1 of the input terminal of the photocoupler U9 and the negative pole 2 of the input terminal of the photocoupler U9 will increase accordingly. When the current exceeds the conduction current of the photocoupler U9, the positive pole 4 of the output terminal of the photocoupler U9 and the negative pole 3 of the output terminal of the photocoupler U9 are turned on. At this time, the detection signal DI2_IN output by the positive pole 4 of the output terminal of the photocoupler U9 is a low-level signal, indicating that the switch input signal DI2 has a voltage. It should be noted that the preset voltage range is the voltage range of the switch input signal DI2 recognized by the detection circuit of the switch input, which is obtained based on the actual voltage detection.

[0046] When the switch input signal DI2 is less than the preset voltage range, the current flowing through the current limiting resistor R52, the positive input terminal 1 of the photocoupler U9 and the negative input terminal 2 of the photocoupler U9 will decrease. When the current is less than the on-current of the photocoupler U9, the positive output terminal 4 of the photocoupler U9 and the negative output terminal 3 of the photocoupler U9 are in an open circuit state. At this time, the pull-up electronic R54 will set the detection signal DI2_IN outputted by the positive output terminal 4 of the photocoupler U9 to a high level, indicating that the switch input signal DI2 has no voltage.

[0047] However, in the prior art, when the voltage of the input photocoupler U9 increases, the current of the positive input terminal 1 of the input photocoupler U9 and the negative input terminal 2 of the photocoupler U9 will increase, that is, the current passing through the positive input terminal 1 of the photocoupler U9 and the negative input terminal 2 of the photocoupler U9 will increase with the increase of the input voltage, which may easily cause the photocoupler U9 to fail to turn on or be damaged. For example, when the resistance of the current limiting resistor R52 is large, the voltage threshold of the switch input signal DI2 needs to be relatively large to make the photocoupler U9 turn on; when the resistance of the current limiting resistor R52 is small, in order not to damage the photocoupler U9, the voltage threshold of the switch input signal DI2 needs to be relatively small. At this time, the current flowing into the photocoupler U9 will increase rapidly with the increase of the voltage of the switch input signal DI2.

[0048] Therefore, in the existing detection circuit, in order to ensure that the photocoupler U9 can be turned on, the voltage range of the switch input signal DI2 needs to be relatively small, and relatively precise parameters of the current limiting resistor R52 are required to cooperate with the photocoupler U9 for detection; in addition, the existing detection circuit is sensitive to the voltage fluctuation of the switch input signal DI2, has poor anti-interference ability, and the output detection signal DI2_IN is easily misdetected.

[0049] Based on this, the utility model provides a detection circuit for switch quantity input, in which a current stabilization module and a detection module are included; after the switch quantity input signal to be detected is input into the current stabilization module, the current stabilization module performs current stabilization processing on the switch quantity input signal to be detected, so that the driving signal output by the current stabilization module can be maintained stable, thereby realizing precise control of the driving signal of the input detection module, so that the detection module can operate in the first working state or the second working state, thereby improving the voltage application range of the switch quantity input signal to be detected.

[0050] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0051] refer to Figure 2 , Figure 2 This is a structural schematic diagram of a detection circuit for a switch value input provided by the utility model; the detection circuit for the switch value input comprises: a current stabilization module 01 and a detection module 02.

[0052] The current stabilization module 01 is used to receive the switch value input signal DI1 to be detected, perform current stabilization processing on the switch value input signal DI1 to be detected, and generate a driving signal i1.

[0053] The detection module 02 is used to be in the first working state or the second working state according to the driving signal i1; output a first detection signal in the first working state, the first detection signal indicating that the switch input signal to be detected is a low-level signal; output a second detection signal in the second working state, the second detection signal indicating that the switch input signal to be detected is a high-level signal.

[0054] Specifically, after receiving the switch input signal DI1 to be detected, the current stabilization module 01 will output a stable current signal, namely the drive signal i1, through current stabilization processing, and the detection module 02 will be in the first working state or the second working state according to the drive signal i1.

[0055] It should be noted that the current stabilization module 01 can process the switch input signal DI1 to be detected and output a stable drive signal i1. That is to say, when the voltage of the switch input signal DI1 to be detected changes, the drive signal i1 output by the current stabilization module 01 is also stable. For example, when the switch input signal DI1 to be detected is 5V, the drive signal i1 output by the current stabilization module 01 is 5mA. When the switch input signal DI1 to be detected is 10V, the drive signal i1 output by the current stabilization module 01 is still 5mA. The stability mentioned here means that the drive signal i1 tends to be stable within a small range.

[0056] It should also be noted that the detection circuit has a preset threshold value, which is used to identify whether the switch input signal DI1 to be detected is a high-level signal or a low-level signal, and can be obtained according to the actual voltage detection. For example, in general, the preset threshold value can be between 1.5V and 2.0V. When the driving signal i1 output by the current stabilization module 01 is greater than the preset threshold value, it is different from that when it is less than the preset threshold value, but both are stable.

[0057] When the input switch input signal DI1 to be detected is greater than the preset threshold, the current stabilization module 01 will output a stable driving signal i1, and the detection module 02 will be in the first working state according to the driving signal i1. At this time, the detection signal DI1_IN output by the detection module 02 is the first detection signal, and the first detection signal is a low-level signal, that is, the first detection signal indicates that the switch input signal DI1 to be detected is in a voltage state.

[0058] When the input switch input signal DI1 to be detected is less than the preset threshold, the current stabilization module 01 will output a stable driving signal i1. At this time, the detection module 02 will be in the second working state according to the driving signal i1. At this time, the detection signal DI1_IN output by the detection module 02 is the second detection signal, and the second detection signal is a high-level signal. That is to say, the second detection signal indicates that the switch input signal DI1 to be detected is in a voltage-free state.

[0059] The current stabilization module 01 processes the input switch input signal DI1 to be detected and then detects it through the detection module 02, thereby achieving precise control of the drive signal i1 of the input detection module 02 and expanding the voltage application range of the switch input signal DI1 to be detected.

[0060] Optionally, in another embodiment of the present invention, the flow stabilization module 01 includes:

[0061] a first resistor R4, a transistor Q1, a diode D7 and a second resistor R8.

[0062] One end of the first resistor R4 is connected to one end of the diode D7 , and the connection point serves as the input end of the current stabilization module 01 .

[0063] The other end of the first resistor R4 is connected to the emitter e of the transistor Q1 .

[0064] The base b of the transistor Q1 is connected to the other end of the diode D7 , and the connection point is connected to one end of the second resistor R8 .

[0065] The collector electrode c of the transistor Q1 serves as the output end of the current stabilization module 01; the other end of the second resistor R8 is grounded GNDREF.

[0066] Optionally, in another embodiment of the present invention, the second resistor R8 is a pull-down resistor.

[0067] Optionally, in another embodiment of the present invention, the transistor Q1 is a PNP transistor.

[0068] Optionally, in another embodiment of the present invention, the detection module 02 includes:

[0069] The photocoupler U4 and the third resistor R12.

[0070] The positive input terminal 1 of the photoelectric coupler U4 is connected to the output terminal of the current stabilization module 01 .

[0071] The positive output terminal 4 of the photoelectric coupler is connected to one end of the third resistor R12 , and the connection point serves as the output terminal of the detection module 02 .

[0072] The other end of the third resistor R12 is connected to the power supply; the negative electrode 2 of the input end of the photoelectric coupler U4 is grounded; the negative electrode 3 of the output end of the photoelectric coupler U4 is grounded GND.

[0073] Optionally, in another embodiment of the present invention, the third resistor R12 is a pull-up resistor.

[0074] Specifically, since the transistor Q1 is a PNP transistor, according to the characteristics of the PNP transistor, when Ube<0, Ubc>0, the transistor Q1 works in the amplification region, at which time the current flows from the emitter e of the transistor Q1 to the collector c and the base b, and the collector c of the transistor Q1 will output a current close to a constant current, that is, the drive signal i1. According to the characteristics of the PNP transistor, the conduction voltage Ueb between the emitter e and the base b of the transistor Q1 is about 0.6 V. It should be noted that there may be a slight error, but it does not affect the detection result.

[0075] Diode D7 is a light emitting diode. According to the voltage drop characteristics of the light emitting diode, when current flows through the light emitting diode to make the light emitting diode emit light, the voltage drop across the light emitting diode can be in the range of 0V-2V, such as 1.6V or 1.8V, etc. The larger the current flowing through the light emitting diode, the closer the voltage drop of the light emitting diode is to 2V, and finally stabilizes at about 2V. In other words, the larger the current flowing through the light emitting diode, the more stable (v1-v2), and when the switch input signal DI1 to be detected is input, (v1-v2) can be 2V. It should be noted that there may be a slight error, but it does not affect the detection result.

[0076] In order for the drive signal i1 to drive the photocoupler U4 when the detection module 02 is in the first working state, a reasonable first resistor R4 needs to be selected so that the current stabilization module 01 can output a drive signal i1 that tends to be stable and can drive the photocoupler U4.

[0077] Therefore, the technical manual of the photoelectric coupler U4 is consulted first, and the resistance value of the first resistor R4 is calculated according to the parameter requirements of the light-emitting diode in the photoelectric coupler U4, including the current value required for driving, that is, the driving signal i1, etc. In the current stabilization module 02, the following formula 1 is satisfied:

[0078] R4×i1+Ueb=v1-v2

[0079] By transforming Formula 1, we can get Formula 2 for calculating the first resistor R4:

[0080]

[0081] Wherein, R4 is the resistance value of the first resistor, i1 is the driving signal value that can drive the photocoupler U4, Ueb is the conduction voltage between the emitter e and the base b of the transistor Q1, and (v1-v2) is the voltage drop value of the light emitting diode.

[0082] Since the values ​​of i1, Ueb, and (v1-v2) are all known, the resistance value of the first resistor R4 is calculated according to the formula, which is a suitable first resistor R4. The first resistor R4 is used in the current stabilization module 01. When the switch input signal DI1 to be detected is input into the current stabilization module 01, a stable current will be output, that is, the drive signal i1. The drive signal i1 can drive the optocoupler U4 in the first working state.

[0083] After determining the first resistor R4, according to the input switch input signal DI1 to be detected, the current stabilization module 01 can output a stable driving signal i1 when the switch input signal DI1 to be detected is greater than a preset threshold or when the switch input signal DI1 to be detected is less than a preset threshold.

[0084] After the current stabilization module 01 outputs a stable driving signal i1 , it drives the detection module 02 .

[0085] When the switch input signal DI1 to be detected is greater than the preset threshold, the current stabilization module 01 outputs a stable drive signal i1, and the detection module 02 is in the first working state. At this time, a stable current flows through the positive electrode 1 of the input end of the photoelectric coupler U4 and the negative electrode 2 of the input end of the photoelectric coupler U4, and the current is the drive signal i1. At this time, the positive electrode 4 of the output end of the photoelectric coupler U4 and the negative electrode 3 of the output end of the photoelectric coupler U4 are turned on, that is, the positive electrode 4 of the output end of the photoelectric coupler is grounded through the negative electrode 3 of the output end of the photoelectric coupler U4, so that the detection module 02 outputs a first detection signal. The voltage of the first detection signal is 0V, that is, the detection result of the switch input signal DI1 to be detected is a low-level signal, that is, the switch input signal DI1 to be detected has a voltage state.

[0086] When the switch input signal DI1 to be detected is less than the preset threshold value, due to the small voltage, v1-v2-Ueb is close to 0. At this time, the drive signal i1 output by the current stabilization module 01 is extremely small, and the detection module 02 is in the second working state. At this time, the photoelectric coupler U4 cannot be turned on, that is, the driving condition of the photoelectric coupler U4 is not met, and the positive electrode 4 of the output end of the photoelectric coupler U4 and the negative electrode 3 of the output end of the photoelectric coupler U4 cannot be turned on. The positive electrode 4 of the output end of the photoelectric coupler U4 pulls the voltage to a high level through a pull-up resistor. One end of the pull-up resistor is connected to a power supply, and the voltage of the power supply can be +5V, so the pull-up resistor pulls the second detection signal output by the detection module 02 to be consistent with the voltage of the power supply. At this time, the voltage of the second detection signal output by the detection module 02 is 5V, that is, the detection result of the switch input signal DI1 to be detected is a high-level signal, that is, the switch input signal DI1 to be detected is in a state of no voltage.

[0087] Optionally, in another embodiment of the present invention, refer to Figure 3 , Figure 3 This is a structural schematic diagram of another switch value input detection circuit provided by the utility model; the switch value input detection circuit also includes: a clamping module 03.

[0088] One end of the clamp module 03 is connected to the input end of the current stabilization module 01 , and the other end of the clamp module 03 is grounded to GNDREF.

[0089] The clamping module 03 is used to perform voltage clamping processing on the switch value input signal DI1 to be detected before the switch value input signal DI1 to be detected is input to the current stabilization module 01 .

[0090] Specifically, the clamping module 03 first performs voltage clamping processing on the switch input signal DI1 to be detected, so as to prevent external surge voltage and electrostatic voltage from damaging subsequent circuits.

[0091] Optionally, in another embodiment of the present utility model, the clamping module 03 includes:

[0092] A transient voltage suppression diode D17, one end of which is connected to the input end of the current stabilization module 01; and the other end of which is grounded GNDREF.

[0093] Specifically, the transient voltage suppression diode D17 is an overvoltage protection device. When the voltage at both ends is too large, it can be forcibly clamped to the nominal voltage of the transient voltage suppression diode D17. That is to say, when the switch input signal DI1 to be detected is input, there may be external surge voltage or electrostatic voltage input. At this time, the transient voltage suppression diode D17 will be quickly turned on and guide the external surge voltage or electrostatic voltage to the ground line to protect other subsequent components in the detection circuit; the conduction characteristic of the transient voltage suppression diode D17 is very fast, usually only a few nanoseconds to complete the conduction, so it can effectively protect other components in the detection circuit.

[0094] Optionally, in another embodiment of the present invention, refer to Figure 4 , Figure 4 This is a structural schematic diagram of another switch value input detection circuit provided by the utility model; the switch value input detection circuit also includes: a filtering module 04.

[0095] The input end of the filter module 04 is connected to the output end of the detection module 02; the output end of the filter module 04 serves as the output end of the detection circuit of the switch input.

[0096] The filtering module 04 is used to perform filtering processing on the first detection signal and the second detection signal.

[0097] Optionally, in another embodiment of the present utility model, the filtering module 04 includes:

[0098] A fourth resistor R16 and a filter capacitor C10.

[0099] One end of the fourth resistor R16 is connected to the output end of the detection module 02; the second end of the fourth resistor R16 is connected to one end of the filter capacitor C10, and the connection point serves as the output end of the detection circuit of the switch input; the other end of the filter capacitor C10 is grounded GND.

[0100] Specifically, when the voltage of the switch input signal DI1 to be detected has a short peak low voltage or high voltage due to electromagnetic interference, the filter module 04 can absorb the high-frequency pulse signal to a certain extent, and thus has a certain anti-interference ability.

[0101] When the first detection signal output by the detection module 02 passes through the filter module 04 composed of the fourth resistor R16 and the filter capacitor C10, the output is still a low-level signal of 0V, which will not affect the detection result; when the second detection signal output by the detection module 02 passes through the filter module 04 composed of the fourth resistor R16 and the filter capacitor C10, the output is still a high-level signal of 5V, which will not affect the detection result. The filter module 04 absorbs high-frequency signals, thereby improving the anti-interference ability of the entire detection circuit.

[0102] Based on all the above embodiments, after the clamping module 03 in the utility model performs voltage clamping on the switch input signal DI1 to be detected, the current stabilization module 01 outputs a stable driving signal i1. When the switch input signal DI1 to be detected is greater than the preset threshold value, the driving signal i1 will not change due to the change in voltage, and a stable driving signal i1 is output, thereby realizing precise control of the driving signal i1 of the input detection module 02, so that the detection module 02 works in the first working state; when the switch input signal DI1 to be detected is less than the preset threshold value, the driving signal i1 will not change due to the change in voltage, and a stable driving signal i1 is output, thereby realizing precise control of the driving signal i1 of the input detection module 02, so that the detection module 02 works in the second working state; the voltage applicable range of the switch input signal to be detected is improved; in addition, a filtering module 04 is added behind the detection module 02 to increase the anti-interference ability of the detection circuit and improve the reliability of the detection circuit.

[0103] The above is a detailed introduction to a detection circuit for a switch input provided by the utility model. This article uses specific examples to illustrate the principle and implementation method of the utility model. The description of the above embodiments is only used to help understand the method and core idea of ​​the utility model; at the same time, for general technical personnel in this field, according to the idea of ​​the utility model, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the utility model.

[0104] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0105] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device that includes a series of elements is inherent to the elements, or also includes elements inherent to these processes, methods, articles or devices. In the absence of further restrictions, the elements defined by the sentence "including a..." do not exclude the presence of other identical elements in the process, method, article or device that includes the elements.

[0106] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A detection circuit for switch input, characterized in that: The detection circuit of the switch input includes: a current stabilization module and a detection module; The current stabilization module is used to receive a switch quantity input signal to be detected, perform current stabilization processing on the switch quantity input signal to be detected, and generate a driving signal; The detection module is used to be in a first working state or a second working state according to the driving signal; output a first detection signal in the first working state, the first detection signal indicating that the switch input signal to be detected is a low-level signal; output a second detection signal in the second working state, the second detection signal indicating that the switch input signal to be detected is a high-level signal.

2. The detection circuit of switch input according to claim 1, characterized in that: The detection circuit of the switch input further includes: a clamping module; One end of the clamping module is connected to the input end of the current stabilizing module, and the other end of the clamping module is grounded; The clamping module is used to perform voltage clamping processing on the switch value input signal to be detected before the switch value input signal to be detected is input into the current stabilization module.

3. The detection circuit of switch input according to claim 1 or 2, characterized in that: The detection circuit of the switch input further includes: a filtering module; The input end of the filter module is connected to the output end of the detection module; the output end of the filter module serves as the output end of the detection circuit of the switch input; The filtering module is used to perform filtering processing on the first detection signal and the second detection signal.

4. The detection circuit of switch input according to claim 1, characterized in that: The flow stabilization module comprises: A first resistor, a triode, a diode and a second resistor; One end of the first resistor is connected to one end of the diode, and the connection point serves as the input end of the current stabilization module; The other end of the first resistor is connected to the emitter of the transistor; The base of the transistor is connected to the other end of the diode, and the connection point is connected to one end of the second resistor; The collector of the transistor serves as the output end of the current stabilization module; the other end of the second resistor is grounded.

5. The detection circuit of switch input according to claim 4, characterized in that: The second resistor is a pull-down resistor.

6. The detection circuit of switch input according to claim 4, characterized in that: The transistor is a PNP transistor.

7. The detection circuit of switch input according to claim 1, characterized in that: The detection module comprises: A photocoupler and a third resistor; The positive electrode of the input end of the photoelectric coupler is connected to the output end of the current stabilization module; The positive electrode of the output end of the photoelectric coupler is connected to one end of the third resistor, and the connection point serves as the output end of the detection module; The other end of the third resistor is connected to the power supply; the negative electrode of the input end of the photoelectric coupler is grounded; and the negative electrode of the output end of the photoelectric coupler is grounded.

8. The detection circuit of switch input according to claim 7, characterized in that: The third resistor is a pull-up resistor.

9. The detection circuit of switch input according to claim 2, characterized in that: The clamping module comprises: A transient voltage suppression diode, one end of which is connected to the input end of the current stabilization module; and the other end of which is grounded.

10. The detection circuit of switch input according to claim 3, characterized in that: The filtering module comprises: The fourth resistor and the filter capacitor; One end of the fourth resistor is connected to the output end of the detection module; the second end of the fourth resistor is connected to one end of the filter capacitor, and the connection point serves as the output end of the detection circuit of the switch input; The other end of the filter capacitor is grounded.