Single-port equivalent redundant detection method and circuit for safety sensor of gas water heater

By using a controllable switch to periodically switch the output port state in a gas water heater and changing the sampling circuit topology, single-port equivalent redundancy detection is achieved, solving the problem of limited MCU input ports and ensuring the safety and stability of the gas water heater.

CN123135264APending Publication Date: 2026-11-20NORITZ (SHANGHAI) HOME APPLIANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611318802.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-28
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In gas water heaters, due to the limited number of MCU input ports, existing technology cannot provide dual-port redundant detection for each safety sensor, resulting in the inability to reliably identify sensor or port abnormalities, which poses a safety hazard of high-temperature water output.

Method used

By connecting to the MCU through a single input port and periodically switching the output port state using a controllable switch, the topology of the sensor sampling circuit is changed, achieving equivalent redundant detection of the sensor and input port, and ensuring safety through cross-validation.

Benefits of technology

Without increasing the number of MCU input pins, the system achieves effective detection of sensors and ports, reduces the risk of high-temperature water discharge, improves system stability and safety, and has low hardware costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123135264A_ABST
    Figure CN123135264A_ABST
Patent Text Reader

Abstract

The application discloses a single-port equivalent redundant detection method and circuit of a gas water heater safety sensor and belongs to the technical field of gas water heater control. In view of the problem that double-port redundant detection cannot be implemented when the input port of an MCU is limited, the switching of a controllable switch of an output port of the MCU is controlled to change the topology of a sampling circuit, so that the same input port obtains two groups of voltage sampling values with theoretical correlation and cross verification is performed, and single-port equivalent redundant detection is implemented. In a first detection state, the resistance value of the sensor is calculated according to series voltage division sampling values; in a second detection state, the theoretical voltage value under parallel topology is compared with the measured value, and if the difference exceeds a threshold value and lasts for more than a preset time length, it is determined that an abnormality occurs and combustion is stopped. The application has low hardware cost, high fault coverage and is suitable for the safety control scene of a gas water heater with limited input port resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0002] This invention relates to the field of gas water heater control technology, and in particular to a method and corresponding circuit for equivalent redundancy detection of safety sensors and their input ports when the input ports of an MCU are limited. Background Technology

[0004] During the combustion process of a gas water heater, the accuracy of readings from safety-related sensors such as the outlet water temperature and inlet water temperature directly affects user safety. Taking the outlet water temperature sensor as an example, if the MCU input port connected to it malfunctions (such as a short circuit, open circuit, or ADC sampling abnormality), the main chip will read an incorrect outlet water temperature, which may cause the water heater to continuously output hot water, resulting in scalding for the user.

[0005] To improve safety, existing technologies typically employ a dual-port redundancy scheme, which involves configuring two independent input ports for the same sensor and comparing the values ​​read from the two ports in real time to determine if the sensor or port is malfunctioning. However, a gas water heater usually has multiple sensors. If each sensor is configured with two independent input ports, the number of input pins required for the MCU is high. Under conditions of cost constraints or limited pin resources, it is often impossible to provide dual-port redundant detection for every safety sensor.

[0006] Therefore, when the MCU input ports are insufficient to support traditional dual-port redundancy, a technical solution is needed that can achieve equivalent redundancy detection using only a single input port to ensure that sensor or port anomalies can still be reliably identified and combustion stopped in time when input ports are limited. Summary of the Invention

[0008] The purpose of this invention is to provide a single-port equivalent redundancy detection method and circuit for a gas water heater safety sensor, so as to solve the problem that the existing technology cannot implement dual-port redundancy detection for the safety sensor due to the limited number of MCU input ports.

[0009] To achieve the above objectives, the present invention provides the following technical solution: A single-port equivalent redundancy detection method for a gas water heater safety sensor is disclosed. The sensor is connected to an MCU via a single input port. The output port of the MCU is controlled to periodically switch the on / off state of a controllable switch, thereby changing the topology of the sensor sampling circuit. This allows the same input port to obtain two sets of theoretically correlated voltage sampling values ​​at different times, and cross-validation is performed based on this theoretical correlation. This achieves equivalent redundancy detection of the sensor and the validity of the input port while only occupying a single input port, ensuring combustion safety.

