Gas safety controller

By installing dual pressure sensor modules at the inlet and outlet of the gas pipeline, the gas control valve can be monitored in real time and automatically shut off, solving the problem that gas systems cannot detect leaks in a timely manner in existing technologies, and ensuring the safety and reliability of gas use.

CN223768722UActive Publication Date: 2026-01-06XIAN MITE ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202520590545.6
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2025-03-31
Publication Date
2026-01-06
Estimated Expiration
2035-03-31

AI Technical Summary

Technical Problem

Existing gas systems cannot detect pipeline leaks in a timely manner, posing safety hazards, especially since gas is difficult to detect before it accumulates to dangerous concentrations, which can easily lead to fires or explosions.

Method used

A dual pressure sensor module is used to monitor the pressure difference between the gas pipeline inlet and outlet in real time. When the difference is greater than or equal to a preset threshold, the gas control valve is automatically shut off. The main control module controls the valve control module to perform the shut-off operation.

Benefits of technology

It enables rapid and accurate identification and automatic cutoff of gas source in the early stages of gas leaks, preventing further gas leakage and improving the safety and reliability of gas use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223768722U_ABST
    Figure CN223768722U_ABST
Patent Text Reader

Abstract

The utility model discloses a fuel gas safety controller which comprises a main control module, a first pressure sensor module, a second pressure sensor module and a valve control module. Wherein the first pressure sensor module is used for generating a first pressure signal; the second pressure sensor module is used for generating a second pressure signal; the main control module is used for generating a valve closing signal when the difference value between the inlet pressure value and the outlet pressure value is greater than or equal to a preset pressure difference; and the valve control module is used for responding to the valve closing signal to close the gas control valve. The technical problem that in the prior art, a gas system cannot detect pipeline leakage in time, and consequently potential safety hazards exist is solved, and the technical effects that leakage is found in time and the valve is automatically closed by monitoring the pressure difference value of the inlet and the outlet of the gas pipeline in real time are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of gas control, and more particularly to a gas safety controller. Background Technology

[0002] With the widespread use of natural gas in daily life and industry, gas safety has become an increasingly important concern. Currently, while most gas meters on the market possess basic metering and simple control functions, they are significantly inadequate in leak detection.

[0003] Current gas safety control technologies mainly employ single-point pressure detection or gas concentration detection. Single-point pressure detection only involves installing a sensor at a specific location in the pipeline, making it impossible to determine the presence of a leak through pressure comparison. Gas concentration detection, on the other hand, suffers from latency, triggering an alarm only when the leaked gas accumulates to a certain concentration, thus failing to achieve early detection.

[0004] In practice, a significant number of users do not develop the habit of turning off the mechanical valve after using gas. When minor leaks occur in gas appliances or pipelines due to aging, improper installation, or other reasons, these leaks are often difficult to detect in time before the gas accumulates to a dangerous concentration. Once exposed to sparks or high temperatures, these leaks can easily ignite fires or even explosions, posing a serious threat to life and property safety and creating a significant safety hazard. Utility Model Content

[0005] The main purpose of this application is to provide a gas safety controller, which aims to solve the technical problem in the prior art where gas systems cannot detect pipeline leaks in a timely manner, resulting in safety hazards.

[0006] To achieve the above objectives, this application provides a gas safety controller, characterized in that the gas safety controller includes a main control module, a first pressure sensor module, a second pressure sensor module, and a valve control module;

[0007] The first pressure sensor module, the second pressure sensor module, and the valve control module are respectively connected to the main control module.

[0008] The first pressure sensor module is used to acquire the inlet pressure value of the gas pipeline and generate a first pressure signal based on the inlet pressure value;

[0009] The second pressure sensor module is used to acquire the outlet pressure value of the gas pipeline and generate a second pressure signal based on the outlet pressure value;

[0010] The main control module is used to receive the first pressure signal and the second pressure signal, and determine whether the difference between the inlet pressure value and the outlet pressure value is greater than or equal to a preset pressure difference based on the first pressure signal and the second pressure signal; when the difference between the inlet pressure value and the outlet pressure value is greater than or equal to the preset pressure difference, a valve closing signal is generated.

[0011] The valve control module is used to close the gas control valve in response to the valve closing signal.

[0012] Optionally, the gas safety controller further includes a power supply module; the power supply module is connected to the main control module, the first pressure sensor module, the second pressure sensor module and the valve control module respectively, and provides operating voltage to the main control module, the first pressure sensor module, the second pressure sensor module and the valve control module.

[0013] Optionally, the power module includes a power input unit, a first voltage regulation unit, and a second voltage regulation unit;

[0014] The power input unit is used to connect to an external power source and output a power supply voltage;

[0015] The input terminal of the first voltage regulation unit is connected to the output terminal of the power input unit, and is used to regulate the power supply voltage to a first preset voltage;

[0016] The output terminal of the first voltage regulation unit is connected to the valve control module to provide operating voltage to the valve control module;

[0017] The input terminal of the second voltage regulation unit is connected to the output terminal of the first voltage regulation unit, and is used to adjust the first preset voltage to the second preset voltage;

[0018] The output terminal of the second voltage regulation unit is connected to the main control module, the first pressure sensor module and the second pressure sensor module respectively, and provides operating voltage to the main control module, the first pressure sensor module and the second pressure sensor module.

[0019] Optionally, the first voltage regulation unit includes a first anti-reverse diode, a first voltage regulator chip, and a power backup module;

[0020] The input terminal of the first anti-reverse diode is connected to the input terminal of the power input unit to prevent the external power supply from being reversed.

[0021] The input terminal of the first voltage regulator chip is connected to the output terminal of the first anti-reverse diode, which is used to stabilize the power supply voltage at a first preset voltage.

[0022] The output terminal of the power backup module and the output terminal of the first voltage regulator chip are used to provide temporary power when the external power supply fails.

[0023] Optionally, the second voltage regulation unit includes a second anti-reverse diode, a second voltage regulator chip, and an output filter module;

[0024] The input terminal of the second anti-reverse diode is connected to the output terminal of the first voltage regulation unit to prevent reverse current.

[0025] The input terminal of the second voltage regulator chip is connected to the output terminal of the second anti-reverse diode, which is used to stabilize the first preset voltage at the second preset voltage.

[0026] The output filtering module is connected to the output terminal of the second voltage regulator chip and is used to filter the second preset voltage.

[0027] Optionally, the gas safety controller further includes a power supply detection module;

[0028] The power supply detection module is connected to both the power supply module and the main control module. It is used to detect the status of the external power supply connected to the power supply module to generate a power status signal and send the power status signal to the main control module.

[0029] Optionally, the gas safety controller further includes a metering module;

[0030] The metering module is connected to the power supply module to obtain the operating voltage;

