Capacitance detection method of electronic cigarette capacitive microphone, analog front end and electronic cigarette

By disconnecting the negative electrode and the ground terminal during the capacitance detection cycle of the electronic cigarette head, inputting the same and different driving signals, collecting and differentiating the capacitance data, eliminating the interference signals, solving the error triggering and high cost in the prior art The problem is to achieve efficient and low-cost capacitance detection and judgment of smoking strength.

CN118805965BActive Publication Date: 2024-12-03SHENZHEN BETTERLIFE ELECTRONICS SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411305322.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-19
Publication Date
2024-12-03
Estimated Expiration
2044-09-19

AI Technical Summary

Technical Problem

The existing electronic cigarette head detection technology is susceptible to changes in the external environment and the interference of hand touching pins and wiring during assembly, resulting in error triggering problems and is costly.

Method used

By disconnecting the negative electrode and the ground terminal during the capacitance detection period, inputting the same driving signal, collecting capacitance data, amplifying and analog-to-digital conversion, then connecting the negative electrode and the ground terminal, inputting different driving signals, collecting capacitance data to the ground, The interference signal is eliminated through the difference operation, and the real capacitance change data is obtained, and the smoking intensity is judged and the heating is started.

Benefits of technology

Effectively eliminate external interference, improve anti-interference ability, reduce costs, improve threshold consistency of starting negative pressure, and avoid false triggering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118805965B_ABST
    Figure CN118805965B_ABST
Patent Text Reader

Abstract

The present invention discloses a capacitance detection method for an electronic cigarette capacitive microphone, an analog front end and an electronic cigarette. The method comprises the following steps: before the capacitance detection cycle starts, disconnect the connection between the negative electrode of the capacitive microphone and the ground terminal, and input the same driving signal to both the positive and negative electrodes of the capacitive microphone; collect the capacitance data of the positive electrode of the capacitive microphone in the front period of the capacitance detection cycle, amplify and convert the collected capacitance data into analog-to-digital data, and obtain the same-drive capacitance data of the capacitive microphone; at the end of the front period of the capacitance detection cycle, connect the negative electrode of the capacitive microphone to the ground terminal, and input different driving signals to the positive and negative electrodes of the capacitive microphone respectively; collect the capacitance data of the positive electrode of the capacitive microphone in the back period of the capacitance detection cycle, amplify and convert the collected capacitance data into analog-to-digital data, and obtain the capacitance data of the capacitive microphone to the ground. The present invention can not only reduce costs, but also significantly improve the anti-interference ability of electronic cigarettes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic cigarette capacitance detection, and in particular to an electronic cigarette capacitive microphone capacitance detection method, an analog front end and an electronic cigarette. Background Art

[0002] The airflow sensor of existing electronic cigarettes generally uses a capacitive microphone. The switch microphone adds an ASIC (Application Specific Integrated Circuit) capacitance detection chip to the microphone and integrates it into a microphone structure. The microphone is mainly composed of a diaphragm and a back plate, which form a parallel plate capacitor. When the negative pressure generated by a person smoking will reduce the distance between the diaphragm and the back plate, the parallel plate capacitance will increase, and then the capacitance detection chip will detect the size of the capacitance change, and then judge the size of the person's suction.

[0003] There are three main ways to detect microphone capacitance at present. The first is to use a switch microphone. The ASIC dedicated capacitance detection chip is designed inside the microphone, and a GPIO (General-purpose input / output) pin directly outputs high and low levels to show whether the microphone has inhaled airflow. The second is to connect one of the two pins of the microphone to the ground and the other to the microphone detection pin of the external packaged ASIC chip. After detection by the ASIC chip, the signal is sent to the electronic cigarette main control chip. The third is to directly connect one pin of the microphone to the main control chip with integrated capacitance detection function, and the main control chip completes the detection of the microphone capacitance.

[0004] The above three electronic cigarette microphone detection methods each have their own advantages and disadvantages;

[0005] 1) Switch microphone, ASIC chip is integrated inside the microphone head, and directly outputs high and low levels to the outside. Because the components of the capacitor to be detected that are susceptible to interference are concentrated inside the microphone head, it has the advantages of strong anti-interference ability and convenient use. However, the cost is expensive (the price of the switch microphone is more than twice that of the microphone head), and it cannot detect the intensity of smoking, and the threshold consistency of the starting negative pressure is not good.

[0006] 2) Directly use the microphone, whether it is an externally packaged ASIC chip, or the microphone is directly connected to the electronic cigarette main control chip with integrated capacitance detection function. Although the cost is reduced, compared with the switch microphone, the microphone pins and traces of the capacitor component to be detected are designed on the PCB board, which is very susceptible to factors such as e-cigarette oil leakage, water leakage, temperature changes, etc. Especially during production and assembly, it is very easy for the hand to touch the pins or traces of the microphone on the PCB board, changing the capacitance of the chip capacitance detection foot to the ground, and then the electronic cigarette will cause false start.

[0007] In summary, a new electronic cigarette microphone detection technology is urgently needed, which can not only reduce costs, but also significantly improve the anti-interference ability of electronic cigarettes, thereby effectively solving the problem of false triggering caused by changes in the external environment or touching the pins and wiring of the microphone during assembly. Summary of the invention

[0008] The purpose of the present invention is to provide an electronic cigarette capacitive microphone capacitance detection method, an analog front end and an electronic cigarette to solve the above technical problems. The preferred technical solutions among the many technical solutions provided by the present invention can produce many technical effects as described below.

[0009] To achieve the above object, the present invention provides the following technical solutions:

[0010] The present invention provides a method for detecting capacitance of an electronic cigarette capacitive microphone, comprising the following steps:

[0011] Before the capacitance detection cycle starts, disconnect the negative electrode of the capacitive microphone from the ground terminal, and input the same driving signal to both the positive and negative electrodes of the capacitive microphone;

[0012] Collecting capacitance data of the positive electrode of the capacitive microphone in the first period of the capacitance detection period, amplifying and performing analog-to-digital conversion on the collected capacitance data, and obtaining the same-drive capacitance data of the capacitive microphone;

[0013] At the end of the first period of the capacitance detection period, the negative electrode of the capacitive microphone is connected to the ground terminal, and different driving signals are input to the positive electrode and the negative electrode of the capacitive microphone respectively;

