Summary of the invention
Based on this, in the present invention, a kind of method for controlling heating temp of microwaven based on electronic cigarette is proposed, it can be according to user
Demand controls the temperature of electronic cigarette, realizes the flexibility of heating and temperature control, the user experience is improved.
A kind of method for controlling heating temp of microwaven based on electronic cigarette, is based on an electronic cigarette equipment, and the electronic cigarette equipment includes
PWM output end and the heater element connecting with the PWM output end, the heater element is for giving off heat to being placed on
The smokeable material stated in electronic cigarette equipment heats so that user aspirates;
The described method includes:
The heating and temperature control instruction for receiving input, determines target temperature corresponding with heating and temperature control instruction
Value;
Obtain the current temperature value of the heater element;
Mesh corresponding with heating and temperature control instruction is determined according to the target temperature value and the current temperature value
Mark PWM regulative mode;
The adjusting of heating temperature is carried out to the heater element of the electronic cigarette equipment according to the target PWM regulative mode.
Optionally, the electronic cigarette equipment is connect with a terminal device;
The heating and temperature control instruction for receiving input, further includes:
The heating and temperature control instruction that the terminal device is sent is received, the heating temperature instruction is by the terminal device
It operates and generates by the heating and temperature control of detection user's input.
Optionally, the heating and temperature control instruction for receiving input, further includes:
By the button inputted pressing operation of peripheral hardware being arranged in the electronic cigarette equipment, determination and the pressing are grasped for detection
Make corresponding heating and temperature control instruction.
Optionally, described determined according to the target temperature value with the current temperature value refers to the heating and temperature control
Enable corresponding target PWM regulative mode, further includes:
Detecting the duty ratio size that the PWM output end currently exports is current duty cycle value;
According to the current duty cycle value and the current temperature value, target temperature value determine target duty than regulated value,
Using the target duty than regulated value as the target PWM regulative mode;
The tune for carrying out heating temperature to the heater element of the electronic cigarette equipment according to the target PWM regulative mode
Section, further includes:
It is adjusted according to the target duty than PWM of the regulated value to the PWM output end output of the electronic cigarette equipment.
Optionally, it is described according to the target duty than regulated value to the output of the PWM output end of the electronic cigarette equipment
PWM is adjusted, further includes:
The current temperature value be greater than the target temperature value and the current temperature value and the target temperature value it
Between the first difference be more than preset difference threshold in the case where, obtaining the dutyfactor value that the PWM output end currently exports is
Dutyfactor value is cached, sets 0 than regulated value for the target duty;
In the current duty cycle value be 0 and the current temperature value got is less than or equal to the target temperature
In the case where value, the caching dutyfactor value is set than regulated value by the target duty.
Optionally, described to be determined according to the current duty cycle value and the current temperature value, preset target temperature value
Target duty compares regulated value, further includes:
The temperature gap between the target temperature value and the current temperature value is calculated as the first difference, according to default
Difference and quantized value between corresponding relationship, obtain corresponding with first difference the first difference quantized value, the first difference
Quantized value is the numerical value between 0 to 1;
Obtain the last time PWM is adjusted during with the target temperature value and the heating temperature value that gets
The corresponding quantized value of temperature gap is as the second difference quantized value;
The mesh is determined according to the current duty cycle value and the first difference quantized value, the second difference quantized value
Mark duty cycle adjustment value.
A kind of heating and temperature control device based on electronic cigarette, is based on an electronic cigarette equipment, and the electronic cigarette equipment includes
PWM output end and the heater element connecting with the PWM output end, the heater element is for giving off heat to being placed on
The smokeable material stated in electronic cigarette equipment heats so that user aspirates;
Described device includes:
Control instruction receiving module, heating and temperature control instruction for receiving input, the determining and heating temperature control
System instructs corresponding target temperature value;
Temperature detecting module, for obtaining the current temperature value of the heater element;
Determining module is adjusted, for according to the target temperature value and current temperature value determination and the heating temperature
The corresponding target PWM regulative mode of control instruction;
Temperature adjustment module, for according to the target PWM regulative mode to the heater element of the electronic cigarette equipment into
The adjusting of row heating temperature.
Optionally, the control instruction receiving module is also used to receive the terminal device hair connecting with the electronic cigarette equipment
The heating and temperature control instruction sent;
Or,
The control instruction receiving module is also used to detect to be inputted by the peripheral hardware button being arranged in the electronic cigarette equipment
Pressing operation, and determine that corresponding with pressing operation heating and temperature control instructs.
In another part, a kind of electronic cigarette equipment is additionally provided, including memory, processor and be stored in described deposit
On reservoir and the computer program that can run on the processor, which is characterized in that the processor executes the computer
The method described as previously described is realized when program.
In another alternative embodiment, a kind of computer readable storage medium, including computer instruction are additionally provided,
When the computer instruction is run on computers, so that computer executes foregoing method.
Implement the embodiment of the present invention, will have the following beneficial effects:
After above-mentioned method for controlling heating temp of microwaven and device based on electronic cigarette, fire-cured tobacco type electronics is used in user
When cigarette equipment, in the mistake heated by adding thermal resistance to the smokeable material such as pipe tobacco being placed in electronic cigarette equipment
Cheng Zhong, user can add electronic cigarette by electronic cigarette equipment itself or the exterior terminal connecting with electronic cigarette equipment equipment
Hot temperature is controlled, so that user can carry out customized adjustment to the heating temperature of electronic cigarette, for example, by using more
High or lower temperature is heated to obtain different suction experience, and the flexibility of heating temperature adjustment is improved.Also,
It in the present embodiment, is by carrying out electric energy confession to heater element during the heating temperature to electronic cigarette is adjusted
What the size of the duty ratio for the PWM that the PWM output end answered is exported was adjusted, it adjusts at that time, leads to relative to other temperature
The precision of heating and temperature control can be improved in the adjusting for crossing PWM duty cycle, to further improve user using electricity
Suction mouthfeel in sub- cigarette equipment promotes user experience.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
To solve in traditional technology, to the control of the heating temperature of hot type electronic cigarette, there are the insufficient skills of precise control rate
Art problem, in the present embodiment, spy propose a kind of method for controlling heating temp of microwaven based on electronic cigarette, and the realization of this method can be according to
Rely in computer program, which can run on the computer system based on von Neumann system, the computer
Program can be the application program of the heating and temperature control based on electronic cigarette equipment, for example, being integrated in the monolithic of electronic cigarette tobacco rod
The control program that heating temperature is controlled in machine.
Specifically, the realization and execution of the above-mentioned method for controlling heating temp of microwaven based on electronic cigarette are based on an electronic cigarette equipment,
The electronic cigarette equipment can be the electronic cigarette tobacco rod of hot type electronic cigarette, can accommodate the smokeable material such as pipe tobacco, and
The smokeable material can be heated so that user aspirates.As shown in Figure 1, the electronic cigarette equipment includes heating electricity
Road, the heater circuit include heater element, which can be adding thermal resistance, for example, for thermistor or load electricity
Resistance.Also, it is powered by heater circuit to heater element, so that the heating electronic heating is to be placed on the electronics
Smokeable material in cigarette equipment heats so that user aspirates.It should be noted that in the present embodiment, heater circuit
Power supply is realized by PWM (Pulse Width Modulation, pulse width modulation) output, that is to say, that with add
The power supply circuit of heater circuit connection is powered by output pwm pulse to heater circuit, that is to say, that the input terminal of heater circuit
It is connect with PWM output end (i.e. the output end of power supply circuit).
It should be noted that in the present embodiment, different PWM pulsewidths has corresponded to different output powers, thus to adding
The output power of heater circuit is not also identical, therefore, can pass through PWM when needing the power to heater circuit to be adjusted
Pulsewidth adjusts the power come to heater circuit, to realize the adjusting to the temperature of heater element.
Specifically, as shown in Fig. 2, the above-mentioned method for controlling heating temp of microwaven based on electronic cigarette includes the following steps S102-
S108:
Step S102: receiving the heating and temperature control instruction of input, and determination is corresponding with heating and temperature control instruction
Target temperature value.
Heating and temperature control instruction be the control unit of electronic cigarette equipment receive for including in electronic cigarette equipment
The instruction that the temperature of heater element (for example, adding thermal resistance) is controlled.The instruction is to be used to indicate control unit to adjust electronics
In cigarette equipment for electricity output the duty ratio size of output (for example, PWM), to reach the temperature controlled mesh to heater element
's.
In general, it contains in heating and temperature control instruction for temperature controlled actual temp value (target temperature
Value) or the direction that adjusts of temperature and amplitude, and it can be configured according to specific application scenarios.
Specifically, in an alternative embodiment, physical button (or peripheral hardware button) is provided in electronic cigarette equipment,
User can input corresponding heating and temperature control instruction by the button, for example, the case where button is in first position
Under, it is heated using preset first temperature as target temperature value, in the case where button is in the second position, using pre-
If second temperature heated as target temperature value.In addition, in other embodiments, it is corresponding with heating and temperature control instruction
Pressing operation can also correspond to different compression numbers, frequency etc., and according to preset pressing operation and heating temperature
Corresponding relationship between control instruction is determined and is detected after detecting through the button inputted pressing operation of peripheral hardware
Pressing operation corresponding heating and temperature control instruction controlled so that control unit can be instructed according to the heating and temperature control
The corresponding module of electronic cigarette equipment processed executes relevant operation.
In another alternative embodiment, communication module is additionally provided in electronic cigarette equipment (for example, restricted communication mould
Block, WIFI module, bluetooth module, Zigee module etc.), and electronic cigarette equipment can pass through the communication module and other terminals
Equipment establishes communication connection, and is communicated by the communication connection (for example, the transmission of transmission, the instruction of data between correlation
Deng).In a specific embodiment, electronic cigarette equipment can by bluetooth module (Bluetooth chip) and mobile terminal (for example,
Mobile phone) establish bluetooth communication, and between the mobile phone and electronic cigarette equipment can by bluetooth communication that this is set up come
Carry out the exchange of specific information.
User can control the heating temperature of electronic cigarette equipment by the terminal device connecting with electronic cigarette equipment
System, for example, can be referred to by the APP corresponding with electronic cigarette equipment of installation on the terminal device to input heating and temperature control
It enables.
In application scenarios as shown in Figure 3, Fig. 3 illustrates the control APP's for the electronic cigarette equipment installed on mobile phone
Application scenarios.User can by target temperature as shown in Figure 3 adjust input frame come input corresponding target temperature value or
Person's adjusting amplitude etc., mobile phone obtain the text that user inputs in input frame after detecting the operation of user to generate
Heating and temperature control instruction, and it is sent to electronic cigarette equipment.
In the case where containing the final target temperature value for needing to be adjusted in heating and temperature control instruction, directly
Corresponding target temperature value is obtained from heating and temperature control instruction;If including in heating and temperature control instruction
It is to obtain corresponding temperature in the case that temperature adjusts direction and amplitude and adjust direction, amplitude, and according to the heating of current setting
Temperature value come determine this adjusting in target temperature value.
Step S104: the current temperature value of the heater element is obtained.
In a specific embodiment, because for heater element, general heater element is resistance, and is heat
Quick resistance has corresponded to different resistance values, that is to say, that deposit between resistance value and heating temperature under different temperature conditions
In one-to-one relationship.Therefore, in the present embodiment, the current resistance of heater element can be obtained by the measurement of resistance value
Value.
In a specific embodiment, the step of current temperature value of the above-mentioned acquisition heater element further includes such as figure
Step S1021-S1022 shown in 4:
Step S1021: the current resistive value at the heater element both ends is detected;
Step S1022: corresponding relationship determination and the current electricity are hindered according to the temperature between preset resistance value and temperature value
The corresponding temperature value of resistance value is as the current temperature value.
That is, in the present embodiment, the calculating of temperature be completed by the measuring and calculating of the resistance value to resistance, and
Adding thermal resistance sheet can know its temperature by measuring the resistance value of adding thermal resistance as thermistor.
In a specific embodiment, can be realized by circuit as shown in Figure 5 the resistance to adding thermal resistance with
And the measurement of temperature.As shown in figure 5, RL is load (heater element) in figure, usually the end R_DET_EN is low-voltage, detection load
When resistance RL, R_DET_EN is high voltage, Q1 conducting, electricity that the chip reading both ends sampling resistor R1 (A and B) goes out by chip controls
ADC value at pressure, as V_OUT and V_OUT_DET two is respectively N1、N2, read and finish the end R_DET_EN as low-voltage closing
Then Q1 passes through
Then computational load resistance value is calculating corresponding temperature according to the warm resistance relationship for the heater element for being made into load
Degree, this temperature is the current temperature value of heater element.
In the present embodiment, the purpose detected to adding thermal resistance current temperature value is for the heating temperature to electronic cigarette
Degree is controlled, and in order to mention high control precision, needs in real time or upper frequency detects current temperature value.Example
Such as, in one embodiment, in order to improve temperature controlled validity and precision, according to preset time cycle value, period
Property the execution current temperature value for obtaining the adding thermal resistance the step of, for example, the period according to 100mS executes above-mentioned step
Rapid S102.
Step S106: it is instructed according to the target temperature value and the current temperature value are determining with the heating and temperature control
Corresponding target PWM regulative mode.
As previously mentioned, for the heating temperature of electronic cigarette equipment adjusting be presented as PWM output duty ratio adjusting.And
And consider how to export PWM be adjusted during, both need in view of current temperature value and target temperature value it
Between difference and specific value, it is also necessary to consider the size of current PWM duty cycle, therefore, currently needed to PWM in determination
When the specific adjusting of duty cycle adjustment, need to be determined according to aforementioned and current temperature value and preset target temperature value
The case where temperature adjusts needs to carry out PWM duty cycle adjusting and it is further desired that exporting current duty cycle value according to PWM to determine
Target duty compare regulated value.For example, target duty can be that PWM duty cycle is adjusted in this adjusting than regulated value
Target value.
In a specific embodiment, above-mentioned steps S106 include thes steps that S1062-S1064 as shown in Figure 6:
Step S1062: detecting the duty ratio size that the PWM output end currently exports is current duty cycle value;
Step S1064: target duty is determined according to the current duty cycle value and the current temperature value, target temperature value
Than regulated value, using the target duty than regulated value as the target PWM regulative mode.
The PWM duty cycle of output determines the power of output, that is to say, that different PWM duty cycles are for heater circuit
For corresponded to different heating powers, namely corresponded to different heating temperatures.Therefore, in current temperature value and preset mesh
It marks between temperature value there are in the case where gap, output power can be controlled by control PWM duty cycle to realize pair
In the control of heating temperature.
And control and adjusting for PWM duty cycle, it is necessary first to the case where knowing current PWM duty cycle, it is then right
PWM duty cycle is adjusted.
In the present embodiment, for PWM that the detection of current PWM duty cycle is by currently exporting to PWM output end
Duty ratio size complete, i.e. current duty cycle value.
In a specific embodiment, PWM regulative mode is that the duty ratio of the PWM output to electronic cigarette equipment carries out
During adjusting, regulated value is compared for the PWM target duty adjusted in next step.
Step S108: heating temperature is carried out according to heater element of the target PWM regulative mode to the electronic cigarette equipment
The adjusting of degree.
It, can be defeated according to PWM of the target PWM regulative mode to electronic cigarette equipment after target PWM regulative mode determines
The PWM exported in outlet is adjusted.
Specifically, in a specific embodiment, it is above-mentioned that the electronic cigarette is set according to the target PWM regulative mode
Standby heater element carries out the adjusting of heating temperature, further includes: is set than regulated value to the electronic cigarette according to the target duty
The PWM of standby PWM output end output is adjusted.
That is, can be exported than regulated value to PWM according to target duty after target duty is determined than regulated value
The PWM of end output is adjusted, that is to say, that the size of the PWM duty cycle after adjusting is that target duty compares regulated value.
Wherein, it should be pointed out that target temperature value is the temperature value of preset best suction mouthfeel, for example, can set
Setting target temperature value can also be according to oneself requirement for suction mouthfeel, customized setting target temperature for 320 degree or user
Angle value, for example, a relatively high target temperature value can be set for the user for liking dense mouthfeel, such as 360 degree.
It is as follows, it can be according to the size and current temperature of current duty ratio to the detailed process of the adjusting of PWM duty cycle
The specific size of angle value, a point situation are determined.
In a specific embodiment, it is greater than the target temperature value and described first poor in the current temperature value
In the case that value is more than preset difference threshold, the dutyfactor value that the PWM output end currently exports is obtained as caching duty ratio
Value;0 is set than regulated value by the target duty.
That is, in current duty cycle value DN-1≠ 0, and current temperature value TN-1>Tt+TEIn the case where (wherein, TtFor
Target temperature value, TEFor preset difference threshold), 0 is set than regulated value by target duty, i.e., PWM is exported clear 0, so as to
Reduce the temperature of heater element.
Duty ratio be 0 or by duty ratio be set as 0 after, according to the current duty cycle value and the current temperature
During angle value, preset target temperature value determine target duty than regulated value, specific mistake that PWM duty cycle is adjusted
Journey are as follows: in the current duty cycle value be 0 and the current temperature value got is less than or equal to the target temperature value
In the case of, the caching dutyfactor value is set than regulated value by the target duty.
That is, before PWM duty cycle is reset, it is also necessary to carry out the specific size of current PWM duty cycle
Storage can determine that the PWM duty cycle being closer to target temperature value when the occurrence of PWM duty cycle is arranged so as to subsequent,
Improve the usage experience of user.Therefore, in the case where duty ratio is 0, if the current temperature value detected is greater than or equal to
Target temperature value, then keeping PWM duty cycle is 0 state;If the current temperature value detected is less than or equal to target temperature
Value, then need that PWM duty cycle is adjusted, and therefore, sets target duty to than regulated value the dutyfactor value of caching, as
Last time executes the value of the duty ratio of the storage before clear operation to PWM duty cycle.
That is, in current duty cycle value DN-1=0, and current temperature value TN-1<TtIn the case where (wherein, TtFor target temperature
Value), by target duty than regulated value DNIt is set as the dutyfactor value D ' of caching, i.e., is adjusted to account for what is cached by PWM duty cycle
The corresponding size of empty ratio D ', to control the heating temperature of electronic cigarette in optimal target temperature or so.
In another alternative embodiment, current temperature value is less than or equal to target temperature value and duty ratio is not 0
In the case of, it is above-mentioned that target duty is determined according to the current duty cycle value and the current temperature value, preset target temperature value
Than the process of regulated value are as follows: the temperature gap calculated between the target temperature value and the current temperature value is poor as first
Value obtains the first difference quantization corresponding with first difference according to the corresponding relationship between preset difference and quantized value
Value, the first difference quantized value are the numerical value between 0 to 1;Obtain last time PWM is adjusted during with the target temperature
Angle value quantized value corresponding with the temperature gap of the heating temperature value got is as the second difference quantized value;According to described current
Dutyfactor value and the first difference quantized value, the second difference quantized value determine that the target duty compares regulated value.
And, wherein it is true according to the current duty cycle value and the first difference quantized value, the second difference quantized value
The fixed target duty than regulated value, specifically:
According to formula
DN=DN-1+2EN-EN-1
It calculates the target duty and compares regulated value, wherein DNIt is target duty than regulated value, DN-1For current duty cycle value,
ENFor the first difference quantized value, EN-1For the second difference quantized value.
That is, not being 0 in current duty cycle value, and current temperature value is less than target temperature value or is not above mesh
In the case where marking temperature a certain range (for example, bigger than target temperature value less than 5 DEG C), PWM duty cycle is adjusted, still
The amplitude of adjusting is that current duty cycle value adds twice of difference quantized value and subtracts last difference quantized value.Wherein, poor
Amount between difference between the current temperature value detected according to value quantized value and target temperature value provide one 0 to 1
Change value, for example, setting 2% for difference quantized value in the case where difference is 5 DEG C.
It should be noted that in the present embodiment, the first difference quantized value ENWhat is represented is that this adjusts (i.e. n-th tune
Section) in, difference quantized value corresponding to the difference between the current temperature value detected and target temperature value;The quantization of second difference
Value EN-1What is represented is that this is adjusted in (i.e. the N-1 times adjusting or last adjusting), the current temperature value and target temperature that detect
Difference quantized value corresponding to difference between angle value.
As previously mentioned, target duty can be determined than the determination of regulated value according to following formula:
That is, current PWM duty cycle be not 0 and the current temperature of adding thermal resistance to be no more than target temperature certain
In the case where range, the amplitude of accommodation to PWM duty cycle is this tune on the basis of original PWM duty cycle plus twice
The quantized value of the quantized value for the temperature gap of section detected and the temperature gap detected during subtracting last adjust,
As PID (proportion-integral-derivative, ratio, integral, differential control) is adjusted.And in adding thermal resistance
In the case that temperature is more than target temperature a certain range, 0 is set by PWM duty cycle;It and in current PWM duty cycle is not 0
In the case of, the occurrence for obtaining the PWM duty cycle is cache size.And after PWM duty cycle clearing, when the temperature of adding thermal resistance
When dropping to target temperature, the PWM duty cycle before price is reset is restored, and restarts PID adjusting.
It in a specific embodiment, can be to the difference and difference amount between current temperature value and target temperature value
Corresponding relationship between change value, for example, can be linear function or nonlinear function, or step function.
In a specific embodiment, in order to avoid frequent PWM duty cycle brought by subtle temperature difference
It adjusts and bears brought by electronic cigarette processor, the difference value and difference between current temperature value and target temperature value quantify
Corresponding relationship between value can use step function.For example, being defined using following function:
Wherein, E is difference quantized value, difference of the Δ T between target temperature value and current temperature value, it may be assumed that
Δ T=Tt-TN。
In other embodiments, between the difference value between current temperature value and target temperature value and difference quantized value
Corresponding relationship can use any positively related function.
In addition, to solve in traditional technology, to the control of the heating temperature of hot type electronic cigarette, there are precise control rate deficiencies
The technical issues of, in one embodiment, as shown in Figure 7, it is also proposed that a kind of heating and temperature control device based on electronic cigarette,
The electronic cigarette equipment includes heater circuit, and the heater circuit includes heater element, and the input terminal and PWM of the heater circuit are defeated
Outlet connection;By the heater circuit to the heater element power with give be placed on it is smokable in the electronic cigarette equipment
Material heating is aspirated for user.
Specifically, as shown in fig. 6, the above-mentioned heating and temperature control device based on electronic cigarette includes:
Control instruction receiving module 102, heating and temperature control instruction for receiving input, the determining and heating temperature
The corresponding target temperature value of control instruction;
Temperature detecting module 104, for obtaining the current temperature value of the heater element;
Determining module 106 is adjusted, for according to the target temperature value and current temperature value determination and the heating
The corresponding target PWM regulative mode of temperature control instruction;
Temperature adjustment module 108, for the heater element according to the target PWM regulative mode to the electronic cigarette equipment
Carry out the adjusting of heating temperature.
Optionally, in one of the embodiments, control instruction receiving module 102 be also used to receive set with the electronic cigarette
The heating and temperature control instruction that the terminal device of standby connection is sent;Or, control instruction receiving module 102, which is also used to detect, passes through institute
The button inputted pressing operation of the peripheral hardware being arranged in electronic cigarette equipment is stated, and determines heating temperature corresponding with the pressing operation
Control instruction.
Optionally, determining module 106 is adjusted in one of the embodiments, to be also used to detect the PWM output end current
The duty ratio size of output is current duty cycle value;According to the current duty cycle value and the current temperature value, target temperature
It is worth and determines target duty than regulated value, using the target duty than regulated value as the target PWM regulative mode;Temperature is adjusted
Module 108 is also used to be carried out according to the target duty than PWM of the regulated value to the PWM output end output of the electronic cigarette equipment
It adjusts.
Optionally, determining module 106 is adjusted in one of the embodiments, to be also used to be greater than institute in the current temperature value
Stating the first difference between target temperature value and the current temperature value and the target temperature value is more than preset difference threshold
In the case where, the dutyfactor value that the PWM output end currently exports is obtained for caching dutyfactor value, by the target duty than adjusting
Section value is set as 0;In the current duty cycle value be 0 and the current temperature value got is less than or equal to the target
In the case where temperature value, the caching dutyfactor value is set than regulated value by the target duty.
Optionally, determining module 106 is adjusted in one of the embodiments, be also used to calculate the target temperature value and institute
Temperature gap between current temperature value is stated as the first difference, according to the corresponding relationship between preset difference and quantized value,
The first difference quantized value corresponding with first difference is obtained, the first difference quantized value is the numerical value between 0 to 1;In acquisition
During once PWM is adjusted and the target temperature value is corresponding with the temperature gap of the heating temperature value got
Quantized value is as the second difference quantized value;According to the current duty cycle value and the first difference quantized value, described second poor
Value quantized value determines that the target duty compares regulated value.
Implement the embodiment of the present invention, will have the following beneficial effects:
After above-mentioned method for controlling heating temp of microwaven and device based on electronic cigarette, fire-cured tobacco type electronics is used in user
When cigarette equipment, in the mistake heated by adding thermal resistance to the smokeable material such as pipe tobacco being placed in electronic cigarette equipment
Cheng Zhong, user can add electronic cigarette by electronic cigarette equipment itself or the exterior terminal connecting with electronic cigarette equipment equipment
Hot temperature is controlled, so that user can carry out customized adjustment to the heating temperature of electronic cigarette, for example, by using more
High or lower temperature is heated to obtain different suction experience, and the flexibility of heating temperature adjustment is improved.Also,
It in the present embodiment, is by carrying out electric energy confession to heater element during the heating temperature to electronic cigarette is adjusted
What the size of the duty ratio for the PWM that the PWM output end answered is exported was adjusted, it adjusts at that time, leads to relative to other temperature
The precision of heating and temperature control can be improved in the adjusting for crossing PWM duty cycle, to further improve user using electricity
Suction mouthfeel in sub- cigarette equipment promotes user experience.
In the above-described embodiments, can it is all or part of by software, hardware, firmware or any combination thereof come real
It is existing.When being realized using software program, can entirely or partly realize in the form of a computer program product.The computer
Program product includes one or more computer instructions.When loading on computers and executing the computer program instructions, entirely
Portion is partly generated according to process or function described in the embodiment of the present invention.The computer can be general purpose computer, specially
With computer, computer network or other programmable devices.The computer instruction can store in computer-readable storage
In medium, or from a computer readable storage medium to another computer readable storage medium transmit.The computer
Readable storage medium storing program for executing can be any usable medium or include one or more usable medium collection that computer can access
At the data storage devices such as server, data center.The usable medium can be magnetic medium, (for example, floppy disk, hard disk,
Tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk SolidState Disk (SSD)) etc..
Further, in the present embodiment, the electricity of above-mentioned method for controlling heating temp of microwaven and device based on electronic cigarette is realized
Sub- cigarette equipment includes memory, processor and memory, and is stored with can run on the processor on a memory
Computer program realizes the above-mentioned heating and temperature control based on electronic cigarette when processor executes corresponding computer program
The correlation function of method and apparatus.
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.