[0031] The metering module is connected to the main control module and is used to collect gas flow data, convert the gas flow data into a flow signal, and transmit the flow signal to the main control module. The main control module calculates the gas consumption based on the flow signal.

[0032] Optionally, the main control module is also used to generate an alarm signal when the inlet pressure value and the outlet pressure value are greater than or equal to a preset pressure difference; the gas safety controller also includes a buzzer module and a module communication module;

[0033] The buzzer module, the module communication module, and the power module are connected to obtain the operating voltage;

[0034] The buzzer module is connected to the main control module to respond to the alarm signal and trigger an alarm.

[0035] The module communication module is connected to the main control module and is used to upload the first pressure signal, the second pressure signal and the alarm signal to an external platform, as well as to receive remote control commands from the external platform and send them to the main control module.

[0036] Optionally, the gas safety controller further includes a storage module;

[0037] The storage module is connected to the main control module and is used to receive and store the processing data of the main control module. The processing data includes the first pressure signal, the second pressure signal, and the alarm record. The main control module generates the alarm record when it outputs the alarm signal.

[0038] Optionally, the gas safety controller further includes a button module and an LCD module;

[0039] The button module is connected to the power module to obtain the operating voltage;

[0040] The button module is used to respond to the user's button operation, generate a user query command based on the button operation, and send the user query command to the main control module;

[0041] The LCD module is used to receive user query information generated by the main control module based on the user query command. The user query information includes inlet pressure value and outlet pressure value.

[0042] The beneficial effects that this application can achieve are as follows:

[0043] By setting up a first pressure sensor module and a second pressure sensor module to collect the pressure values ​​at the inlet and outlet of the gas pipeline, respectively, the main control module monitors and compares the pressure difference between these two locations in real time. When the detected pressure difference is greater than or equal to a preset pressure difference, a valve closing signal is automatically issued, controlling the valve control module to close the gas control valve. Based on this dual-pressure sensor detection scheme, the presence of leaks in the gas pipeline can be quickly and accurately identified. Compared with traditional single-point pressure detection or gas concentration detection, the technical solution of this application can detect problems in the early stages of leaks, eliminating the need to wait for the leaked gas to accumulate to a certain concentration before triggering an alarm, thus significantly shortening the leak detection time. By actively closing the gas control valve, the gas source is effectively cut off, preventing further gas leaks and potential dangers. This solves the technical problem in existing technologies where gas systems cannot detect pipeline leaks in a timely manner, leading to safety hazards and improving the safety of gas use. Attached Figure Description

[0044] Figure 1 This is a schematic diagram of the gas safety controller in the first embodiment;

[0045] Figure 2 This is a circuit connection diagram of the main control module;

[0046] Figure 3 This is a schematic diagram of the circuit connection between the first pressure sensor module and the second pressure sensor module.

[0047] Figure 4 This is a circuit connection diagram for the valve control module;

[0048] Figure 5 This is a schematic diagram of the gas safety controller in the second embodiment;

[0049] Figure 6 This is a circuit connection diagram of the power module;

[0050] Figure 7 This is a schematic diagram of the gas safety controller in the third embodiment;

[0051] Figure 8 This is a circuit connection diagram for the power supply detection module;

[0052] Figure 9 This is a schematic diagram of the gas safety controller in the fourth embodiment;

[0053] Figure 10 This is a schematic diagram of the circuit connection of the metering module;

[0054] Figure 11 This is a schematic diagram of the gas safety controller in the fifth embodiment;

[0055] Figure 12 This is a circuit connection diagram for the buzzer module;

[0056] Figure 13 This is a circuit connection diagram of the module communication module;

[0057] Figure 14 This is a schematic diagram of the gas safety controller in the sixth embodiment;

[0058] Figure 15 This is a schematic diagram of the circuit connection of the storage module;

[0059] Figure 16 This is a schematic diagram of the gas safety controller in the seventh embodiment;

[0060] Figure 17 This is a circuit connection diagram for the button module;

[0061] Figure 18 This is a schematic diagram of the circuit connection of the LCD module.

[0062] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0063] The technical solutions in this embodiment will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this utility model, and not all embodiments. Based on the embodiments of this utility model, all other embodiments obtained by those skilled in the art without creative effort are within the protection scope of this utility model.

[0064] It should be noted that all directional indicators (such as up, down, left, right, front, back, etc.) in this embodiment are only used to explain the relative positional relationship and movement of each component under a certain preset posture (as shown in the figure). If the preset posture changes, the directional indicator will also change accordingly.

[0065] In this utility model, unless otherwise explicitly specified and limited, the terms "connection," "fixing," etc., should be interpreted broadly. For example, "fixing" can mean a fixed connection, a detachable connection, or an integral part; it can mean a mechanical connection or an electrical connection; it can mean a direct connection or an indirect connection through an intermediate medium; it can mean the internal communication of two components or the interaction between two components, unless otherwise explicitly limited. Those skilled in the art can understand the specific meaning of the above terms in this utility model according to the specific circumstances.

[0066] Furthermore, if this embodiment involves descriptions such as "first" or "second," these descriptions are for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, features defined with "first" or "second" may explicitly or implicitly include at least one of those features. Additionally, the meaning of "and / or" throughout the text includes three parallel solutions; for example, "A and / or B" includes solution A, solution B, or a solution where both A and B are satisfied simultaneously. Furthermore, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed by this utility model.

[0067] Reference Figure 1 This application provides a gas safety controller, including a main control module 100, a first pressure sensor module 200, a second pressure sensor module 300, and a valve control module 400.

[0068] The first pressure sensor module 200, the second pressure sensor module 300, and the valve control module 400 are respectively connected to the main control module 100;

[0069] The first pressure sensor module 200 is used to collect the inlet pressure value of the gas pipeline and generate a first pressure signal based on the inlet pressure value;

[0070] The second pressure sensor module 300 is used to collect the outlet pressure value of the gas pipeline and generate a second pressure signal based on the outlet pressure value;

[0071] The main control module 100 is used to receive the first pressure signal and the second pressure signal, and to determine whether the inlet pressure value and the outlet pressure value are greater than or equal to the preset pressure difference based on the first pressure signal and the second pressure signal; when the inlet pressure value and the outlet pressure value are greater than or equal to the preset pressure difference, a valve closing signal is generated.

[0072] The valve control module 400 is used to close the gas control valve in response to a valve closing signal.

[0073] Specifically, the first pressure sensor module 200 is installed at the inlet end of the gas pipeline to collect the pressure value at the gas pipeline inlet in real time, and converts the collected inlet pressure value into a first pressure signal to be sent to the main control module 100. The second pressure sensor module 300 is installed at the outlet end of the gas pipeline to collect the pressure value at the gas pipeline outlet in real time, and converts the collected outlet pressure value into a second pressure signal to be sent to the main control module 100.

