Summary of the invention
Based on this, to solve in conditional electronic cigarette temperature control technology, to the control of heating temperature, there are precise control rate is insufficient
Technical problem, spy propose a kind of temperature control system of electronic cigarette.
A kind of temperature control system of electronic cigarette, including:
Power module, for system power supply;
Heater element, for the smokeable material heating in the electron cigarette that gives off heat;
Temperature detecting module is electrically connected with the power module and heater element, for receiving the power module
Temperature detection is carried out to heater element after the power supply of input;
Heating control module is electrically connected with the power module and heater element, in the power module and fever
Switching circuitry is formed between element, so that the heater element obtains power supply and heats when the heating control module is connected;
Main control module is electrically connected with the temperature detecting module, heating control module respectively, is used for the temperature detection
Module and heating control module issue control signal, and control the temperature detecting module and heating control module alternation,
It is identical as target temperature with the temperature for controlling the heater element.
Optionally, the temperature detecting module includes signal input part, first switch unit in one of the embodiments,
And sampling resistor, the signal input part, first switch unit and sampling resistor are sequentially connected electrically, the main control module and signal
Input terminal electrical connection, the power module are electrically connected with the first switch unit, and the sampling resistor is connected with heater element,
With formation temperature measure loop.
Optionally, when the main control module is to the signal input part high input voltage in one of the embodiments, control
Make the first switch unit conducting, when the main control module inputs low-voltage to the signal input part, control described first
Switch unit disconnects, and the main control module calculates the resistance value of the heater element according to Ohm's law, and according to the hair
The resistance value of thermal element and the corresponding relationship of temperature obtain the temperature of the heater element.
Optionally, the main control module is also used to obtain the sampling resistor and fever member in one of the embodiments,
The voltage value of part, and according to formula
RL=R*N1/ (N2-N1)
Calculate the resistance value of the heater element, wherein RL is the resistance value of heater element, and R is the electricity of sampling resistor
Resistance value, N1 are the voltage value of heater element, and N2 is the voltage value of sampling resistor.
Optionally, the heating control module includes second switch unit in one of the embodiments, the master control mould
Block sends pulse width modulating signal to the second switch unit, to control the heater element periodic heat.
Optionally, the main control module is also used to obtain and works as dutyfactor value in one of the embodiments, and according to detection
The heater element current temperature value and target temperature value difference, calculate the target duty ratio of pulse width modulating signal
Regulated value.
Optionally, the main control module calculates the target temperature value and the current temperature in one of the embodiments,
Temperature gap between angle value is as the first difference, according to the corresponding relationship between preset difference and quantized value, acquisition and institute
The corresponding first difference quantized value of the first difference is stated, the first difference quantized value is the numerical value between 0 to 1;And obtain last meter
Obtained difference quantized value is as the second difference quantized value;The main control module is according to the current duty cycle value and described
One difference quantized value, the second difference quantized value determine that the target duty compares regulated value.
Optionally, in one of the embodiments, the main control module 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.
Optionally, the main control module controls the temperature detecting module work first in one of the embodiments,
In the period, the main control module controls the heating control module work in second round, and the period 1 is less than second week
Phase.
In addition, for solve conditional electronic cigarette temperature control technology in using temperature sensor measurement temperature error it is larger and
A kind of higher technical problem of design cost, it is also proposed that electronic cigarette.
A kind of electronic cigarette, including above-mentioned temperature control system, the electronic cigarette use the temperature when carrying out temperature control
It spends control system and carries out thermostatic control.
Implement the embodiment of the present invention, will have the advantages that:
After temperature control system using above-mentioned electronic cigarette, controlled by main control module to temperature detecting module and heating
Molding block issues control signal, and controls the temperature detecting module and heating control module alternation, to control the hair
The temperature of thermal element is identical as target temperature.It, can be preferable when temperature rises or temperature generates disturbance by above system
The temperature stability for controlling electronic cigarette, is improved the accuracy to heating and temperature control, improves user and set using electronic cigarette
Suction mouthfeel in standby, and reduce the generation of harmful substance, improve the protection to user health.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Unless otherwise defined, all technical and scientific terms used herein and belong to technical field of the invention
The normally understood meaning of technical staff is identical.Term as used herein in the specification of the present invention is intended merely to description tool
The purpose of the embodiment of body, it is not intended that the limitation present invention.It is appreciated that term " first " used in the present invention, " second "
Etc. can be used to describe various elements herein, but these elements should not be limited by these terms.These terms are only used to by first
A element and another element are distinguished.For example, in the case where not departing from scope of the present application, first element can be claimed
It can be first element by second element for second element, and similarly.First element and second element both element, but
It is not identity element.
To solve to use the error of temperature sensor measurement temperature larger in conditional electronic cigarette temperature control technology and be designed to
This higher technical problem, in the present embodiment, spy proposes a kind of temperature control system of electronic cigarette, for realizing electronic cigarette
Thermostatic control.As shown in Figure 1, the structural block diagram of the temperature control system for the electronic cigarette, which includes electricity
Source module 110, main control module 120, heating control module 130, temperature detecting module 140 and heater element 150, power module
110, heating control module 130 and heater element 150 are sequentially connected electrically, power module 110, temperature detecting module 140 and fever
Element 150 is sequentially connected electrically, and main control module 120 is electrically connected with heating control module 130, temperature detecting module 140 respectively.
Wherein, power module 110 be used for in system heating control module 130 and temperature detecting module 140 power,
In some specific embodiments, power module 110 can be battery, such as lithium battery, ickel-cadmium cell and Ni-H cell etc..
Temperature detecting module 140 include signal input part, first switch unit and sampling resistor, the signal input part,
First switch unit and sampling resistor are sequentially connected electrically, and main control module 120 is electrically connected with signal input part, power module 110 with
The electrical connection of first switch unit, sampling resistor is connected with heater element 150, with formation temperature measure loop.Wherein, main control module
120 can send control signal to the signal input part to control the on-off of first switch unit, for example, when main control module 120 to
When signal input part sends high voltage signal, the conducting of first switch unit, then 140 opening temperature of temperature detecting module is detected;When
When main control module 120 sends low voltage signal to signal input part, first switch unit is disconnected, then temperature detecting module 140 is stopped
Only temperature detection.Sampling resistor is the resistance of the heater element 150 in measuring circuit for sampling to the electric current in circuit
Value refers to, and the resistance value of sampling resistor is less than the resistance value of heater element 150 in the present embodiment, can also set in other embodiments
It is set to through sampling resistor and the voltage in circuit is sampled, it can be with when being sampled by sampling resistor to voltage
The resistance value that sampling resistor is arranged is greater than the resistance value of heater element.
Further, main control module 120 can calculate the resistance value of heater element 150 according to Ohm's law, and according to
The resistance value of heater element 150 and the corresponding relationship of temperature value obtain the temperature value of heater element 150.
Heating control module 130 includes second switch unit, and main control module 120 can be by sending out to the second switch unit
PWM (Pulse Width Modulation, pulse width modulation) signal is sent, to control 150 periodic heat of heater element.Tool
Body, by setting the duty ratio of pwm signal, the turn-on cycle of the second switch unit can be set, when the second switch unit
When conducting, the power supply that power module 110 exports flows to heater element 150 through second switch unit, so that heater element 150 obtains
It takes power supply and gives off heat, that is to say that heater element 150 will do it the process of heating when the conducting of second switch unit, when second
When switch unit disconnects, heater element 150 stops heating.It should be noted that in the present embodiment, different pwm signals
Duty ratio controls different heating duration namely main control module 120 and is realized by the adjusting to pwm signal duty ratio to hair
The temperature of thermal element 150 is adjusted.
Further, main control module 120 controls the work of temperature detecting module 140 in the period 1, and main control module 120 controls
The work of heating control module 130 is in second round, and the period 1 is less than second round.
The temperature control system of electronic cigarette provided in this embodiment is controlled by main control module to temperature detecting module and heating
Molding block issues control signal, and controls the temperature detecting module and heating control module alternation, to control the hair
The temperature of thermal element is identical as target temperature.It, can be preferable when temperature rises or temperature generates disturbance by above system
The temperature stability for controlling electronic cigarette, is improved the accuracy to heating and temperature control, improves user and set using electronic cigarette
Suction mouthfeel in standby, and reduce the generation of harmful substance, improve the protection to user health.
In a specific embodiment, as shown in Fig. 2, the circuit for temperature detecting module in one embodiment is illustrated
Figure, input terminal R_DET_EN are connected to the base stage of triode Q1, the collector and power end V_BAT of triode Q1 by resistance R2
Connection, the emitter of triode Q1 are connect with one end of resistance R1, and one end of resistance RL is connect with resistance R1, and resistance RL's is another
End ground connection, port V_OUT_DET is drawn between resistance R1 and the emitter of triode Q1, is drawn between resistance R1 and resistance RL
Exit port V_OUT.
Wherein, triode Q1 is NPN type triode, and when the base stage of triode Q1 receives high voltage, triode Q1 is led
Logical, when the base stage of triode Q1 receives low-voltage, triode Q1 is disconnected;Resistance R1 is sampling resistor, and resistance RL is fever
Element, resistance R1 connect with resistance RL, series loop are formed, by the electric current in resistance R1 sampling circuit, according to Ohm's law
The resistance value that resistance RL can be calculated passes through the resistance value of heater element and the available heater element of the mapping table of temperature
Temperature.It is understood that in other embodiments, first switch unit can also be PNP type triode, PMOS tube,
NMOS tube, low pressure difference linear voltage regulator, Switching Power Supply etc..
Specifically, MCU chip reads the voltage value of the resistance R1 and resistance RL after triode Q1 conducting, pass through at this time
The voltage value of MCU chip read port V_OUT is N1, the voltage value of port V_OUT_DET is N2, then flows through the electric current of resistance R1
For:
I=(N2-N1)/R1
It is to calculate the resistance value of resistance RL:
RL=N1/i=R1*N1/ (N2-N1)
Wherein, RL is the resistance value of heater element, and R1 is the resistance value of sampling resistor, and N1 is the voltage value of heater element,
N2 is the voltage value of sampling resistor.
Further, according to the mapping table of the resistance value of heater element and temperature, the resistance value table of available resistance RL
The heating temperature shown.Resistance value-temperature curve of heater element in one embodiment is illustrated in figure 3, in the present embodiment, according to hair
The different resistance values of thermal element can correspond to the corresponding temperature of current resistance value for obtaining the heater element, for example, when detecting fever
When the resistance value of element is 0.77 Ω, the current temperature of the heater element can get according to resistance value-temperature curve of the heater element
Degree is 25 DEG C;When the resistance value for detecting heater element is 0.91 Ω, can be obtained according to resistance value-temperature curve of the heater element
The Current Temperatures for obtaining the heater element are 100 DEG C;When the resistance value for detecting heater element is 1.86 Ω, according to fever member
The Current Temperatures that resistance value-temperature curve of part can get the heater element are 600 DEG C.
In a specific embodiment, as shown in figure 4, the circuit for heating control module in one embodiment is illustrated
Figure, which includes PMOS tube U2, and the pin 1,2,3 of PMOS tube U2 is connect with power module, and PMOS tube U2's draws
Foot 4 is connect with main control module, and the pin 5,6,7,8 of PMOS tube U2 is connect with heater element.The pwm signal that main control module is sent is logical
It crosses pin 4 and is sent to PMOS tube U2, to control the on-off of PMOS tube U2.Optionally, when port PWM_OUT is low-voltage,
PMOS tube U2 conducting;When port PWM_OUT is high voltage, PMOS tube U2 cut-off.In other embodiments, second switch unit
It can also be NMOS tube, NPN type triode, PNP type triode, low pressure difference linear voltage regulator, Switching Power Supply etc., the present embodiment pair
This is without limiting.
In one embodiment, main control module sends pwm signal to second switch unit, to control heater element periodicity
Heating.Specifically, dutyfactor value, and the current temperature value and target of the heater element according to detection are worked as in main control module acquisition
The difference of temperature value, the target duty for calculating pulse width modulating signal compare regulated value.
More detailed explanation is made as follows, it can be according to current to the detailed process of the adjusting of pwm signal duty ratio
The size of duty ratio and specific size, a point situation for current temperature value 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), target duty is set than regulated value
It is set to 0, i.e., PWM is exported clear 0, to reduce the temperature of adding thermal resistance.
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
Cheng Wei: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, main control module calculates the temperature gap between the target temperature value and the current temperature value 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,
First difference quantized value is the numerical value between 0 to 1;And the last difference quantized value being calculated is obtained as the second difference amount
Change value;The main control module is according to the current duty cycle value and the first difference quantized value, the second difference quantized value
Determine that the target duty compares regulated value.
Wherein, it is determined according to the current duty cycle value and the first difference quantized value, the second difference quantized value
The target duty is than regulated value, specially:
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 value and difference between current temperature value and target temperature value
Corresponding relationship between quantized 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 be difference quantized value, difference of the Δ T between target temperature value and current temperature value, i.e.,:
Δ 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.
Based on identical inventive concept, the present invention also provides a kind of electronic cigarettes, including the temperature control in such as above-described embodiment
System processed, the electronic cigarette carry out thermostatic control using the temperature control system when carrying out temperature control.Optionally, the electronics
Cigarette can be the electronic cigarette tobacco rod of hot type electronic cigarette, can accommodate the smokeable material such as pipe tobacco, and can to this
Sucked material is heated so that user aspirates.
Implement the embodiment of the present invention, will have the advantages that:
After temperature control system using above-mentioned electronic cigarette, controlled by main control module to temperature detecting module and heating
Molding block issues control signal, and controls the temperature detecting module and heating control module alternation, to control the hair
The temperature of thermal element is identical as target temperature.It, can be preferable when temperature rises or temperature generates disturbance by above system
The temperature stability for controlling electronic cigarette, is improved the accuracy to heating and temperature control, improves user and set using electronic cigarette
Suction mouthfeel in standby, and reduce the generation of harmful substance, improve the protection to user health.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
The limitation to the application the scope of the patents therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the concept of this application, various modifications and improvements can be made, these belong to the guarantor of the application
Protect range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.