A detection circuit for detecting the working state of a relay contact in a temperature controller
By combining a microcontroller, a load drive circuit, and a current transformer, the problem of inaccurate detection of the relay contact status in the existing technology is solved, enabling accurate judgment of the relay contact status and improving the safety and reliability of the temperature controller.
Patent Information
- Application Number
- CN202522749457.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-25
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2035-12-25
AI Technical Summary
Existing technologies are insufficient to effectively detect the true working state of relay contacts in thermostats, especially when mechanical faults exist, which poses a safety hazard.
A combination circuit consisting of a microcontroller, a load drive circuit, a feedback circuit, and a current transformer is used to determine the working state of the contacts by detecting the on/off state of the relay coil and the load current. The load current signal is converted by the current transformer and then judged by the microcontroller.
It enables accurate status detection of relay contacts, timely detection of mechanical faults, avoidance of safety hazards, and improvement of the reliability and safety of the temperature controller.
Smart Images

Figure CN225018404U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of relay contact detection technology, and more specifically, to a detection circuit for detecting the working state of relay contacts in a thermostat. Background Technology
[0002] Thermostats, as commonly used temperature control devices, are widely applied in various industrial, commercial, and civil sectors. They utilize relays as load driving elements, working in conjunction with temperature sensors to achieve precise temperature control of the target. Within their rated lifespan, relays can operate stably and reliably for extended periods. However, as relays approach or exceed their rated electrical lifespan, performance degradation inevitably occurs, leading to contact and coil malfunctions such as contact adhesion, carbonization, contact material migration, and open circuits in the coil. These failures prevent the relay from correctly responding to control requirements and timely disconnecting or connecting the load circuit, thus posing significant risks to production, property, and personal safety, and must be eliminated.
[0003] A common and simple method is to use a feedback circuit to detect the voltage across the relay coil. When the voltage difference across the coil is higher than the driving voltage of the coil, the relay is in a conducting state; otherwise, the relay is in a disconnected state. As the temperature controller continues to operate, the relay continuously performs on / off actions, and each complete on / off cycle is counted as one cycle, thus reducing its electrical life. However, this method has certain limitations; it can only detect when the coil is correctly conducting. When mechanical faults (such as armature or spring failure) cause the contacts to fail to respond correctly, this method is ineffective. Therefore, a detection circuit that can detect the true operating state of the contacts is needed. Utility Model Content
[0004] The purpose of this invention is to overcome the shortcomings of the prior art and provide a detection circuit for detecting the working state of relay contacts in a thermostat.
[0005] To achieve the above objectives, the present invention adopts the following technical solution:
[0006] A detection circuit for detecting the operating state of relay contacts in a thermostat includes a microcontroller, a load drive circuit, a feedback circuit, and a current transformer. The load drive circuit supplies power to the relay. The feedback circuit detects the on / off state of the relay coil and sends a feedback signal to the microcontroller. The relay output contacts are connected to the current transformer, and the microcontroller is connected to the current transformer. The current transformer measures the load current at the relay output contacts. The microcontroller determines the operating state of the relay contacts based on the load current signal output by the current transformer and the on / off state of the coil.
[0007] Furthermore, the load drive circuit includes a relay, one end of the relay coil is connected to the drive voltage VCC_1, the other end of the relay coil is connected to the relay drive circuit, and is connected to the microcontroller through the relay drive circuit.
[0008] Furthermore, the relay coil is connected in reverse parallel to diode D1.
[0009] Furthermore, the feedback circuit includes a switching element QS2, a resistor R3, and a resistor R4. The control pin of the switching element QS2 is connected to the load drive circuit and the relay drive circuit via the resistor R3. The output pin of the switching element QS2 is connected to the drive voltage VCC_2 via the resistor R4. The common connection terminal of the output pin of the switching element QS2 and the resistor R4 is connected to the microcontroller. The common pin of the switching element QS2 is grounded.
[0010] Furthermore, the current transformer and the microcontroller are connected in series with sampling and amplification circuits and an A / D conversion circuit.
[0011] Furthermore, the microcontroller presets a load current threshold, which is set between 50% and 90% of the minimum load current.
[0012] The beneficial effects of this utility model are:
[0013] In this invention, the microcontroller controls the relay drive circuit through the drive signal to turn the relay coil on and off; the feedback circuit detects the on / off state of the relay coil and sends the feedback signal to the microcontroller; the current transformer converts the load current of the relay contacts into a current signal, and the microcontroller determines the working state of the relay contacts based on the load current signal output by the current transformer and the coil channel state. Attached Figure Description
[0014] Figure 1 This is a circuit diagram of a detection circuit for detecting the working state of relay contacts in a temperature controller, as described in this embodiment.
[0015] Figure labels: 1. Microcontroller; 2. Relay drive circuit; 3. Load drive circuit; 4. Feedback circuit; 5. Current transformer; 6. Sampling and amplification circuit; 7. A / D conversion circuit. Detailed Implementation
[0016] The technical solutions of the present utility model will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of the present utility model, and not all embodiments. Based on the embodiments of the present utility model, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present utility model.
[0017] Example: A detection circuit for detecting the operating state of relay contacts in a thermostat, such as... Figure 1 As shown, the system includes a microcontroller 1, a load drive circuit 3, a feedback circuit 4, and a current transformer 5. The load drive circuit 3 supplies power to the relay, the feedback circuit 4 detects the on / off state of the relay coil (through voltage changes) and sends a feedback signal to the microcontroller 1, the relay output contacts are connected to the current transformer 5, and the microcontroller 1 is connected through the current transformer 5. The current transformer 5 measures the load current at the relay output contacts, and the microcontroller 1 determines the working state of the relay contacts based on the load current signal output by the current transformer 5 and the coil channel state.
[0018] In use, the microcontroller 1 controls the relay drive circuit 2 through the drive signal to make the relay coil open and close; the feedback circuit 4 detects the open and closed state of the relay coil and sends the feedback signal to the microcontroller 1; the current transformer 5 converts the load current of the relay contacts into a current signal, and the microcontroller 1 determines whether the relay contacts are correctly connected or disconnected based on the load current signal and the open and closed state of the coil.
[0019] It should be noted that relays are usually four-terminal components, with two control terminals and two output terminals. When the control terminals are on, the output terminal contacts are closed, current flows through the load, and the load operates; otherwise, the load is disconnected.
[0020] Furthermore, the load drive circuit 3 includes a relay (K1). The first and second pins of the relay form a contact circuit, and the third and fourth pins form a coil circuit. One end of the relay coil (the fourth pin) is connected to the drive voltage VCC_1, which powers the relay K1 coil. The other end of the relay K1 coil (the third pin) is connected to the relay drive circuit 2 and the resistor R3. The relay output contacts (the first and second pins) are connected to the current transformer 5.
[0021] Preferably, a diode D1 is connected in reverse parallel to the relay coil. Diode D1 is a freewheeling diode, which provides a release path for the induced current when the relay coil is de-energized, thereby suppressing high voltage spikes and improving the reliability and lifespan of the circuit.
[0022] Furthermore, the relay driver circuit 2 is used to receive instructions (high level / low level) from the microcontroller 1 (I / O_EN interface) and convert them into a power signal with sufficient current and voltage to drive the relay coil. It is usually implemented using a transistor or MOSFET.
[0023] Furthermore, the feedback circuit 4 includes a switching element QS2, resistors R3 and R4. Switching element QS2 has three pins: a control pin (first pin), an output pin (second pin), and a common pin (third pin). The control pin of switching element QS2 is connected to resistor R3, and through resistor R3, it is connected to the relay drive circuit 2 and the relay coil. The output pin of switching element QS2 is connected to resistor R4, and through resistor R4, it is connected to the drive voltage VCC_2. The drive voltage VCC_2 provides a bias voltage for switching element QS2. The common connection between the output pin of switching element QS2 and resistor R4 is connected to the I / O_DETECT interface of microcontroller 1. The common pin of switching element QS2 is grounded. Resistor R3 is a current-limiting resistor, resistor R4 is a pull-up resistor, and switching element QS2 is a transistor or MOSFET.
[0024] In operation, when the I / O_EN interface of microcontroller 1 is high, the relay drive circuit 2 turns on the relay coil, closes the contacts, and pulls its third pin low. This voltage is coupled to the control pin of the switching element QS2 through resistor R3, turning off the switching element QS2, and pulling the I / O_DETECT interface high by the pull-up resistor R4. The load current of the relay contacts flows through the primary coil of the current transformer 5, and the secondary coil of the current transformer 5 converts the load current into a current signal, which is read by microcontroller 1. Based on the load current value, it is determined whether there is current flowing between the relay contacts. Combined with the on / off state of the relay coil, it can be determined whether the relay contacts are correctly connected or disconnected.
[0025] When the I / O_EN interface of microcontroller 1 is low, the relay drive circuit 2 is cut off, no current flows through the relay coil, the contacts are open, and its third pin is high. This voltage is coupled to the control pin of the switching element QS2 through resistor R3, the switching element QS2 is turned on, and the I / O_DETECT interface becomes low.
[0026] When the I / O_DETECT interface detects a low level, it indicates that current is flowing through the relay coil and the contacts should be closed. If the detected load current is greater than the load current threshold, it indicates that the contacts are closed correctly and the contacts are in good condition. If the detected load current is less than the load current threshold, it indicates that the contacts have failed to close, the contacts are faulty, and the relay may be damaged.
[0027] When the I / O_DETECT interface detects a high level, it indicates that no current is flowing through the relay coil and the contacts should be open. If the detected load current is less than the load current threshold, it indicates that the contacts are correctly closed and in good condition. If the detected load current is greater than the load current threshold, it indicates that the contacts have failed to close, the contacts are faulty, and the relay may be damaged.
[0028] The above design enables the detection of whether relay contacts have failed.
[0029] It should be noted that the microcontroller 1 has a preset load current threshold, which can be set according to the user's load conditions. To avoid false alarms, the load current threshold can be set between 50% and 90% of the minimum load current. The minimum load current is the minimum normal operating current flowing through the load and current transformer 5 in the entire system controlled by the temperature controller when the relay contacts are normally closed.
[0030] like Figure 1 As shown, since the load current signal converted by the secondary coil of the current transformer 5 is relatively small, a sampling and amplification circuit 6 and an A / D conversion circuit 7 are connected in series between the current transformer 5 and the microcontroller 1 to facilitate reading. The sampling and amplification circuit 6 includes a sampling resistor, a current-limiting resistor, an operational amplifier, and a filter circuit. After sampling, filtering, and amplification, the load current signal converted by the secondary coil of the current transformer 5 is sent to the A / D conversion circuit 7. The A / D conversion circuit 7 converts the analog load current signal into a digital signal and sends it to the microcontroller 1.
[0031] The above description is merely a preferred embodiment of this utility model. The protection scope of this utility model is not limited to the above embodiments. All technical solutions falling within the scope of this utility model's concept are protected. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principle of this utility model should also be considered within the protection scope of this utility model.
Claims
1. A detection circuit for detecting the working state of relay contacts in a temperature controller, comprising a microcontroller (1), a load drive circuit (3), a feedback circuit (4), and a current transformer (5), characterized in that, The load drive circuit (3) supplies power to the relay, the feedback circuit (4) detects the on / off state of the relay coil and sends the feedback signal to the microcontroller (1), the relay output terminal contact is connected to the current transformer (5), and the microcontroller (1) is connected through the current transformer (5), the current transformer (5) measures the load current of the relay output terminal contact, and the microcontroller (1) determines the working state of the relay contact based on the load current signal output by the current transformer (5) and the on / off state of the coil.
2. The detection circuit for detecting the working state of relay contacts in a temperature controller according to claim 1, characterized in that, The load drive circuit (3) includes a relay. One end of the relay coil is connected to the drive voltage VCC_1, and the other end of the relay coil is connected to the relay drive circuit (2), and is connected to the microcontroller (1) through the relay drive circuit (2).
3. The detection circuit for detecting the working state of relay contacts in a temperature controller according to claim 2, characterized in that, The relay coil is connected in reverse parallel to diode D1.
4. The detection circuit for detecting the working state of relay contacts in a temperature controller according to claim 1, characterized in that, The feedback circuit (4) includes a switching element QS2, a resistor R3 and a resistor R4. The control pin of the switching element QS2 is connected to the load driving circuit (3) and the relay driving circuit (2) via the resistor R3. The output pin of the switching element QS2 is connected to the driving voltage VCC_2 via the resistor R4. The common connection terminal of the output pin of the switching element QS2 and the resistor R4 is connected to the microcontroller (1). The common pin of the switching element QS2 is grounded.
5. The detection circuit for detecting the working state of relay contacts in a temperature controller according to claim 1, characterized in that, The current transformer (5) and the microcontroller (1) are connected in series with a sampling and amplification circuit (6) and an A / D conversion circuit (7).
6. The detection circuit for detecting the working state of relay contacts in a temperature controller according to claim 1, characterized in that, The microcontroller (1) presets a load current threshold, which is set between 50% and 90% of the minimum load current.