[0074] The main control module 100 receives a first pressure signal from the first pressure sensor module 200 and a second pressure signal from the second pressure sensor module 300, and calculates the pressure difference between the inlet pressure and the outlet pressure. Then, the main control module 100 compares the calculated pressure difference with a preset pressure difference. When the calculated pressure difference is greater than or equal to the preset pressure difference, it indicates a possible leak in the gas pipeline, and the main control module 100 generates a valve closing signal.

[0075] The valve control module 400 is communicatively connected to the main control module 100. When it receives a valve closing signal from the main control module 100, the valve control module 400 controls the gas control valve to close, thereby cutting off the gas supply, preventing further gas leakage, and ensuring gas safety.

[0076] like Figure 2As shown, the main control module 100 includes a microcontroller 110 and a crystal oscillator circuit 120. The microcontroller 110, as the core control chip, is responsible for receiving the first pressure signal and the second pressure signal, performing comparison calculations between the inlet and outlet pressure values, and generating a valve closing signal when the pressure difference is greater than or equal to a preset pressure difference. The crystal oscillator circuit 120 includes a crystal oscillator X1 and related resistors R29 and capacitors C11 and C12. The crystal oscillator X1 provides the basic clock signal to the microcontroller 100, and capacitors C11 and C12 are used to ensure that the equivalent capacitance across the crystal oscillator is equal to or close to the required load capacitance value, ensuring the accuracy and stability of the clock signal.

[0077] In addition, the main control module 100 may also include a filter circuit 130. The filter circuit 130 includes capacitors C13 and C14, which are respectively connected to different pins of the microcontroller 110. They are used to filter out interference noise on the power supply and signal lines, improve the anti-interference capability of the system, and ensure the stability and reliability of the microcontroller 110.

[0078] In addition, the main control module 100 may also include an interface circuit 140. The interface circuit 140 includes a socket JP1 and its associated resistors R28, R10 and C10, which are used to enable the main control module 100 to connect with external signals and transmit data, and to realize functions such as signal reset.

[0079] In this configuration, one end of capacitor C11 is connected to one end of resistor R29 and one end of crystal oscillator X1 at a common point, and the other end of capacitor C11 is grounded. The other end of resistor R29 is connected to pin 11 of microcontroller 110. One end of capacitor C12 is connected to one end of crystal oscillator X1 and pin 12 of microcontroller 110 at a common point, and the other end of capacitor C12 is grounded. One end of capacitor C13 is connected to pin 16 of microcontroller 110, and the other end of capacitor C13 is grounded. One end of capacitor C14 is connected to pin 18 of microcontroller 110, and the other end of capacitor C14 is grounded. Pin 4 of socket JP1 is connected to one end of resistor R28, one end of capacitor C10, and pin 10 of microcontroller 110 at the same point, and the other end of capacitor C10 is grounded; pin 3 of socket JP1 is connected to the other end of resistor R28, one end of resistor R10, and pin 18 of microcontroller 110; pin 2 of socket JP1 is grounded; pin 1 of socket JP1 is connected to the other end of resistor R10 and pin 9 of microcontroller 110.

[0080] like Figure 3 As shown, the first pressure sensor module 200 and the second pressure sensor module 300 have similar circuit structures and both adopt a dedicated pressure sensor interface design for connecting external pressure sensor elements.

[0081] The first pressure sensor module 200 includes an interface socket JP3 for connecting an external pressure sensor installed at the inlet end of the gas pipeline. Through this interface, the external pressure sensor can convert the collected inlet pressure value into an electrical signal and transmit it to the microcontroller 110 of the main control module 100 via the IIC bus to form a first pressure signal.

[0082] The second pressure sensor module 300 includes an interface socket JP2 for connecting an external pressure sensor installed at the outlet end of the gas pipeline. Similarly, the outlet pressure value collected by the external pressure sensor is converted into an electrical signal and transmitted to the microcontroller 110 of the main control module 100 via the IIC bus to form a second pressure signal.

[0083] In interface socket JP3, pin 4 is grounded, pin 3 is connected to pin 41 of microcontroller 110, pin 2 is connected to pin 33 of microcontroller 110, and pin 1 is connected to pin 32 of microcontroller 110. In interface socket JP2, pin 4 is grounded, pin 3 is connected to pin 1 of microcontroller 110, pin 2 is connected to pin 2 of microcontroller 110, and pin 1 is connected to pin 3 of microcontroller 110. This connection method ensures stable transmission and accurate acquisition of pressure signals.

[0084] like Figure 4 As shown, the valve control module 400 includes a valve interface circuit 410 and a valve drive circuit 420.

[0085] The valve interface circuit 410 includes a socket J2 for connecting to an external gas control valve to control the gas flow. The valve drive circuit 420 includes a valve drive chip 421, a voltage regulator capacitor C26, and a voltage regulator capacitor C27. The valve drive chip 421 is responsible for driving the valve to open and close according to the control signal from the main control module 100. The voltage regulator capacitors C26 and C27 are used to stabilize the valve's operating voltage and drive voltage to ensure the reliability of the valve's operation.

[0086] Pin 1 of socket J2 is connected to pin 2 of valve drive chip 421, and pin 2 of socket J2 is connected to pin 3 of valve drive chip 421, for electrical connection with external gas control valve. Pin 1 of valve drive chip 421 is connected to one end of voltage regulator capacitor C26, which is also connected to the output of the first voltage regulator chip 522 of the first voltage regulation unit 520, providing a first preset voltage for valve drive circuit 420; the other end of voltage regulator capacitor C26 is grounded. Pin 4 of valve drive chip 421 is grounded; pins 5, 6, and 7 of valve drive chip 421 are connected to pins 30, 59, and 5 of microcontroller 110 of main control module 100, respectively, for receiving valve control signals from main control module 100. Pin 8 of the valve drive chip 421 is connected to one end of the voltage regulator capacitor C27. This connection point is also connected to the output of the second voltage regulator chip 532 of the second voltage regulation unit 530, providing a second preset voltage for the valve drive circuit 420; the other end of the voltage regulator capacitor C27 is grounded.

[0087] As an optional implementation, the gas safety controller also includes a power supply module 500;

[0088] The power supply module 500 is connected to the main control module 100, the first pressure sensor module 200, the second pressure sensor module 300 and the valve control module 400 respectively, and provides working voltage to the main control module 100, the first pressure sensor module 200, the second pressure sensor module 300 and the valve control module 400.

