Disclosure of Invention
The application mainly aims to provide a temperature control method, a temperature control device, an electronic cigarette and a readable storage medium, and aims to solve the technical problems that in the continuous heating process of a heating wire of the existing electronic cigarette, the temperature in a cavity of the electronic cigarette is continuously increased, so that a capacitive sensor in the electronic cigarette is damaged, and the service life of the electronic cigarette is shortened.
In order to achieve the above object, the present application provides a temperature control method, comprising the steps of:
when the capacitance sensor of the electronic cigarette detects the air flow change, determining a voltage value corresponding to the heating wire of the electronic cigarette based on the air flow change;
determining whether to start the temperature compensation circuit based on the voltage value corresponding to the heating wire;
when the temperature compensation circuit is determined to be started, the voltage value corresponding to the heating wire is adjusted based on the temperature compensation circuit so as to control the temperature in the cavity of the electronic cigarette.
Further, when the capacitance sensor of the electronic cigarette detects the airflow change, determining a voltage value corresponding to the heating wire of the electronic cigarette based on the airflow change, including:
when the capacitance sensor of the electronic cigarette detects the airflow change, obtaining capacitance corresponding to the airflow change based on the capacitance sensor;
and controlling the capacitance to be converted into a voltage value corresponding to the heating wire of the electronic cigarette by using the capacitance-voltage conversion module of the electronic cigarette.
Further, the step of determining whether to start the temperature compensation circuit based on the voltage value corresponding to the heating wire includes:
when the voltage value corresponding to the heating wire is greater than or equal to the threshold voltage, starting the temperature compensation circuit;
and when the voltage value corresponding to the heating wire is smaller than the threshold voltage and the temperature in the cavity of the electronic cigarette is smaller than the preset temperature, closing the temperature compensation circuit.
Further, when it is determined that the temperature compensation circuit is started, the step of adjusting the voltage value corresponding to the heating wire based on the temperature compensation circuit to control the temperature in the cavity of the electronic cigarette includes:
acquiring the temperature in a cavity of the electronic cigarette, and determining a voltage adjustment value based on the temperature in the cavity and the temperature compensation circuit;
and updating the voltage value corresponding to the heating wire based on the voltage adjustment value.
Further, the step of obtaining the temperature in the cavity of the electronic cigarette and determining the voltage adjustment value based on the temperature in the cavity and the temperature compensation circuit includes:
when the temperature in the cavity of the electronic cigarette is smaller than or equal to a threshold temperature, determining that the voltage adjustment value is equal to a preset value;
and when the temperature in the cavity of the electronic cigarette is greater than a threshold temperature, determining a voltage adjustment value based on the temperature compensation circuit.
Further, the step of updating the voltage value corresponding to the heating wire based on the voltage adjustment value includes:
and subtracting the voltage value corresponding to the heating wire from the voltage adjustment value, and determining the obtained difference value as the updated voltage value of the heating wire.
Further, the temperature compensation circuit comprises a first diode group or a transistor group, a bridge circuit and a second diode group; one end of the first diode group or the transistor group is connected with a power supply, the other end of the first diode group or the transistor group is electrically connected with one end of the bridge circuit, and the second diode group is electrically connected with the other end of the bridge circuit.
Further, the temperature control device includes:
the determining module is used for determining a voltage value corresponding to a heating wire of the electronic cigarette based on the airflow change when the airflow change is detected by the capacitance sensor of the electronic cigarette;
the judging module is used for determining whether to start the compensation circuit or not based on the voltage value corresponding to the heating wire;
and the control module is used for adjusting the voltage value corresponding to the heating wire based on the temperature compensation circuit when the temperature compensation circuit is determined to be started so as to control the temperature in the cavity of the electronic cigarette.
In addition, in order to achieve the above object, the present application also provides a temperature control electronic cigarette, the electronic cigarette comprising: a memory, a processor, and a temperature control program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the temperature control method of any of the above.
In addition, in order to achieve the above object, the present application also provides a readable storage medium having stored thereon a temperature control program which, when executed by a processor, implements the steps of the temperature control method described in any one of the above.
When the capacitance sensor of the electronic cigarette detects the change of air flow, the voltage value corresponding to the heating wire of the electronic cigarette is determined based on the change of air flow, then whether the compensation circuit is started or not is determined based on the voltage value corresponding to the heating wire, and then when the temperature compensation circuit is determined to be started, the voltage value corresponding to the heating wire is adjusted based on the temperature compensation circuit so as to control the temperature in the cavity of the electronic cigarette. The temperature compensation circuit is used for adjusting the voltage of the heating wire, so that the temperature in the cavity of the electronic cigarette is restored to a normal value, the capacitance sensor is kept to work stably, damage to the capacitance sensor caused by overhigh temperature in the cavity of the electronic cigarette is avoided, and the service life of the electronic cigarette is prolonged.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The present application also provides a temperature control method, referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the temperature control method of the present application.
Embodiments of the present application provide embodiments of temperature control methods, it being noted that although a logic sequence is shown in the flow diagrams, in some cases the steps shown or described may be performed in a different order than that shown or described herein.
In this embodiment, the temperature control method includes:
step S100, when a capacitance sensor of the electronic cigarette detects air flow change, determining a voltage value corresponding to a heating wire of the electronic cigarette based on the air flow change;
in this example, with the development of society and the progress of human beings, tobacco as a consumer product harmful to human body is gradually replaced with a health article having the same function. The capacitive sensor in the electronic cigarette is a main component in the electronic cigarette, when a smoker draws the electronic cigarette, the airflow of smoking can drive the vibrating diaphragm to vibrate, so that the capacitive sensor in the electronic cigarette senses the airflow change, and the voltage value corresponding to the heating wire of the electronic cigarette is determined according to the airflow change.
For people who smoke, different people have different habits. For example, some people like to pay little smoke, only feel smoking, and general electronic cigarette capacitive sensors are satisfactory for such smokers. While some people like to pay more attention to smoke so as to create a smoke-surrounding environment during smoking, so that more smoke is required to be generated by the electronic cigarette, and a capacitor sensor for the electronic cigarette is required to generate a larger induction signal so as to control a heating wire of the electronic cigarette to be continuously heated, and the temperature in a cavity of the electronic cigarette is continuously increased. However, the capacitance sensor can cause drift of the temperature coefficient of the capacitance and change of capacitance parameters due to the change of the ambient temperature, so that the capacitance value of the sensor is different from the originally designed capacitance value, and the damage of the capacitance sensor is easy to cause, therefore, the temperature in the cavity of the electronic cigarette needs to be restored to a normal value, and the capacitance sensor can maintain stable operation. Wherein the capacitance temperature coefficient (temperature coefficient of capacitance) is the ratio of the value of the change in capacitance to the nominal capacitance at a given temperature interval for every 1 ℃ change in temperature. The capacitance temperature coefficient expression is:
in the formula: t (T) KC For the temperature coefficient of capacitance, C is the nominal capacitance at a given temperature, Δc represents the difference between the capacitance values C1, C2 measured at room temperature t1 and the limit temperature t 2.Δt represents the difference between the room temperature t1 and the limit temperature t2, and Δc is the change value of the capacitance when the temperature changes Δt.
FIG. 2 is a block diagram of controlling the voltage of a heating wire in an electronic cigarette, which mainly comprises a capacitance sensor, a capacitance-voltage conversion module, a temperature compensation circuit, a voltage control module and a heating wire, wherein the capacitance sensor is a sensor for converting the measured change into a capacitance change, and in the present application, the detected airflow is converted into capacitance; the capacitance-voltage conversion module is used for receiving the capacitance output by the capacitance sensor and converting the capacitance into a voltage value; the temperature compensation circuit converts the variation of the temperature into a control signal by utilizing the characteristic of the negative temperature coefficient of the semiconductor, and inputs the control signal into the voltage control module; the voltage control module determines a voltage adjustment value according to a control signal input by the temperature compensation circuit, and then changes a voltage value output to the heating wire according to the voltage adjustment value.
Specifically, step S100 includes:
step S110, when the capacitance sensor of the electronic cigarette detects the air flow change, obtaining capacitance corresponding to the air flow change based on the capacitance sensor;
and step S120, utilizing a capacitance-voltage conversion module of the electronic cigarette to control the capacitance to be converted into a voltage value corresponding to a heating wire of the electronic cigarette.
In this embodiment, when the user performs the sucking/blowing operation by using the electronic cigarette, the capacitive sensor detects the airflow change, the capacitive sensor converts the airflow change into a corresponding capacitance, and then the capacitive voltage conversion module receives the capacitance output by the capacitive sensor and converts the capacitance into a voltage value corresponding to the heating wire of the electronic cigarette. It should be noted that, the larger the airflow flow detected by the capacitive sensor of the electronic cigarette, the larger the output change of the capacitive sensor, and the larger the output voltage value corresponding to the capacitive voltage conversion module.
Step S200, determining whether to start the temperature compensation circuit or not based on the voltage value corresponding to the heating wire;
specifically, step S200 includes:
step S210, when the voltage value corresponding to the heating wire is greater than or equal to a threshold voltage, starting the temperature compensation circuit;
step S220, when the voltage value corresponding to the heating wire is smaller than the threshold voltage and the temperature in the cavity of the electronic cigarette is smaller than the preset temperature, closing the temperature compensation circuit.
In this embodiment, the larger the voltage value corresponding to the heating wire, the larger the current passing through the heating wire, the higher the temperature of the heating wire, and the higher the temperature of the electronic cigarette cavity is along with continuous heating of the heating wire. In order to prevent the temperature of the cavity of the electronic cigarette from being too high and causing abnormal or even damage of the capacitor sensor, the temperature compensation circuit is started, the temperature variation is converted into a control signal through the temperature compensation circuit, the control signal is input into the voltage control module, the voltage control module determines a voltage adjustment value according to the control signal input by the temperature compensation circuit, then the voltage value output to the heating wire is reduced according to the voltage adjustment value, and the temperature of the cavity of the electronic cigarette is returned to a normal range value due to the fact that the voltage output to the heating wire is reduced, namely the temperature in the cavity is reduced along with the voltage adjustment value.
Specifically, a voltage value is preset as a threshold voltage, wherein the threshold voltage is determined according to the actual performance of the capacitive sensor, and when the voltage value corresponding to the heating wire is greater than or equal to the threshold voltage, the temperature compensation circuit is started.
Further, after the temperature compensation circuit, the voltage value of the heating wire is continuously reduced through the temperature compensation circuit, so that the temperature of the cavity of the electronic cigarette is restored to a normal range value, and when the voltage value corresponding to the heating wire is smaller than the threshold voltage and the temperature in the cavity of the electronic cigarette is smaller than the preset temperature, the temperature compensation circuit is turned off.
And step S300, when the temperature compensation circuit is determined to be started, adjusting a voltage value corresponding to the heating wire based on the temperature compensation circuit so as to control the temperature in the cavity of the electronic cigarette.
In this embodiment, when it is determined that the temperature compensation circuit is started, the voltage value corresponding to the heating wire is adjusted according to the temperature compensation circuit so as to control the temperature in the cavity of the electronic cigarette. The temperature compensation circuit converts the variation of the temperature into a control signal and inputs the control signal into the voltage control module, the voltage control module determines a voltage adjustment value according to the control signal input by the temperature compensation circuit, then the voltage value output to the heating wire is reduced according to the voltage adjustment value, and the temperature in the cavity is reduced as the voltage output to the heating wire is reduced, so that the temperature of the cavity of the electronic cigarette is recovered to a normal range value by cyclic control.
Specifically, step S300 includes:
step S310, acquiring the temperature in the cavity of the electronic cigarette, and determining a voltage adjustment value based on the temperature in the cavity and the temperature compensation circuit;
in this embodiment, the temperature compensation circuit includes a first diode group or transistor group, a bridge circuit, and a second diode group; one end of the first diode group or the transistor group is connected to a power source, the other end of the first diode group or the transistor group is electrically connected to one end of the bridge circuit, and the second diode group is electrically connected to the other end of the bridge circuit, as shown in fig. 3 and 4.
FIG. 3 shows a diode temperature compensation circuit, mainly comprising diodes and a bridge circuit, specifically comprising a first diode group, a second diode group and a bridge circuit, wherein the first diode group and the second diode group are mainly used for temperature compensation; the bridge circuit is used for converting the resistance change rate delta R/R of the resistance sheet into voltage output, and is composed of 4 resistors, R 1 、R 2 、R 3 And R is 4 When the original bridge circuit is in a stable state, the voltage difference value between the two ends of VB is 0; when the temperature in the cavity of the electronic cigarette is too high, the diode group changes the stable state of the bridge circuit due to the negative temperature coefficient of the semiconductor, voltage difference values are generated at the two ends of VB, the voltage is a control signal, the voltage difference values are sent to the control circuit, the control signal is input into the voltage control module, the voltage value acted on the heating wire is further reduced, the temperature of the heating wire is reduced, the temperature in the cavity is further reduced, the temperature is restored to a normal range, and the capacitance sensor keeps stably working. Fig. 4 is a transistor temperature compensation circuit, namely, the first diode group in the diode compensation circuit is replaced by a transistor group, which functions the same, so that the description about the transistor compensation circuit is omitted.
Specifically, the temperature in the cavity of the electronic cigarette is obtained, and a voltage adjustment value is determined according to the temperature in the cavity and the temperature compensation circuit. When the temperature in the cavity of the electronic cigarette is less than or equal to the threshold temperature, the temperature compensation circuit does not need to work, so that the voltage adjustment value at the moment is equal to a preset value, and the preset value can be 0 or a smaller voltage value; when the temperature in the cavity of the electronic cigarette is larger than the threshold temperature, the temperature compensation circuit is utilized to obtain the voltage adjustment value.
Step S320, updating the voltage value corresponding to the heating wire based on the voltage adjustment value.
Specifically, step S320 includes: and subtracting the voltage value corresponding to the heating wire from the voltage adjustment value, and determining the obtained difference value as the updated voltage value of the heating wire.
In this embodiment, the temperature compensation circuit converts the change amount of the temperature into a control signal, the control signal is input into the voltage control module, the voltage control module determines a voltage adjustment value according to the control signal input by the temperature compensation circuit, then reduces the voltage value output to the heating wire according to the voltage adjustment value, that is, subtracts the voltage value corresponding to the heating wire from the voltage adjustment value, and determines the obtained difference value as the updated voltage value of the heating wire, thereby reducing the voltage output to the heating wire.
According to the temperature control method, when the capacitance sensor of the electronic cigarette detects the air flow change, the voltage value corresponding to the heating wire of the electronic cigarette is determined based on the air flow change, whether the compensation circuit is started or not is determined based on the voltage value corresponding to the heating wire, and then when the temperature compensation circuit is determined to be started, the voltage value corresponding to the heating wire is adjusted based on the temperature compensation circuit so as to control the temperature in the cavity of the electronic cigarette. The temperature compensation circuit is used for adjusting the voltage of the heating wire, so that the temperature in the cavity of the electronic cigarette is restored to a normal value, the capacitance sensor is kept to work stably, damage to the capacitance sensor caused by overhigh temperature in the cavity of the electronic cigarette is avoided, and the service life of the electronic cigarette is prolonged.
Based on the first embodiment, a second embodiment of the temperature control method of the present application is proposed, in which step S310 includes:
step S311, when the temperature in the cavity of the electronic cigarette is less than or equal to a threshold temperature, determining that the voltage adjustment value is equal to a preset value;
step S312, when the temperature in the cavity of the electronic cigarette is greater than the threshold temperature, determining a voltage adjustment value based on the temperature compensation circuit.
In this embodiment, when it is determined that the temperature compensation circuit is started, the voltage value corresponding to the heating wire is adjusted according to the temperature compensation circuit so as to control the temperature in the cavity of the electronic cigarette. The temperature compensation circuit converts the variation of the temperature into a control signal and inputs the control signal into the voltage control module, the voltage control module determines a voltage adjustment value according to the control signal input by the temperature compensation circuit, the voltage adjustment value can be 10-25% of the voltage value of the current heating wire, then the voltage value output to the heating wire is reduced according to the voltage adjustment value, and the temperature in the cavity is reduced along with the voltage output to the heating wire, so that the temperature of the cavity of the electronic cigarette is restored to a normal range value by cyclic control.
Specifically, the temperature in the cavity of the electronic cigarette is obtained, and a voltage adjustment value is determined according to the temperature in the cavity and the temperature compensation circuit. When the temperature in the cavity of the electronic cigarette is less than or equal to the threshold temperature, the temperature compensation circuit does not need to work, so that the voltage adjustment value at the moment is equal to a preset value, and the preset value can be 0 or a smaller voltage value; when the temperature in the cavity of the electronic cigarette is larger than the threshold temperature, the temperature compensation circuit is utilized to obtain the voltage adjustment value.
Fig. 5 is a schematic diagram showing a correspondence relationship between a control period of the temperature of the cavity of the electronic cigarette and the voltage adjustment value of the heating wire, and the control period of the temperature of the cavity of the electronic cigarette is divided into 4 cases, as follows:
and in the period 1 or 3, when the user does not perform suction/blowing action on the electronic cigarette at any time or the vibration amplitude is smaller due to external environmental influence, the smoking signal is not generated, so that false triggering is avoided, and the capacitive sensor does not detect air flow change at the moment, so that no data is output.
Cycle 2: in order to enable a user to perform sucking/blowing actions normally, the capacitance sensor detects airflow changes at the moment, the detected airflow flow is converted into capacitance, the capacitance-voltage conversion module receives the capacitance output by the capacitance sensor, the capacitance is converted into a voltage value, and the voltage value is added to the heating wire to start heating actions.
Cycle 4: when the user lengthens the sucking/blowing action of the smoke with more throughput, the capacitance sensor detects the change of the airflow, the voltage value output by the capacitance-voltage conversion module is synchronously increased, and when the voltage value exceeds the threshold voltage, the temperature compensation circuit starts to act; when the temperature of the semiconductor rises, the semiconductor can be regarded as the resistance value to be reduced, so the semiconductor is a negative temperature coefficient component, the corresponding signal is output to the control circuit by utilizing the characteristic of the negative temperature coefficient of the semiconductor, the control circuit changes the voltage value output to the heating wire, the temperature of the heating wire end is reduced, the temperature in the cavity of the electronic cigarette is further reduced, the capacitance sensor is enabled to maintain stable operation, and the temperature compensation circuit is not actuated at the moment.
According to the temperature control method provided by the embodiment, when the temperature in the cavity of the electronic cigarette is smaller than or equal to the threshold temperature, the voltage adjustment value is determined to be equal to the preset value, and when the temperature in the cavity of the electronic cigarette is larger than the threshold temperature, the voltage adjustment value is determined based on the temperature compensation circuit. The temperature compensation circuit is used for adjusting the voltage of the heating wire, so that the temperature in the cavity of the electronic cigarette is restored to a normal value, the capacitance sensor is kept to work stably, damage to the capacitance sensor caused by overhigh temperature in the cavity of the electronic cigarette is avoided, and the service life of the electronic cigarette is prolonged.
The application further provides a temperature control device, referring to fig. 6, fig. 6 is a schematic diagram of functional modules of an embodiment of the temperature control device of the application.
A determining module 10, configured to determine, when the capacitive sensor of the electronic cigarette detects an airflow change, a voltage value corresponding to a heating wire of the electronic cigarette based on the airflow change;
a judging module 20, configured to determine whether to start the compensation circuit based on the voltage value corresponding to the heating wire;
and the control module 30 is used for adjusting the voltage value corresponding to the heating wire based on the temperature compensation circuit when the temperature compensation circuit is determined to be started so as to control the temperature in the cavity of the electronic cigarette.
Further, the determining module 10 is further configured to:
when the capacitance sensor of the electronic cigarette detects the airflow change, obtaining capacitance corresponding to the airflow change based on the capacitance sensor;
and controlling the capacitance to be converted into a voltage value corresponding to the heating wire of the electronic cigarette by using the capacitance-voltage conversion module of the electronic cigarette.
Further, the judging module 20 is further configured to:
when the voltage value corresponding to the heating wire is greater than or equal to the threshold voltage, starting the temperature compensation circuit;
and when the voltage value corresponding to the heating wire is smaller than the threshold voltage and the temperature in the cavity of the electronic cigarette is smaller than the preset temperature, closing the temperature compensation circuit.
Further, the control module 30 is further configured to:
acquiring the temperature in a cavity of the electronic cigarette, and determining a voltage adjustment value based on the temperature in the cavity and the temperature compensation circuit;
and updating the voltage value corresponding to the heating wire based on the voltage adjustment value.
Further, the control module 30 is further configured to:
when the temperature in the cavity of the electronic cigarette is smaller than or equal to a threshold temperature, determining that the voltage adjustment value is equal to a preset value;
and when the temperature in the cavity of the electronic cigarette is greater than a threshold temperature, determining a voltage adjustment value based on the temperature compensation circuit.
Further, the control module 30 is further configured to:
and determining the difference value between the voltage value corresponding to the heating wire and the voltage adjustment value as the updated voltage value of the heating wire.
Further, the temperature compensation circuit comprises a first diode group or a transistor group, a bridge circuit and a second diode group; one end of the first diode group or the transistor group is connected with a power supply, the other end of the first diode group or the transistor group is electrically connected with one end of the bridge circuit, and the second diode group is electrically connected with the other end of the bridge circuit.
In addition, the embodiment of the application also provides a readable storage medium, and the readable storage medium stores a temperature control program, and the temperature control program realizes the steps of the temperature control method in each embodiment when being executed by a processor.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a readable storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, including several instructions for causing a system device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.