[0010] The method includes the following steps: Step 1: In the first detection state, control the output port to output a first level to open the controllable switch. At this time, the first voltage divider resistor is connected in series with the sensor between the power supply and ground. The first voltage value is obtained by sampling through the input port, and the current resistance value of the sensor is calculated based on the first voltage value and the resistance value of the first voltage divider resistor. Step 2: In the second detection state, control the output port to output a second level to close the controllable switch. At this time, the second resistor is connected in parallel to the two ends of the sensor through the controllable switch. The first voltage divider resistor is connected in series with the equivalent resistance after parallel connection. The second voltage value is obtained by sampling through the input port. Step 3: Based on the current resistance value obtained in Step 1, the resistance values ​​of the first voltage divider resistor and the second resistor, calculate the theoretical voltage value of the sensor connection node in the second detection state; Step 4: Calculate the difference between the theoretical voltage value and the second voltage value, and compare the difference with a preset threshold. Step 5: When the difference exceeds the preset threshold and continues for more than the preset time, it is determined that there is an abnormality in the sensor or the input port, and the gas water heater is controlled to stop combustion.

[0011] Preferably, in step one, the first voltage value is the voltage at the sensor connection node, and the current resistance value is calculated based on the series voltage division relationship between the first voltage divider resistor and the sensor, thereby establishing the sensor reference resistance value required for subsequent theoretical calculations.

[0012] Preferably, in step three, the theoretical voltage value is calculated based on the parallel equivalent resistance of the second resistor and the current resistance value, and then the series voltage division relationship with the first voltage divider resistor, thereby providing a theoretical reference value for port validity verification.

[0013] Preferably, the MCU executes step one and step two alternately at a preset cycle, thereby achieving real-time periodic self-testing without interrupting continuous temperature monitoring.

[0014] Preferably, the preset duration is used to eliminate temperature transient interference caused by sudden changes in the set temperature or water flow rate due to user adjustment, thereby avoiding accidental shutdown under normal operating conditions and improving the reliability of the judgment.

[0015] Preferably, the resistance values ​​of the first voltage divider resistor and the second resistor are selected according to the resistance variation range of the sensor and the power supply voltage, so that there is sufficient voltage differentiation between the first voltage value and the second voltage value, thereby improving the reliability of the cross-validation.

[0016] The present invention also provides a single-port equivalent redundancy detection circuit for a gas water heater safety sensor, including an MCU, a sensor, a first voltage divider resistor, a second resistor, and a controllable switch.

[0017] One end of the sensor is grounded, and the other end is connected to the sampling node, thereby converting the resistance change of the sensor into the voltage change of the sampling node.

[0018] The first voltage divider resistor is connected between the power supply and the sampling node, thereby forming a voltage divider sampling circuit with the sensor.

[0019] The second resistor is connected in series with the controllable switch and then in parallel to the two ends of the sensor, thereby changing the topology of the sampling circuit when the controllable switch is closed, so that the sampling node obtains a second voltage sampling value that is theoretically correlated with the open state.

[0020] The input port of the MCU is connected to the sampling node to obtain the voltage sampling value of the sampling node.

[0021] The output port of the MCU is connected to the control terminal of the controllable switch, thereby controlling the on / off state of the controllable switch through level output to switch the topology of the sampling circuit.

[0022] The MCU is configured to execute the single-port equivalent redundancy detection method described above.

[0023] Preferably, the input port of the MCU is connected to the sampling node via a current-limiting resistor, thereby protecting the input port from surge current and improving sampling reliability.

[0024] Preferably, the controllable switch is a transistor, and the output port of the MCU is connected to the base of the transistor via a base-limiting current resistor, thereby realizing analog topology switching with a low-cost digital port.

[0025] This invention also provides a gas water heater control system, including the aforementioned single-port equivalent redundancy detection circuit, a burner, and a main control chip. The main control chip controls the start and stop of the burner based on the anomaly determination signal output by the single-port equivalent redundancy detection circuit, thereby ensuring combustion safety even when the MCU input port is limited.

[0026] The single-port equivalent redundancy detection method and circuit proposed in this invention have the following advantages compared with the prior art: (1) Equivalent redundancy detection is achieved under the premise of occupying only a single input port. By controlling the MCU output port to periodically switch the on and off states of the controllable switch, the topology of the sensor sampling circuit is changed, so that the same input port obtains two sets of voltage sampling values ​​with theoretical correlation at different times. Based on this theoretical correlation, cross-verification is performed, thereby achieving an equivalent replacement for the traditional dual-port redundant detection scheme without increasing the number of MCU input pins, and solving the problem of safe detection when input port resources are limited.