[0089] Specifically, such as Figure 5 As shown, the gas safety controller also includes a power supply module 500. The power supply module 500 is electrically connected to the main control module 100, the first pressure sensor module 200, the second pressure sensor module 300, and the valve control module 400, respectively, and is used to provide a stable operating voltage for the entire gas safety controller. Specifically, the power supply module 500 receives external power input, processes and converts it through internal circuitry, and then provides the required operating voltage to the main control module 100 to enable the microcontroller 110 to operate normally; it provides the required operating voltage to the first pressure sensor module 200 and the second pressure sensor module 300 to ensure that the pressure sensors can accurately collect the pressure values ​​at the gas pipeline inlet and outlet; and it provides the required operating voltage to the valve control module 400 to ensure that the valve drive chip 421 can operate normally and control the opening and closing state of the gas control valve.

[0090] By setting the power supply module 500, each functional module can obtain a suitable operating voltage, ensuring the normal and stable operation of the entire gas safety controller and improving the reliability and safety of the system.

[0091] As an optional implementation method, such as Figure 6 As shown, the power module 500 includes a power input unit 510, a first voltage regulation unit 520, and a second voltage regulation unit 530.

[0092] The power input unit 510 is used to connect to an external power source and output the power supply voltage.

[0093] The input terminal of the first voltage regulation unit 520 is connected to the output terminal of the power input unit 510, and is used to regulate the power supply voltage to the first preset voltage.

[0094] The output terminal of the first voltage regulation unit 520 is connected to the valve control module 400 to provide the working voltage for the valve control module 400.

[0095] The input terminal of the second voltage adjustment unit 530 is connected to the output terminal of the first voltage adjustment unit 520, and is used to adjust the first preset voltage to the second preset voltage.

[0096] The output terminal of the second voltage regulation unit 530 is connected to the main control module 100, the first pressure sensor module 200, and the second pressure sensor module 300 respectively, and provides working voltage to the main control module 100, the first pressure sensor module 200, and the second pressure sensor module 300.

[0097] Specifically, the power input unit 510 is used to connect to an external power source, such as a battery, and outputs a supply voltage. After receiving the external power input, the power input unit 510 outputs a supply voltage to provide basic power for subsequent voltage regulation.

[0098] The input terminal of the first voltage regulation unit 520 is electrically connected to the output terminal of the power input unit 510, and is used to receive the power supply voltage and regulate it to a first preset voltage. The output terminal of the first voltage regulation unit 520 is electrically connected to the valve control module 400, providing a stable operating voltage to the valve control module 400, ensuring that the valve drive chip 421 can reliably control the opening and closing state of the gas control valve.

[0099] The input terminal of the second voltage regulation unit 530 is electrically connected to the output terminal of the first voltage regulation unit 520, and is used to receive the first preset voltage and further regulate it to the second preset voltage. The output terminal of the second voltage regulation unit 530 is electrically connected to the main control module 100, the first pressure sensor module 200, and the second pressure sensor module 300, respectively, to provide these modules with voltages suitable for their operation, so that the microcontroller 110 can operate normally and the pressure sensors can accurately collect pressure data.

[0100] The graded voltage regulation design meets the differentiated operating voltage requirements of various modules, improving system stability and reliability. Furthermore, by separating the power supply of the valve control module 400 from other modules, the normal operation of valve control functions can be prioritized during system power failures, enhancing system safety.

[0101] As an optional implementation method, such as Figure 6 As shown, the first voltage regulation unit 520 includes a first anti-reverse diode 521, a first voltage regulator chip 522, and a power backup module 523;

[0102] The input terminal of the first anti-reverse diode 521 is connected to the input terminal of the power input unit 510 to prevent the external power supply from being reversed.

[0103] The input terminal of the first voltage regulator chip 522 is connected to the output terminal of the first anti-reverse diode 521, and is used to stabilize the power supply voltage at a first preset voltage.

[0104] The output terminals of the power backup module 523 and the first voltage regulator chip 522 are used to provide temporary power when the external power supply fails.

[0105] Specifically, the input terminal of the first reverse protection diode 521 is electrically connected to the output terminal of the power input unit 510 to prevent reverse polarity of the external power supply. When the positive and negative terminals of the external power supply are reversed, the first reverse protection diode 521 will block the current, preventing reverse current from damaging the circuit and improving the system's ability to prevent misconnection and its safety.

[0106] The input terminal of the first voltage regulator chip 522 is electrically connected to the output terminal of the first reverse protection diode 521. It receives the power supply voltage after it has been protected by the first reverse protection diode 521 and stabilizes it at a first preset voltage. The first voltage regulator chip 522 can output a stable voltage, providing a stable and reliable operating voltage for the valve control module 400.

[0107] The output of the power backup module 523 is connected to the output of the first voltage regulator chip 522, and is used to provide temporary power when the external power supply fails. When an external power interruption is detected, the power backup module 523 can immediately take over the power supply, ensuring that the valve control module 400 can still work normally for a short period of time, with enough time to perform the valve closing operation, preventing the risk of gas leakage caused by power failure, and further improving the safety and reliability of the system.

[0108] like Figure 6As shown, the power input unit 510 is in the form of a socket, denoted as power socket J1, for connecting to an external power source. Pin 1 of power socket J1 is grounded, and pin 2 is connected to the positive terminal of the first anti-reverse diode 521. The negative terminal of the first anti-reverse diode 521 is connected to pin 2 of the first voltage regulator chip 522. Pin 1 of the first voltage regulator chip 522 is grounded, and pin 3 outputs a first preset voltage.

[0109] The power backup module 523 includes capacitors E1 and E2, and resistors R43 and R44. Pin 3 of the first voltage regulator chip 522 is connected to the positive terminal of capacitor E1 and one end of resistor R44. The negative terminal of capacitor E1 is connected to the other end of resistor R44, the positive terminal of capacitor E2, and one end of resistor R43. The negative terminal of capacitor E2 is connected to the other end of resistor R43 and grounded. This parallel capacitor design, combined with voltage divider resistors, ensures that capacitors E1 and E2 have equal charging voltages, meeting both the capacitor withstand voltage requirements and increasing the energy storage capacity of the backup power supply. When the external power supply is normal, capacitors E1 and E2 are charged through resistors R43 and R44. When the external power supply is suddenly interrupted, these capacitors can release the stored energy to provide temporary power to the system, ensuring that the system has sufficient time to transmit power failure information and execute valve closing operations, effectively preventing the risk of gas leakage due to power outages.

[0110] As an optional implementation method, such as Figure 6 As shown, the second voltage regulation unit 530 includes a second anti-reverse diode 531, a second voltage regulator chip 532, and an output filter module 533;

[0111] The input terminal of the second anti-reverse diode 531 is connected to the output terminal of the first voltage regulation unit 520 to prevent reverse current.

[0112] The input terminal of the second voltage regulator chip 532 is connected to the output terminal of the second anti-reverse diode 531, and is used to stabilize the first preset voltage at the second preset voltage.

[0113] The output filtering module 533 is connected to the output terminal of the second voltage regulator chip 532 and is used to filter the second preset voltage.

