A microcontroller-based input reading circuit, a respiration detection system, and an electronic cigarette.

By introducing a respiratory detection module and a hardware timing sampling module into the microcontroller, and utilizing the hardware clock and sampling mechanism of the communication protocol interface, the problem of low efficiency in single-bus protocol decoding of the microcontroller is solved, and efficient data transmission is achieved.

CN224948450UActive Publication Date: 2026-11-10SHENZHEN LONGTECH SMART CONTROL CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202522401127.0
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2025-11-12
Publication Date
2026-11-10
Estimated Expiration
2035-11-12

AI Technical Summary

Technical Problem

In existing technologies, when a microcontroller performs single-bus protocol decoding, it needs to continuously monitor the I/O interface level time, which leads to a decrease in working efficiency at high communication speeds and may cause it to miss the interrupt time window, affecting the accuracy of data transmission.

Method used

By employing a respiratory detection module and a hardware timing sampling module, the respiratory transmission signal is directly read through the communication protocol interface. By utilizing a hardware clock and sampling mechanism, the detection of I/O port level time by software timers is avoided, thereby improving the working efficiency of the microcontroller.

Benefits of technology

This technology enables the detection of I/O port level timings without the need for software timers at high communication speeds, improving the microcontroller's operating efficiency and data transmission accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN224948450U_ABST
    Figure CN224948450U_ABST
Patent Text Reader

Abstract

This invention provides a microcontroller-based input reading circuit, a respiratory detection system, and an electronic cigarette. The microcontroller-based input reading circuit includes a respiratory detection module and a hardware timing sampling module. The respiratory detection module is connected to the hardware timing sampling module via a communication protocol interface to detect respiratory data and output a respiratory transmission signal to the hardware timing sampling module based on the respiratory data. The hardware timing sampling module reads and stores the respiratory transmission signal. This invention connects to the respiratory detection module via a communication protocol interface, which has its own hardware clock, eliminating the need for a timer to cyclically scan and detect the high and low levels of the I / O serial port, thus eliminating the need for software timing and improving the microcontroller's working efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This utility model relates to the field of electronic cigarette breath detection, and in particular to a microcontroller-based input reading circuit, breath detection system, and electronic cigarette. Background Technology

[0002] In electronic cigarette driving circuits, microcontrollers are often involved in data signal transmission. Therefore, current single-bus protocol decoding uses a single-bus protocol interface for microcontroller connection and internal timer scanning and capturing to detect the high and low level times of the I / O interface for decoding.

[0003] However, due to the high communication speed of the serial bus, in order to achieve reading and decoding, the software needs to continuously detect and identify the duration of the level on the serial bus. If the microcontroller processes a high-priority interrupt at the same time, it may cause the detection time window to be missed, resulting in communication data transmission errors. Moreover, maintaining uninterrupted reading and identification will affect the overall product execution time.

[0004] Therefore, existing technologies still need to be improved and developed. Utility Model Content

[0005] In view of the shortcomings of the prior art, the purpose of this utility model is to provide a microcontroller-based input reading circuit, a breathing detection system, and an electronic cigarette, so as to solve the problem that the microcontroller data signal transmission in the prior art uses a single bus protocol interface for signal transmission, which leads to the need for timer input capture and a decrease in the working efficiency of the microcontroller.

[0006] The technical solution of this utility model is as follows: In a first aspect, this utility model provides an input reading circuit based on a microcontroller, which includes a respiratory detection module and a hardware timing sampling module; wherein, the respiratory detection module is connected to the communication protocol interface of the hardware timing sampling module, and is used to detect respiratory data and output a respiratory transmission signal to the hardware timing sampling module according to the respiratory data; the hardware timing sampling module is used to read and store the respiratory transmission signal.

[0007] In a further embodiment of this invention, the breathing detection module includes: a breathing detection unit, a first resistor, and a first capacitor. The signal output terminal of the breathing detection unit is connected to the communication protocol interface of the hardware timing sampling module. The interrupt trigger terminal of the breathing detection unit is connected to the interrupt input terminal of the hardware timing sampling module. The power supply terminal of the breathing detection unit is connected to one end of the first resistor, and the other end of the first resistor is connected to the power supply voltage. The ground terminal of the breathing detection unit is grounded. One end of the first capacitor is connected to the power supply terminal of the breathing detection unit, and the other end of the first capacitor is connected to the ground terminal of the breathing detection unit.