[0014] In the latter period of the capacitance detection period, the capacitance data of the positive electrode of the capacitive microphone is collected, and the collected capacitance data is amplified and analog-to-digital converted to obtain the capacitance data of the capacitive microphone to the ground;

[0015] A difference operation is performed between the capacitance data of the capacitive microphone to the ground and the capacitance data of the same drive to obtain the capacitance data of the capacitive microphone after eliminating interference.

[0016] In some embodiments, the obtained co-drive capacitance data includes wiring interference capacitance data of the capacitive microphone and pin interference capacitance data of the capacitive microphone; the obtained ground capacitance data includes capacitance data of the capacitive microphone for eliminating interference, wiring interference capacitance data of the capacitive microphone and pin interference capacitance data of the capacitive microphone.

[0017] In some embodiments, inputting different driving signals to the positive electrode and the negative electrode of the capacitive microphone respectively comprises the following steps:

[0018] At the end of the first period of the capacitance detection period, a low level signal is input to the negative electrode of the capacitive microphone, and the same driving signal is input to the positive electrode of the capacitive microphone; the same driving signal is a voltage square wave signal.

[0019] In some embodiments, inputting different driving signals to the positive electrode and the negative electrode of the capacitive microphone respectively comprises the following steps:

[0020] At the end of the first period of the capacitance detection period, the positive electrode of the capacitive microphone inputs a driving signal that alternates between the same driving signal and a low-level signal, and the negative electrode of the capacitive microphone inputs a driving signal that alternates between the low-level signal and the same driving signal; the same driving signal is a voltage square wave signal.

[0021] In some embodiments, the electronic cigarette capacitive microphone capacitance detection method further includes the following steps:

[0022] Whether the capacitance data of the capacitive microphone for eliminating interference exceeds a set threshold; if so, starting the heating of the electronic cigarette; otherwise, not starting the heating of the electronic cigarette.

[0023] In some embodiments, the electronic cigarette capacitive microphone capacitance detection method further includes collecting the same-drive capacitance data and the capacitance data to ground of the two poles of the capacitive microphone, and the steps include:

[0024] Collecting capacitance data of the two electrodes of the capacitive microphone in the first period of the next capacitance detection period, amplifying and performing analog-to-digital conversion on the collected capacitance data, and obtaining positive electrode co-driven capacitance data and negative electrode co-driven capacitance data of the capacitive microphone;

[0025] At the end of the first period of the next capacitance detection cycle, the negative electrode of the capacitive microphone is connected to the ground terminal, a corresponding driving signal is input to the positive electrode of the capacitive microphone, and the driving signal corresponding to the negative electrode is cut off; in the second period of the next capacitance detection cycle, capacitance data of the positive electrode of the capacitive microphone is collected, and the collected capacitance data is amplified and analog-to-digital converted to obtain capacitance data of the positive electrode of the capacitive microphone to the ground;

[0026] After completing the collection of the capacitance data of the positive electrode to the ground of the capacitive microphone, the connection between the capacitive microphone and the ground terminal is set from the negative electrode to the connection between the positive electrode and the ground terminal, the drive signal corresponding to the positive electrode is cut off, and the corresponding drive signal is input to the negative electrode of the capacitive microphone; the capacitance data of the negative electrode of the capacitive microphone is collected in the latter period of the next capacitance detection period, and the collected capacitance data is amplified and analog-to-digital converted to obtain the capacitance data of the negative electrode of the capacitive microphone to the ground.

[0027] In some embodiments, based on the obtained capacitance data of the negative electrode and the positive electrode of the capacitive microphone, the interference of the capacitive microphone is judged as follows:

[0028] When the positive electrode-to-ground capacitance data and the positive electrode co-driven capacitance data both exceed the set threshold, and the negative electrode-to-ground capacitance data and the negative electrode co-driven capacitance data are both less than the set threshold, there is wiring interference or pin interference at the positive electrode of the capacitive microphone;

[0029] When the positive electrode-to-ground capacitance data and the positive electrode co-driven capacitance data are both less than the set threshold, and the negative electrode-to-ground capacitance data and the negative electrode co-driven capacitance data are both greater than the set threshold, there is wiring interference or pin interference at the negative electrode of the capacitive microphone;

[0030] When the positive electrode-to-ground capacitance data and the positive electrode co-driven capacitance data both exceed the set threshold, and the negative electrode-to-ground capacitance data and the negative electrode co-driven capacitance data both exceed the set threshold, there is routing interference or pin interference in the positive and negative electrodes of the capacitive microphone.

[0031] As a common inventive concept, the present invention also provides an analog front end for implementing the above-mentioned electronic cigarette capacitive microphone capacitance detection method, including an analog-to-digital converter ADC, a first operational amplifier CA1, a first switch SW1, a second switch SW2, a third switch SW3, a capacitance detection pin and a mode control pin;

[0032] The analog-to-digital converter ADC, the first op amp CA1, and the capacitance detection pin are connected in sequence, one end of the second switch SW2 is connected between the first op amp CA1 and the capacitance detection pin, the other end of the second switch SW2 and one end of the first switch SW1 are both connected to a driving signal source, the other end of the first switch SW1 and one end of the third switch SW3 are both connected to the mode control pin, and the other end of the third switch SW3 is grounded;

[0033] The capacitance detection pin and the mode control pin are respectively connected to the positive electrode and the negative electrode of the capacitive microphone, and the analog-to-digital converter ADC is connected to the main control chip of the electronic cigarette.

[0034] In some embodiments, the analog front end further includes a second op amp CA2, a fourth switch SW4, a fifth switch SW5 and a sixth switch SW6; the analog-to-digital converter ADC, the second op amp CA2 and the mode control pin are connected in sequence; one end of the fourth switch SW4 is connected to one end of the second switch SW2 and the input end of the first op amp CA1, and the other end thereof is connected to the capacitance detection pin; one end of the fifth switch SW5 is connected between the capacitance detection pin and the fourth switch SW4, and the other end thereof is grounded; one end of the sixth switch SW6 is connected to one end of the first switch SW1 and the input end of the second op amp CA2, and the other end thereof is connected to the mode control pin.