[0114] Specifically, the input terminal of the second reverse protection diode 531 is electrically connected to the output terminal of the first voltage regulation unit 520 to prevent reverse current. When reverse current flows, the second reverse protection diode 531 can block this reverse current, protecting the upstream circuit from damage and improving stability.

[0115] The input terminal of the second voltage regulator chip 532 is electrically connected to the output terminal of the second anti-reverse diode 531. It is used to receive the first preset voltage after being protected by the second anti-reverse diode 531 and further regulate and stabilize it to the second preset voltage. The second voltage regulator chip 532 can accurately control the output voltage to ensure that a constant operating voltage is provided to the main control module 100, the first pressure sensor module 200 and the second pressure sensor module 300.

[0116] The output filter module 533 is electrically connected to the output terminal of the second voltage regulator chip 532 and is used to filter the second preset voltage. The output filter module 533 can effectively filter out high-frequency noise and voltage fluctuations on the power line, making the output second preset voltage more stable and reliable, providing a clean power environment for sensitive electronic components such as the microcontroller 110 and pressure sensor, and ensuring the accuracy of data acquisition and processing.

[0117] like Figure 6 As shown, the positive terminal of the second anti-reverse diode 531 is connected to pin 3 of the first voltage regulator chip 522, and the negative terminal is connected to pin 2 of the second voltage regulator chip 532. Pin 1 of the second voltage regulator chip 532 is grounded, and pin 3 outputs a second preset voltage.

[0118] The output filter module 533 includes capacitor C3 and capacitor E3. Pin 3 of the second voltage regulator chip 532 is connected to one end of capacitor C3 and the positive terminal of capacitor E3, forming an output node. The other end of capacitor C3 is connected to the negative terminal of capacitor E3 and grounded. This combined filter capacitor design can effectively filter out power supply noise in different frequency bands, providing a cleaner power supply environment.

[0119] The output of the second voltage regulator chip 532 is connected to the main control module 100, the first pressure sensor module 200, and the second pressure sensor module 300 after passing through the above filtering circuit, so as to provide a stable and reliable operating voltage for these digital circuits and sensor circuits that have high requirements for power quality.

[0120] As an optional implementation method, such as Figure 7 As shown, the gas safety controller also includes a power supply detection module 600;

[0121] The power supply detection module 600 is connected to the power supply module 500 and the main control module 100 respectively. It is used to detect the status of the external power supply connected to the power supply module 500 to generate a power status signal and send the power status signal to the main control module 100.

[0122] Specifically, the power supply detection module 600 is electrically connected to the power supply module 500 and the main control module 100 respectively, and is used to monitor the status of the external power supply connected to the power supply module 500 in real time, generate a power status signal representing the status of the external power supply, and send the power status signal to the main control module 100.

[0123] The power supply detection module 600 can detect the voltage level, stability, and power outage of the external power supply. When the external power supply is abnormal, such as too low or too high voltage or sudden power outage, the power supply detection module 600 can generate a corresponding power status signal in a timely manner, enabling the main control module 100 to take appropriate safety measures based on the power status signal, such as closing the gas control valve and uploading alarm information, to prevent safety hazards caused by power abnormalities.

[0124] By setting up a power supply detection module 600, the gas safety controller can monitor the status of the external power supply, further improving safety and reliability. Especially in environments with unstable power, it can respond promptly to power anomalies and prevent gas leak accidents.

[0125] like Figure 8 As shown, the power supply detection module 600 includes a voltage divider network composed of resistors R58, R59, R60, and R61. Specifically, one end of resistors R58 and R60 is connected to the output terminal of the power input unit 510 in the power supply module 500 to receive external power supply voltage. The other end of resistor R58 is connected to one end of resistor R59 and simultaneously connected to pin 62 of the microcontroller 110 of the main control module 100, forming a first detection point. The other end of resistor R60 is connected to one end of resistor R61 and simultaneously connected to pin 78 of the microcontroller 110 of the main control module 100, forming a second detection point. The other end of resistor R59 is connected to the other end of resistor R61 and grounded, forming a reference potential point.

[0126] The power supply detection module 600 converts the external power supply voltage into a voltage range that the microcontroller 110 can directly acquire. This allows the microcontroller 110 to read the power supply status in real time via its built-in analog-to-digital converter and generate a power supply status signal. When the external power supply voltage changes, the voltages at the first and second detection points also change accordingly. By acquiring these voltages and comparing them with preset thresholds, the microcontroller 110 can determine whether the external power supply is in a normal state. If a power supply abnormality is detected, the microcontroller 110 can immediately trigger safety protection measures, such as closing the gas control valve, while simultaneously saving the power supply abnormality information to improve the system's safety and reliability.

[0127] As an optional implementation method, such as Figure 9 As shown, the gas safety controller also includes a metering module 700;

[0128] The metering module 700 is connected to the power supply module 500 to obtain the operating voltage;

[0129] The metering module 700 is connected to the main control module 100 and is used to collect gas flow data, convert the gas flow data into a flow signal, and transmit the flow signal to the main control module 100. The main control module 100 calculates the gas consumption based on the flow signal.

[0130] Specifically, the metering module 700 is electrically connected to the power supply module 500, obtaining a stable operating voltage from the power supply module 500 to ensure the normal operation of the metering function. The metering module 700 is also electrically connected to the main control module 100 for real-time acquisition of gas flow data in the gas pipeline. The metering module 700 converts the acquired gas flow data into standardized flow signals and transmits these flow signals to the main control module 100 via a data interface. Upon receiving the flow signals, the main control module 100 determines the actual gas consumption, achieving accurate metering of gas usage.

[0131] By setting up the metering module 700, the gas safety controller can not only monitor the pressure status of gas pipelines and promptly detect leakage risks, but also accurately record users' gas consumption, providing an accurate basis for gas billing. Simultaneously, the metering data can also serve as a foundation for analyzing users' gas usage behavior, helping the system identify abnormal gas usage patterns and further improving gas safety.

[0132] like Figure 10 As shown, the metering module 700 includes a metering interface socket J5, resistors R20 and R21, and capacitors C7 and C8. The metering interface socket J5 is used to connect to an external gas flow metering device and receive its output pulse or analog signals. Pin 3 of the metering interface socket J5 is grounded to provide a signal reference potential. Pin 2 of the metering interface socket J5 is connected to one end of capacitor C8, one end of resistor R21, and pin 45 of the microcontroller 110 of the main control module 100 for transmitting a first metering signal. Pin 1 of the metering interface socket J5 is connected to one end of capacitor C7, one end of resistor R20, and pin 46 of the microcontroller 110 of the main control module 100 for transmitting a second metering signal. The other ends of capacitors C7 and C8 are both grounded to filter out high-frequency noise in the signal and improve signal stability. The other ends of resistors R20 and R21 are both connected to the output of the second voltage adjustment unit 530 to obtain a second preset voltage.