[0008] In a further embodiment of this invention, the hardware timing sampling module includes a microcontroller, which includes a communication protocol interface and a register. The microcontroller is connected to the respiratory detection module through the communication protocol interface, and the communication protocol interface is connected to the register, for collecting the respiratory transmission signal and outputting respiratory data to the register. The register is used to store the respiratory data.

[0009] In a further detail of this invention, the microcontroller is model SC8F6796AD828NPR.

[0010] In a further embodiment of this invention, the breathing detection unit is a silicon microphone chip, which is used to detect the magnitude and direction of airflow.

[0011] In a further detail of this invention, the silicon microphone chip is model CSC581.

[0012] In a further embodiment of this invention, the communication protocol interface is an SPI interface.

[0013] Secondly, this utility model also provides a respiratory detection system, which includes the microcontroller-based input reading circuit described above.

[0014] Thirdly, this utility model also provides an electronic cigarette, which includes a shell, an atomizer, and the aforementioned microcontroller-based input / reading circuit; wherein, The outer casing is provided with a mouthpiece and a vent hole, and the mouthpiece and the vent hole are connected by a breathing passage. The atomizer and the breathing detection module based on the microcontroller input reading circuit are arranged on the breathing passage. The breathing detection module is used to detect the gas flow rate and direction of breathing data in the breathing passage and generate a breathing transmission signal.

[0015] This invention provides a microcontroller-based input reading circuit, a respiratory detection system, and an electronic cigarette. The microcontroller-based input reading circuit includes a respiratory detection module and a hardware timing sampling module. The respiratory detection module is connected to the hardware timing sampling module via a communication protocol interface, used to detect respiratory data and output a respiratory transmission signal to the hardware timing sampling module based on the respiratory data. The hardware timing sampling module is used to read and store the respiratory transmission signal. This invention connects to the respiratory detection module through a communication protocol interface, which has its own hardware clock, eliminating the need for a timer to cyclically scan and detect the high and low levels of the I / O serial port, thus eliminating the need for software timing and improving the microcontroller's working efficiency. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of this utility model or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this utility model. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.

[0017] Figure 1 This is a structural block diagram of the microcontroller-based input reading circuit in this utility model.

[0018] Figure 2 This is a circuit diagram of the microcontroller-based input reading circuit in this utility model.

[0019] The labels in the attached diagram are: 100, hardware timing sampling module; 200, respiration detection module. Detailed Implementation

[0020] This utility model provides a microcontroller-based input reading circuit, a breathing detection system, and an electronic cigarette. To make the purpose, technical solution, and effects of this utility model clearer and more explicit, the following detailed description is provided with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of this utility model and are not intended to limit it.

[0021] In the implementation methods and claims, unless otherwise specified in the text, the terms "a," "an," "the," and "the" may also include plural forms. If the embodiments of this utility model involve descriptions of "first," "second," etc., such descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of those features.

[0022] It should be further understood that the term "comprising" as used in this specification means the presence of the stated features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should be understood that when we say an element is "connected" or "coupled" to another element, it can be directly connected or coupled to the other element, or there may be intermediate elements. Furthermore, "connected" or "coupled" as used herein can include wireless connections or wireless coupling. The term "and / or" as used herein includes all or any unit and all combinations of one or more associated listed items.

[0023] It will be understood by those skilled in the art that, unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. It should also be understood that terms such as those defined in general dictionaries should be understood to have the same meaning as in the context of the prior art, and should not be interpreted in an idealized or overly formal sense unless specifically defined as herein.

[0024] 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 cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the scope of protection claimed by this utility model.

