Summary of the invention
The technical problem to be solved in the present invention is that the above-mentioned electronic cigarette for the prior art cannot be according to the quality guarantee period pair
The defect that user is reminded, a kind of method that electronic cigarette is provided and detects the electronic cigarette shelf-life.
The technical solution adopted by the present invention to solve the technical problems is:
A kind of electronic cigarette, including supplying cell, the microcontroller and atomizer being connect respectively with supplying cell, the micro-control
Device processed includes the first timing module, comparison module, control module;
First timing module is used for timing;
The comparison module is for the timing time of first timing module to be compared with preset timing time;
The control module is used to when the comparison result of the comparison module be described in the timing time is equal to or more than
When preset timing time, the supplying cell for controlling the electronic cigarette is disconnected powers to the atomizer;
The preset timing time is equal with the duration of the quality guarantee period of the electronic cigarette, the preset timing time
It is configured and is saved by the microcontroller.
Preferably, first timing module is timer, and the timing time of the timer is equal to the electronic cigarette
The duration of quality guarantee period.
Preferably, first timing module is timer, and the timing of the timer is equal to the electronic cigarette
The duration of quality guarantee period.
Preferably, the electronic cigarette further include: the cue module being connect with the microcontroller, for exporting and showing institute
State the first timing module and whether reach timing time, and when the comparison result of the comparison module be the timing time be equal to or
The information of output prompt user when greater than the preset timing time.
Preferably, the information of the prompt user of the cue module output includes: auditory tone cues and/or display reminding.
Preferably, the electronic cigarette further include: the smoking sensor and/or input module being connect with the microcontroller;
The smoking sensor is for detecting smoking signal and transmitting the signal to the microcontroller;The input module is used for
It receives external input signal and transmits the signal to the microcontroller;
When the timing time that the comparison result of the comparison module is first timing module is less than preset timing
Between when, the control module of the microcontroller controls institute according to the signal of the smoking sensor or the signal of the input module
Supplying cell is stated to power to the atomizer;
When the timing time that the comparison result of the comparison module is first timing module is equal to or more than described pre-
If timing time when, the control module of the microcontroller receive it is described smoking sensor signal or the input module
Signal, control the supplying cell disconnect give the atomizer power supply.
Preferably, the input module is keyboard input module or touch screen input module.
Preferably, the electronic cigarette further include: switching circuit is connected for controlling the supplying cell with the atomizer
Or disconnect, the switching circuit is semiconductor switch.
Preferably, the microcontroller is MCU, CPU, GPU or asic chip.
A kind of electronic cigarette, including supplying cell, the microcontroller and atomizer being connect respectively with supplying cell, further includes:
The second timing module connecting respectively with the microcontroller and supplying cell, second timing module are used for timing, and will
Timing signal sends the microcontroller to;
The microcontroller includes comparison module and control module;The comparison module is used for second timing module
Timing time be compared with preset timing time;The control module is used for
The supplying cell that the timing time is equal to or more than control the electronic cigarette when the preset timing time is disconnected to described
Atomizer power supply;
The preset timing time is equal with the duration of the quality guarantee period of the electronic cigarette, the preset timing time
It is configured by microcontroller and is saved.
Preferably, when the timing time is equal to or more than the preset timing time, the microcontroller control
Second timing module stops timing.
Preferably, second timing module is timer chip, model RX8025.
Preferably, the microcontroller is MCU, CPU, GPU or asic chip.
A method of the detection electronic cigarette shelf-life, the electronic cigarette includes microcontroller, the power supply that connect with microcontroller
Battery, the atomizer connecting with supplying cell, the microcontroller include the first timing module, comparison module, control module, are somebody's turn to do
Method includes:
Preset timing time is set by the shelf-life duration of the electronic cigarette;
First timing module carries out timing;
The timing time of first timing module is compared by the comparison module with preset timing time;
When the timing time of first timing module is equal to or more than the preset timing time, the control mould
The supply access of supplying cell and atomizer that block controls the electronic cigarette disconnects.
Preferably, the method also includes:
The timing time is exported and shown by the cue module of the electronic cigarette, and works as first timing
When the timing time of module is equal to or more than the preset timing time, the control module of the microcontroller controls the electricity
The information of the cue module output prompt user of sub- cigarette, the information of the prompt user include: that auditory tone cues and/or display mention
Show.
Preferably, the cue module of the electronic cigarette includes: light-emitting diode display and/or loudspeaker.
Preferably, the cue module of the electronic cigarette includes: light emitting diode and/or loudspeaker.
A method of the detection electronic cigarette shelf-life, the electronic cigarette includes microcontroller, the confession that connect with microcontroller
Battery, the atomizer connecting with supplying cell, the second timing module connecting respectively with microcontroller and supplying cell are described
Microcontroller includes comparison module and control module, this method comprises:
Preset timing time is set by the shelf-life duration of the electronic cigarette;
Second timing module carries out timing;
The microcontroller obtains timing time from second timing module, and the comparison module is counted described second
When module timing time be compared with preset timing time;
When the timing time of second timing module is equal to or more than the preset timing time, the microcontroller
The supply access of supplying cell and atomizer that the control module of device controls the electronic cigarette disconnects.
Preferably, the method also includes: the timing times that the microcontroller will acquire to pass through the electronic cigarette
Cue module is exported and is shown, and when the timing time of second timing module is equal to or more than the preset timing
When the time, the control module of the microcontroller controls the information of the cue module output prompt user of the electronic cigarette;It is described
The information for prompting user includes: auditory tone cues and/or display reminding.
The method implemented a kind of electronic cigarette of the invention and detect the electronic cigarette shelf-life, is applied to electronic cigarette, especially one
Secondary property electronic cigarette, have the advantages that when electronic cigarette shelf-life then so that electronic cigarette do not work and to user carry out
Remind so that user use electronic cigarette when mouthfeel and safety is guaranteed.
Specific embodiment
For a clearer understanding of the technical characteristics, objects and effects of the present invention, now control attached drawing is described in detail
A specific embodiment of the invention.
As shown in Figure 1, the structural schematic diagram of the electronic cigarette for the embodiment of the present invention.
In embodiments of the present invention, electronic cigarette includes microcontroller 10, supplying cell 20, atomizer 30.Microcontroller 10
It can be MCU, CPU, GPU or asic chip.Microcontroller 10 and supplying cell 20 connect, and atomizer 30 and supplying cell 20 connect
It connects.Atomizer 30 includes oil storage cotton 31 and heating wire component 32.Wherein tobacco juice is stored in oil storage cotton 31.The work of electronic cigarette is former
Reason is that the tobacco juice in oil storage cotton 31 enters atomizer 30, and microcontroller 10 controls supplying cell 20 and is energized to atomizer 30, makes
The heating wire component 32 obtained in atomizer 30 is generated heat to evaporate tobacco juice mist formation.
The preservation of tobacco juice in electronic cigarette need be protected from light, at shady and cool drying, to prevent tobacco juice from going bad.And tobacco juice is that have
Quality guarantee period, during using electronic cigarette, needs within the shelf-life, be just able to maintain the taste of tobacco juice.For disposable
Electronic cigarette, tobacco juice cannot be replaced, so if tobacco juice is more than the shelf-life, will lead to user using when mouthfeel occur bad,
And influence the health of user.
As shown in Fig. 2, the structure chart of the electronic cigarette for the first preferred embodiment of the invention.Preferably of the invention first
In embodiment, by the way that the first timing module 11 is arranged in microcontroller 10, electronic cigarette is made to have the function of shelf life prompting.At this
In first preferred embodiment of invention, electronic cigarette includes microcontroller 10, supplying cell 20, atomizer 30, cue module 40, inhales
Smoke sensor 50, input module 60 and switching circuit 70.Cue module 40 is connect with microcontroller 10, is mentioned for exporting and showing
Show information.Cue module 40 includes: light-emitting diode display and/or loudspeaker.Cue module 40 may also comprise light emitting diode and/or
Loudspeaker.Smoking sensor 50 is connect with microcontroller 10, sends microcontroller to for detecting smoking signal and will test signal
Device 10.Input module 60 is connect with microcontroller 10, for receiving external input signal and sending input signal to microcontroller
Device 10.Input module 60 is keyboard input module or touch screen input module.Switching circuit 70 respectively with microcontroller 10, power supply
Battery 20 and atomizer 30 connect.Microcontroller 10 passes through the shutdown of control switch circuit 70, to control supplying cell 20 and mist
Change device 30 to be turned on or off.Switching circuit 70 is semiconductor switch.Semiconductor switch can be triode, metal-oxide-semiconductor, transistor, gold
Brake tube etc..
In the first preferred embodiment of the invention, microcontroller 10 be provided with the first timing module 11, comparison module 12,
Control module 13.First timing module 11 is for carrying out timing.The timing time started of first timing module 11 may be configured as with
It is lower one of them: the time corresponding with the date of manufacture of electronic cigarette, user setting the timing time started.Of the invention
In one embodiment, the first timing module 11 is to start to carry out continuous timing with the timing time started, until the shelf-life of electronic cigarette
To or the timing time of user setting then stop.For example, the date of manufacture of a certain electronic cigarette are as follows: on January 1st, 2013 17:00,
Then 17:00 on January 1st, 2013 is set by the 11 timing time started of the first timing module of electronic cigarette.When user starts timing
Between setting or the setting of timing dwell time can be carried out by input module 60, microcontroller 10 can receive input module 60
The start and stop time for inputting and mutually coping with the timing of the first timing module 11 is configured.
Comparison module 12 is for the timing time of the first timing module 11 to be compared with preset timing time.
Control module 13 be used for when comparison module 12 comparison result be the first timing module 11 timing time be equal to or
When greater than preset timing time, the supplying cell 20 for controlling electronic cigarette is disconnected powers to atomizer 30.And when the first timing mould
When the timing time of block 11 is equal to or more than preset timing time, the information of the output prompt user of cue module 40 prompts to use
The information at family includes: auditory tone cues and/or display reminding.
During the work time, when the timing time of the first timing module 11 then, the control module 13 of microcontroller 10 is controlled
Switching circuit 70 processed disconnects, and powers so that the supplying cell 20 of electronic cigarette is disconnected to atomizer 30;
First timing module 11 can be timer or timer.Microcontroller 10 sets preset timing time to and protects
The duration in matter time limit is equal and is saved.
If the first timing module 11 is timer, the first timing module 11 is by the way of sequence timing.First timing
11 timing of module it is corresponding with the date of manufacture of electronic cigarette at the time of beginning or with user setting at the beginning of it is corresponding.It will
Timing time started of the date of manufacture of electronic cigarette as the first timing module 11.First timing module 11 is started from scratch timing,
When timing time is to the quality guarantee period, timing time is arrived.
If the first timing module 11 is timer, the first timing module 11 is by the way of countdowning.Timer from
Moment corresponding with the date of manufacture of electronic cigarette or with user setting at the beginning of countdown, when countdown to
When zero, timing time is arrived.
In the first preferred embodiment of the invention, at the beginning of user setting timing can by input module 60 into
Row.The timing time started of the first timing module 11 is arranged according to the signal of the input module 60 received for microcontroller 10.
In the first preferred embodiment of the invention, when the timing time of the first timing module 11 is less than preset timing
Between when, microcontroller 10 according to smoking sensor 50 detection signal or input module 60 input signal control switch circuit 70
It is connected so that supplying cell 20 is powered to atomizer 30.When the timing time of the first timing module 11 is equal to or more than preset meter
When the time when, microcontroller 10 receive smoking sensor 50 detection signal or input module 60 input signal, but still control
Switching circuit 70 processed disconnects so that supplying cell 20, which disconnects, gives the power supply of atomizer 30.
Referring to the circuit diagram for the electronic cigarette that Fig. 3 is the first preferred embodiment of the invention shown in Fig. 2.Of the invention first compared with
In the circuit of the electronic cigarette of good embodiment, microcontroller 10 is the single-chip microcontroller of model Sn8P2711B, other, which also can be selected, has
The single-chip microcontroller or MCU of identical function.Switching circuit 70 includes metal-oxide-semiconductor Q1.1st foot of the single-chip microcontroller of model Sn8P2711B
For VDD pin;10th foot is VSS foot;2nd foot is P0.2/Xout foot;3rd foot is P0.4/RST/Vpp foot;4th foot P5.3/
BZ1/PWM1 foot;5th foot is P5.4/BZ0/PWM0 foot;6th foot is P4.0/AIN0/AVrefH foot;7th foot is P4.1/AIN1
Foot;8th foot is P4.1/AIN2 foot;9th foot is P4.4/AIN4 foot.
1st foot of microcontroller 10 connects the anode of supplying cell 20, and is grounded by filter capacitor C1;2nd foot connects smoking
Sensor 50;4th foot connects the grid of metal-oxide-semiconductor Q1;5th foot connects cue module 40;9th foot connects input module 60;10th foot ground connection.
The source electrode of metal-oxide-semiconductor Q1 is grounded and connects respectively the cathode of supplying cell 20, drain electrode connects one end of atomizer 30;Atomizer
The anode of 30 another termination supplying cell 20.
During the work time, the timing time of the first timing module 11 of microcontroller 10 is by software control.First timing
The timing time of module 11 is less than preset timing time, i.e. the shelf-life is not timed out, if the 2nd foot of microcontroller 10 detects height
Level signal (smoking sensor 50 detects smoking signal) or the 9th foot detect that (input module 60 detects high level signal
Input signal), then the 4th foot input high level of microcontroller 10.Metal-oxide-semiconductor Q1 conducting, supplying cell 20 are powered to atomizer 30,
Atomizer 30 is started to work.
When the timing time of the first timing module 11 is equal to or more than preset timing time, the 4th of microcontroller 10 the
Foot exports low level, metal-oxide-semiconductor Q1 cut-off.Supplying cell 20 is disconnected to the supply access of atomizer 30.At this point, even if microcontroller
10 the 2nd foot detects that high level signal or the 9th foot detect that high level signal, the 4th foot of microcontroller still export low level,
Supplying cell 20 is no longer powered to atomizer 30.And at this point, the 5th foot output control signal make cue module 40 carry out output mention
Show information, so that user knows that the quality guarantee period of the electronic cigarette has arrived.The information of prompt user that cue module 40 exports includes:
Auditory tone cues and/or display reminding.The shelf-life of electronic cigarette, then atomizer 30 stopped working, to guarantee to work as the shelf-life then,
Electronic cigarette is in idle state, prevents user from using expired electronic cigarette.
It is referring to fig. 4 the structure chart of the electronic cigarette of the second preferred embodiment of the invention.It is preferably real of the invention second
It applies in example, electronic cigarette includes microcontroller 10, supplying cell 20, atomizer 30, cue module 40, smoking sensor 50, input
Module 60, switching circuit 70 and the second timing module 80.Wherein, microcontroller 10, supplying cell 20, atomizer 30, prompt mould
Connection relationship and function and the present invention first preferably implementation of block 40, smoking sensor 50, input module 60 and switching circuit 70
Example it is identical, no longer describe herein.Second timing module 80 is connect with microcontroller 10 and supplying cell 20 respectively, is used for timing
And send timing signal to microcontroller 10.The timing time started of second timing module 80 may be configured as it is following wherein it
One: the time corresponding with the date of manufacture of electronic cigarette, user setting the timing time started.In the second embodiment of the present invention
In, the second timing module 80 is to start to carry out continuous timing with the timing time started, until the shelf-life of electronic cigarette arrives or user
The timing time of setting then stops.User can pass through input to the setting of timing time started or the setting of timing dwell time
Module 60 carry out, microcontroller 10 can receive the input of input module 60 and mutually cope with the second timing module 80 timing start and
Stopping is controlled.
Microcontroller 10 is provided with comparison module 12 and control module 13.Comparison module 12 is used for the second timing module 80
Timing time be compared with preset timing time.Control module 13 is used to when the comparison result of comparison module 12 be timing
The supplying cell 20 of control electronic cigarette is disconnected when time is equal to or more than preset timing time powers to atomizer 30, and controls
Second timing module 80 stops timing.Preset timing time is equal with the duration of the quality guarantee period of electronic cigarette, preset timing
Time is configured and is saved by microcontroller 10.
In of the invention second preferably embodiment, the second timing module 80 is timer chip, model
RX8025.It is supplied power for by supplying cell 20.
During the work time, after the second timing module 80 receives the control signal of microcontroller 10, that is, start timing.Second
The timing time of timing module 80 is less than preset timing time, i.e. the shelf-life is not timed out, if microcontroller 10 receives smoking
Sensor 50 detects that smoking signal or input module 60 detect input signal, then microcontroller 10 controls supplying cell 20 and gives
Atomizer 30 is powered, and atomizer 30 is started to work.
When the timing time of the second timing module 80 is equal to or more than preset timing time, the control of microcontroller 10 is supplied
Battery 20 is disconnected to the supply access of atomizer 30.At this point, even if the smoking sensor 50 that receives of microcontroller 10 detects
Smoking signal or input module 60 detect input signal, and microcontroller 10 still controls supplying cell 20 and no longer supplies to atomizer 30
Electricity.And at this point, the output control signal of microcontroller 10 makes the information of the output prompt user of cue module 40, so that user knows
The quality guarantee period of the electronic cigarette has arrived.The information for prompting user includes: auditory tone cues and/or display reminding.For example, working as the shelf-life
When being limited to, scintillation light is exported to remind user, or the loudspeaking by cue module 40 by the light emitting diode of cue module 40
Device issues voice prompt.
Referring to the method that Fig. 5 is a preferred embodiment of the present invention the detection electronic cigarette shelf-life, in this embodiment, electronics
Cigarette includes microcontroller, the supplying cell connecting respectively with microcontroller, cue module, input module, is connect with supplying cell
Atomizer.Shown microcontroller includes the first timing module, comparison module, control module.This method comprises:
S01, preset timing time is set by the shelf-life of electronic cigarette;
S02, the first timing module carry out timing;
The timing time of first timing module is compared by S03, comparison module with preset timing time;
S04, microcontroller judge whether timing time is equal to or more than preset timing time duration, if then going to step
Rapid S05, if otherwise going to step S06;
S05, the supplying cell of control module control electronic cigarette of microcontroller and the supply access of atomizer disconnect;
S05, microcontroller control module supplying cell is connected with the supply access of atomizer, and go to step
S03。
In step S02, microcontroller with the date of manufacture of electronic cigarette be start timing at the time of with carry out timing detection or
According to the time of user setting as the time for starting timing.The setting of user is carried out by input module.
The method of the detection electronic cigarette shelf-life of first preferred embodiment of the invention further include: when microcontroller is by timing
Between exported and shown by the cue module of electronic cigarette, and when the timing time of the first timing module be equal to or more than it is default
Timing time when, microcontroller control the electronic cigarette cue module output prompt user information, prompt the letter of user
Breath includes: auditory tone cues and/or display reminding.
It is electric in this embodiment referring to the method for the detection electronic cigarette shelf-life that Fig. 6 is the second preferred embodiment of the invention
Sub- cigarette includes microcontroller, the second timing module, supplying cell, cue module, the input module that connect respectively with microcontroller,
The atomizer connecting with supplying cell, the second timing module are also connect with supplying cell.Microcontroller includes comparison module and control
Molding block.This method comprises:
S11, preset timing time is set by the shelf-life of electronic cigarette;
S12, the second timing module carry out timing;
S13, microcontroller obtain timing time from the second timing module, and comparison module is by the timing of the second timing module
Time is compared with preset timing time;
S14, microcontroller judge whether timing time is equal to or more than preset timing time duration, if then going to step
Rapid S15, if otherwise going to step S16;
S15, the supplying cell of control module control electronic cigarette of microcontroller and the supply access of atomizer disconnect;
S16, microcontroller control module supplying cell is connected with the supply access of atomizer, and go to step
S13。
In step S12, microcontroller is to control the second timing module at the time of starting timing with the date of manufacture of electronic cigarette
The second timing module, which is controlled, at the time of starting timing, or be used as according to the time of user setting and start timing starts timing.User
Setting be to be carried out by input module.The method of the detection electronic cigarette shelf-life of second preferred embodiment of the invention is also wrapped
Include: timing time is exported and is shown by the cue module of electronic cigarette by microcontroller, and when the meter of the second timing module
When the time be equal to or more than preset timing time when, microcontroller control the electronic cigarette cue module output prompt user
Information, prompting the information of user includes: auditory tone cues and/or display reminding.
By the method for the shelf-life of the detection electronic cigarette of the first and second preferred embodiments of the invention, it is applied to electronics
Cigarette can effectively ensure mouthfeel of the user using electronic cigarette when, to ensure the health of user.
The present invention is to utilize the clocking capability of the microcontroller in electronic cigarette or one timing module of increase in electronic cigarette,
Duration of the shelf-life of electronic cigarette as timing is arranged in microcontroller.So that when electronic cigarette dispatches from the factory (date of manufacture), microcontroller
Device can continuously acquire the resting period of electronic cigarette.When the timing length of microcontroller or the timing length of timing module exceed
When the how long shelf-life of setting, electronic cigarette will stop working, and stop the smoking movement of response user, and can pass through prompt
Light emitting diode or display screen the output prompt information of module are to prompt consumer products to exceed the shelf-life.It can prevent in this way
Because of the change of tobacco juice taste caused by the resting period of electronic cigarette is too long or the therefore discomfort of caused user.
Electronic cigarette can be disposable electronic cigarette or can repeatedly charge use and replaceable tobacco juice in an embodiment of the present invention
Electronic cigarette.If electronic cigarette is disposable electronic cigarette, it is by preset timing time is arranged according to the quality guarantee period of electronic cigarette
It can.The timing time started of first timing module of microcontroller or the second timing module connecting with microcontroller is with electronic cigarette
Date of manufacture be start.If electronic cigarette be can repeatedly charge use and replaceable tobacco juice electronic cigarette, only need micro-control
Device processed, the second timing module the timing time started be set as to be controlled by user by input module.And it can incite somebody to action
Microcontroller, the second timing module timing duration be set as to be configured by user by input module.I.e. when user more
When changing tobacco juice, start clocking capability, and timing duration is set.Then when the length of microcontroller, the second timing module timing reaches
When the duration of user setting, i.e., so that the supply access of the supplying cell of electronic cigarette and atomizer disconnects, and pass through cue module
It is shown to remind user.When user replaces tobacco juice again, the clocking capability of microcontroller or the second timing module is reset,
Then microcontroller or the second timing module re-start timing.
It should be understood that in an embodiment of the present invention, microcontroller, the second timing module by electronic cigarette supplying cell into
Row power supply, and continuity and accuracy in order to guarantee timing, power supply should not be interrupted.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.