[0035] As a common inventive concept, the present invention also provides an electronic cigarette, comprising the analog front end described above, and also comprising a main control chip and a capacitive microphone; the analog front end is embedded in the main control chip, the capacitance detection pin of the analog front end is connected to the positive electrode of the capacitive microphone, and the mode control pin of the analog front end is connected to the negative electrode of the capacitive microphone; the main control chip performs a difference operation on the ground capacitance data of the capacitive microphone output by the analog-to-digital converter of the analog front end and the same-drive capacitance data to obtain the capacitance data of the capacitive microphone for eliminating interference, and uses the capacitance data for eliminating interference that exceeds a set threshold as a judgment condition for smoking to start heating the electronic cigarette.

[0036] Implementing one of the above technical solutions of the present invention has the following advantages or beneficial effects:

[0037] The present invention inputs the same driving signal to the positive and negative electrodes of the capacitive microphone in the first period of the entire capacitance detection period, and the negative electrode is not connected to the ground terminal, and inputs different driving signals in the second period of the entire capacitance detection period, and the negative electrode is connected to the ground terminal, and then eliminates the capacitance change caused by the interference signal of the peripheral environment through calculation, so as to obtain the real capacitance change data of the capacitive microphone caused by smoking.

[0038] On the other hand, the present invention can effectively eliminate external interference of the capacitive microphone, such as pin capacitance interference caused by oil leakage and water ingress, capacitance interference caused by the wiring of the touch capacitive microphone, etc., adopts low-cost capacitive microphone, and does not configure expensive ASIC chips, thereby effectively reducing costs. Moreover, the size of the capacitance data obtained to eliminate interference can accurately correspond to the determined smoking intensity, thereby improving the threshold consistency of the starting negative pressure.

[0039] Therefore, the present invention can not only reduce the cost, but also significantly improve the anti-interference ability of the electronic cigarette, thereby effectively solving the problem of false triggering caused by changes in the external environment or touching the pins and wiring of the microphone head by hand during assembly. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. It is obvious that the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0041] Figure 1 This is a flow chart of a method for detecting capacitance of an electronic cigarette capacitive microphone according to an embodiment of the present invention;

[0042] Figure 2 Schematic diagram of equivalent capacitance between a capacitive microphone and its interference source according to an embodiment of the present invention;

[0043] Figure 3 It is a flow chart of a method for collecting co-driven capacitance data and ground capacitance data of two electrodes of a capacitive microphone according to an embodiment of the present invention;

[0044] Figure 4 is an analog front-end circuit diagram of an embodiment of the present invention;

[0045] Figure 5 is a schematic diagram of a driving signal of a capacitance detection cycle according to an embodiment of the present invention;

[0046] Figure 6 is a schematic diagram of another driving signal of a capacitance detection cycle according to an embodiment of the present invention;

[0047] FIG7 is a circuit diagram of an electronic cigarette main control chip according to an embodiment of the present invention;

[0048] Figure 8 This is another analog front-end circuit diagram of an embodiment of the present invention. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solutions and advantages of the present invention clearer, the various exemplary embodiments to be described below will refer to the corresponding drawings, which constitute a part of the exemplary embodiments, wherein various exemplary embodiments that may be used to implement the present invention are described. Unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation methods described in the following exemplary embodiments do not represent all implementation methods consistent with the present disclosure. It should be understood that they are only examples of processes, methods, devices, etc. that are consistent with some aspects of the present disclosure as detailed in the attached claims, and other embodiments may also be used, or the embodiments listed herein may be modified in structure and function without departing from the scope and essence of the present invention.

[0050] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", etc. indicate the orientation or positional relationship based on the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the elements referred to must have a specific orientation, be constructed and operated in a specific orientation. The terms "first", "second", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. The term "multiple" means two or more. The terms "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, an integral connection, a mechanical connection, an electrical connection, a communication connection, a direct connection, an indirect connection through an intermediate medium, and can be the internal connection of two elements or the interaction relationship between two elements. The term "and / or" includes any and all combinations of one or more related listed items. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances.

[0051] In order to illustrate the technical solution of the present invention, a specific embodiment is used below for description, and only the parts related to the embodiment of the present invention are shown.

[0052] Embodiment 1: Figure 1 As shown, the present invention provides a method for detecting capacitance of an electronic cigarette capacitive microphone, comprising the following steps:

[0053] S100, before the capacitance detection cycle starts, disconnect the negative electrode of the capacitive microphone from the ground, and input the same driving signal to the positive electrode and the negative electrode of the capacitive microphone;

[0054] S200, collecting capacitance data of the positive electrode of the capacitive microphone in the first period of the capacitance detection period, amplifying and performing analog-to-digital conversion on the collected capacitance data, and obtaining the same-drive capacitance data of the capacitive microphone;

[0055] S300, at the end of the first period of the capacitance detection period, connecting the negative electrode of the capacitive microphone with the ground terminal, and inputting different driving signals to the positive electrode and the negative electrode of the capacitive microphone respectively;

[0056] S400, collecting capacitance data of the positive electrode of the capacitive microphone in the latter period of the capacitance detection period, amplifying and performing analog-to-digital conversion on the collected capacitance data, and obtaining capacitance data of the capacitive microphone to ground;

[0057] S500 , performing a difference operation on the capacitance data of the capacitive microphone to the ground and the capacitance data of the same drive, to obtain the capacitance data of the capacitive microphone after eliminating interference.

[0058] The present invention inputs the same driving signal through the positive and negative electrodes of the capacitive microphone in the first period of the entire capacitance detection cycle, and the negative electrode is not connected to the ground terminal, and inputs different driving signals in the second period of the entire capacitance detection cycle, and the negative electrode is connected to the ground terminal, and then through calculation, the capacitance change caused by the external environmental interference signal is eliminated, and the real capacitance change data of the capacitive microphone caused by actual smoking is obtained. On the other hand, the present invention can effectively eliminate the external interference of the capacitive microphone, such as the pin capacitance interference caused by oil leakage and water ingress, and the capacitance interference caused by touching the wiring of the relevant circuits (such as the detection circuit) of the capacitive microphone. A low-cost capacitive microphone is used, and there is no expensive ASIC chip configured, which can effectively reduce the cost. Moreover, the size of the capacitance data obtained to eliminate interference can accurately correspond to the determined smoking intensity, and can improve the threshold consistency of the starting negative pressure. Therefore, the present invention can not only reduce costs, but also significantly improve the anti-interference ability of the electronic cigarette, thereby effectively solving the problem of false triggering caused by changes in the external environment or touching the pins and wiring of the microphone by hand during assembly.