[0027] (2) Cross-verification of input port, output port and sensor is realized. The reference resistance value of sensor is obtained in the first detection state. In the second detection state, the theoretical calculated value is compared with the actual sampled value. Whether the input port fails, the output port fails or the sensor itself is abnormal, the deviation between the theoretical value and the measured value will exceed the threshold and be detected, thereby significantly improving the fault coverage rate and reducing the risk of high temperature water discharge due to single port failure.

[0028] (3) Low hardware cost and low requirements for MCU configuration. Only a second resistor and a controllable switch (such as a transistor) need to be added to the existing sampling circuit to realize the topology switching function. There is no need to add an extra MCU input port or use a high-configuration chip with a high number of pins, which is conducive to its application in cost-sensitive gas water heater products.

[0029] (4) It has the ability to resist transient interference and avoid accidental shutdown. By setting a preset time as the abnormal judgment condition, it can effectively eliminate the transient temperature interference caused by the user's adjustment of the set temperature or water flow change, thus improving the system's operational stability while ensuring safety.

[0030] (5) Real-time periodic self-testing without interrupting continuous monitoring. The MCU alternates between two detection states at a preset cycle, achieving equivalent redundant detection without affecting the continuous acquisition of sensor signals, thus ensuring the real-time performance and reliability of combustion control. Attached Figure Description

[0032] Figure 1 This is a schematic diagram of the topology of the single-port equivalent redundancy detection circuit of the present invention.

[0033] Figure 2 This is a flowchart of the single-port equivalent redundancy detection method of the present invention. Detailed Implementation

[0035] To further illustrate the technical means and effects of the present invention in achieving its intended purpose, the following detailed description of the specific implementation methods, structures, features, and effects of the present invention, in conjunction with the accompanying drawings and preferred embodiments, is provided below.

[0036] like Figure 1 As shown, the single-port equivalent redundancy detection circuit provided by the present invention mainly includes an MCU, a sensor (taking the outlet water temperature sensor as an example), a first voltage divider resistor R1, a second resistor R3, a controllable switch Q, and a current limiting resistor R2.

[0037] One end of the sensor is grounded, and the other end is connected to sampling node A. A first voltage divider resistor R1 is connected between the power supply Vcc and sampling node A. A second resistor R3 is connected in series with the controllable switch Q and then in parallel across the sensor. The MCU's input port Vin is connected to sampling node A via a current-limiting resistor R2 to obtain the voltage at node A. The MCU's output port Vout is connected to the control terminal of the controllable switch Q to control its on / off state.

[0038] In this embodiment, the controllable switch Q is an NPN transistor, and the MCU's output port Vout is connected to the base of transistor Q via a base-limiting current resistor. When Vout outputs a high level, transistor Q is turned on; when Vout outputs a low level, transistor Q is turned off.

[0039] The resistance values ​​of resistors R1, R2, and R3 are fixed and can be adjusted according to the actual circuit requirements. Vin represents the MCU input pin, which acquires the input voltage of sampling node A. Vout represents the MCU output pin, which controls the conduction and cutoff of transistor Q through different output levels.

[0040] This invention uses the outlet water temperature sensor of a gas water heater as an example for illustration, but those skilled in the art should understand that the method is also applicable to other safety-related sensors such as inlet water temperature sensors, exhaust temperature sensors, and water pressure sensors.

[0041] The detection method is as follows: (1) Periodically switch detection status The MCU switches the output level of Vout once every preset time T, so that the circuit alternates periodically between the "first detection state" and the "second detection state".

[0042] (2) First detection state (Vout outputs low level, transistor Q is off) When the output value of Vout is 0 (low level), the transistor Q is turned off. At this time, resistor R1 and the sensor (current resistance value denoted as Rth) are connected in series between the power supply Vcc and ground. The MCU reads the voltage of sampling node A through the input port Vin and records it as the first voltage value V1.

[0043] According to the principle of series voltage division, the voltage at node A satisfies: From this, the current resistance value of the sensor can be calculated: This resistance value Rth serves as the reference resistance value for the sensor in subsequent theoretical calculations.