[0025] The inventors discovered that existing single-bus serial communication for microcontrollers uses a basic communication scheme where the master unit is normally in sleep mode while the slave unit is active. When needed, the slave unit wakes up the master unit via the communication interface. After being awakened, the slave unit continuously sends data to the master unit, which receives and interprets the data before communicating with external circuits or other modules to execute relevant functions. Existing technology relies entirely on highly precise microsecond-level timing simulated by the master controller software. During communication, the MCU must exclusively monitor the bus throughout. Specifically, the master controller first sends a start signal and switches to input mode, starts an internal timer, and continuously cycles through I / O port level changes, determining whether each data bit is '0' or '1' by measuring the duration of high and low levels. This implementation method is extremely resource-intensive, and decoding requires the software to constantly detect and identify data on a high-speed single bus, impacting the overall product execution time and resulting in low system efficiency.

[0026] To solve the technical problems existing in the prior art, such as Figure 1As shown, in a first aspect, this utility model provides an input reading circuit for a microcontroller, which includes a respiratory detection module 200 and a hardware timing sampling module 100; wherein, the respiratory detection module 200 is connected to the communication protocol interface of the hardware timing sampling module 100, and is used to detect respiratory data and output a respiratory transmission signal to the hardware timing sampling module 100 according to the respiratory data; the hardware timing sampling module 100 is used to read and store the respiratory transmission signal. The respiratory transmission signal output by the respiratory detection module 200 conforms to the communication protocol adopted by the communication protocol interface. The microcontroller reads and decodes the respiratory transmission signal through the communication protocol interface. It should be noted that the decoding method of the respiratory transmission signal, the hardware structure of the microcontroller, and the internally stored computer program are existing technologies. The decoding method of the respiratory transmission signal can be predetermined by the communication protocol selected by the microcontroller. Specifically, the respiratory transmission signal is used as SPI data input by the microcontroller hardware supporting the communication protocol. The synchronous clock and sampling mechanism built into the communication protocol hardware are used to read the respiratory data transmitted via the single bus. The synchronous clock and sampling mechanism of the communication protocol can be set according to the adopted communication protocol, and the corresponding setting method is existing technology and will not be elaborated here. This invention uses the hardware structure of the communication protocol interface to read data from the single bus, thus directly reading the data without needing to set a timer in software to detect the high and low levels of the I / O port, resulting in higher overall system efficiency.

[0027] Please refer to the preferred embodiments of this utility model as well. Figure 1 and Figure 2 The breathing detection module 200 includes: a breathing detection unit S1, a first resistor R1, and a first capacitor C1. The signal output terminal of the breathing detection unit S1 is connected to the communication protocol interface of the hardware timing sampling module 100. The interrupt trigger terminal of the breathing detection unit S1 is connected to the interrupt input terminal of the hardware timing sampling module 100. The power supply terminal of the breathing detection unit S1 is connected to one end of the first resistor R1, and the other end of the first resistor R1 is connected to the power supply voltage VDD. The ground terminal GND of the breathing detection unit S1 is grounded. One end of the first capacitor C1 is connected to the power supply terminal of the breathing detection unit S1, and the other end of the first capacitor C1 is connected to the ground terminal GND of the breathing detection unit S1.

[0028] Specifically, the power supply terminal of the breathing detection unit S1 is connected to the power supply voltage VDD through a first resistor R1. The resistance value of the first resistor R1 is set according to the operating voltage of the breathing detection unit S1. The first capacitor C1 is a filter capacitor, used to filter out noise and AC components in the power supply voltage VDD, smooth pulsating DC current, and store electrical energy. When the breathing detection module 200 is working, it detects and obtains breathing data, which includes at least the airflow magnitude and direction, and transmits the breathing data in the form of a breathing transmission signal. When transmission begins, the interrupt trigger terminal of the breathing detection unit S1 outputs an interrupt signal to the microcontroller through the interrupt input terminal of the microcontroller. The breathing transmission signal output by the breathing detection unit S1 meets the communication protocol requirements in the communication protocol interface of the microcontroller. Specifically, the microcontroller can detect the high and low levels in the breathing transmission signal through the communication protocol interface, thereby parsing and identifying the breathing data.