[0059] It should be noted that the existing self-capacitance detection principle is to convert the change of microphone capacitance into the change of frequency signal, and then obtain the size of capacitance change by measuring the signal frequency. The self-capacitance detection principle of the present invention is: by converting the change of microphone capacitance into voltage change, and then amplifying it through the operational amplifier and converting it into digital signal by ADC for calculation and processing. It can be understood that the driving signal is the charging voltage of the capacitor, and the voltage of the capacitor conversion is obtained at the output end of the operational amplifier CA, thereby realizing the conversion of capacitance change into voltage change.

[0060] Furthermore, the same-drive capacitance data obtained above includes the wiring interference capacitance data of the capacitive microphone and the pin interference capacitance data of the capacitive microphone. The capacitance data to ground obtained includes the capacitance data of the capacitive microphone for eliminating interference, the wiring interference capacitance data of the capacitive microphone and the pin interference capacitance data of the capacitive microphone. Thus, by subtracting the capacitance data to ground from the same-drive capacitance data, the real capacitance of the capacitive microphone for eliminating interference is obtained, thereby effectively eliminating interference.

[0061] like Figure 2 As shown in the figure, it can be seen from the equivalent capacitance of the capacitive microphone of the electronic cigarette that the capacitance data of the capacitance detection pin to ground can be considered to be composed of three parts: the actual capacitance data of the microphone to ground Cmic, the wiring capacitance Cr from the positive pole (V+ end) of the microphone to the capacitance detection pin, and the pin interference capacitance Cg introduced by human hand touching the microphone and oil and water entering the microphone. The detection capacitance C=Cmic+Cg+Cr.

[0062] In the first period of the capacitance detection cycle, the same driving signal is input to the positive and negative electrodes (V- terminal) of the microphone, and the signals between the corresponding V+ terminal and the V- terminal are exactly the same, and there is no voltage difference. According to the parallel plate capacitance formula Q=U*C, there is no voltage difference, so it can be considered that there is no capacitance or very small capacitance between the V+ terminal and the V- terminal. Therefore, during this period, the capacitance data to ground tested by the capacitance detection pin of the chip only includes the wiring capacitance Cr and the interference capacitance Cg that may be introduced externally, which is equivalent to the detection capacitance C1=Cr+Cg; and in the second period of the capacitance detection cycle, different driving signals are input to the positive and negative electrodes of the capacitive microphone respectively (for example, the positive electrode inputs a voltage square wave signal, and the negative electrode inputs a low-level signal), and the capacitance tested by the mode control pin includes the microphone capacitance, that is, the detection capacitance C2=Cmic+Cr+Cg. The difference between the two capacitances C1 and C2 detected in the two time periods can be calculated to obtain the real capacitance Cmic of the microphone, and the capacitance influence factors caused by wiring and interference are also eliminated.

[0063] In some embodiments, different driving signals are input to the positive electrode and the negative electrode of the capacitive microphone respectively, including the following steps:

[0064] At the end of the first period of the capacitance detection period, a low level signal is input to the negative electrode of the capacitive microphone, and the same driving signal is input to the positive electrode of the capacitive microphone. The same driving signal is a voltage square wave signal.

[0065] In some embodiments, different driving signals are input to the positive electrode and the negative electrode of the capacitive microphone respectively, including the following steps:

[0066] At the end of the first period of the capacitance detection period, the positive electrode of the capacitive microphone inputs a driving signal that alternates between the same driving signal and the low-level signal, and the negative electrode of the capacitive microphone inputs a driving signal that alternates between the low-level signal and the same driving signal; the periods of the low-level signal and the same driving signal can be consistent, and the same driving signal is a voltage square wave signal.

[0067] The electronic cigarette capacitive microphone capacitance detection method described in this embodiment also includes the following steps:

[0068] Whether the capacitance data of the capacitive microphone head for eliminating interference exceeds the set threshold; if so, the heating of the electronic cigarette is started; otherwise, the heating of the electronic cigarette is not started.

[0069] In particular, when assembling the electronic cigarette and its capacitive microphone, it is very easy to touch the pins or traces of the microphone on the PCB board, changing the capacitance of the chip capacitor detection foot to the ground, and then the electronic cigarette will start up incorrectly. Therefore, in order to ensure that the electronic cigarette does not start up incorrectly due to assembly, it is necessary to further determine whether there is interference between the positive and negative poles of the capacitive microphone.

[0070] like Figure 3 As shown, the electronic cigarette capacitive microphone capacitance detection method described in this embodiment also includes collecting the same-drive capacitance data and the capacitance data to ground of the two poles of the capacitive microphone, and the steps include:

[0071] S600, collecting capacitance data of the two electrodes of the capacitive microphone in the first period of the next capacitance detection period, amplifying and performing analog-to-digital conversion on the collected capacitance data, and obtaining positive electrode co-driven capacitance data and negative electrode co-driven capacitance data of the capacitive microphone;

[0072] S700, at the end of the first period of the next capacitance detection cycle, connecting the negative electrode of the capacitive microphone with the ground terminal, inputting a corresponding driving signal to the positive electrode of the capacitive microphone, and cutting off the driving signal corresponding to the negative electrode; collecting capacitance data of the positive electrode of the capacitive microphone in the second period of the next capacitance detection cycle, amplifying and performing analog-to-digital conversion on the collected capacitance data, and obtaining capacitance data of the positive electrode of the capacitive microphone to the ground;

[0073] S800, after completing the acquisition of the capacitance data of the positive electrode of the capacitive microphone to the ground, the connection between the capacitive microphone and the ground terminal is set from the negative electrode to the positive electrode and the ground terminal, the drive signal corresponding to the positive electrode is cut off, and the corresponding drive signal is input to the negative electrode of the capacitive microphone; the capacitance data of the negative electrode of the capacitive microphone is acquired in the latter period of the next capacitance detection period, and the acquired capacitance data is amplified and analog-to-digital converted to obtain the capacitance data of the negative electrode of the capacitive microphone to the ground.

[0074] Furthermore, based on the obtained capacitance data of the negative electrode and the positive electrode of the capacitive microphone, the interference of the capacitive microphone is judged as follows:

[0075] When the positive electrode-to-ground capacitance data and the positive electrode co-drive capacitance data both exceed the set threshold, and the negative electrode-to-ground capacitance data and the negative electrode co-drive capacitance data are both less than the set threshold, there is wiring interference or pin interference on the positive electrode of the capacitive microphone;

[0076] When the positive electrode-to-ground capacitance data and the positive electrode co-drive capacitance data are both less than the set threshold, and the negative electrode-to-ground capacitance data and the negative electrode co-drive capacitance data are both greater than the set threshold, there is wiring interference or pin interference at the negative electrode of the capacitive microphone;

[0077] When the positive electrode-to-ground capacitance data and the positive electrode co-driven capacitance data both exceed the set threshold, and the negative electrode-to-ground capacitance data and the negative electrode co-driven capacitance data both exceed the set threshold, there is routing interference or pin interference on the positive and negative electrodes of the capacitive microphone.

[0078] Therefore, the corresponding interference factors can be detected through the above steps S600 to S800 before assembly, and then measures can be taken to effectively avoid interference during the assembly process, eliminate false start-up of the electronic cigarette, and improve the user experience of the electronic cigarette.

[0079] Embodiment 2: Figure 4 As shown, as the same inventive concept, this embodiment provides an analog front end for implementing the electronic cigarette capacitive microphone capacitance detection method described in Embodiment 1, including an analog-to-digital converter ADC, a first op amp CA1, a first switch SW1, a second switch SW2, a third switch SW3, a capacitance detection pin and a mode control pin. Specifically:

[0080] The analog-to-digital converter ADC, the first op amp CA1, and the capacitance detection pin are connected in sequence, one end of the second switch SW2 is connected between the first op amp CA1 and the capacitance detection pin, the other end of the second switch SW2 and one end of the first switch SW1 are connected to the driving signal source, the other end of the first switch SW1 and one end of the third switch SW3 are connected to the mode control pin, and the other end of the third switch SW3 is grounded. Furthermore, the capacitance detection pin and the mode control pin are respectively connected to the positive and negative electrodes of the capacitive microphone head, and the analog-to-digital converter ADC is connected to the main control chip of the electronic cigarette.

[0081] like Figure 5-Figure 6 As shown, in some embodiments, taking a capacitance detection cycle of 10ms as an example, the 5ms before the detection cycle (the front period of the capacitance detection cycle) is a common drive detection mode, and the driving signals of the positive and negative electrodes of the capacitive microphone are both voltage square wave signals. That is, the capacitance detection pin MIC outputs a voltage square wave signal, and the mode control pin MODE outputs a voltage square wave signal. The common drive detection mode can detect: wiring capacitance and interference capacitance; and the following 5ms (the rear period of the capacitance detection cycle) is a low-level detection mode, and the driving signals of the positive and negative electrodes of the capacitive microphone are respectively a voltage square wave signal and a low-level signal. That is, the capacitance detection pin MIC outputs a voltage square wave signal, and the mode control pin MODE outputs a low-level signal. The low-level detection mode can detect the non-interference capacitance, wiring capacitance and interference capacitance of the microphone.

[0082] It can be understood that in the latter period of the capacitance detection cycle, the driving signals of the positive and negative electrodes of the capacitive microphone are not limited to voltage square wave signals and low-level signals, but can also be alternating signals of voltage square wave signals and low-level signals. That is, in the low-level detection mode of the latter period of the capacitance detection cycle (the last 5ms), the positive electrode of the capacitive microphone receives a driving signal of alternating voltage square wave signals and low-level signals from the capacitance detection pin MIC, and the negative electrode of the capacitive microphone receives a driving signal of alternating low-level signals and voltage square wave signals from the mode control pin MODE; the period of the low-level signal is consistent with that of the voltage square wave signal.

[0083] Through the above-mentioned drive signal setting, the V+ (positive) and V- (negative) pins of the capacitive microphone are connected to the capacitance detection pin and the mode control pin of the analog front end respectively. In a capacitance detection cycle of 10ms, the capacitance detection mode control pin connected to the V- end of the microphone outputs a co-driven square wave waveform in the first 5ms and a low-level signal in the last 5ms. The capacitance detection pin connected to the V+ end of the microphone outputs a co-driven square wave waveform within 10ms, and keeps detecting the size of the self-capacitance to the ground.

[0084] The following two steps are completed in one capacitance detection scanning cycle:

[0085] 1) Co-drive detection time: the first switch SW1 and the second switch SW2 are closed (ON), the third switch SW3 is opened (OFF), and the detection capacitor C1=Cr+Cg. Cr is the wiring interference capacitor, and Cg is the microphone pin interference capacitor. The frequency, phase, and voltage amplitude of the working waveform of the capacitance detection pin and the mode control pin are completely consistent. At this time, step S100 and step S200 are completed, and the co-drive capacitance data of the capacitive microphone is obtained through the acquisition channel composed of the capacitance detection pin, the first op amp CA1, and the analog-to-digital converter ADC.

[0086] 2) Low level detection time: the second switch SW2 and the third switch SW3 are closed (ON), the first switch SW1 is opened (OFF), and the detection capacitor C2 = Cmic + Cr + Cg. The real capacitance of the Cmic microphone (the capacitance without interference). At this time, step S300 and step S400 are completed, and the capacitance data of the capacitive microphone to ground is obtained through the acquisition channel composed of the capacitance detection pin, the first operational amplifier CA1, and the analog-to-digital converter ADC. It should be noted that the first switch SW1 disconnects the negative electrode of the capacitive microphone and there is no signal input, that is, the input is a low level signal.

[0087] Embodiment 3: Figure 7 As shown, as the same inventive concept, this embodiment provides an electronic cigarette, including the analog front end described in Example 2, and also including a main control chip and a capacitive microphone. Among them, the analog front end is embedded in the main control chip, the capacitance detection pin of the analog front end is connected to the positive electrode of the capacitive microphone, and the mode control pin of the analog front end is connected to the negative electrode of the capacitive microphone. Furthermore, the main control chip performs a difference operation on the capacitance data of the capacitive microphone to ground output by the analog-to-digital converter of the analog front end and the same-drive capacitance data to obtain the capacitance data of the capacitive microphone to eliminate interference, and uses the capacitance data of the interference elimination that exceeds the set threshold as the judgment smoking condition to start heating the electronic cigarette.

