Atomizer identification method based on single-chip microcomputer and electronic cigarette
By switching the analog pull-up resistor on the first pin of the microcontroller, the voltage value of the positive electrode power supply terminal of the electronic cigarette is solved, and the problem of setting pull-up resistors in the prior art is solved, achieving cost reduction and effective identification effect.
Patent Information
- Application Number
- CN202411736195.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-02-14
AI Technical Summary
In the prior art, when identifying whether an atomizer is installed in an electronic cigarette, a pull-up resistor is required, resulting in an increase in cost.
By switching the analog pull-up resistor on the first pin of the microcontroller, the voltage value at the positive electrode power supply terminal is obtained to identify whether an atomizer is installed in the electronic cigarette.
There is no need to set a peripheral pull-up resistor, which reduces the cost and realizes effective identification of the atomizer in the electronic cigarette.
Smart Images

Figure CN119423419A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic cigarettes, and in particular to an atomizer identification method based on a single chip microcomputer and an electronic cigarette. Background Art
[0002] When using electronic cigarettes, when you need to smoke, you must first identify whether an atomizer is installed in the electronic cigarette.
[0003] like Figure 7 As shown, when identifying whether an atomizer is installed in an electronic cigarette during smoking, an eighth resistor is set on the positive power supply terminal where the atomizer is installed in the electronic cigarette, and the state of the positive power supply terminal is further obtained by the single-chip microcomputer to determine whether an atomizer is installed in the electronic cigarette. Although this method can determine whether an atomizer is installed in the electronic cigarette before smoking, it requires a pull-up resistor (i.e., the eighth resistor) to achieve this, which increases the cost.
[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0005] In view of the above-mentioned deficiencies in the prior art, the purpose of the present invention is to provide an atomizer identification method and an electronic cigarette based on a single-chip microcomputer, so as to solve the problem in the prior art that a pull-up resistor is required to determine whether an atomizer is installed in the electronic cigarette before smoking, which increases the cost.
[0006] The technical solution adopted by the present invention to solve the technical problem is: to provide an atomizer identification method based on a single-chip microcomputer, which is used to identify whether an atomizer is installed in an electronic cigarette, wherein the electronic cigarette comprises a positive power supply terminal and a negative power supply terminal for installing the atomizer, and the single-chip microcomputer comprises a first pin, which is connected to the positive power supply terminal, and the first pin can switch out an analog pull-up resistor. The atomizer identification method comprises:
[0007] Acquire the state of the electronic cigarette, where the state of the electronic cigarette includes a smoking state and a non-smoking state;
[0008] When the electronic cigarette is in a smoking state, the first pin switches out an analog pull-up resistor, wherein the first pin outputs a high level signal when switching out the analog pull-up resistor;
[0009] When the first pin switches out the analog pull-up resistor, obtaining a first voltage value of the positive power supply terminal;
[0010] Whether an atomizer is installed in the electronic cigarette is identified based on the first voltage value of the positive power supply terminal.
[0011] A further configuration of the present invention is that when the electronic cigarette is in a non-smoking state, the first pin is controlled to switch out an analog pull-down resistor, wherein the first pin outputs a low level signal when switching out the analog pull-down resistor.
[0012] According to a further configuration of the present invention, the first voltage value is positively correlated with the power supply voltage of the single chip microcomputer.
[0013] According to a further configuration of the present invention, when the electronic cigarette is in a smoking state, the first pin is used to obtain a first voltage value of the positive power supply terminal.
[0014] The present invention further provides an electronic cigarette, the electronic cigarette comprising a positive power supply terminal and a negative power supply terminal for installing an atomizer, and the electronic cigarette further comprises:
[0015] Battery components;
[0016] A switch module is connected to the battery assembly and the positive power supply terminal, wherein when the switch module is turned on, the battery assembly supplies power to the positive power supply terminal;
[0017] An airflow sensing module, used for outputting a first electrical signal when smoking;
[0018] A single chip microcomputer is connected to the airflow sensing module, the single chip microcomputer includes a first pin, the first pin can switch out an analog pull-up resistor, the first pin is connected to the connection path between the switch module and the positive power supply end, the single chip microcomputer is used to receive the first electrical signal when the user smokes, and output a first control signal to the switch module according to the first electrical signal to turn on the switch module, and the single chip microcomputer is also used to execute the atomizer identification method based on the single chip microcomputer as described above.
[0019] According to a further configuration of the present invention, when the electronic cigarette is in the non-smoking state, the first pin switches out an analog pull-down resistor, wherein the first pin outputs a low level signal when switching out the analog pull-down resistor.
[0020] According to a further configuration of the present invention, the first voltage value is positively correlated with the power supply voltage of the single chip microcomputer.
[0021] According to a further configuration of the present invention, when the electronic cigarette is in a smoking state, the first pin is used to obtain a first voltage value of the positive power supply terminal.
[0022] According to a further configuration of the present invention, a first resistor is provided on the first pin, one end of the first resistor is connected to the connection path between the switch module and the positive power supply end, and the other end of the first resistor is connected to the first pin of the single-chip microcomputer.
[0023] In a further configuration of the present invention, the electronic cigarette further comprises:
[0024] A charging module, connected to the battery assembly and the single-chip microcomputer, and used to charge the batteries in the battery assembly;
[0025] The single chip microcomputer is further configured to output a second control signal to the charging module according to the first electrical signal, wherein the charging module stops charging the battery when receiving the second control signal.
[0026] The beneficial effects of the present invention are:
[0027] The present invention discloses an atomizer identification method based on a single-chip microcomputer and an electronic cigarette. The atomizer identification method is used to identify whether an atomizer is installed in the electronic cigarette. The electronic cigarette includes a positive power supply terminal and a negative power supply terminal for installing the atomizer. The single-chip microcomputer includes a first pin, and the first pin is connected to the positive power supply terminal. The atomizer identification method includes: obtaining the state of the electronic cigarette, and the state of the electronic cigarette includes a smoking state and a non-smoking state; when the electronic cigarette is in the smoking state, controlling the first pin to switch out an analog pull-up resistor, wherein the first pin outputs a high-level signal when the analog pull-up resistor is switched out; when the first pin switches out the analog pull-up resistor, obtaining a first voltage value of the positive power supply terminal; and identifying whether an atomizer is installed in the electronic cigarette based on the first voltage value of the positive power supply terminal. In the technical solution of the present invention, when identifying whether an atomizer is installed in the electronic cigarette before smoking, the first pin switches out an analog pull-up resistor, wherein, when an atomizer is installed in the electronic cigarette, the analog pull-up resistor is connected to the atomizer, and because the atomizer has a certain resistance, it can be determined whether the electronic cigarette is installed with the atomizer according to the first voltage value on the positive power supply terminal, without setting a peripheral pull-up resistor, so that the cost is reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary personnel in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.
[0029] Figure 1 The present invention is a flow chart of the atomizer identification method based on a single chip microcomputer.
[0030] Figure 2 It is a principle block diagram of the electronic cigarette of the present invention.
[0031] Figure 3It is a circuit structure diagram of a single chip microcomputer and its peripherals in one embodiment of the present invention.
[0032] Figure 4 1 is a circuit diagram of an airflow sensing module in one embodiment of the present invention.
[0033] Figure 5 1 is a circuit diagram of a switch module in one embodiment of the present invention.
[0034] Figure 6 It is a circuit structure diagram of a charging module in one embodiment of the present invention.
[0035] Figure 7 This is an atomizer identification circuit in the prior art.
[0036] The marks in the attached drawings are: 10, battery assembly; 11, switch module; 12, airflow sensing module; 13, single-chip microcomputer; 14, positive power supply terminal; 15, atomizer; 16, negative power supply terminal; 17, charging module; Q1, first switch tube; Q2, second switch tube; U1, first chip; S1, first air pressure sensor; R1, first resistor; R2, second resistor; R3, third resistor; R4, fourth resistor; R5, fifth resistor; R6, sixth resistor; R7, seventh resistor; R8, eighth resistor; R9, ninth resistor;
[0037] R11, the eleventh resistor; R12, the twelfth resistor; C1, the first capacitor; C2, the second capacitor; C3, the third capacitor; VCC, the first power supply terminal; VDD, the second power supply terminal. DETAILED DESCRIPTION
[0038] In order to have a clearer understanding of the technical features, purposes and effects of the present invention, the specific embodiments of the present invention are now described in detail with reference to the accompanying drawings. In the following description, it should be understood that the directions or positional relationships indicated by "front", "back", "up", "down", "left", "right", "longitudinal", "horizontal", "vertical", "horizontal", "top", "bottom", "inside", "outside", "head", "tail", etc. are based on the directions or positional relationships shown in the accompanying drawings, are constructed and operated in a specific direction, and are only for the convenience of describing the present technical solution, rather than indicating that the device or element referred to must have a specific direction, and therefore cannot be understood as a limitation to the present invention.
[0039] When the electronic cigarette is in use, when the user smokes the electronic cigarette, it is necessary to detect whether the atomizer 15 is installed in the electronic cigarette to ensure that the atomizer 15 is installed in the electronic cigarette. Figure 7 As shown, it is a circuit diagram of a method for identifying an atomizer 15 in an electronic cigarette. Figure 7The circuit diagram shown includes an eighth resistor, a ninth resistor, a second switch tube, an eleventh resistor and a twelfth resistor; wherein one end of the eighth resistor is connected to the battery, the other end of the eighth resistor is connected to the positive power supply terminal 14 for installing the atomizer 15, the source of the second switch tube is connected to one end of the eighth resistor, the drain of the second switch tube is connected to the other end of the eighth resistor, one end of the eleventh resistor is connected to the gate of the second switch tube, the other end of the eleventh resistor is connected to the single-chip computer 13, one end of the twelfth resistor is connected to the source of the second switch tube, the other end of the twelfth resistor is connected to the gate of the second switch tube, one end of the ninth resistor is connected to the connection path between the eighth resistor and the positive power supply terminal 14 for installing the atomizer 15, the ninth resistor is connected to the single-chip computer 13, wherein the second switch tube is a P-MOS tube.
[0040] When the atomizer 15 is identified by the above-mentioned identification method for the atomizer 15 in the electronic cigarette, the second voltage value of the positive power supply terminal 14 for installing the atomizer 15 is obtained by the single-chip computer 13 through the ninth resistor, wherein when the second voltage value is at a high level, it indicates that the atomizer 15 is not installed, and when the second voltage value is at a low level, it indicates that the atomizer 15 is installed. Although this method can identify whether the atomizer 15 is installed in the electronic cigarette, it requires a pull-up resistor (i.e., the eighth resistor), which increases the cost.
[0041] Based on the above technical problems, the present invention provides an atomizer identification method based on a single-chip microcomputer, which is used to identify whether an atomizer is installed in an electronic cigarette. The electronic cigarette includes a positive power supply terminal and a negative power supply terminal for installing the atomizer. The single-chip microcomputer includes a first pin, which is connected to the positive power supply terminal. The first pin can switch out an analog pull-up resistor and an analog pull-down resistor, such as Figure 1 As shown, the atomizer identification method includes the steps of:
[0042] S101, obtaining the state of the electronic cigarette, where the state of the electronic cigarette includes a smoking state and a non-smoking state;
[0043] S102, when the electronic cigarette is in a smoking state, controlling the first pin to switch out an analog pull-up resistor, wherein the first pin outputs a high level signal when switching out the analog pull-up resistor;
[0044] S103, when the first pin switches out the analog pull-up resistor, obtaining a first voltage value of the positive power supply terminal;
[0045] S104: Identify whether an atomizer is installed in the electronic cigarette based on the first voltage value of the positive power supply terminal.
[0046] The electronic cigarette includes a smoking state and a non-smoking state. The electronic cigarette is provided with an airflow sensing module, wherein when the user smokes, the airflow sensing module in the electronic cigarette outputs a high-level signal when the user smokes, and when the single-chip microcomputer in the electronic cigarette receives the high-level signal output by the airflow sensing module, it considers that the electronic cigarette is in the smoking state at this time; on the contrary, when the user does not smoke, the airflow sensing module in the electronic cigarette outputs a low-level signal, and when the single-chip microcomputer in the electronic cigarette receives the low-level signal output by the airflow sensing module, it considers that the electronic cigarette is in the non-smoking state at this time, that is, the electronic cigarette is in the sleeping state.
[0047] In this embodiment, when the electronic cigarette is in the smoking state, the single-chip microcomputer controls the first pin thereon to switch out the analog pull-up resistor and output a high-level signal through the first pin. Since the first pin is connected to the positive power supply terminal for installing the atomizer, the high-level signal output by the first pin will be output to the positive power supply terminal; thereafter, the first voltage value on the positive power supply terminal is obtained by the single-chip microcomputer, and whether an atomizer is installed in the electronic cigarette is identified based on the first voltage value.
[0048] Specifically, when an atomizer is installed in the electronic cigarette, the high-level signal output by the first pin to the positive power supply terminal is output to the negative ground terminal used to install the atomizer. At this time, the first voltage value obtained by the microcontroller is a low-level signal; when the atomizer is not installed in the electronic cigarette, the positive power supply terminal and the negative power supply terminal are disconnected, and the first voltage value obtained by the microcontroller is a high-level signal.
[0049] It can be seen that when the atomizer identification method based on the single-chip microcomputer identifies whether an atomizer is installed in the electronic cigarette, the single-chip microcomputer is used to simulate the function of the pull-up resistor to realize the identification of whether an atomizer is installed in the electronic cigarette, thereby reducing an actual pull-up resistor (i.e., the first pull-up resistor mentioned above), thereby reducing the cost.
[0050] like Figure 7 The 19th pin in the microcontroller shown is the first pin mentioned above.
[0051] Furthermore, the first pin can also switch out an analog pull-down resistor, such as Figure 1 As shown, the atomizer identification method also includes the steps of:
[0052] S105 . When the electronic cigarette is in a non-smoking state, control the first pin to switch out an analog pull-down resistor, wherein the first pin outputs a low-level signal when the analog pull-down resistor is switched out.
[0053] exist Figure 7In the circuit diagram shown, when the electronic cigarette is in a non-smoking state, because the battery in the electronic cigarette is still connected to the positive power supply terminal via the first pull-up resistor, when the electronic cigarette is in a non-smoking state, if an atomizer is installed in the electronic cigarette, there is a static current on the atomizer, there is a power consumption loss, and the standby time of the electronic cigarette is shortened.
[0054] In the present embodiment, when the electronic cigarette is in a non-smoking state, the single-chip microcomputer further switches the first pin to have an analog pull-down resistor, and the first pin outputs a low-level signal to the positive power supply terminal. At this time, even if an atomizer is installed in the electronic cigarette, there will be no static current on the atomizer, thereby increasing the standby time of the electronic cigarette.
[0055] like Figure 7 The 19th pin in the microcontroller shown is the first pin mentioned above.
[0056] In some embodiments, the first voltage value is positively correlated with the power supply voltage of the single chip microcomputer.
[0057] Specifically, when the first voltage value is less than 0.3 times the power supply voltage of the single-chip microcomputer, the first voltage value obtained by the single-chip microcomputer is a low-level signal; when the first voltage value is higher than or equal to 0.3 times the power supply voltage of the single-chip microcomputer, the first voltage value obtained by the single-chip microcomputer is a high-level signal; wherein, when an atomizer is installed in the electronic cigarette, the first voltage value = (atomizer resistance / resistance of the analog pull-up resistor) × power supply voltage of the single-chip microcomputer.
[0058] In a specific embodiment, the power supply voltage of the single-chip microcomputer is positive 4V, the resistance of the atomizer is about 1Ω (calculated as 1Ω during calculation), and the resistance of the simulated internal pull-up resistor is 30KΩ. If an atomizer is installed in the electronic cigarette, the first voltage value = (1 / 30000) × 4 = 0.00013V, 0.00013 is less than 1.2 (0.3 × 4 = 1.2). Therefore, when the first voltage value obtained by the single-chip microcomputer is 0.00013V, an atomizer is installed in the electronic cigarette.
[0059] In some embodiments, in S103, the first pin is used to obtain a first voltage value of the positive power supply terminal.
[0060] In this embodiment, when obtaining the first voltage value of the positive power supply terminal, it can be directly obtained through the first pin without occupying other pins on the single chip computer.
[0061] In some embodiments, Figure 2 As shown, the present invention further provides an electronic cigarette, which includes a positive power supply terminal 14 and a negative power supply terminal 16 for installing an atomizer 15 , and the electronic cigarette also includes a battery assembly 10 , a switch module 11 , an airflow sensing module 12 and a single-chip computer 13 .
[0062] Specifically, the switch module 11 is connected to the battery assembly 10 and the positive power supply terminal 14, wherein when the switch module 11 is turned on, the battery assembly 10 supplies power to the positive power supply terminal 14; the airflow sensing module 12 is used to output a first electrical signal when smoking; the single-chip microcomputer 13 is connected to the airflow sensing module 12, and the single-chip microcomputer 13 includes a first pin, the first pin can switch out an analog pull-up resistor, and the first pin is connected to the connection path between the switch module 11 and the positive power supply terminal 14. The single-chip microcomputer 13 is used to receive the first electrical signal when the user smokes, and output a first control signal to the switch module 11 according to the first electrical signal to turn on the switch module 11. The single-chip microcomputer 13 is also used to execute the atomizer identification method based on the single-chip microcomputer as described above.
[0063] Specifically, when the electronic cigarette is in the smoking state, the first pin of the single-chip microcomputer 13 switches out the analog pull-up resistor and outputs a high-level signal through the first pin. Since the first pin is connected to the positive power supply terminal 14 for installing the atomizer 15, the high-level signal output by the first pin will be output to the positive power supply terminal 14; thereafter, the first voltage value on the positive power supply terminal 14 is obtained through the single-chip microcomputer 13, and it is identified whether the atomizer 15 is installed in the electronic cigarette according to the first voltage value.
[0064] In this embodiment, when an atomizer 15 is installed in the electronic cigarette, the high-level signal output by the first pin to the positive power supply terminal 14 is output to the negative ground terminal for installing the atomizer 15. At this time, the first voltage value obtained by the single-chip microcomputer 13 is a low-level signal; when the atomizer 15 is not installed in the electronic cigarette, the positive power supply terminal 14 and the negative power supply terminal 16 are disconnected, and the first voltage value obtained by the single-chip microcomputer 13 is a high-level signal.
[0065] It can be seen that when the single-chip microcomputer-based atomizer identification method identifies whether an atomizer 15 is installed in the electronic cigarette, the single-chip microcomputer 13 is used to simulate the pull-up resistor to realize the identification of whether an atomizer 15 is installed in the electronic cigarette, thereby reducing an actual pull-up resistor (i.e., the first pull-up resistor mentioned above), thereby reducing the cost.
[0066] In a specific embodiment, if Figure 5 As shown, the switch module 11 may include a first switch tube Q1, a fifth resistor and a sixth resistor, wherein the source of the first switch tube Q1 is connected to the battery, the source of the first switch tube Q1 is also connected to one end of the fifth resistor, the other end of the fifth resistor is connected to the gate of the first switch tube Q1, the gate of the first switch tube Q1 is also connected to one end of the sixth resistor, and the other end of the sixth resistor is connected to the microcontroller 13.
[0067] In this embodiment, the first switch tube Q1 may be, but is not limited to, a P-MOS tube (P-channel Metal-Oxide-Semiconductor Field-Effect Transistor).
[0068] In a specific embodiment, if Figure 4 As shown, the airflow sensing module 12 may include a seventh resistor, a third capacitor and a first air pressure sensor; wherein, one end of the seventh resistor is connected to the second power supply end, the other end of the seventh resistor is connected to the third pin of the first air pressure sensor, one end of the third capacitor is connected to the third pin of the first air pressure sensor, the other end of the third capacitor is grounded, the fourth pin of the first air pressure sensor is grounded, the first pin of the first air pressure sensor is grounded, and the second pin of the first air pressure sensor is connected to the single-chip computer 13.
[0069] In this embodiment, when the user smokes, the first air pressure sensor outputs a first electrical signal to the single chip computer 13. The first air pressure sensor may be, but is not limited to, an air pressure sensor of model MSPC01-GDLS19.
[0070] When the user smokes, the single-chip microcomputer 13 receives the first electrical signal output by the airflow sensing module 12. After receiving the first electrical signal output by the airflow sensing module 12, the single-chip microcomputer 13 outputs a third control signal to the first switch tube Q1 to turn on the first switch tube Q1. At this time, the battery supplies power to the atomizer 15, and the user smokes.
[0071] In some embodiments, when the electronic cigarette is in a non-smoking state, the first pin of the single-chip microcomputer 13 switches out an analog pull-down resistor, wherein the first pin outputs a low-level signal when switching out the analog pull-down resistor. The details are as described in the above embodiment of the atomizer identification method based on a single-chip microcomputer, which will not be repeated here.
[0072] In some embodiments, Figure 5 As shown, a first resistor is arranged on the first pin of the single chip computer 13, one end of the first resistor is connected to the connection path between the switch module 11 and the positive power supply terminal 14, and the other end of the first resistor is connected to the first pin.
[0073] In this embodiment, the first resistor is a voltage-dividing resistor, which can protect the single-chip microcomputer 13 and prevent the single-chip microcomputer 13 from being burned out due to the excessive voltage of the positive power supply terminal 14 .
[0074] In some embodiments, Figure 2As shown, the electronic cigarette also includes a charging module 17, which is connected to the battery assembly 10 and the single-chip computer 13. The charging module 17 is used to charge the battery in the battery assembly 10; the single-chip computer 13 is also used to output a second control signal to the charging module 17 according to the first electrical signal, wherein the charging module 17 stops charging the battery when it receives the second control signal.
[0075] Specifically, Figure 6 As shown, the charging module 17 may include a first chip, a second resistor, a third resistor, a fourth resistor, a first capacitor and a second capacitor; wherein, one end of the second resistor is connected to the charging source when connected to the charging source, the other end of the second resistor is grounded, one end of the first capacitor is connected to the first power supply end, the other end of the first capacitor is connected to one end of the third resistor, the other end of the third resistor is grounded, the first pin of the first chip is grounded, the second pin of the first chip is connected to one end of the fourth resistor, the other end of the fourth resistor is grounded, the third pin of the first chip is grounded, the fourth pin of the first chip is connected to the first power supply end, the fifth pin of the first chip is connected to the positive electrode of the battery, one end of the second capacitor is connected to the fifth pin of the first chip, the other end of the second capacitor is grounded, and the eighth pin of the first chip is connected to the 20th pin of the microcontroller 13.
[0076] In this embodiment, the first power supply terminal can output 5V positive direct current. When charging the battery, the positive direct current connected through the 4th pin of the first chip is output to the 4th pin of the first chip through the first capacitor to charge the battery through the first chip. When charging the electronic cigarette, if it is used for smoking, the electronic cigarette needs to stop charging. Therefore, after the single-chip microcomputer 13 receives the first electrical signal, it will also output a second control signal to the first chip, and stop charging the battery when the first chip receives the second control signal.
[0077] In this embodiment, the first capacitor and the third resistor filter out interference signals in the direct current connected to the fourth pin of the first chip; the second capacitor filters out interference signals in the charging voltage output by the first chip to the battery.
[0078] In some embodiments, the model of the first chip may be but is not limited to WSCH6057T.
[0079] In some embodiments, the model of the single chip microcomputer 13 may be but is not limited to SC8F073AD720NPR. Figure 3 As shown in the figure, it is a single chip microcomputer and its peripheral circuit diagram when the single chip microcomputer model SC8F073AD720NPR is in use.
[0080] Here, it should be pointed out that the description of the above electronic cigarette embodiment is similar to the description of the embodiment of the atomizer identification method based on a single chip microcomputer, and has similar beneficial effects as the atomizer identification method based on a single chip microcomputer. For technical details not disclosed in the electronic cigarette embodiment, please refer to the description of the embodiment of the atomizer identification method based on a single chip microcomputer of the present invention for understanding.
[0081] In summary, the present invention provides an atomizer identification method and an electronic cigarette based on a single chip microcomputer, which have the following beneficial effects:
[0082] When identifying whether an atomizer 15 is installed in the electronic cigarette before smoking, the first pin switches out an analog pull-up resistor. When an atomizer 15 is installed in the electronic cigarette, the analog pull-up resistor is connected to the atomizer 15. Because the atomizer 15 has a certain resistance, it can be determined whether the electronic cigarette is installed with the first voltage value on the positive power supply terminal 14. There is no need to set a peripheral pull-up resistor, which reduces the cost.
[0083] It can be understood that the above embodiments only express the preferred implementation modes of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the patent scope of the present invention. It should be pointed out that, for ordinary technicians in this field, the above technical features can be freely combined without departing from the concept of the present invention, and several deformations and improvements can be made, which all belong to the protection scope of the present invention. Therefore, all equivalent changes and modifications made to the scope of the claims of the present invention should belong to the coverage of the claims of the present invention.
Claims
1. A method for identifying an atomizer based on a single-chip microcomputer, for identifying whether an atomizer is installed in an electronic cigarette, wherein the electronic cigarette comprises a positive power supply terminal and a negative power supply terminal for installing the atomizer, and the single-chip microcomputer comprises a first pin, wherein the first pin is connected to the positive power supply terminal, and wherein: The atomizer identification method comprises: Acquire the state of the electronic cigarette, where the state of the electronic cigarette includes a smoking state and a non-smoking state; When the electronic cigarette is in a smoking state, the first pin is controlled to switch out an analog pull-up resistor, wherein the first pin outputs a high level signal when the analog pull-up resistor is switched out; When the first pin switches out the analog pull-up resistor, obtaining a first voltage value of the positive power supply terminal; Whether an atomizer is installed in the electronic cigarette is identified based on the first voltage value of the positive power supply terminal.
2. The method for identifying an atomizer based on a single chip microcomputer according to claim 1, characterized in that: When the electronic cigarette is in a non-smoking state, the first pin is controlled to switch out an analog pull-down resistor, wherein the first pin outputs a low level signal when switching out the analog pull-down resistor.
3. The method for identifying an atomizer based on a single chip microcomputer according to claim 1, characterized in that: The first voltage value is positively correlated with the power supply voltage of the single chip computer.
4. The method for identifying an atomizer based on a single chip microcomputer according to claim 1, characterized in that: When the electronic cigarette is in a smoking state, the first pin is used to obtain a first voltage value of the positive power supply terminal.
5. An electronic cigarette, comprising a positive power supply terminal and a negative power supply terminal for installing an atomizer, characterized in that: The electronic cigarette also includes: Battery components; A switch module is connected to the battery assembly and the positive power supply terminal, wherein when the switch module is turned on, the battery assembly supplies power to the positive power supply terminal; An airflow sensing module, used for outputting a first electrical signal when smoking; A single-chip microcomputer is connected to the airflow sensing module, the single-chip microcomputer includes a first pin, the first pin is connected to the connection path between the switch module and the positive power supply terminal, the single-chip microcomputer is used to receive the first electrical signal when the user smokes, and output a first control signal to the switch module according to the first electrical signal to turn on the switch module, and the single-chip microcomputer is also used to execute the atomizer identification method based on the single-chip microcomputer as described in any one of claims 1 to 4.
6. The electronic cigarette according to claim 5, characterized in that: When the electronic cigarette is in a non-smoking state, the first pin is controlled to switch out an analog pull-down resistor, wherein the first pin outputs a low level signal when switching out the analog pull-down resistor.
7. The electronic cigarette according to claim 5, characterized in that: The first voltage value is positively correlated with the power supply voltage of the single chip computer.
8. The electronic cigarette according to claim 5, characterized in that: When the electronic cigarette is in a smoking state, the first pin is used to obtain a first voltage value of the positive power supply terminal.
9. The electronic cigarette according to any one of claims 5 to 8, characterized in that: A first resistor is provided on the first pin, one end of the first resistor is connected to the connection path between the switch module and the positive power supply end, and the other end of the first resistor is connected to the first pin of the single-chip microcomputer.
10. The electronic cigarette according to claim 9, characterized in that: The electronic cigarette also includes: A charging module, connected to the battery assembly and the single-chip microcomputer, and used to charge the batteries in the battery assembly; The single chip microcomputer is further configured to output a second control signal to the charging module according to the first electrical signal, wherein the charging module stops charging the battery when receiving the second control signal.