[0029] In a preferred embodiment of this utility model, the hardware timing sampling module 100 includes a microcontroller U1. The microcontroller U1 includes a communication protocol interface and a register. The microcontroller U1 is connected to the breathing detection module 200 through the communication protocol interface, and the communication protocol interface is connected to the register. It is used to collect the breathing transmission signal and output breathing data to the register; the register is used to store the breathing data. In a further embodiment of this preferred embodiment, preferably, the microcontroller U1 is model SC8F6796AD828NPR, which has built-in SPI and I2C communication protocols. Alternatively, a microcontroller U1 model with other communication protocols and corresponding communication protocol interfaces can be selected. The microcontroller U1 can detect the high and low levels in the breathing transmission signal through the communication protocol interface, thereby parsing and identifying the breathing data. The microcontroller U1 stores the breathing data in the register for subsequent software calculations.

[0030] In a preferred embodiment of this utility model, the breathing detection unit S1 is a silicon microphone chip, which is used to detect the magnitude and direction of airflow. Preferably, the silicon microphone chip is model CSC581, which can detect gas flow rate and direction. Specifically, the silicon microphone chip CSC581 can be a chip from the CSC581X series, or it can be model CSC381X. The silicon microphone chips of the CSC581X and CSC381X series are MEMS (Micro-Electro-Mechanical System) airflow sensors, which sense changes in air pressure through MEMS, convert changes in capacitance into digital signals, and provide control signals through threshold settings. It has the advantages of small size, low power consumption, and prevention of liquid and oil leakage and backflush. It is suitable for devices that need to measure extremely low pressure differences or airflow, such as portable devices like electronic cigarettes. Specifically, the CSC581 internally sets a detection MEMS capacitor; when the MEMS capacitance value increases, forward detection is performed. The CSC381 detects the decrease in MEMS capacitance and performs reverse detection.

[0031] In a further embodiment of this invention, the communication protocol interface is an SPI interface. SPI is a high-speed, full-duplex, synchronous communication bus, which can meet the signal transmission speed requirements of this invention. It should be noted that in another preferred embodiment, other communication protocols can be selected, and thus other types of communication protocol interfaces can be used. For example, the communication protocol interface can be one of the following communication protocols: GPI / O (General Purpose Input Output), I2C (Inter-IC Bus), UART (Universal Asynchronous Receiver Transmitter), USART (Universal Synchronous Asynchronous Receiver Transmitter), USB (Universal Serial Bus), or CAN communication. These will not be elaborated further in this invention.

[0032] Furthermore, the communication protocol used for encoding and decoding in this invention is existing technology. The software algorithms required for the acquisition, reading, and decoding of the communication protocol, as well as the location of the communication protocol interface on the microcontroller U1, can be configured accordingly based on the selected communication protocol and the microcontroller U1 model. Please refer to [link / reference]. Figure 2 This preferred embodiment provides a partial preferred embodiment for reading respiratory data through a microcontroller's input reading circuit communication protocol interface.

[0033] In a preferred embodiment of this utility model, a microcontroller U1 is set as the master, and a respiratory detection unit S1 is set as the slave, transmitting respiratory transmission signals to the master. The respiratory detection unit S1 uses a CSC581 silicon microphone chip, and the microcontroller U1 is model SC8F6796AD828NPR. The sixth pin of the microcontroller U1 is a communication protocol interface, responsible for receiving respiratory data from the respiratory detection unit S1. Specifically, when propagating through the communication protocol line, the respiratory data output by the respiratory detection unit S1 is output in the form of a respiratory transmission signal. The encoding mode of the respiratory transmission signal can be set according to the selected respiratory detection unit S1 chip model. The first pin of the CSC581 silicon microphone chip is a signal output terminal, used to output the respiratory transmission signal; the second pin of the silicon microphone chip is an interrupt trigger terminal, and the twenty-second pin of the microcontroller U1 is a terminal input terminal. The second pin of the silicon microphone chip is connected to the twenty-second pin of the microcontroller U1. The pins of the microcontroller U1 use the peripheral SPI port. Pin 6 (SDI) of the microcontroller U1 supports the MISO input of the SPI communication protocol. Therefore, pin 6 of the microcontroller U1 is the communication protocol interface. Pin 6 can collect data input from the slave device and store it in a register, realizing the use of the synchronous clock and sampling mechanism built into the SPI hardware in the communication protocol interface to read single-bus data.