[0088] In this embodiment, the positive electrode (V+) of the capacitive microphone is connected to the MIC pin of the main control chip U2, and the negative electrode (V-) is directly connected to the MODE pin of the main control chip U2. Among them, the MIC pin of the main control chip U2 corresponds to the capacitance detection pin of the analog front end, and the MODE pin of the main control chip U2 corresponds to the mode control pin of the analog front end.

[0089] It should be noted that the current connection method of the microphone in actual use is generally that the V+ end is connected to the capacitance detection end of the chip, the V- (the end connected to the microphone housing) is grounded, and the capacitance detection chip detects the size of the self-capacitance of the microphone V+ end to the ground. The corresponding self-capacitance detection principle is to convert the change in the microphone capacitance into the change in the frequency signal, and then obtain the size of the capacitance change by measuring the signal frequency. This embodiment abandons the connection method and self-capacitance detection principle of the microphone and the main control chip in the prior art. In terms of connection, the V+ end and the V- end of the empty microphone are connected to the main control chip, the V+ end is connected to the capacitance detection pin of the chip, and the size of the self-capacitance of the V+ end to the ground is detected; the V- end is connected to the capacitance detection mode control pin of the chip, and the V- end outputs different signals during the capacitance detection cycle of the V+ end, so that the V+ end detects the size of the self-capacitance to the ground under different signals, and then through calculation, eliminates the capacitance change caused by the interference signal of the peripheral environment, and obtains the actual capacitance change of the microphone caused by smoking. The principle of self-capacitance detection is to convert the capacitance change of the microphone into voltage change, which is then amplified by the operational amplifier and converted into digital signals by the ADC for calculation and processing. That is, the driving signal is the charging voltage of the capacitor, and the voltage of the capacitance change is obtained at the output end of the operational amplifier CA, thereby realizing the conversion of capacitance change into voltage change.

[0090] As a specific example, this example uses hand touching the PCB channel routing or microphone pin to simulate interference signals, and uses the suction device to generate negative pressure to the air microphone to simulate the actual smoking action. When the main control chip is powered on, the capacitance detection channel will be calibrated. After the capacitance data is calibrated, there will be a reference value. The detection value after capacitance detection is compared with the reference value, and the difference is the capacitance data C1 and C2 in Table 1 below. When there is no interference and inhalation action, the two capacitance data theoretically jump around 0, and the set threshold of the microphone capacitance data change is 500. If the data changes by more than 500, the electronic cigarette will start the heating wire.

[0091] According to the design of the present invention, C2=Cmic+Cr+Cg; C1=Cr+Cg, when the hand touches the capacitance detection pin wiring or the V+ end of the pin of the empty microphone, Cg will increase to varying degrees. At this time, it can be seen that the data of C1 and C2 are correspondingly increased. After the difference processing, the capacitance change data of the microphone head is small, which does not meet the preset threshold requirement of 500, so the heating wire of the electronic cigarette does not work, and the interference signal is filtered out. When the suction device simulates the smoking action, the capacitance of the microphone head will increase. It can be seen from Table 1 below that C2 changes a lot, C1 hardly changes, and the difference between the two also exceeds the set threshold of 500, so the electronic cigarette can be started normally. It can also be proved from the actual test data that the present invention can effectively filter out the capacitance changes caused by interference signals and improve the anti-interference ability of the microphone head's capacitance detection.

[0092] Table 1: Microphone capacitance data for eliminating interference obtained according to the method in Example 1 and the electronic cigarette of this embodiment

[0093]

[0094] Note: The data in the table are converted from capacitance to voltage (capacitance detection data) and obtained by ADC conversion. There is no unit and it can be understood that its size corresponds to the size of the voltage.

[0095] Embodiment 4: Further as Figure 8 As shown, as the same inventive concept, this embodiment provides an analog front end for implementing the electronic cigarette capacitive microphone capacitance detection method described in the first embodiment, including an analog-to-digital converter ADC, a first op amp CA1, a first switch SW1, a second switch SW2, a third switch SW3, a capacitance detection pin and a mode control pin. Specifically:

[0096] The analog-to-digital converter ADC, the first op amp CA1, and the capacitance detection pin are connected in sequence, one end of the second switch SW2 is connected between the first op amp CA1 and the capacitance detection pin, the other end of the second switch SW2 and one end of the first switch SW1 are connected to the driving signal source, the other end of the first switch SW1 and one end of the third switch SW3 are connected to the mode control pin, and the other end of the third switch SW3 is grounded. Furthermore, the capacitance detection pin and the mode control pin are respectively connected to the positive and negative electrodes of the capacitive microphone head, and the analog-to-digital converter ADC is connected to the main control chip of the electronic cigarette.

[0097] In some embodiments, it also includes a second amplifier CA2, a fourth switch SW4, a fifth switch SW5 and a sixth switch SW6. Specifically, the analog-to-digital converter ADC, the second amplifier CA2 and the mode control pin are connected in sequence. One end of the fourth switch SW4 is connected to one end of the second switch SW2 and the input end of the first amplifier CA1, and the other end is connected to the capacitance detection pin. One end of the fifth switch SW5 is connected between the capacitance detection pin and the fourth switch SW4, and the other end is grounded; one end of the sixth switch SW6 is connected to one end of the first switch SW1 and the input end of the second amplifier CA2, and the other end is connected to the mode control pin.

[0098] In this embodiment, the acquisition channel is divided into two channels, namely, a positive capacitance data acquisition channel (a channel composed of V+, a capacitance detection pin, a first op amp CA1, and an analog-to-digital converter ADC) and a negative capacitance data acquisition channel (a channel composed of V-, a mode control pin, a second op amp CA2, and an analog-to-digital converter ADC), thereby realizing the acquisition of the same-drive capacitance data and the capacitance data to ground of the two poles of the capacitive microphone in step S600 to step S800 in embodiment 1.

[0099] Specifically, the following three steps are completed in one capacitance detection scanning cycle:

[0100] 1) The first switch SW1, the second switch SW2, the fourth switch SW4, and the sixth switch SW6 are closed (ON), the third switch SW3 and the fifth switch SW5 are opened (OFF), and the capacitance data to ground of the two capacitance detection channels are detected at the same time, and the scanning waveforms, frequencies, phases, and voltage amplitudes at both ends are completely consistent. At this time, corresponding to step S600 in embodiment 1, the positive electrode co-driven capacitance data and the negative electrode co-driven capacitance data of the capacitive microphone are obtained.