[0044] (3) Second detection state (Vout outputs high level, transistor Q is turned on) When the output value of Vout is 1 (high level), the transistor Q is turned on. At this time, resistor R3 is connected in parallel with the sensor (the current resistance value is calculated according to Rth in step (2)), and this parallel part is then connected in series with resistor R1. The MCU reads the actual voltage of sampling node A through the input port Vin and records it as the second voltage value V2.

[0045] First, calculate the equivalent resistance R of the parallel section: Right now: Then, based on the series voltage division relationship between resistor R1 and equivalent resistance R, the theoretical voltage value V3 at node A is calculated: (4) Difference calculation and anomaly judgment Calculate the difference between the theoretical voltage value V3 and the measured second voltage value V2: The difference ΔV is compared with a preset threshold D. Considering the transient temperature changes caused by factors such as sudden changes in the set temperature or water flow during combustion, if ΔV > D and continues for more than a preset duration, it is determined that there is an abnormality in the sensor or input port, and the gas water heater is controlled to stop combustion; otherwise, normal operation is maintained.

[0046] Whether the input port Vin fails to read the voltage of node A correctly, or the output port Vout fails to output correctly, resulting in the actual read second voltage value V2 being inconsistent with the theoretically calculated value V3, the above cross-validation mechanism can effectively detect these issues, thereby reducing the risk of high-temperature water discharge due to port failure when relying solely on a single input port to obtain sensor values.

[0047] (5) Selection of resistance parameters The values ​​of the first voltage divider resistor R1 and the second resistor R3 are selected based on the sensor's resistance variation range and the power supply voltage Vcc. This ensures that the voltage at sampling node A has sufficient discrimination between the first and second detection states, thereby improving the reliability of cross-validation. For example, when the sensor is an NTC thermistor, the values ​​of R1 and R3 can be selected near the sensor's commonly used operating resistance, so that the difference between V1 and V2 is within the effective resolution range of the MCU ADC sampling.

[0048] (6) Setting the preset duration The preset duration is used to eliminate transient interference. For example, when the user suddenly increases the set temperature or the water flow rate changes abruptly, the outlet water temperature will change significantly in a short period of time. This causes a discrepancy between the Rth calculated in the first detection state and the actual resistance value of the sensor in the second detection state, resulting in the difference between V3 and V2. By setting a preset duration (such as 3 or 5 detection cycles), false shutdowns caused by such normal transients can be avoided, improving the reliability of the system's judgment.

[0049] like Figure 2 As shown, the specific process of the above detection method is as follows: After combustion begins, the MCU switches the output level of Vout every time time T elapses. It checks if Vout equals 0: if yes, it enters the first detection state, reads the voltage V1 at node A and calculates the current sensor resistance Rth; if no, it enters the second detection state, reads the voltage V2 at node A, calculates the parallel equivalent resistance R and the theoretical voltage divider value V3, and then calculates the difference ΔV = |V3−V2|. It then checks if ΔV is greater than a preset threshold D and persists for more than a preset duration: if yes, it is considered abnormal, combustion stops and the process ends; if no, it returns to continue periodic detection.

[0050] In this embodiment, by controlling a single output port to change the sampling circuit topology, equivalent redundant detection of the sensor and port validity can be achieved using only one input port. This eliminates the need to increase the number of MCU input pins, reduces MCU configuration requirements, and increases hardware costs only by a limited amount (only adding one resistor and one transistor). It is particularly suitable for gas water heater control systems with limited input port resources.

[0051] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the present invention. Any simple modifications, equivalent changes and alterations made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the scope of the present invention.

Claims