[0034] When the signal output terminal of the breathing detection unit S1, i.e., the SDO port, outputs single-bus data, it is clear from the CSC581 silicon microphone chip datasheet that the minimum data transmission period T = 30µs. The interrupt trigger terminal of the breathing detection unit S1 is used to wake up the microcontroller U1 and indicate that data has been sent. The signal output terminal of the breathing detection unit S1 is used to transmit the detected breathing data to the microcontroller U1 in the form of a breathing transmission signal. Further, in another preferred embodiment, the breathing detection unit S1 can only connect its signal output terminal to the microcontroller U1. In this case, the signal output terminal selected by the microcontroller U1 also has a wake-up function, that is, the communication protocol interface itself has an interrupt function, which can automatically wake up the microcontroller U1 by detecting the level transition at the start of the breathing transmission signal and start data acquisition via the SPI communication protocol. The hardware timing period of the SPI communication protocol is set to T=30us, which is consistent with the minimum data transmission period of the respiratory detection unit S1. Therefore, data reading can be achieved through the hardware of the communication protocol interface. The communication protocol and its specific implementation are existing technologies. By connecting the communication protocol interface of the microcontroller U1 to the signal output terminal of the respiratory detection unit S1, the microcontroller U1 reads data through the communication protocol interface. Since the internal hardware of the communication protocol interface automatically generates a clock, the microcontroller U1 automatically samples and reads the level signal in the respiratory detection unit S1 through the communication protocol interface. The timing required for data reading is provided by the hardware of the communication protocol interface, without the need for the microcontroller U1 to control the timer to scan cyclically at certain intervals through a program.

[0035] According to the CSC581 silicon microphone chip encoding format of the breathing detection unit S1, its data transmission uses a 255T high-level frame header and a 65T low-level frame tail, which is also low-level when there is no data. Furthermore, based on the output format of this silicon microphone chip, the length of a data frame transmitted by the breathing detection unit S1 via the single-bus protocol is fixed. Therefore, the microcontroller U1 can read the data via SPI and save it to an array in the register. By recognizing the frame header, it can locate which bytes in a fixed position within a data frame contain the required data. After recognizing the frame header, the microcontroller U1 calculates each bit until it locates the position of the required data within each frame and directly extracts and parses the corresponding breathing data. Correspondingly, the principle used to recognize the frame tail is the same as that used to recognize the frame header. After recognizing the frame header, if the detected data shows a continuous 65T low level, it indicates the frame tail or that the trigger signal has disappeared, ending the data reception. It should be noted that the frame header and frame tail formats described above can be preset according to the type and model of the chip selected for the breathing detection unit S1. Based on the software's search, extraction, and decoding processes, the microcontroller U1 can either remain operational or re-enter sleep mode. Specifically, the microcontroller U1 can be a model that automatically enters low-power mode.

[0036] It should be noted that this invention utilizes the internal hardware structure of the SPI communication protocol of the microcontroller U1 for signal reading. Specifically, it identifies and reads data from a single bus through the MISO port of the microcontroller U1. This direct reading eliminates the need to detect the high and low levels of the I / O port using a timer, resulting in higher overall system efficiency. The implementation methods of the various communication protocols, the encoding, reading, decoding, and storage of the respiratory transmission signal, and the computer program used in this invention are existing technologies, which can be configured according to the respiratory detection unit S1 in the respiratory detection module 200 and the microcontroller U1 model of the hardware timing sampling module 100.

[0037] Secondly, this utility model also provides a respiratory detection system, which includes the aforementioned microcontroller-based input reading circuit. The specific implementation is as described in the above-described embodiment of the microcontroller-based input reading circuit, and will not be repeated here.