[0101] 2) The fourth switch SW4, the third switch SW3, and the second switch SW2 are closed (ON), the fifth switch SW5, the sixth switch SW6, and the first switch SW1 are opened (OFF), and the capacitance data of the positive electrode capacitance data acquisition channel to ground is detected, and the negative electrode capacitance data acquisition channel is grounded. At this time, corresponding to step S700 in the first embodiment, the capacitance data of the positive electrode of the capacitive microphone to ground is obtained.

[0102] 3) The fifth switch SW5, the sixth switch SW6, and the first switch SW1 are closed (ON), the fourth switch SW4, the third switch SW3, and the second switch SW2 are opened (OFF), and the capacitance data of the negative electrode capacitance data acquisition channel to ground is detected, and the positive electrode capacitance data acquisition channel is grounded. At this time, corresponding to step S800 in the first embodiment, the capacitance data of the negative electrode of the capacitive microphone to ground is obtained.

[0103] Embodiment 5: Further as Figure 7As shown, as the same inventive concept, this embodiment provides an electronic cigarette, including the analog front end described in Example 4, and also including a main control chip and a capacitive microphone. Among them, the analog front end is embedded in the main control chip, the capacitance detection pin of the analog front end is connected to the positive pole of the capacitive microphone, and the mode control pin of the analog front end is connected to the negative pole of the capacitive microphone. Furthermore, the main control chip performs a difference operation on the capacitance data to ground of the capacitive microphone output by the analog-to-digital converter of the analog front end and the same-drive capacitance data to obtain the capacitance data of the capacitive microphone to eliminate interference, and uses the capacitance data that eliminates interference that exceeds the set threshold as the judgment smoking condition to start the heating of the electronic cigarette. At the same time, the main control chip can also obtain the same-drive capacitance data and the capacitance data to ground of the two poles of the capacitive microphone in Example 1, and conduct a specific analysis of the interference factors affecting the capacitive microphone.

[0104] In this embodiment, the positive electrode (V+) of the capacitive microphone is connected to the MIC pin of the main control chip U2, and the negative electrode (V-) is directly connected to the MODE pin of the main control chip U2. Among them, the MIC pin of the main control chip U2 corresponds to the capacitance detection pin of the analog front end, and the MODE pin of the main control chip U2 corresponds to the mode control pin of the analog front end.

[0105] As shown in Table 2, the actual device of this embodiment obtains dual-channel capacitance detection data according to the method in the first implementation, and uses hand-touching PCB board channel routing or empty microphone pin to simulate interference signals, and generates negative pressure to the empty microphone through the suction device to simulate the actual smoking action. When the main control chip is powered on, the two capacitance detection channels will be calibrated. After the capacitance data is calibrated, there will be a reference value. The detection value after the capacitance detection is started is compared with the reference value, and the difference generated is the data value in the following table. When there is no interference and inhalation, the 4 capacitance data theoretically jump around 0, and the capacitance data setting threshold can be set to 500 to ensure that the light suction microphone can start normally. From the data in Table 2 below, various interference situations and data parameters during normal operation can be clearly determined. Among them, in the table: capacitance detection channel 1 is the positive capacitance data acquisition channel, and capacitance detection channel 2 is the negative capacitance data acquisition channel.

[0106] From the data in the following table, we can conclude that:

[0107] 1) When the positive electrode-to-ground capacitance data and the positive electrode co-drive capacitance data both exceed the set threshold, and the negative electrode-to-ground capacitance data and the negative electrode co-drive capacitance data are both less than the set threshold, there is wiring interference or pin interference on the positive electrode of the capacitive microphone;

[0108] 2) When the positive electrode-to-ground capacitance data and the positive electrode co-drive capacitance data are both less than the set threshold, and the negative electrode-to-ground capacitance data and the negative electrode co-drive capacitance data are both greater than the set threshold, there is wiring interference or pin interference on the negative electrode of the capacitive microphone;

[0109] 3) When the positive electrode-to-ground capacitance data and the positive electrode co-driven capacitance data both exceed the set threshold, and the negative electrode-to-ground capacitance data and the negative electrode co-driven capacitance data both exceed the set threshold, there is routing interference or pin interference on the positive and negative electrodes of the capacitive microphone.

[0110] Table 2 Comparison table of dual-channel capacitance detection data and capacitance change reasons obtained according to the method in implementation one

[0111]

[0112] Note: The data in the table are converted from capacitance to voltage (capacitance detection data) and obtained by ADC conversion. There is no unit and it can be understood that its size corresponds to the size of the voltage.

[0113] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flow involved in the above embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0114] The above description is only the preferred embodiment of the present invention. It is known to those skilled in the art that various changes or equivalent substitutions may be made to these features and embodiments without departing from the spirit and scope of the present invention. In addition, under the teachings of the present invention, these features and embodiments may be modified to adapt to specific circumstances and materials without departing from the spirit and scope of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of this application belong to the protection scope of the present invention.

Claims

1. A method for detecting capacitance of an electronic cigarette capacitive microphone, characterized in that: The steps include: Before the capacitance detection cycle starts, disconnect the negative electrode of the capacitive microphone from the ground terminal, and input the same driving signal to both the positive and negative electrodes of the capacitive microphone; Collecting capacitance data of the positive electrode of the capacitive microphone in the first period of the capacitance detection period, amplifying and performing analog-to-digital conversion on the collected capacitance data, and obtaining the same-drive capacitance data of the capacitive microphone; At the end of the first period of the capacitance detection period, the negative electrode of the capacitive microphone is connected to the ground terminal, and different driving signals are input to the positive electrode and the negative electrode of the capacitive microphone respectively; In the latter period of the capacitance detection period, the capacitance data of the positive electrode of the capacitive microphone is collected, and the collected capacitance data is amplified and analog-to-digital converted to obtain the capacitance data of the capacitive microphone to the ground; Performing a difference operation on the capacitance data of the capacitive microphone to the ground and the capacitance data of the same drive to obtain the capacitance data of the capacitive microphone after eliminating interference; The obtained same-drive capacitance data includes wiring interference capacitance data of the capacitive microphone and pin interference capacitance data of the capacitive microphone; The obtained capacitance data to ground includes capacitance data of the capacitive microphone for eliminating interference, wiring interference capacitance data of the capacitive microphone, and pin interference capacitance data of the capacitive microphone.