1. A single-port equivalent redundancy detection method for a gas water heater safety sensor, wherein the sensor is connected to an MCU via a single input port, characterized in that: The output port of the MCU is controlled to periodically switch the on / off state of the controllable switch to change the topology of the sensor sampling circuit, so that the same input port can obtain two sets of voltage sampling values ​​with theoretical correlation at different times, and cross-validation is performed based on the theoretical correlation, thereby achieving equivalent redundant detection of the effectiveness of the sensor and the input port while only occupying a single input port; The method includes the following steps: Step 1: In the first detection state, control the output port to output a first level to open the controllable switch. At this time, the first voltage divider resistor is connected in series with the sensor between the power supply and ground. The first voltage value is obtained by sampling through the input port, and the current resistance value of the sensor is calculated based on the first voltage value and the resistance value of the first voltage divider resistor. Step 2: In the second detection state, control the output port to output a second level to close the controllable switch. At this time, the second resistor is connected in parallel to the two ends of the sensor through the controllable switch. The first voltage divider resistor is connected in series with the equivalent resistance after parallel connection. The second voltage value is obtained by sampling through the input port. Step 3: Based on the current resistance value obtained in Step 1, the resistance values ​​of the first voltage divider resistor and the second resistor, calculate the theoretical voltage value of the sensor connection node in the second detection state; Step 4: Calculate the difference between the theoretical voltage value and the second voltage value, and compare the difference with a preset threshold. Step 5: When the difference exceeds the preset threshold and continues for more than the preset time, it is determined that there is an abnormality in the sensor or the input port, and the gas water heater is controlled to stop combustion.

2. The single-port equivalent redundancy detection method for a gas water heater safety sensor according to claim 1, characterized in that: In step one, the first voltage value is the voltage at the sensor connection node, and the current resistance value is calculated based on the series voltage division relationship between the first voltage divider resistor and the sensor, thereby establishing the sensor reference resistance value required for subsequent theoretical calculations.

3. The single-port equivalent redundancy detection method for a gas water heater safety sensor according to claim 1, characterized in that: In step three, the theoretical voltage value is calculated based on the parallel equivalent resistance of the second resistor and the current resistance value, and the series voltage division relationship of the first voltage divider resistor, thereby providing a theoretical reference value for port validity verification.

4. The single-port equivalent redundancy detection method for a gas water heater safety sensor according to claim 1, characterized in that: The MCU executes step one and step two alternately at a preset cycle, thereby achieving real-time periodic self-testing without interrupting continuous temperature monitoring.

5. The single-port equivalent redundancy detection method for a gas water heater safety sensor according to claim 1, characterized in that: The preset duration is used to eliminate interference from temperature transients caused by sudden changes in the user's set temperature or water flow rate, thereby avoiding accidental shutdowns under normal operating conditions and improving the reliability of the judgment.

6. The single-port equivalent redundancy detection method for a gas water heater safety sensor according to claim 1, characterized in that: The resistance values ​​of the first voltage divider resistor and the second resistor are selected based on the resistance variation range of the sensor and the power supply voltage, so that there is sufficient voltage differentiation between the first voltage value and the second voltage value, thereby improving the reliability of the cross-validation.

7. A single-port equivalent redundancy detection circuit for a gas water heater safety sensor, comprising an MCU, a sensor, a first voltage divider resistor, a second resistor, and a controllable switch, characterized in that: One end of the sensor is grounded, and the other end is connected to the sampling node, thereby converting the resistance change of the sensor into the voltage change of the sampling node; The first voltage divider resistor is connected between the power supply and the sampling node, thereby forming a voltage divider sampling circuit with the sensor. The second resistor is connected in series with the controllable switch and then in parallel to the two ends of the sensor, thereby changing the topology of the sampling circuit when the controllable switch is closed, so that the sampling node obtains a second voltage sampling value that is theoretically correlated with the open state; The input port of the MCU is connected to the sampling node to obtain the voltage sampling value of the sampling node; The output port of the MCU is connected to the control terminal of the controllable switch, thereby controlling the on / off state of the controllable switch through level output to switch the topology of the sampling circuit; The MCU is configured to perform the single-port equivalent redundancy detection method as described in any one of claims 1 to 6.

8. The single-port equivalent redundancy detection circuit for the gas water heater safety sensor according to claim 7, characterized in that: The input port of the MCU is connected to the sampling node via a current-limiting resistor, thereby protecting the input port from surge current and improving sampling reliability.

9. The single-port equivalent redundancy detection circuit for the gas water heater safety sensor according to claim 7, characterized in that: The controllable switch is a transistor, and the output port of the MCU is connected to the base of the transistor via a base-limiting current resistor, thereby realizing analog topology switching with a low-cost digital port.

10. A gas water heater control system, comprising a single-port equivalent redundant detection circuit as described in any one of claims 7 to 9, a burner, and a main control chip, characterized in that: The main control chip controls the start and stop of the burner based on the abnormal judgment signal output by the single-port equivalent redundancy detection circuit, thereby ensuring combustion safety even when the MCU input port is limited.