[0038] Thirdly, this utility model also provides an electronic cigarette, which includes a shell, an atomizer, and the aforementioned microcontroller-based input / reading circuit. The shell has a mouthpiece and a vent, which are connected via a breathing pathway. The atomizer and the breathing detection module of the microcontroller-based input / reading circuit are disposed on the breathing pathway. The breathing detection module detects the gas flow rate and direction of breathing data in the breathing pathway and generates a breathing transmission signal. The specific details are as described in the aforementioned embodiment of the microcontroller-based input / reading circuit, and will not be repeated here.

[0039] This invention provides a microcontroller-based input reading circuit, a breathing detection system, and an electronic cigarette. The microcontroller-based input reading circuit includes a breathing detection module and a hardware timing sampling module. The breathing detection module is connected to the communication protocol interface of the hardware timing sampling module to detect breathing data and output a breathing transmission signal to the hardware timing sampling module based on the breathing data. The hardware timing sampling module reads and stores the breathing transmission signal. This invention connects to the breathing detection module via a communication protocol interface, which has its own hardware clock, eliminating the need for a timer to cyclically scan and detect the high and low levels of the I / O serial port, thus eliminating the need for software timing and improving the microcontroller's efficiency. This invention no longer uses a time-measuring level signal, but instead uses a data byte that has been hardware-quantized by the communication protocol interface. This byte is quickly identified and read by a single-bus chip, reducing system downtime.

[0040] It should be understood that the application of this utility model is not limited to the examples above. Those skilled in the art can make improvements or modifications based on the above description, and all such improvements and modifications should fall within the protection scope of the appended claims.

Claims

1. An input reading circuit based on a microcontroller, characterized in that, It includes a respiratory detection module and a hardware timing sampling module; among which, The respiratory detection module is connected to the communication protocol interface of the hardware timing sampling module, and is used to detect respiratory data and output a respiratory transmission signal to the hardware timing sampling module according to the respiratory data. The hardware timing sampling module is used to read and store the respiratory transmission signal.

2. The microcontroller-based input / reading circuit according to claim 1, characterized in that, The breathing detection module includes: a breathing detection unit, a first resistor, and a first capacitor. The signal output terminal of the breathing detection unit is connected to the communication protocol interface of the hardware timing sampling module. The interrupt trigger terminal of the breathing detection unit is connected to the interrupt input terminal of the hardware timing sampling module. The power supply terminal of the breathing detection unit is connected to one end of the first resistor, and the other end of the first resistor is connected to the power supply voltage. The ground terminal of the breathing detection unit is grounded. One end of the first capacitor is connected to the power supply terminal of the breathing detection unit, and the other end of the first capacitor is connected to the ground terminal of the breathing detection unit.

3. The microcontroller-based input / reading circuit according to claim 1, characterized in that, The hardware timing sampling module includes a microcontroller, which includes a communication protocol interface and a register. The microcontroller is connected to the respiratory detection module through the communication protocol interface, and the communication protocol interface is connected to the register. It is used to collect the respiratory transmission signal and output respiratory data to the register. The register is used to store the respiratory data.

4. The microcontroller-based input / reading circuit according to claim 3, characterized in that, The microcontroller is model SC8F6796AD828NPR.

5. The microcontroller-based input / reading circuit according to claim 2, characterized in that, The breathing detection unit is a silicon microphone chip, which is used to detect the magnitude and direction of airflow.

6. The microcontroller-based input / reading circuit according to claim 5, characterized in that, The silicon microphone chip is model CSC581.

7. The microcontroller-based input / reading circuit according to claim 3, characterized in that, The communication protocol interface is an SPI interface.

8. A respiratory detection system, characterized in that, Includes the microcontroller-based input reading circuit as described in any one of claims 1-7.

9. An electronic cigarette, characterized in that, The electronic cigarette includes a shell, an atomizer, and a microcontroller-based input / reading circuit as described in any one of claims 1-7; wherein, The outer casing is provided with a mouthpiece and a vent hole, and the mouthpiece and the vent hole are connected by a breathing passage. The atomizer and the breathing detection module based on the microcontroller input reading circuit are arranged on the breathing passage. The breathing detection module is used to detect the gas flow rate and direction of breathing data in the breathing passage and generate a breathing transmission signal.