[0133] As an optional implementation, the main control module 100 is also used to generate an alarm signal when the inlet pressure value and the outlet pressure value are greater than or equal to a preset pressure difference; the gas safety controller also includes a buzzer module 800 and a module communication module 900;

[0134] The buzzer module 800, the module communication module 900, and the power supply module 500 are connected to obtain the operating voltage;

[0135] The buzzer module 800 is connected to the main control module 100 to respond to alarm signals and trigger an alarm.

[0136] The module communication module 900 is connected to the main control module 100 and is used to upload the first pressure signal, the second pressure signal and the alarm signal to an external platform, as well as to receive remote control commands from the external platform and send them to the main control module 100.

[0137] Specifically, when the main control module 100 detects that the difference between the inlet pressure and the outlet pressure is greater than or equal to a preset pressure difference, it will generate an alarm signal in addition to generating a valve closing signal. Meanwhile, if... Figure 11 As shown, the gas safety controller also includes a buzzer module 800 and a module communication module 900 to realize alarm and remote communication functions.

[0138] The buzzer module 800 is electrically connected to the power supply module 500, obtaining its operating voltage from the power supply module 500 to ensure the normal operation of the alarm function. The buzzer module 800 is also electrically connected to the main control module 100 to receive alarm signals generated by the main control module 100. When an abnormal pressure difference is detected in the gas pipeline, the main control module 100 sends an alarm signal to the buzzer module 800, which immediately sounds an alarm to remind the user to pay attention to gas safety and take necessary protective measures in a timely manner.

[0139] The module communication module 900 is also electrically connected to the power supply module 500 to obtain the operating voltage, and is electrically connected to the main control module 100 to realize remote data transmission and control functions. The module communication module 900 can upload the first pressure signal, the second pressure signal, and the generated alarm signal collected by the main control module 100 to an external platform via a wireless network, enabling managers to remotely monitor the status of the gas pipeline. Simultaneously, the module communication module 900 can also receive remote control commands from the external platform, such as valve closing commands and valve opening commands, and transmit these commands to the main control module 100 for execution, realizing remote management of the gas safety controller.

[0140] By adding a buzzer module 800 and a module communication module 900, the gas safety controller can not only detect gas leak risks in a timely manner and issue local alarms, but also report abnormal situations to the monitoring center and users in real time, forming a multi-layered safety protection system and improving the safety and management efficiency of gas use.

[0141] like Figure 12As shown, the buzzer module 800 includes a buzzer 810, a drive circuit 820, and a filter circuit 830. The drive circuit 820 includes a transistor Q7 and resistors R36 and R37. Pin 2 of transistor Q7 is connected to the output of the second voltage adjustment unit 530 to obtain a second preset voltage; pin 1 of transistor Q7 is connected to pin 6 of the microcontroller 110 of the main control module 100 through the current-limiting resistor R36 to receive alarm control signals; pin 3 of transistor Q7 is connected to the positive terminal of the buzzer 810 through resistor R37. The filter circuit 830 includes capacitors C34 and C35, connected across the buzzer 810, used to filter out interference signals generated during operation, making the buzzer 810 more stable and the sound output clearer. One end of capacitors C34 and C35 is connected to the positive terminal of the buzzer 810 and the other end of resistor R37, and the other end is connected to the negative terminal of the buzzer 810 and grounded.

[0142] When the main control module 100 detects an abnormal pressure difference in the gas pipeline, the microcontroller 110 outputs a high-level signal through pin 6, which is transmitted to the base of transistor Q7 through resistor R36, turning on transistor Q7. After transistor Q7 is turned on, current flows from the output of the second voltage regulation unit 530 through the collector-emitter junction of transistor Q7, and then through resistor R37 and buzzer 810 to form a circuit, driving buzzer 810 to emit an alarm sound to remind the user to pay attention to gas safety.

[0143] like Figure 13 As shown, the module communication module 900 includes a communication unit 910, a SIM card interface 920, a signal control circuit 930, a power supply filtering circuit 940, and an antenna 950.

[0144] Specifically, the communication unit 910 is responsible for implementing wireless network connection and data transmission functions. The SIM card interface 920 is used to connect the SIM card and provide the information required for network authentication. Pin 11 of the communication unit 910 is connected to pin 8 of the SIM card interface 920 and one end of capacitor C31, with the other end of capacitor C31 grounded; pins 12, 13, and 14 of the communication unit 910 are connected to pins 7, 6, and 3 of the SIM card interface 920, respectively, to realize data interaction with the SIM card; pin 35 of the communication unit 910 is connected to the antenna 950 for transmitting and receiving wireless signals.

[0145] The signal control circuit 930 includes transistors Q1 and Q6, and their corresponding resistors R18, R24, R25, R26, and R13, used to implement signal control between the main control module 100 and the communication unit 910. Pin 15 of the communication unit 910 is connected to one end of resistor R13, and the other end of resistor R13 is connected to pin 36 of the microcontroller 110 of the main control module 100 for data communication. Pin 17 of the communication unit 910 is connected to the emitter of transistor Q6 and one end of resistor R18. The other end of resistor R18 is connected to one end of resistor R26, one end of resistor R24, one end of capacitor C45, and pin 24 of the communication unit 910 at a single point. The other end of capacitor C45 is grounded. The other end of resistor R26... One end of resistor R24 ​​is connected to the collector of transistor Q6, and the base of transistor Q6 is connected to pin 60 of microcontroller 110, used to control the reset function of the communication unit; the other end of resistor R24 ​​is connected to the collector of transistor Q1, and the emitter of transistor Q1 is connected to one end of resistor R25 and pin 61 of microcontroller 110, the other end of resistor R25 is connected to the output terminal of the second voltage regulation unit 530, and the base of transistor Q1 is connected to pin 18 of communication unit 910, used to control the power on / off function of communication unit.

[0146] The power supply filter circuit 940 includes capacitors C29, C33, C2, and C32, used to stabilize the power supply voltage of the communication unit 910 and reduce ripple interference. Pins 42 and 43 of the communication unit 910 are connected to one end of capacitors C29, C33, C2, and C32, and the output of the second voltage regulation unit 530; the other ends of these capacitors are connected to and grounded. Pins 1, 10, 34, 36, 37, 40, and 41 of the communication unit 910 are grounded to ensure a stable reference potential for the signal.

[0147] Through the aforementioned communication module 900, it can reliably connect to the external network, upload various data collected by the gas safety controller to the remote platform, and receive control commands from the platform to realize remote monitoring and management functions, thus providing a guarantee for the safety of gas use.

[0148] As an alternative implementation method, such as Figure 14 As shown, the gas safety controller also includes a storage module 1000;