2. The electronic cigarette capacitive microphone capacitance detection method according to claim 1, characterized in that: Inputting different driving signals to the positive electrode and the negative electrode of the capacitive microphone respectively comprises the following steps: At the end of the first period of the capacitance detection period, a low level signal is input to the negative electrode of the capacitive microphone, and the same driving signal is input to the positive electrode of the capacitive microphone; the same driving signal is a voltage square wave signal.

3. The electronic cigarette capacitive microphone capacitance detection method according to claim 1, characterized in that: Inputting different driving signals to the positive electrode and the negative electrode of the capacitive microphone respectively comprises the following steps: At the end of the first period of the capacitance detection period, the positive electrode of the capacitive microphone inputs a driving signal that alternates between the same driving signal and a low-level signal, and the negative electrode of the capacitive microphone inputs a driving signal that alternates between the low-level signal and the same driving signal; the same driving signal is a voltage square wave signal.

4. The electronic cigarette capacitive microphone capacitance detection method according to claim 1, characterized in that: The following steps are also included: It is determined whether the capacitance data of the capacitive microphone for eliminating interference exceeds a set threshold; if so, heating of the electronic cigarette is started; otherwise, heating of the electronic cigarette is not started.

5. The electronic cigarette capacitive microphone capacitance detection method according to claim 1, characterized in that: The method also includes collecting the same-drive capacitance data and the capacitance data to ground of the two poles of the capacitive microphone, and the steps include: Collecting capacitance data of the two electrodes of the capacitive microphone in the first period of the next capacitance detection period, amplifying and performing analog-to-digital conversion on the collected capacitance data, and obtaining positive electrode co-driven capacitance data and negative electrode co-driven capacitance data of the capacitive microphone; At the end of the first period of the next capacitance detection cycle, the negative electrode of the capacitive microphone is connected to the ground terminal, a corresponding driving signal is input to the positive electrode of the capacitive microphone, and the driving signal corresponding to the negative electrode is cut off; in the second period of the next capacitance detection cycle, capacitance data of the positive electrode of the capacitive microphone is collected, and the collected capacitance data is amplified and analog-to-digital converted to obtain capacitance data of the positive electrode of the capacitive microphone to the ground; After completing the collection of the capacitance data of the positive electrode to the ground of the capacitive microphone, the connection between the capacitive microphone and the ground terminal is set from the negative electrode to the connection between the positive electrode and the ground terminal, the drive signal corresponding to the positive electrode is cut off, and the corresponding drive signal is input to the negative electrode of the capacitive microphone; the capacitance data of the negative electrode of the capacitive microphone is collected in the latter period of the next capacitance detection period, and the collected capacitance data is amplified and analog-to-digital converted to obtain the capacitance data of the negative electrode of the capacitive microphone to the ground.

6. The electronic cigarette capacitive microphone capacitance detection method according to claim 5, characterized in that: According to the obtained capacitance data of the negative electrode and the positive electrode of the capacitive microphone, the interference of the capacitive microphone is judged as follows: When the positive electrode-to-ground capacitance data and the positive electrode co-driven capacitance data both exceed the set threshold, and the negative electrode-to-ground capacitance data and the negative electrode co-driven capacitance data are both less than the set threshold, there is wiring interference or pin interference at the positive electrode of the capacitive microphone; When the positive electrode-to-ground capacitance data and the positive electrode co-driven capacitance data are both less than the set threshold, and the negative electrode-to-ground capacitance data and the negative electrode co-driven capacitance data are both greater than the set threshold, there is wiring interference or pin interference at the negative electrode of the capacitive microphone; When the positive electrode-to-ground capacitance data and the positive electrode co-driven capacitance data both exceed the set threshold, and the negative electrode-to-ground capacitance data and the negative electrode co-driven capacitance data both exceed the set threshold, there is routing interference or pin interference in the positive and negative electrodes of the capacitive microphone.

7. An analog front end, used to implement the electronic cigarette capacitive microphone capacitance detection method according to any one of claims 1 to 6, characterized in that: It includes an analog-to-digital converter ADC, a first operational amplifier CA1, a first switch SW1, a second switch SW2, a third switch SW3, a capacitance detection pin and a mode control pin; The analog-to-digital converter ADC, the first op amp CA1, and the capacitance detection pin are connected in sequence, one end of the second switch SW2 is connected between the first op amp CA1 and the capacitance detection pin, the other end of the second switch SW2 and one end of the first switch SW1 are both connected to a driving signal source, the other end of the first switch SW1 and one end of the third switch SW3 are both connected to the mode control pin, and the other end of the third switch SW3 is grounded; The capacitance detection pin and the mode control pin are respectively connected to the positive electrode and the negative electrode of the capacitive microphone, and the analog-to-digital converter ADC is connected to the main control chip of the electronic cigarette.

8. An analog front end according to claim 7, characterized in that: Also includes a second operational amplifier CA2, a fourth switch SW4, a fifth switch SW5 and a sixth switch SW6; The analog-to-digital converter ADC, the second op amp CA2, and the mode control pin are connected in sequence; one end of the fourth switch SW4 is connected to one end of the second switch SW2 and the input end of the first op amp CA1, and the other end thereof is connected to the capacitance detection pin; one end of the fifth switch SW5 is connected between the capacitance detection pin and the fourth switch SW4, and the other end thereof is grounded; one end of the sixth switch SW6 is connected to the other end of the first switch SW1 and the input end of the second op amp CA2, and the other end thereof is connected to the mode control pin.

9. An electronic cigarette, characterized in that: The analog front end comprises the analog front end as claimed in any one of claims 7 to 8, and further comprises a main control chip and a capacitive microphone; the analog front end is embedded in the main control chip, a capacitance detection pin of the analog front end is connected to a positive electrode of the capacitive microphone, and a mode control pin of the analog front end is connected to a negative electrode of the capacitive microphone; The main control chip performs a difference operation on the capacitance data of the capacitive microphone to ground and the capacitance data of the same drive output by the analog-to-digital converter of the analog front end to obtain the capacitance data of the capacitive microphone after eliminating interference, and uses the capacitance data after eliminating interference that exceeds a set threshold as a smoking condition to start heating the electronic cigarette.