Combustible gas leakage detection and alarm turn-off circuit
By using internal memory and real-time clock circuit in the combustible gas leakage detection and alarm shutdown circuit, combined with voltage division detection and independent power supply, the problem of untimely main power failure detection is solved, the hardware cost is reduced, and the system stability is improved. and security.
Patent Information
- Application Number
- CN202420006195.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-03
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2034-01-03
AI Technical Summary
In the existing combustible gas leakage detection and alarm shutdown scheme, the main power outage detection is not timely, resulting in the failure to save the power outage record. The hardware cost is high, and external memory and real-time clock circuits are used, which increases the system complexity and cost.
A combustible gas leakage detection and alarm shutdown circuit including a power supply module, a voltage reduction module, a gas detection module, a motor drive module, an audible and visual alarm module and a main control module is designed. It uses an internal memory and an internal real-time clock circuit. Voltage detection and independent power supply mode enable timely detection and data storage of main power failure.
It effectively reduces hardware costs, improves the stable operation and data storage capabilities of the MCU after the main power supply is powered off, ensures the long-term stability, safety and reliability of the system, and avoids the problem of failure to save power-off records.
Smart Images

Figure CN221804859U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of electronic alarm circuits, in particular to a leakage detection and alarm shutoff circuit for combustible gas. Background Art
[0002] Gas safety has increasingly become a focal issue of widespread social concern. According to the 2022 National Gas Accident Analysis Report of the China Urban Gas Association, there are about 225 million natural gas users in my country. A total of 802 domestic (excluding Hong Kong, Macao and Taiwan) gas accidents reported by the media were collected throughout the year, resulting in 66 deaths and 487 injuries, including 10 major accidents. The accidents occurred in 30 provinces and 249 cities across the country, showing the characteristics of frequent accidents, wide range and great impact.
[0003] Combustible gas detectors are an important means to improve gas safety prevention capabilities. In some developed countries, the penetration rate of household combustible gas detectors is over 85%. Taking Japan as an example, in addition to the mandatory installation of combustible gas detectors in public and crowded places, the penetration rate of non-mandatory installation places such as homes is also close to 100%, and the number of gas accidents each year is basically maintained at 75 to 120, of which fatal accidents are almost zero.
[0004] Some existing flammable gas leak detection and alarm shutdown implementation solutions use external memory to save historical data records. The power supply voltage detection method on the MCU side is often used for main power failure detection. When the MCU detects a gas leak through the gas sensor, it can output a DC pulse signal to close the connected solenoid valve.
[0005] The above scheme uses external memory and external real-time clock circuit to detect and alarm combustible gas leakage, which has high hardware cost. In addition, the power failure detection of the main power supply is not timely enough, and there is a problem that the main controller works too short after power failure, resulting in failure to save power failure records. Utility Model Content
[0006] The utility model provides a combustible gas leakage detection and alarm shut-off circuit, which aims to timely detect the power failure of the main power supply to ensure the stability of the main controller.
[0007] In order to achieve the above object, the utility model is implemented through the following technical solutions:
[0008] A combustible gas leakage detection and alarm shutoff circuit, comprising: a power supply module, a voltage reduction module, a gas detection module, a motor drive module, an audible and visual alarm module, an external interface module, and a main control module;
[0009] One port of the power supply module is electrically connected to the step-down module, and another port thereof is electrically connected to the driving module. One port of the step-down module is electrically connected to the sound and light alarm module, one port of the sound and light alarm module is electrically connected to the main control module, one port of the main control module is electrically connected to the driving module, one port of the gas detection module is electrically connected to the main controller, and one port of the external interface module is electrically connected to the main control module.
[0010] Further preferably, the power supply module includes: an external DC 12V power adapter, a power supply terminal DC1, a diode D1, a diode D2, a capacitor C2, a resistor R4, and a resistor R5;
[0011] The port of the external DC 12V power adapter is connected to the DC 12V power supply, and pin 4 of the power supply terminal is electrically connected to the input voltage port, diode D1, and the positive electrode of diode D2. The other port of diode D2 is connected to the ground, which is used to shunt and clamp the surge pulse voltage when power is turned on. The cathode of diode D1 is electrically connected to the DC 12V power supply and the positive electrode of capacitor C2, which is used to ensure that the current only flows in the forward direction and only the forward voltage is applied when power is turned on. The negative electrode of capacitor C2 is connected to the ground, and resistor R4 is electrically connected to the positive electrode of the DC 12V power supply. Its other port is electrically connected to the main control module and resistor R5, which is used to read the voltage value on the voltage divider resistor by the main control chip at the moment of system power failure, thereby obtaining the power-off state at the moment of power failure.
[0012] Further preferably, the buck module includes: buck chip U1, buck chip U3, buck chip U5, inductor L1, resistor R1, resistor R12, resistor R13, capacitor C1, capacitor C4, capacitor C5, capacitor C6, capacitor C7, capacitor C8, capacitor C10, capacitor C12, capacitor C13, capacitor C16, capacitor C17, capacitor C18, diode D4, 3v3, V_MCU,
[0013] Pin 1 of the buck chip U1 is electrically connected to the capacitor C1, and is used to provide drive for the high-side MOS tube inside the buck chip U1. The other end of the capacitor C1 is electrically connected to pin 6 of the buck chip U1 and the inductor L1. The other end of the inductor L1 is electrically connected to the positive electrode of the 5V DC power supply. Pin 2 of the buck chip U1 is connected to the ground. Pin 3 of the buck chip U1 is electrically connected to the resistor R2, the resistor R3 and the capacitor C7. The other end of the resistor R2 is connected to the ground. The other end of the resistor R3 and the other end of the capacitor C7 are electrically connected to the positive electrode of the 5V DC power supply to reduce the output voltage ripple. Pin 4 of the buck chip U1 is electrically connected to the resistor R1. Pin 5 is electrically connected to the other end of the resistor R1, the capacitor C4, the capacitor C5 and the positive electrode of the 12V DC power supply. The other end of the capacitor C4 and the other end of the capacitor C5 are connected to the ground. The capacitor C6 is electrically connected to the positive electrode of the 5V DC power supply, and the other end of the capacitor C6 is connected to the ground to reduce the surge current of the 12V input.
[0014] Pin 1 of the buck chip U3 is electrically connected to +12V; Pin 2 of the buck chip U3 and the other end of capacitor C8 and capacitor C10 are connected to ground; Pin 3 of the buck chip U3 is electrically connected to pin 1 of the buck chip U3; Pin 5 of the buck chip U3 is electrically connected to capacitor C12, capacitor C13 and 3V3, and the other ends of capacitors C12 and C13 are connected to ground.
[0015] Pin 1 of the buck chip U5 is electrically connected to the positive electrode of capacitor C17, capacitor C16 and the negative electrode of diode D4, and the positive electrode of diode D4 is electrically connected to VI N; Pin 2 of the buck chip U5 is electrically connected to the other end of capacitor C17, the negative electrode of capacitor C16 and ground; Pin 3 of the buck chip U5 is electrically connected to Pin 1 of the buck chip U5; Pin 5 of the buck chip U5 is electrically connected to capacitor C18 and V_MCU, and the other end of capacitor C18 is connected to ground.
[0016] Among them, capacitors C8, C10 and C17 are used to reduce the ripple of the input voltage, capacitors C12, C13 and C18 are used to reduce the ripple of the output voltage, and capacitor C16 is used to release the stored charge at the moment of power failure to provide a short operating time for the main control chip U2.
[0017] Further preferably, the gas detection module includes: a gas sensor U7, a resistor R7, a resistor R9, a resistor R10, a capacitor C23, a capacitor C24, and a capacitor C25;
[0018] Pin 1 of the gas sensor U7 is electrically connected to resistors R7 and R9, the other end of resistor R7 is electrically connected to resistor R10 and capacitor C25, the other ends of resistor R10 and capacitor C25 are connected to ground, and the other end of resistor R9 is connected to ground; Pin 2 of the gas sensor U7 is connected to ground; Pin 3 of the gas sensor U7 is electrically connected to Pin 1 of the gas sensor U7; Pin 4, Pin 5 and Pin 6 of the gas sensor U7 are electrically connected to the positive electrode of a 5V DC power supply; Capacitor C23 and capacitor C24 are electrically connected to the positive electrode of a 5V DC power supply, and the other ends of capacitor C23 and capacitor C24 are connected to ground;
[0019] Among them, capacitor C23 and capacitor C24 are used to reduce the impact of noise on the sensor.
[0020] Resistors R7 and R10 are voltage divider resistors used for the main control module to read the correct voltage value.
[0021] Further optimization is as follows: motor drive module: drive chip U6, capacitor 19, capacitor C20, capacitor C21, CO I L_A, CO I L_B,
[0022] Pin 1 of the driver chip U1 is electrically connected to 12V, the positive electrode of capacitor C20, and capacitor C21, and the negative electrode of capacitor C20 and the other end of capacitor C21 are connected to ground; Pin 2 of the driver chip U1 is electrically connected to output terminal A; Pin 3 of the driver chip U1 is electrically connected to output terminal B; Pin 5 of the driver chip U1 is electrically connected to CO I L_A; Pin 6 of the driver chip U1 is electrically connected to CO I L_B; Pin 7 of the driver chip U1 is electrically connected to 3V3; Pin 8 of the driver chip U1 is electrically connected to capacitors C19 and 3V3, and the other end of capacitor C19 is connected to ground;
[0023] Among them, capacitor C20 is the ground decoupling capacitor of pin 1 of the driver chip U1, which is used to protect the circuit from being damaged by the peak voltage generated by the motor when driving the motor. Capacitor C21 is a bypass capacitor used to filter out high-frequency noise. Capacitor C19 is a capacitor that filters the power supply to reduce the impact of noise on the chip.
[0024] Further optimized, the sound and light alarm module includes a buzzer BUZZER1, a light-emitting diode LED_G, a light-emitting diode LED_R, a light-emitting diode LED_Y, a diode D5, a resistor R12, a resistor R14, a resistor R15, a transistor Q1, BEEP,
[0025] The positive electrode of buzzer BUZZER1 is electrically connected to the negative electrode of diode D5 and resistor R11, and the other end of resistor R11 is electrically connected to the positive electrode of 5V DC power supply; the negative electrode of buzzer BUZZER1 is electrically connected to the positive electrode of diode D5 and the collector of transistor Q1, the emitter of transistor Q1 is connected to ground, the base of transistor Q1 is electrically connected to BEEP, the positive electrode of light-emitting diode LED_G is electrically connected to resistor R12, its negative electrode is electrically connected to the main control module, and the other end of resistor R12 is electrically connected to 3V3; the positive electrode of light-emitting diode LED_R is electrically connected to resistor R14, its negative electrode is electrically connected to the main control module, and the other end of resistor R14 is electrically connected to 3V3; the positive electrode of light-emitting diode LED_Y is electrically connected to resistor R15, its negative electrode is electrically connected to the main control module, and the other end of resistor R15 is electrically connected to 3V3;
[0026] Among them, diode D5 is a freewheeling diode, which is used to protect the buzzer from breakdown or burnout by the induced voltage. Transistor Q1 acts as a switch. The high level of its base makes transistor Q1 saturated and turned on, making buzzer BUZZER1 sound; while the low level of the base turns off transistor Q1, and buzzer BUZZER1 stops sounding. Resistors R12, R14 and R15 are used to reduce the current flowing through the LED to prevent damage to the LED.
[0027] Further optimized, the external interface module includes: debug interface H2, read interface H3, resistor R16, resistor 17, transistor Q3, transistor Q2, diode D6,
[0028] Pin 1 of the debug interface H2 is electrically connected to +5V, pin 2 of the debug interface H2 is electrically connected to the main control module, pin 3 of the debug interface H2 is electrically connected to ground, pin 4 of the debug interface H2 is electrically connected to the main control module, pin 5 of the debug interface H2 is electrically connected to resistor R17 and the collector of transistor Q3, the emitter of transistor Q3, and the base of transistor Q3, pin 6 of the debug interface H2 is electrically connected to the main control module, transistor Q2, and pin 8 of the debug interface H2 is electrically connected to the main control module,
[0029] Pin 1 of the read interface H3 is connected to the ground; pin 2 of the read interface H3 is electrically connected to the cathode of the diode D6, and the anode of the diode D6 is electrically connected to 3V3; pin 3 of the read interface H3 is electrically connected to the resistor R16 and the collector of the transistor Q2; pin 4 of the read interface H3 is electrically connected to the base of the transistor Q3.
[0030] Further optimized, the main control module includes: main control chip U2, diode D3, battery U4, crystal oscillator X1, crystal oscillator X2, capacitor C9, capacitor C11, capacitor C15, capacitor 26, capacitor C27, capacitor C28, capacitor C29, capacitor C30, capacitor C43, resistor R6, resistor R13, resistor R18, UART1_RX, UART2_TX,
[0031] Pin 1 of the main control chip U2 is electrically connected to the negative electrode of capacitor C9 and diode D3, and the positive electrode of diode D3 is electrically connected to 3V3 and the positive electrode of battery U4 respectively; Pin 3 of the main control chip U2 is electrically connected to crystal oscillator X1 and one end of capacitor C26, and the other end of capacitor C26 is connected to ground; Pin 4 of the main control chip U2 is electrically connected to crystal oscillator X1 and one end of capacitor C27, and the other end of capacitor C27 is connected to ground; Pin 5 of the main control chip U2 is electrically connected to crystal oscillator X2 and one end of capacitor C29, and the other end of capacitor C29 is connected to ground; Pin 6 of the main control chip U2 is electrically connected to crystal oscillator X2 and one end of capacitor C30, and the other end of capacitor C30 is connected to ground; Pin 7 of the main control chip U2 is electrically connected to resistor R13, capacitor C28, and button SW1 respectively, and resistor R1 3 is electrically connected to V_MCU, and the other end of the button SW1 and the capacitor C28 are connected to the ground; the pin 8 of the main control chip U2 is connected to the ground; the pin 9 of the main control chip U2 is electrically connected to the capacitor C15, and the other end of the capacitor C15 is connected to the ground; the pin 11 of the main control chip U2 is electrically connected to MQ_ADC; the pin 12 of the main control chip U2 is electrically connected to UART2_TX; the pin 13 of the main control chip U2 is electrically connected to UART2_RX; the pin 14 of the main control chip U2 is electrically connected to the cathode of the light-emitting diode LED_G; the pin 16 of the main control chip U2 is electrically connected to the cathode of the light-emitting diode LED_Y; the pin 17 of the main control chip U2 is electrically connected to the button SW2, and the other end of the button SW2 is connected to the ground; the pin 21 of the main control chip U2 is electrically connected to CO I L_A; the pin 22 of the main control chip U2 is electrically connected to CO I L_B is electrically connected; pin 23 of the main control chip U2 is connected to the ground; pin 24 of the main control chip U2 is electrically connected to capacitor C22 and V_MCU, and the other end of capacitor C22 is connected to the ground; pin 29 of the main control chip U2 is electrically connected to the negative electrode of the light-emitting diode LED_R; pin 30 of the main control chip U2 is electrically connected to UART1_RX; pin 31 of the main control chip U2 is electrically connected to UART1_RX; pin 35 of the main control chip U2 is connected to the ground; pin 36 of the main control chip U2 is electrically connected to capacitor C11 and V_MCU respectively, and capacitor The other end of C11 is connected to the ground; the resistor R6 is electrically connected to the pin 9 of the main control chip U2, and the other end thereof is electrically connected to V_MCU; the pin 44 of the main control chip U2 is electrically connected to the resistor R18, and the other end of the resistor R18 is connected to the ground; the pin 46 of the main control chip U2 is electrically connected to BEEP; the pin 47 of the main control chip U2 is connected to the ground; the pin 48 of the main control chip U2 is electrically connected to the capacitor C3 and V_MCU, and the other end of the capacitor C43 is connected to the ground; the resistor R6 is electrically connected to the pin 9 of the main control chip U2, and the other end thereof is electrically connected to V_MCU,
[0032] Among them, the diode D3 is used to switch the power supply mode of the internal RTC. When the power is on normally, VCC is used to power the internal RTC; when the power is off or VCC cannot work normally, the buck chip U5 is used to power the internal RTC.
[0033] After further optimization, the step-down chips U3 and U5 can be AMS1117-3.3, SPX3819, HT7533, LM1117S-3.3, SPX1117M3, LD1117-3.3, TPS70933DBVR, BL1117, ME6209A33M3G and other models.
[0034] After further optimization, the main control chip can be STM32F103C8T6, STM32F030C8T6, GD32F103C8T6, GD32F303C8T6, APM32F103C8T6, APM32E103C8T6, AT32F415C8T6, HK32F103C8T6, CKSF103C8T6 and other models.
[0035] The utility model provides a combustible gas leakage detection and alarm shutdown circuit, which has a compact design structure, can effectively meet the design requirements, has a wide range of adaptability, reduces the use cost, is highly efficient, and is safe and reliable. Power-off information is obtained in a timely manner by detecting the voltage of the main power supply, and the MCU uses an independent power supply to improve the MCU's stable operation and data storage capabilities after the main power supply is powered off, thereby improving the long-term stability of the product. The system operation status data uses the MCU's internal Flash memory and internal real-time clock, and does not require the use of external memory and real-time clock chips, thereby reducing hardware costs.
[0036] In summary, the present application has the following advantages over the prior art:
[0037] 1. The main power supply is detected by voltage division. The input voltage is read by ADC, which enables the MCU to detect the voltage drop state at the moment when the main power of the system is powered off.
[0038] 2. The microcontroller is powered separately to make it more stable during operation; and after the main power is cut off, the capacitor discharge can keep the MCU running for a short time to save relevant data and power-off information.
[0039] 3. The system operation status data uses the MCU's internal Flash memory and internal real-time clock to reduce hardware costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a module block diagram of this embodiment.
[0041] Figure 2Schematic diagram of the main control chip U2 in this embodiment.
[0042] Figure 3a , 3b 3c is a connection schematic diagram of the buck chips U1, U3, and U5 in this embodiment.
[0043] Figure 4 Schematic diagram of the connection principle of the driver chip U6 in this embodiment.
[0044] Figure 5 Schematic diagram of the connection principle of the gas sensor U7 in this embodiment.
[0045] Figure 6 This is the connection principle diagram of the download port H2 in this embodiment.
[0046] Figure 7 This is a schematic diagram of the connection principle of the reading port H3 in this embodiment.
[0047] Figure 8 Schematic diagram of the connection principle of the light emitting diode in this embodiment.
[0048] Fig. 9 Schematic diagram of the connection principle of the crystal oscillator in this embodiment.
[0049] Fig.10 Schematic diagram of the connection principle of BEEP in this embodiment.
[0050] Fig.11 Schematic diagram of the connection of UART1_RX in this embodiment.
[0051] Fig.12 This is the connection schematic diagram of UART2_TX in this embodiment.
[0052] Fig.13 FIG. 1 is a connection schematic diagram of the test port H1 in this embodiment.
[0053] Fig.14 Schematic diagram of the connection principle of KEY-MUTE in this embodiment.
[0054] Fig.15 Schematic diagram of the connection principle of NRST in this embodiment.
[0055] Fig.16 FIG. 4 is a connection schematic diagram of BOOT0 in this embodiment.
[0056] Fig.17 FIG. 4 is a connection schematic diagram of the VIN ADC in this embodiment. DETAILED DESCRIPTION
[0057] Gas safety has increasingly become a focal issue of widespread social concern. According to the 2022 National Gas Accident Analysis Report of the China Urban Gas Association, there are about 225 million natural gas users in my country. A total of 802 domestic (excluding Hong Kong, Macao and Taiwan) gas accidents reported by the media were collected throughout the year, resulting in 66 deaths and 487 injuries, including 10 major accidents. The accidents occurred in 30 provinces and 249 cities across the country, showing the characteristics of frequent accidents, wide range and great impact.
[0058] Combustible gas detectors are an important means to improve gas safety prevention capabilities. In some developed countries, the penetration rate of household combustible gas detectors is over 85%. Taking Japan as an example, in addition to the mandatory installation of combustible gas detectors in public and crowded places, the penetration rate of non-mandatory installation places such as homes is also close to 100%, and the number of gas accidents each year is basically maintained at 75 to 120, of which fatal accidents are almost zero.
[0059] Some existing flammable gas leak detection and alarm shutdown implementation solutions use external memory to save historical data records. The power supply voltage detection method on the MCU side is often used for main power failure detection. When the MCU detects a gas leak through the gas sensor, it can output a DC pulse signal to close the connected solenoid valve.
[0060] The above scheme uses external memory and external real-time clock circuit to detect and alarm combustible gas leakage, which has high hardware cost. In addition, the power failure detection of the main power supply is not timely enough, and there is a problem that the main controller works too short after power failure, resulting in failure to save power failure records.
[0061] In response to the above technical problems, this application has made the following designs and ideas: In order to timely detect the power failure of the main power supply to ensure the stable operation of the main controller, it is envisaged to use internal storage and internal real-time clock circuits to detect and alarm combustible gas leaks, thereby achieving the purpose of timely detecting the power failure of the main power supply to ensure the stable operation of the main controller.
[0062] The following is combined with Figure 1 —17 further introduces the utility model in detail.
[0063] like Figure 1-17 As shown, a combustible gas leakage detection and alarm shutdown circuit includes: a power supply module, a voltage reduction module, a gas detection module, a motor drive module, an audible and visual alarm module, an external interface module, and a main control module; one port of the power supply module is electrically connected to the voltage reduction module, and the other port thereof is electrically connected to the drive module, one port of the voltage reduction module is electrically connected to the audible and visual alarm module, one port of the audible and visual alarm module is electrically connected to the main control module, one port of the main control module is electrically connected to the drive module, one port of the gas detection module is electrically connected to the main controller, and one port of the external interface module is electrically connected to the main control module.
[0064] The combustible gas leakage detection and alarm shutdown circuit provided in this embodiment is composed of an internal memory, including a power supply module, a voltage reduction module, a gas detection module, a motor drive module, an external port module and a main control module as well as the real-time clock circuit inside each. The power supply module is used to supply power to the entire internal storage and the internal real-time clock circuit, and the voltage reduction module is used to reduce the voltage of the power supply module to avoid excessive voltage and overload current that may cause the internal circuit or storage to burn out, so as to ensure the normal operation of the circuit. The main control module is connected to the sound and light alarm and the gas detection module, so that when the gas leaks, the main control module controls the sound and light alarm to respond in real time and issue a gas leak warning.
[0065] The power supply module includes: an external DC 12V power adapter, a power supply terminal DC1, a diode D1, a diode D2, a capacitor C2, a resistor R4, and a resistor R5; the port of the external DC 12V power adapter is connected to a DC 12V power supply, pin 4 of the power supply terminal is electrically connected to an input voltage port, a diode D1, and a positive electrode of a diode D2, the other port of the diode D2 is connected to the ground, and is used to shunt and clamp surge pulse voltage when power is on, the negative electrode of the diode D1 is electrically connected to the DC 12V power supply and the positive electrode of the capacitor C2, and is used to ensure that current only flows in a forward direction and only a forward voltage is applied when power is on, the negative electrode of the capacitor C2 is connected to the ground, the resistor R4 is electrically connected to the positive electrode of the DC 12V power supply, and the other port thereof is electrically connected to a main control module and a resistor R5, and is used to enable the voltage value on the voltage divider resistor to be read by the main control chip at the moment of system power failure, thereby obtaining the power-off state at the moment of power failure.
[0066] The step-down module includes: step-down chip U1, step-down chip U3, step-down chip U5, inductor L1, resistor R1, resistor R12, resistor R13, capacitor C1, capacitor C4, capacitor C5, capacitor C6, capacitor C7, capacitor C8, capacitor C10, capacitor C12, capacitor C13, capacitor C16, capacitor C17, capacitor C18, diode D4, 3v3, and V_MCU. Pin 1 of the buck chip U1 is electrically connected to the capacitor C1, and is used to provide drive for the high-side MOS tube inside the buck chip U1. The other end of the capacitor C1 is electrically connected to pin 6 of the buck chip U1 and the inductor L1. The other end of the inductor L1 is electrically connected to the positive electrode of the 5V DC power supply. Pin 2 of the buck chip U1 is connected to the ground. Pin 3 of the buck chip U1 is electrically connected to the resistor R2, the resistor R3 and the capacitor C7. The other end of the resistor R2 is connected to the ground. The other end of the resistor R3 and the other end of the capacitor C7 are electrically connected to the positive electrode of the 5V DC power supply to reduce the output voltage ripple. Pin 4 of the buck chip U1 is electrically connected to the resistor R1. Pin 5 is electrically connected to the other end of the resistor R1, the capacitor C4, the capacitor C5 and the positive electrode of the 12V DC power supply. The other end of the capacitor C4 and the other end of the capacitor C5 are connected to the ground. The capacitor C6 is electrically connected to the positive electrode of the 5V DC power supply, and the other end of the capacitor C6 is connected to the ground to reduce the surge current of the 12V input.
[0067] Pin 1 of the step-down chip U3 is electrically connected to +12V; pin 2 of the step-down chip U3 and the other end of capacitor C8 and capacitor C10 are connected to ground; pin 3 of the step-down chip U3 is electrically connected to pin 1 of the step-down chip U3; pin 5 of the step-down chip U3 is electrically connected to capacitor C12, capacitor C13 and 3V3, and the other ends of capacitor C12 and capacitor C13 are connected to ground.
[0068] Pin 1 of the step-down chip U5 is electrically connected to the positive electrodes of capacitor C17 and capacitor C16 and the negative electrode of diode D4, and the positive electrode of diode D4 is electrically connected to VI N; pin 2 of the step-down chip U5 is electrically connected to the other end of capacitor C17, the negative electrode of capacitor C16 and ground; pin 3 of the step-down chip U5 is electrically connected to pin 1 of the step-down chip U5; pin 5 of the step-down chip U5 is electrically connected to capacitor C18 and V_MCU, and the other end of capacitor C18 is connected to ground.
[0069] Among them, capacitors C8, C10 and C17 are used to reduce the ripple of the input voltage, capacitors C12, C13 and C18 are used to reduce the ripple of the output voltage, and capacitor C16 is used to release the stored charge at the moment of power failure to provide a short operating time for the main control chip U2.
[0070] The gas detection module includes: a gas sensor U7, a resistor R7, a resistor R9, a resistor R10, a capacitor C23, a capacitor C24, and a capacitor C25; a pin 1 of the gas sensor U7 is electrically connected to the resistor R7 and the resistor R9, the other end of the resistor R7 is electrically connected to the resistor R10 and the capacitor C25, the other ends of the resistor R10 and the capacitor C25 are connected to the ground, and the other end of the resistor R9 is connected to the ground; a pin 2 of the gas sensor U7 is connected to the ground; a pin 3 of the gas sensor U7 is electrically connected to a pin 1 of the gas sensor U7; a pin 4, a pin 5, and a pin 6 of the gas sensor U7 are electrically connected to the positive electrode of a 5V DC power supply; a capacitor C23 and a capacitor C24 are electrically connected to the positive electrode of a 5V DC power supply, and the other ends of the capacitor C23 and the capacitor C24 are connected to the ground;
[0071] Among them, capacitor C23 and capacitor C24 are used to reduce the influence of noise on the sensor, and resistors R7 and R10 are voltage divider resistors used for the main control module to read the correct voltage value.
[0072] Motor drive module: drive chip U6, capacitor 19, capacitor C20, capacitor C21, CO I L_A, CO I L_B, pin 1 of drive chip U1 is electrically connected to 12V, the positive electrode of capacitor C20, and capacitor C21, the negative electrode of capacitor C20 and the other end of capacitor C21 are connected to ground; pin 2 of drive chip U1 is electrically connected to output terminal A; pin 3 of drive chip U1 is electrically connected to output terminal B; pin 5 of drive chip U1 is electrically connected to CO I L_A; pin 6 of drive chip U1 is electrically connected to CO I L_B is electrically connected; pin 7 of the driver chip U1 is electrically connected to 3V3; pin 8 of the driver chip U1 is electrically connected to capacitor C19 and 3V3, and the other end of capacitor C19 is connected to ground; wherein capacitor C20 is a ground decoupling capacitor of pin 1 of the driver chip U1, which is used to protect the circuit from being damaged by the peak voltage generated by the motor when driving the motor, capacitor C21 is a bypass capacitor, which is used to filter out high-frequency clutter, and capacitor C19 is a capacitor, which filters the power supply to reduce the impact of noise on the chip.
[0073] The sound and light alarm module includes a buzzer BUZZER1, a light-emitting diode LED_G, a light-emitting diode LED_R, a light-emitting diode LED_Y, a diode D5, a resistor R12, a resistor R14, a resistor R15, a transistor Q1, and BEEP. The positive electrode of the buzzer BUZZER1 is electrically connected to the negative electrode of the diode D5 and the resistor R11, and the other end of the resistor R11 is electrically connected to the positive electrode of the 5V DC power supply; the negative electrode of the buzzer BUZZER1, the positive electrode of the diode D5 and the collector of the transistor Q1 are electrically connected, the emitter of the transistor Q1 is connected to the ground, the base of the transistor Q1 is electrically connected to BEEP, the positive electrode of the light-emitting diode LED_G is electrically connected to the resistor R12, and its negative electrode is electrically connected to the main control module, and the other end of the resistor R12 is electrically connected to the positive electrode of the 5V DC power supply. 3V3 is electrically connected; the positive electrode of the light-emitting diode LED_R is electrically connected to the resistor R14, the negative electrode thereof is electrically connected to the main control module, and the other end of the resistor R14 is electrically connected to 3V3; the positive electrode of the light-emitting diode LED_Y is electrically connected to the resistor R15, the negative electrode thereof is electrically connected to the main control module, and the other end of the resistor R15 is electrically connected to 3V3; wherein, the diode D5 is a freewheeling diode, which is used to protect the buzzer from being broken down or burned by the induced voltage, and the transistor Q1 acts as a switch, and the high level of its base makes the transistor Q1 saturated and turned on, so that the buzzer BUZZER1 sounds; and the low level of the base turns off the transistor Q1, and the buzzer BUZZER1 stops sounding. The resistors R12, R14 and R15 are used to reduce the current flowing through the LED to prevent damage to the LED.
[0074] The external interface module includes: a debugging interface H2, a reading interface H3, a resistor R16, a resistor 17, a transistor Q3, a transistor Q2, and a diode D6. Pin 1 of the debugging interface H2 is electrically connected to +5V, pin 2 of the debugging interface H2 is electrically connected to the main control module, pin 3 of the debugging interface H2 is connected to the ground, pin 4 of the debugging interface H2 is electrically connected to the main control module, pin 5 of the debugging interface H2 is electrically connected to the resistor R17 and the collector of the transistor Q3, the emitter of the transistor Q3, and the base of the transistor Q3, pin 6 of the debugging interface H2 is electrically connected to the main control module, the transistor Q2, and pin 8 of the debugging interface H2 is electrically connected to the main control module.
[0075] Pin 1 of the read interface H3 is connected to the ground; pin 2 of the read interface H3 is electrically connected to the cathode of the diode D6, and the anode of the diode D6 is electrically connected to 3V3; pin 3 of the read interface H3 is electrically connected to the resistor R16 and the collector of the transistor Q2; pin 4 of the read interface H3 is electrically connected to the base of the transistor Q3.
[0076] The main control module includes: main control chip U2, diode D3, battery U4, crystal oscillator X1, crystal oscillator X2, capacitor C9, capacitor C11, capacitor C15, capacitor 26, capacitor C27, capacitor C28, capacitor C29, capacitor C30, capacitor C43, resistor R6, resistor R13, resistor R18, UART1_RX, UART2_TX, pin 1 of the main control chip U2 is electrically connected to the cathode of capacitor C9 and diode D3, and the anode of diode D3 is respectively The pin 3 of the main control chip U2 is electrically connected to the crystal oscillator X1 and one end of the capacitor C26, and the other end of the capacitor C26 is connected to the ground; the pin 4 of the main control chip U2 is electrically connected to the crystal oscillator X1 and one end of the capacitor C27, and the other end of the capacitor C27 is connected to the ground; the pin 5 of the main control chip U2 is electrically connected to the crystal oscillator X2 and one end of the capacitor C29, and the other end of the capacitor C29 is connected to the ground; the pin 6 of the main control chip U2 is electrically connected to the crystal oscillator X2 and the capacitor C 30 is electrically connected, and the other end of capacitor C30 is connected to ground; pin 7 of the main control chip U2 is electrically connected to resistor R13, capacitor C28, and button SW1 respectively, the other end of resistor R13 is electrically connected to V_MCU, and the other end of button SW1 and capacitor C28 are connected to ground; pin 8 of the main control chip U2 is connected to ground; pin 9 of the main control chip U2 is electrically connected to capacitor C15, and the other end of capacitor C15 is connected to ground; pin 11 of the main control chip U2 is electrically connected to MQ_ADC; pin 12 of the main control chip U2 is electrically connected to UART2_TX; pin 13 of the main control chip U2 is electrically connected to UART2_RX; pin 14 of the main control chip U2 is electrically connected to the negative electrode of the light-emitting diode LED_G; pin 16 of the main control chip U2 is electrically connected to the negative electrode of the light-emitting diode LED_Y; pin 17 of the main control chip U2 is electrically connected to button SW2, and the other end of button SW2 is connected to ground; pin 21 of the main control chip U2 is electrically connected to CO I L_A is electrically connected; pin 22 of the main control chip U2 is connected to CO I L_B is electrically connected; Pin 23 of the main control chip U2 is connected to the ground; Pin 24 of the main control chip U2 is electrically connected to capacitors C22 and V_MCU, and the other end of capacitor C22 is connected to the ground; Pin 29 of the main control chip U2 is electrically connected to the negative electrode of the light-emitting diode LED_R; Pin 30 of the main control chip U2 is electrically connected to UART1_RX; Pin 31 of the main control chip U2 is electrically connected to UART1_RX; Pin 35 of the main control chip U2 is connected to the ground; Pin 36 of the main control chip U2 is electrically connected to capacitors C11 and V_MCU respectively, and the other end of capacitor C11 is connected to the ground; Resistor R6 is electrically connected to Pin 9 of the main control chip U2, and the other end thereof is electrically connected to V_MCU; Pin 44 of the main control chip U2 is electrically connected to resistor R18, and the other end of resistor R18 is connected to the ground; Pin 46 of the main control chip U2 is electrically connected to BEEP; Pin 47 of the main control chip U2 is connected to the ground;Pin 48 of the main control chip U2 is electrically connected to capacitor C3 and V_MCU, and the other end of capacitor C43 is connected to the ground; resistor R6 is electrically connected to pin 9 of the main control chip U2, and the other end thereof is electrically connected to V_MCU. ;
[0077] Among them, the diode D3 is used to switch the power supply mode of the internal RTC. When the power is on normally, VCC is used to power the internal RTC; when the power is off or VCC cannot work normally, the buck chip U5 is used to power the internal RTC.
[0078] This design adopts a DC 12V power supply. The power supply chip U1 generates a 5V power supply voltage for the gas sensor U7. The main control chip U2 is powered independently by the step-down chip U5. The main control chip U2 detects the power supply voltage of the main power supply through the voltage divider circuit composed of resistors R4 and R5. When U2 detects that the system main power supply voltage drops, that is, the system loses power, capacitors C16, C17, C18 and the step-down chip U5 maintain power supply for more than 40 milliseconds for the main control chip U2 to ensure that U2 saves relevant power-off data.
[0079] The main control chip U2 detects the output voltage of the gas sensor U7 through its internal ADC, and determines the concentration of combustible gas in the air through voltage detection. When it detects that the concentration of combustible gas is too high, U2 controls the motor driver chip U6 to drive the connected 12V DC pulse electromagnetic shut-off valve and other shut-off devices to close the combustible gas pipeline valve to avoid leakage of combustible gas. At the same time, U2 can control the sound and light alarm device to send out sound and light alarms to remind on-site personnel to pay attention to gas leakage and reduce the risk of gas accidents.
[0080] The main control chip U2 uses a button battery U4 to ensure that its internal RTC real-time clock circuit can continue to work normally after the main power is cut off. At the same time, its internal Flash memory is used to save system operation related data, such as time recording data of power-on, power-off, alarm, alarm recovery, fault, fault recovery and other states.
[0081] In order to facilitate the staff to choose a variety of buck chips, various types of buck chips are matched to achieve the most economical cost. The buck chips U3 and U5 can be AMS1117-3.3, SPX3819, HT7533, LM1117S-3.3, SPX1117M3, LD1117-3.3, TPS70933DBVR, BL1117, ME6209A33M3G and other models.
[0082] To facilitate the staff to choose the main control chip, various types of step-down chips are matched to achieve the most economical cost. The main control chip can be STM32F103C8T6, STM32F030C8T6, GD32F103C8T6, GD32F303C8T6, APM32F103C8T6, APM32E103C8T6, AT32F415C8T6, HK32F103C8T6, CKSF103C8T6 and other models.
[0083] This specific embodiment is merely an explanation of the utility model, and it is not a limitation of the utility model. After reading this specification, those skilled in the art can make non-creative modifications to the embodiment as needed, but as long as it is within the protection scope of the utility model, it is protected by the patent law.
Claims
1. A combustible gas leak detection and alarm shutdown circuit, characterized in that: include: Power supply module, step-down module, gas detection module, motor drive module, sound and light alarm module, external interface module, main control module; One port of the power supply module is electrically connected to the step-down module, and another port thereof is electrically connected to the driving module. One port of the step-down module is electrically connected to the sound and light alarm module, and one port of the sound and light alarm module is electrically connected to the main control module. One port of the main control module is electrically connected to the driving module, and is used to drive the main control module to realize real-time control of the sound and light alarm module and the gas detection module. One port of the gas detection module is electrically connected to the main control module, and one port of the external interface module is electrically connected to the main control module.
2. The combustible gas leak detection and alarm shutoff circuit according to claim 1, characterized in that: The power supply module includes: an external DC 12V power adapter, a power supply terminal DC1, a diode D1, a diode D2, a capacitor C2, a resistor R4, and a resistor R5; The port of the external DC 12V power adapter is connected to a DC 12V power supply, the pin 4 of the power supply terminal is electrically connected to the input voltage port, the diode D1, and the positive electrode of the diode D2, the other port of the diode D2 is connected to the ground, and is used to shunt and clamp the surge pulse voltage when powered on, the negative electrode of the diode D1 is electrically connected to the DC 12V power supply and the positive electrode of the capacitor C2, and is used to ensure that the current only flows in the forward direction and only applies the forward voltage when powered on, the negative electrode of the capacitor C2 is connected to the ground, the resistor R4 is electrically connected to the positive electrode of the DC 12V power supply, and its other port is electrically connected to the main control module and the resistor R5, and is used to enable the voltage value on the voltage divider resistor to be read by the main control chip at the moment of system power failure, thereby obtaining the power-off state at the moment of power failure.
3. The combustible gas leakage detection and alarm shutdown circuit according to claim 1, characterized in that: The step-down module includes: step-down chip U1, step-down chip U3, step-down chip U5, inductor L1, resistor R1, resistor R12, resistor R13, capacitor C1, capacitor C4, capacitor C5, capacitor C6, capacitor C7, capacitor C8, capacitor C10, capacitor C12, capacitor C13, capacitor C16, capacitor C17, capacitor C18, diode D4, 3v3, V_MCU, Pin 1 of the buck chip U1 is electrically connected to the capacitor C1, and is used to provide drive for the high-side MOS tube inside the buck chip U1. The other end of the capacitor C1 is electrically connected to pin 6 of the buck chip U1 and the inductor L1. The other end of the inductor L1 is electrically connected to the positive electrode of the 5V DC power supply. Pin 2 of the buck chip U1 is connected to the ground. Pin 3 of the buck chip U1 is electrically connected to the resistor R2, the resistor R3 and the capacitor C7. The other end of the resistor R2 is connected to the ground. The other end of the resistor R3 is electrically connected to the positive electrode of the 5V DC power supply. One end and the other end of the capacitor C7 are electrically connected to the positive electrode of the 5V DC power supply to reduce the output voltage ripple, the pin 4 of the buck chip U1 is electrically connected to the resistor R1, the pin 5 is electrically connected to the other end of the resistor R1, the capacitor C4, the capacitor C5 and the positive electrode of the 12V DC power supply, the other end of the capacitor C4 and the other end of the capacitor C5 are connected to the ground; the capacitor C6 is electrically connected to the positive electrode of the 5V DC power supply, and the other end of the capacitor C6 is connected to the ground to reduce the surge current of the 12V input; Pin 1 of the buck chip U3 is electrically connected to +12V; Pin 2 of the buck chip U3 and the other end of the capacitor C8 and the capacitor C10 are connected to ground; Pin 3 of the buck chip U3 is electrically connected to Pin 1 of the buck chip U3; Pin 5 of the buck chip U3 is electrically connected to the capacitor C12, the capacitor C13 and 3V3, and the other ends of the capacitors C12 and C13 are connected to ground. Pin 1 of the buck chip U5 is electrically connected to the capacitor C17, the positive electrode of the capacitor C16 and the negative electrode of the diode D4, and the positive electrode of the diode D4 is electrically connected to VI N; Pin 2 of the buck chip U5 is electrically connected to the other end of the capacitor C17, the negative electrode of the capacitor C16 and the ground; Pin 3 of the buck chip U5 is electrically connected to Pin 1 of the buck chip U5; Pin 5 of the buck chip U5 is electrically connected to the capacitor C18 and the V_MCU, and the other end of the capacitor C18 is connected to the ground, Among them, the capacitors C8, C10 and C17 are used to reduce the ripple of the input voltage, the capacitors C12, C13 and C18 are used to reduce the ripple of the output voltage, and the capacitor C16 is used to release the stored charge at the moment of power failure to provide a short operating time for the main control chip U2.
4. The combustible gas leak detection and alarm shutoff circuit according to claim 1, characterized in that: The gas detection module includes: a gas sensor U7, a resistor R7, a resistor R9, a resistor R10, a capacitor C23, a capacitor C24, and a capacitor C25; Pin 1 of the gas sensor U7 is electrically connected to the resistor R7 and the resistor R9, the other end of the resistor R7 is electrically connected to the resistor R10 and the capacitor C25, the other ends of the resistor R10 and the capacitor C25 are connected to the ground, and the other end of the resistor R9 is connected to the ground; Pin 2 of the gas sensor U7 is connected to the ground; Pin 3 of the gas sensor U7 is electrically connected to Pin 1 of the gas sensor U7; Pin 4, Pin 5 and Pin 6 of the gas sensor U7 are electrically connected to the positive electrode of the 5V DC power supply; The capacitor C23 and the capacitor C24 are electrically connected to the positive electrode of the 5V DC power supply, and the other ends of the capacitor C23 and the capacitor C24 are connected to the ground; The capacitor C23 and the capacitor C24 are used to reduce the influence of noise on the sensor, and the resistor R7 and the resistor R10 are voltage-dividing resistors used for the main control module to read the correct voltage value.
5. The combustible gas leak detection and alarm shutoff circuit according to claim 3, characterized in that: The motor drive module includes: a drive chip U6, a capacitor 19, a capacitor C20, a capacitor C21, COIL_A, COIL_B, Pin 1 of the driver chip U1 is electrically connected to 12V, the positive electrode of the capacitor C20, and the capacitor C21, and the negative electrode of the capacitor C20 and the other end of the capacitor C21 are connected to the ground; Pin 2 of the driver chip U1 is electrically connected to the output terminal A; Pin 3 of the driver chip U1 is electrically connected to the output terminal B; Pin 5 of the driver chip U1 is electrically connected to the COIL_A; Pin 6 of the driver chip U1 is electrically connected to the COIL_B; Pin 7 of the driver chip U1 is electrically connected to 3V3; Pin 8 of the driver chip U1 is electrically connected to the capacitor C19 and 3V3, and the other end of the capacitor C19 is connected to the ground; Among them, the capacitor C20 is the ground decoupling capacitor of pin 1 of the driving chip U1, which is used to protect the circuit from being damaged by the peak voltage generated by the motor when driving the motor. The capacitor C21 is a bypass capacitor for filtering high-frequency clutter. The capacitor C19 is a capacitor for filtering the power supply to reduce the impact of noise on the chip.
6. The combustible gas leak detection and alarm shutoff circuit according to claim 5, characterized in that: The sound and light alarm module includes: a buzzer BUZZER1, a light emitting diode LED_G, a light emitting diode LED_R, a light emitting diode LED_Y, a diode D5, a resistor R12, a resistor R14, a resistor R15, a transistor Q1, BEEP, The positive electrode of the buzzer BUZZER1 is electrically connected to the negative electrode of the diode D5 and the resistor R11, and the other end of the resistor R11 is electrically connected to the positive electrode of the 5V DC power supply; the negative electrode of the buzzer BUZZER1 is electrically connected to the positive electrode of the diode D5 and the collector of the transistor Q1, the emitter of the transistor Q1 is connected to the ground, the base of the transistor Q1 is electrically connected to the BEEP, the positive electrode of the light-emitting diode LED_G is electrically connected to the resistor R12, its negative electrode is electrically connected to the main control module, and the other end of the resistor R12 is electrically connected to 3V3; the positive electrode of the light-emitting diode LED_R is electrically connected to the resistor R14, its negative electrode is electrically connected to the main control module, and the other end of the resistor R14 is electrically connected to 3V3; the positive electrode of the light-emitting diode LED_Y is electrically connected to the resistor R15, its negative electrode is electrically connected to the main control module, and the other end of the resistor R15 is electrically connected to 3V3; The diode D5 is a freewheeling diode used to protect the buzzer from breakdown or burnout by the induced voltage. The transistor Q1 acts as a switch. The high level of its base makes the transistor Q1 saturated and turned on, so that the buzzer BUZZER1 sounds; and the low level of the base turns off the transistor Q1, and the buzzer BUZZER1 stops sounding. The resistors R12, R14 and R15 are used to reduce the current flowing through the LED to prevent damage to the LED.
7. The combustible gas leak detection and alarm shutoff circuit according to claim 1, characterized in that: The external interface module includes: a debugging interface H2, a reading interface H3, a resistor R16, a resistor 17, a transistor Q3, a transistor Q2, and a diode D6. Pin 1 of the debugging interface H2 is electrically connected to +5V, pin 2 of the debugging interface H2 is electrically connected to the main control module, pin 3 of the debugging interface H2 is electrically connected to ground, pin 4 of the debugging interface H2 is electrically connected to the main control module, pin 5 of the debugging interface H2 is electrically connected to resistor R17 and the collector of transistor Q3, emitter of transistor Q3, and base of transistor Q3, pin 6 of the debugging interface H2 is electrically connected to the main control module, transistor Q2, and pin 8 of the debugging interface H2 is electrically connected to the main control module, Pin 1 of the read interface H3 is connected to the ground; Pin 2 of the read interface H3 is electrically connected to the cathode of the diode D6, and the anode of the diode D6 is electrically connected to 3V3; Pin 3 of the read interface H3 is electrically connected to the resistor R16 and the collector of the transistor Q2; Pin 4 of the read interface H3 is electrically connected to the base of the transistor Q3.
8. The combustible gas leak detection and alarm shutoff circuit according to claim 6, characterized in that: The main control module includes: a main control chip U2, a diode D3, a battery U4, a crystal oscillator X1, a crystal oscillator X2, a capacitor C9, a capacitor C11, a capacitor C15, a capacitor 26, a capacitor C27, a capacitor C28, a capacitor C29, a capacitor C30, a capacitor C43, a resistor R6, a resistor R13, a resistor R18, UART1_RX, and UART2_TX; Pin 1 of the main control chip U2 is electrically connected to the capacitor C9 and the negative electrode of the diode D3, and the positive electrode of the diode D3 is electrically connected to the positive electrode of the 3V3 and the battery U4 respectively; Pin 3 of the main control chip U2 is electrically connected to the crystal oscillator X1 and one end of the capacitor C26, and the other end of the capacitor C26 is connected to the ground; Pin 4 of the main control chip U2 is electrically connected to the crystal oscillator X1 and one end of the capacitor C27, and the other end of the capacitor C27 is connected to the ground; Pin 5 of the main control chip U2 is electrically connected to the crystal oscillator X2 and one end of the capacitor C29, and the other end of the capacitor C29 is connected to the ground; Pin 6 of the main control chip U2 is electrically connected to the crystal oscillator X2 and one end of the capacitor C30, and the other end of the capacitor C30 is connected to the ground; Pin 7 of the main control chip U2 is electrically connected to the resistor R13, the capacitor C28, and the button SW1, respectively. The other end of the resistor R13 is electrically connected to V_MCU, and the other ends of the button SW1 and the capacitor C28 are connected to the ground; the pin 8 of the main control chip U2 is connected to the ground; the pin 9 of the main control chip U2 is electrically connected to the capacitor C15, and the other end of the capacitor C15 is connected to the ground; the pin 11 of the main control chip U2 is electrically connected to MQ_ADC; the pin 12 of the main control chip U2 is electrically connected to the UART2_TX; the pin 13 of the main control chip U2 is electrically connected to the UART2_RX; the pin 14 of the main control chip U2 is electrically connected to the cathode of the light emitting diode LED_G; the pin 16 of the main control chip U2 is electrically connected to the cathode of the light emitting diode LED_Y; the pin 17 of the main control chip U2 is electrically connected to the button SW2, and the other end of the button SW2 is connected to the ground; the pin 21 of the main control chip U2 is electrically connected to the COI L_A; the pin 22 of the main control chip U2 is electrically connected to the CO I L_B is electrically connected; Pin 23 of the main control chip U2 is connected to the ground; Pin 24 of the main control chip U2 is electrically connected to the capacitor C22 and the V_MCU, and the other end of the capacitor C22 is connected to the ground; Pin 29 of the main control chip U2 is electrically connected to the negative electrode of the light-emitting diode LED_R; Pin 30 of the main control chip U2 is electrically connected to UART1_RX; Pin 31 of the main control chip U2 is electrically connected to UART1_RX; Pin 35 of the main control chip U2 is electrically connected to ground; the pin 36 of the main control chip U2 is electrically connected to the capacitor C11 and the V_MCU respectively, and the other end of the capacitor C11 is connected to the ground; the resistor R6 is electrically connected to the pin 9 of the main control chip U2, and the other end thereof is electrically connected to the V_MCU; the pin 44 of the main control chip U2 is electrically connected to the resistor R18, and the other end of the resistor R18 is connected to the ground; the pin 46 of the main control chip U2 is electrically connected to the BEEP; the pin 47 of the main control chip U2 is connected to the ground;Pin 48 of the main control chip U2 is electrically connected to the capacitor C3 and the V_MCU, and the other end of the capacitor C43 is connected to the ground; the resistor R6 is electrically connected to pin 9 of the main control chip U2, and the other end thereof is electrically connected to the V_MCU, wherein the diode D3 is used to switch the power supply mode of the internal RTC, when the power is normally on, the VCC is used to power the internal RTC; when the power is off or the VCC cannot work normally, the buck chip U5 is used to power the internal RTC. ; 9. The combustible gas leak detection and alarm shutoff circuit according to claim 3, characterized in that: The step-down chips U3 and U5 are one of AMS1117-3.3, SPX3819, HT7533, LM1117S-3.3, SPX1117M3, LD1117-3.3, TPS70933DBVR, BL1117, and ME6209A33M3G.
10. The combustible gas leak detection and alarm shutoff circuit according to claim 2, characterized in that: The main control chip model is one of STM32F103C8T6, STM32F030C8T6, GD32F103C8T6, GD32F303C8T6, APM32F103C8T6, APM32E103C8T6, AT32F415C8T6, HK32F103C8T6, and CKSF103C8T6.