[0149] The storage module 1000 is connected to the main control module 100 and is used to receive and store the processing data of the main control module 100. The processing data includes a first pressure signal, a second pressure signal, and an alarm record. The main control module 100 generates an alarm record when it outputs an alarm signal.

[0150] Specifically, the storage module 1000 is electrically connected to the main control module 100 and is used to receive and store various processing data generated by the main control module 100 during operation. This processing data mainly includes the first pressure signal collected by the first pressure sensor module 200, the second pressure signal collected by the second pressure sensor module 300, and generated alarm records. When the main control module 100 detects that the difference between the inlet pressure value and the outlet pressure value is greater than or equal to a preset pressure difference, and determines that there may be a leak in the gas pipeline, the main control module 100, in addition to outputting a valve closing signal and an alarm signal, will also simultaneously generate an alarm record and transmit this alarm record to the storage module 1000 for storage.

[0151] The storage module 1000 uses non-volatile memory, ensuring data integrity even during power outages. This allows administrators to later query historical data, analyze the operational status and anomalies of the gas pipeline, and provide data support for system maintenance and safety management.

[0152] like Figure 15 As shown, in this embodiment, the storage module 1000 includes a storage chip 1010, resistors R14 and R15, and a capacitor C4. Specifically, the storage chip 1010 serves as the core storage unit, employing non-volatile memory to reliably store system operating data. Resistors R14 and R15 act as pull-up resistors for the data and clock lines, ensuring the stability of signal transmission. Capacitor C4 is used to filter out power supply noise, providing a clean operating voltage environment. Pin 5 of the storage chip 1010 is connected to pin 20 of the microcontroller 110 of the main control module 100 and one end of resistor R15. Pin 6 of the storage chip 1010 is connected to pin 19 of the microcontroller 110 and one end of resistor R14, forming a standard I2C communication interface. Pin 8 of the storage chip 1010 is connected to one end of capacitor C4, the other end of resistor R14 and R15, and pin 8 of the microcontroller 110 to obtain the operating voltage. Pins 1, 2, 3, 4, and 7 of the memory chip 1010 are grounded to form a stable reference potential.

[0153] Through the I2C communication protocol, the main control module 100 can quickly and efficiently write data such as the first pressure signal, the second pressure signal, and alarm records into the storage chip 1010 for storage, and can also read these data for analysis and processing when needed.

[0154] As an optional implementation method, such as Figure 16 As shown, the gas safety controller also includes a button module 1100 and an LCD module 1200;

[0155] The button module 1100 is connected to the power module 500 to obtain the operating voltage;

[0156] The button module 1100 is used to respond to the user's button operation, generate the user query command based on the button operation, and send the user query command to the main control module 100;

[0157] The LCD module 1200 is used to receive user query information generated by the main control module 100 based on user query instructions. The user query information includes inlet pressure value and outlet pressure value.

[0158] Specifically, the button module 1100 is electrically connected to the power module 500, obtaining a stable operating voltage from the power module 500 to ensure the reliability of button operation. The button module 1100 is also electrically connected to the main control module 100 to respond to user button operations. When a user presses a button, the button module 1100 converts the button operation into a standardized electrical signal and generates a corresponding user query command based on these signals. The generated user query command is then transmitted to the main control module 100 for processing.

[0159] The LCD module 1200 is electrically connected to the main control module 100 and is used to display user query results. When the main control module 100 receives a user query command from the button module 1100, it retrieves the corresponding data according to the command content and generates user query information. This user query information includes, but is not limited to, the inlet pressure value and outlet pressure value of the gas pipeline. After receiving this query information, the LCD module 1200 displays it in an intuitive way on the LCD screen, making it convenient for users to understand the real-time status of the gas pipeline.

[0160] By setting up a button module 1100 and an LCD module 1200, the gas safety controller can effectively interact with users, enabling them to intuitively understand gas usage and system operating status, thereby improving the practicality and user experience of the gas safety controller.

[0161] like Figure 17As shown, the button module 1100 includes a button J4, a resistor R32, and a capacitor C15. Button J4 serves as a user input device, receiving user button presses. Resistor R32 ensures the stability and reliability of the button signal. Capacitor C15 filters out jitter signals generated during button presses, improving the accuracy of button operation. Pin 2 of button J4 is connected to one end of resistor R32, one end of capacitor C15, and pin 31 of the microcontroller 110 of the main control module 100, forming a signal input line. Pin 1 of button J4 is connected to the other end of capacitor C15 and grounded, forming a reference potential. The other end of resistor R32 is connected to the output of the second voltage adjustment unit 530 to obtain a second preset voltage. When the user presses button J4, pin 2 and pin 1 are connected, and the signal line level changes from high to low. The microcontroller 110 detects this level change through pin 31, thus recognizing the user's button press operation and generating a corresponding user query command. Capacitor C15 effectively filters out jitter signals during button presses, preventing false triggering.

[0162] like Figure 18 As shown, the LCD module 1200 includes an LCD display screen 1210 and a resistor network 1220. The LCD display screen 1210 serves as a display unit for displaying user-queried information. The resistor network 1220, composed of resistors R38, R39, R41, and R42, is used to adjust the display contrast of the LCD screen to ensure clear and readable display. Specifically, one end of resistor R38 is connected to pin 26 of the microcontroller 110 of the main control module 100, and the other end is connected to one end of resistor R39 and pin 25 of the microcontroller 110; the other end of resistor R39 is connected to pin 24 of the microcontroller 110 and one end of resistor R41; the other end of resistor R41 is connected to one end of resistor R42 and pin 23 of the microcontroller 110; and the other end of resistor R42 is grounded.

[0163] The LCD screen 1210 is connected to the microcontroller 110 of the main control module 100 via multiple data and control lines to achieve information display function. The specific connections are as follows: Pin 1 of the LCD screen 1210 is connected to pin 56 of the microcontroller 110; Pin 2 of the LCD screen 1210 is connected to pin 55 of the microcontroller 110; Pin 3 of the LCD screen 1210 is connected to pin 54 of the microcontroller 110; Pin 4 of the LCD screen 1210 is connected to pin 53 of the microcontroller 110; Pin 5 of the LCD screen 1210 is connected to pin 75 of the microcontroller 110; Pin 6 of the LCD screen 1210 is connected to pin 76 of the microcontroller 110; Pin 7 of the LCD screen 1210 is connected to pin 76 of the microcontroller 110; Pin 7 of the LCD screen 1210 is connected to pin 76 of the microcontroller 110; Pin 8 of the LCD screen 1210 is connected to pin 9 of the microcontroller 110; Pin 9 of the LCD screen 1210 is connected to pin 100; Pin 10 of the LCD screen 1210 is connected to pin 110; Pin 1210 is connected to pin 110 of the microcontroller ... Pin 66 of the microcontroller 110 is connected to pin 8 of the LCD display 1210, pin 67 of the LCD display 1210 is connected to pin 68 of the microcontroller 110, pin 10 of the LCD display 1210 is connected to pin 69 of the microcontroller 110, pin 11 of the LCD display 1210 is connected to pin 70 of the microcontroller 110, pin 12 of the LCD display 1210 is connected to pin 71 of the microcontroller 110, and pin 13 of the LCD display 1210 is connected to pin 72 of the microcontroller 110. Pin 14 of the LCD display 1210 is connected to pin 73 of the microcontroller 110; pin 15 of the LCD display 1210 is connected to pin 74 of the microcontroller 110; pin 16 of the LCD display 1210 is connected to pin 49 of the microcontroller 110; pin 17 of the LCD display 1210 is connected to pin 52 of the microcontroller 110; pin 18 of the LCD display 1210 is connected to pin 51 of the microcontroller 110; pin 19 of the LCD display 1210 is connected to pin 50 of the microcontroller 110; and pin 20 of the LCD display 1210 is connected to... Pin 48 of the microcontroller 110 is connected to pin 21 of the LCD display 1210, pin 40 of the microcontroller 110 is connected to pin 22 of the LCD display 1210, pin 39 of the microcontroller 110 is connected to pin 23 of the LCD display 1210, pin 38 of the microcontroller 110 is connected to pin 24 of the LCD display 1210, pin 37 of the microcontroller 110 is connected to pin 25 of the LCD display 1210, and pin 26 of the LCD display 1210 is connected to pin 34 of the microcontroller 110.

[0164] When the main control module 100 needs to display information such as inlet pressure value and outlet pressure value to the user, the microcontroller 110 sends display data and control signals to the LCD screen 1210 through these connected pins. The LCD screen 1210 then displays the corresponding information on the screen according to the received data and signals, so that the user can intuitively understand the status of the gas pipeline.

[0165] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A gas safety controller, characterized by, The gas safety controller comprises a master control module, a first pressure sensor module, a second pressure sensor module and a valve control module; The first pressure sensor module, the second pressure sensor module and the valve control module are connected with the master control module respectively; The first pressure sensor module is used for collecting an inlet pressure value of a gas pipeline and generating a first pressure signal based on the inlet pressure value; The second pressure sensor module is used for collecting an outlet pressure value of the gas pipeline and generating a second pressure signal based on the outlet pressure value; The master control module is used for receiving the first pressure signal and the second pressure signal and judging whether a difference between the inlet pressure value and the outlet pressure value is greater than or equal to a preset pressure difference according to the first pressure signal and the second pressure signal; when the difference between the inlet pressure value and the outlet pressure value is greater than or equal to the preset pressure difference, a valve closing signal is generated; The valve control module is used for responding to the valve closing signal to close a gas control valve.

2. The gas safety controller of claim 1, wherein, The gas safety controller further comprises a power supply module; The power supply module is connected with the master control module, the first pressure sensor module, the second pressure sensor module and the valve control module respectively and provides working voltages for the master control module, the first pressure sensor module, the second pressure sensor module and the valve control module.

3. The gas safety controller of claim 2, wherein, The power supply module comprises a power supply input unit, a first voltage regulating unit and a second voltage regulating unit; The power supply input unit is used for connecting an external power supply and outputting a supply voltage; The input end of the first voltage regulating unit is connected with the output end of the power supply input unit and is used for regulating the supply voltage into a first preset voltage; The output end of the first voltage regulating unit is connected with the valve control module and provides a working voltage for the valve control module; The input end of the second voltage regulating unit is connected with the output end of the first voltage regulating unit and is used for regulating the first preset voltage into a second preset voltage; The output end of the second voltage regulating unit is connected with the master control module, the first pressure sensor module and the second pressure sensor module respectively and provides working voltages for the master control module, the first pressure sensor module and the second pressure sensor module.

4. The gas safety controller of claim 3, wherein, The first voltage regulating unit comprises a first anti-reverse diode, a first voltage stabilizing chip and a power supply backup module; The input end of the first anti-reverse diode is connected with the input end of the power supply input unit and is used for preventing the external power supply from being reversely connected; The input end of the first voltage stabilizing chip is connected with the output end of the first anti-reverse diode and is used for stabilizing the supply voltage at the first preset voltage; The output end of the power supply backup module is connected with the output end of the first voltage stabilizing chip and is used for providing a temporary power supply when the external power supply is powered off.

5. The gas safety controller of claim 3, wherein, The second voltage regulating unit comprises a second anti-reverse diode, a second voltage stabilizing chip and an output filter module; The input end of the second anti-reverse diode is connected with the output end of the first voltage regulating unit and is used for preventing reverse current; The input end of the second voltage stabilizing chip is connected with the output end of the second anti-reverse diode, for stabilizing the first preset voltage at a second preset voltage; The output filtering module is connected with the output end of the second voltage stabilizing chip, for filtering the second preset voltage.

6. The gas safety controller of claim 2, wherein, The gas safety controller further comprises a power supply detection module; The power supply detection module is connected with the power supply module and the main control module respectively, for detecting the state of the external power supply connected with the power supply module to generate a power supply state signal, and sending the power supply state signal to the main control module.

7. The gas safety controller of claim 2, wherein, The gas safety controller further comprises a metering module; The metering module is connected with the power supply module to obtain working voltage; The metering module is connected with the main control module, for collecting gas flow data, converting the gas flow data into a flow signal, and transmitting the flow signal to the main control module, and the main control module calculates gas consumption according to the flow signal.

8. The gas safety controller of claim 2, wherein, The main control module is further configured to generate an alarm signal when the inlet pressure value and the outlet pressure value are greater than or equal to a preset pressure difference; the gas safety controller further comprises a buzzer module and a module communication module; The buzzer module and the module communication module are connected with the power supply module to obtain working voltage; The buzzer module is connected with the main control module to alarm in response to the alarm signal; The module communication module is connected with the main control module, for uploading the first pressure signal, the second pressure signal and the alarm signal to an external platform, and receiving a remote control instruction from the external platform and sending it to the main control module.

9. The gas safety controller of claim 8, wherein, The gas safety controller further comprises a storage module; The storage module is connected with the main control module, for receiving and storing processing data of the main control module, the processing data comprising the first pressure signal, the second pressure signal and alarm records, wherein the main control module generates an alarm record when outputting the alarm signal.

10. The gas safety controller of claim 2, wherein, The gas safety controller further comprises a key module and a liquid crystal module; The key module is connected with the power supply module to obtain working voltage; The key module is configured to generate a user query instruction based on a key operation of a user and send the user query instruction to the main control module; The liquid crystal module is configured to receive user query information generated by the main control module based on the user query instruction, the user query information comprising an inlet pressure value and an outlet pressure value.