Summary of the invention
The technical problem to be solved in the present invention is, the defect that can not remind user according to the quality guarantee period for the above-mentioned electronic cigarette of prior art provides the method for electronic cigarette and detected electrons cigarette shelf-life a kind of.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of electronic cigarette, comprises supplying cell, the microcontroller being connected with supplying cell respectively and atomizer, and described microcontroller comprises the first timing module, comparison module, control module;
Described the first timing module is for timing;
Described comparison module is for comparing the timing time of described the first timing module and default timing time;
Described control module is for when the comparative result of described comparison module being described timing time while being equal to or greater than described default timing time, and the supplying cell of controlling described electronic cigarette disconnects to described atomizer powers;
Described default timing time equates with the duration of the quality guarantee period of described electronic cigarette, and described default timing time is arranged and preserved by described microcontroller.
Preferably, described the first timing module is timer, and the timing time of described timer equals the duration of the quality guarantee period of described electronic cigarette.
Preferably, described the first timing module is timer, and the timing of described timer equals the duration of the quality guarantee period of described electronic cigarette.
Preferably, described electronic cigarette also comprises: the reminding module being connected with described microcontroller, for export and show whether described the first timing module reaches timing time, and when the comparative result of described comparison module be that described timing time is exported the information of pointing out user while being equal to or greater than described default timing time.
Preferably, the prompting user's of described reminding module output information comprises: auditory tone cues and/or display reminding.
Preferably, described electronic cigarette also comprises: the smoking sensor and/or the input module that are connected with described microcontroller; Described smoking sensor sends described microcontroller to for detection of smoking signal and by described signal; Described input module is used for receiving external input signal and sends described signal to described microcontroller;
In the time that the comparative result of the described comparison module timing time that is described the first timing module is less than default timing time, the control module of described microcontroller is given described atomizer power supply according to supplying cell described in the signal controlling of the signal of described smoking sensor or described input module;
In the time that the comparative result of the described comparison module timing time that is described the first timing module is equal to or greater than described default timing time, the control module of described microcontroller receives the signal of described smoking sensor or the signal of described input module, controls described supplying cell and disconnects to described atomizer power supply.
Preferably, described input module is keyboard input module or touch-screen input module.
Preferably, described electronic cigarette also comprises: on-off circuit, for controlling described supplying cell and described atomizer conducting or disconnection, described on-off circuit is semiconductor switch.
Preferably, described microcontroller is MCU, CPU, GPU or asic chip.
A kind of electronic cigarette, comprise supplying cell, the microcontroller being connected with supplying cell respectively and atomizer, also comprise: the second timing module being connected with described microcontroller and supplying cell respectively, described the second timing module is used for timing, and sends timing signal to described microcontroller;
Described microcontroller comprises comparison module and control module; Described comparison module is for comparing the timing time of described the second timing module and default timing time; Described control module is for being that supplying cell that described timing time is controlled described electronic cigarette while being equal to or greater than described default timing time disconnects to described atomizer and powering when the comparative result of described comparison module;
Described default timing time equates with the duration of the quality guarantee period of described electronic cigarette, and described default timing time is arranged and preserved by microcontroller.
Preferably, in the time that described timing time is equal to or greater than described default timing time, the second timing module stops timing described in described microprocessor control.
Preferably, described the second timing module is timer chip, and its model is RX8025.
Preferably, described microcontroller is MCU, CPU, GPU or asic chip.
The method of detected electrons cigarette shelf-life, the supplying cell that described electronic cigarette comprises microcontroller, is connected with microcontroller, the atomizer being connected with supplying cell, described microcontroller comprises the first timing module, comparison module, control module, the method comprises:
The shelf-life duration of described electronic cigarette is set to default timing time;
Described the first timing module carries out timing;
Described comparison module compares the timing time of described the first timing module and default timing time;
In the time that the timing time of described the first timing module is equal to or greater than described default timing time, the supplying cell of electronic cigarette and the supply access of atomizer disconnect described in described control module control.
Preferably, described method also comprises:
Described timing time is exported and shown by the reminding module of described electronic cigarette, and in the time that the timing time of described the first timing module is equal to or greater than described default timing time, the reminding module of electronic cigarette output prompting user's information described in the control module control of described microcontroller, described prompting user's information comprises: auditory tone cues and/or display reminding.
Preferably, the reminding module of described electronic cigarette comprises: light-emitting diode display and/or loudspeaker.
Preferably, the reminding module of described electronic cigarette comprises: light emitting diode and/or loudspeaker.
The method of detected electrons cigarette shelf-life a kind of, the supplying cell that described electronic cigarette comprises microcontroller, is connected with microcontroller, the atomizer being connected with supplying cell, the second timing module being connected with microcontroller and supplying cell respectively, described microcontroller comprises comparison module and control module, and the method comprises:
The shelf-life duration of described electronic cigarette is set to default timing time;
Described the second timing module carries out timing;
Described microcontroller obtains timing time from described the second timing module, and described comparison module compares the timing time of described the second timing module and default timing time;
In the time that the timing time of described the second timing module is equal to or greater than described default timing time, the supplying cell of electronic cigarette and the supply access of atomizer disconnect described in the control module control of described microcontroller.
Preferably, described method also comprises: described microcontroller is exported by the reminding module of described electronic cigarette the timing time getting show, and in the time that the timing time of described the second timing module is equal to or greater than described default timing time, the reminding module of electronic cigarette output prompting user's information described in the control module control of described microcontroller; Described prompting user's information comprises: auditory tone cues and/or display reminding.
Implement a kind of electronic cigarette of the present invention and the method for detected electrons cigarette shelf-life, be applied to electronic cigarette, especially disposable electric cigarette, there is following beneficial effect: when shelf-life of electronic cigarette then, make electronic cigarette not work and user is reminded, the mouthfeel while making user use electronic cigarette and safety are protected.
Detailed description of the invention
Understand for technical characterictic of the present invention, object and effect being had more clearly, now contrast accompanying drawing and describe the specific embodiment of the present invention in detail.
As shown in Figure 1, be the structural representation of the electronic cigarette of the embodiment of the present invention.
In embodiments of the present invention, electronic cigarette comprises microcontroller 10, supplying cell 20, atomizer 30.Microcontroller 10 can be MCU, CPU, GPU or asic chip.Microcontroller 10 is connected with supplying cell 20, and atomizer 30 is connected with supplying cell 20.Atomizer 30 comprises oil storage cotton 31 and heating wire assembly 32.Wherein in oil storage cotton 31, store tobacco juice.The operation principle of electronic cigarette is that the tobacco juice in oil storage cotton 31 enters atomizer 30, and microcontroller 10 controls supplying cell 20 and be energized to atomizer 30, makes the heating wire assembly 32 in atomizer 30 generate heat to evaporate tobacco juice mist formation.
The preservation of the tobacco juice in electronic cigarette need to be dried in lucifuge, in cool place place, rotten to prevent tobacco juice.And tobacco juice has the quality guarantee period, using in the process of electronic cigarette, need to, within the shelf-life, could keep the taste of tobacco juice.For disposable electric cigarette, tobacco juice can not be changed, thus if tobacco juice exceedes the shelf-life, will cause user to use time, occur that mouthfeel is not good, and affect user's health.
As shown in Figure 2, be the structure chart of the electronic cigarette of the first preferred embodiment of the present invention.In the first preferred embodiment of the present invention, by the first timing module 11 is set in microcontroller 10, make electronic cigarette there is shelf life prompting function.In the first preferred embodiment of the present invention, electronic cigarette comprises microcontroller 10, supplying cell 20, atomizer 30, reminding module 40, smoking sensor 50, input module 60 and on-off circuit 70.Reminding module 40 is connected with microcontroller 10, for output display reminding information.Reminding module 40 comprises: light-emitting diode display and/or loudspeaker.Reminding module 40 also can comprise light emitting diode and/or loudspeaker.Smoking sensor 50 is connected with microcontroller 10, sends microcontroller 10 to for detection of smoking signal and by detection signal.Input module 60 is connected with microcontroller 10, for receiving external input signal and sending input signal to microcontroller 10.Input module 60 is keyboard input module or touch-screen input module.On-off circuit 70 is connected with microcontroller 10, supplying cell 20 and atomizer 30 respectively.Microcontroller 10 is by the shutoff of gauge tap circuit 70, to control supplying cell 20 and atomizer 30 conductings or disconnection.On-off circuit 70 is semiconductor switch.Semiconductor switch can be triode, metal-oxide-semiconductor, transistor, golden brake tube etc.
In the first preferred embodiment of the present invention, microcontroller 10 is provided with the first timing module 11, comparison module 12, control module 13.The first timing module 11 is for carrying out timing.The timing time started of the first timing module 11 can be set to following one of them: the timing time started that time corresponding with the date of manufacture of electronic cigarette, user arrange.In the first embodiment of the present invention, the first timing module 11 carries out continuous timing with the timing time started for starting, until the shelf-life of electronic cigarette to or user arrange timing time then stop.For example, the date of manufacture of a certain electronic cigarette is: on January 1st, 2013 17:00, the first 11 timing time starteds of timing module of electronic cigarette are set to 17:00 on January 1st, 2013.The setting of user to the timing time started or the setting of timing dwell time can be undertaken by input module 60, and the start and stop time that microcontroller 10 can receive the input of input module 60 and tackle mutually the timing of the first timing module 11 arranges.
Comparison module 12 is for comparing the timing time of the first timing module 11 and default timing time.
When control module 13 is equal to or greater than default timing time for the timing time that is the first timing module 11 when the comparative result of comparison module 12, the supplying cell 20 of controlling electronic cigarette disconnects to atomizer 30 powers.And in the time that the timing time of the first timing module 11 is equal to or greater than default timing time, reminding module 40 output prompting users' information, prompting user's information comprises: auditory tone cues and/or display reminding.
In the course of the work, when the timing time of the first timing module 11 then, the control module 13 gauge tap circuit 70 of microcontroller 10 disconnect, and power so that the supplying cell 20 of electronic cigarette disconnects to atomizer 30;
The first timing module 11 can be timer or timer.The default timing time of microcontroller 10 is set to equate and preserve with the duration of quality guarantee period.
If the first timing module 11 is timer, the mode of the first timing module 11 employing order timing.The moment that the first timing module 11 timing start is corresponding with the date of manufacture of electronic cigarette or corresponding with the zero hour of user's setting.By the timing time started as the first timing module 11 date of manufacture of electronic cigarette.The timing of starting from scratch of the first timing module 11, when timing time is during to the quality guarantee period, timing time arrives.
If the first timing module 11 is timer, the first timing module 11 adopts the mode of countdowning.Timer is countdowned from the moment corresponding with the date of manufacture of electronic cigarette or with the zero hour that user arranges, and when countdowning zero time, timing time arrives.
In the first preferred embodiment of the present invention, user arranges and can be undertaken by input module 60 zero hour of timing.Microcontroller 10 is according to the timing time started of signal setting first timing module 11 of the input module 60 receiving.
In the first preferred embodiment of the present invention, in the time that the timing time of the first timing module 11 is less than default timing time, microcontroller 10 according to input signal gauge tap circuit 70 conductings of the detection signal of smoking sensor 50 or input module 60 so that supplying cell 20 powers to atomizer 30.In the time that the timing time of the first timing module 11 is equal to or greater than default timing time, microcontroller 10 receives the detection signal of smoking sensor 50 or the input signal of input module 60, but still gauge tap circuit 70 disconnects, supplying cell 20 disconnects to atomizer 30 powers.
It is the circuit diagram of the electronic cigarette of the present invention's the first preferred embodiment shown in Fig. 2 referring to Fig. 3.In the circuit of the electronic cigarette of the first preferred embodiment of the present invention, the single-chip microcomputer that microcontroller 10 is Sn8P2711B for model, also can select other single-chip microcomputer with identical function or MCU.On-off circuit 70 comprises metal-oxide-semiconductor Q1.This model is that the 1st pin of the single-chip microcomputer of Sn8P2711B is VDD pin; The 10th pin is VSS pin; The 2nd pin is P0.2/Xout pin; The 3rd pin is P0.4/RST/Vpp pin; The 4th pin P5.3/BZ1/PWM1 pin; The 5th pin is P5.4/BZ0/PWM0 pin; The 6th pin is P4.0/AIN0/AVrefH pin; The 7th pin is P4.1/AIN1 pin; The 8th pin is P4.1/AIN2 pin; The 9th pin is P4.4/AIN4 pin.
The 1st pin of microcontroller 10 connects the positive pole of supplying cell 20, and by filter capacitor C1 ground connection; The 2nd pin connects smoking sensor 50; The 4th pin connects the grid of metal-oxide-semiconductor Q1; The 5th pin connects reminding module 40; The 9th pin connects input module 60; The 10th pin ground connection.
The source electrode of metal-oxide-semiconductor Q1 respectively ground connection and the negative pole, the drain electrode that connect supplying cell 20 connects one end of atomizer 30; The positive pole of another termination supplying cell 20 of atomizer 30.
In the course of the work, the timing time of the first timing module 11 of microcontroller 10 is by software control.The timing time of the first timing module 11 is less than default timing time, be the shelf-life not then, if the 2nd pin of microcontroller 10 detects high level signal (smoking sensor 50 detects smoking signal) or the 9th pin and high level signal (input module 60 detects input signal) detected, the 4th pin input high level of microcontroller 10.Metal-oxide-semiconductor Q1 conducting, supplying cell 20 powers to atomizer 30, and atomizer 30 is started working.
In the time that the timing time of the first timing module 11 is equal to or greater than default timing time, the 4th pin output low level of microcontroller 10, metal-oxide-semiconductor Q1 cut-off.Supplying cell 20 disconnects to the supply access of atomizer 30.Now, even if detecting high level signal or the 9th pin, the 2nd pin of microcontroller 10 high level signal detected, the still output low level of the 4th pin of microcontroller, and supplying cell 20 powers no longer to atomizer 30.And now, the 5th pin output control signal makes reminding module 40 export information, arrives so that user knows the quality guarantee period of this electronic cigarette.The prompting user's that reminding module 40 is exported information comprises: auditory tone cues and/or display reminding.The shelf-life of electronic cigarette, then atomizer 30 quit work, and to ensure working as the shelf-life then, electronic cigarette, in idle state, prevents that user from using expired electronic cigarette.
It is the structure chart of the electronic cigarette of the second preferred embodiment of the present invention referring to Fig. 4.In the second preferred embodiment of the present invention, electronic cigarette comprises microcontroller 10, supplying cell 20, atomizer 30, reminding module 40, smoking sensor 50, input module 60, on-off circuit 70 and the second timing module 80.Wherein, the annexation of microcontroller 10, supplying cell 20, atomizer 30, reminding module 40, smoking sensor 50, input module 60 and on-off circuit 70 and function and the present invention's the first preferred embodiment identical, no longer describes at this.The second timing module 80 is connected with microcontroller 10 and supplying cell 20 respectively, sends microcontroller 10 to for timing and by timing signal.The timing time started of the second timing module 80 can be set to following one of them: the timing time started that time corresponding with the date of manufacture of electronic cigarette, user arrange.In the second embodiment of the present invention, the second timing module 80 carries out continuous timing with the timing time started for starting, until the shelf-life of electronic cigarette to or user arrange timing time then stop.The setting of user to the timing time started or the setting of timing dwell time can be undertaken by input module 60, and the timing that microcontroller 10 can receive the input of input module 60 and tackle mutually the second timing module 80 starts and stop to control.
Microcontroller 10 is provided with comparison module 12 and control module 13.Comparison module 12 is for comparing the timing time of the second timing module 80 and default timing time.Control module 13 is for being that supplying cell 20 that timing time is controlled electronic cigarette while being equal to or greater than default timing time disconnects to atomizer 30 and powering when the comparative result of comparison module 12, and controls the second timing module 80 and stop timing.Default timing time equates with the duration of the quality guarantee period of electronic cigarette, and default timing time is arranged and preserved by microcontroller 10.
Be preferably in embodiment of the present invention second, the second timing module 80 is timer chip, and its model is RX8025.By supplying cell 20 to its power supply.
In the course of the work, the second timing module 80 is received after the control signal of microcontroller 10, is started timing.The timing time of the second timing module 80 is less than default timing time, be the shelf-life not then, if microcontroller 10 receives smoking sensor 50 and detects that smoking signal or input module 60 detect input signal, microcontroller 10 is controlled supplying cell 20 and is powered to atomizer 30, and atomizer 30 is started working.
In the time that the timing time of the second timing module 80 is equal to or greater than default timing time, microcontroller 10 is controlled supplying cell 20 supply accesses to atomizer 30 and is disconnected.Now, even if the smoking sensor 50 of receiving of microcontroller 10 detects that smoking signal or input module 60 detect input signal, microcontroller 10 is still controlled supplying cell 20 and is no longer powered to atomizer 30.And now, microcontroller 10 is exported control signal and is made reminding module 40 outputs point out users' information, arrives so that user knows the quality guarantee period of this electronic cigarette.Prompting user's information comprises: auditory tone cues and/or display reminding.For example, when the quality guarantee period then, the light emitting diode output passage of scintillation light by reminding module 40 is with reminding user, or sends voice prompt by the loudspeaker of reminding module 40.
The method of the detected electrons cigarette shelf-life that is a preferred embodiment of the present invention referring to Fig. 5, in this embodiment, electronic cigarette comprises microcontroller, the supplying cell, reminding module, the input module that are connected with microcontroller respectively, the atomizer being connected with supplying cell.Shown in microcontroller comprise the first timing module, comparison module, control module.The method comprises:
The shelf-life of S01, electronic cigarette is set to default timing time;
S02, the first timing module carry out timing;
S03, comparison module compare the timing time of the first timing module and default timing time;
S04, microcontroller judge whether timing time is equal to or greater than default timing time duration, if forward step S05 to, forward if not step S06 to;
The supplying cell of control module control electronic cigarette of S05, microcontroller and the supply access of atomizer disconnect;
The control module of S05, microcontroller makes the supply access conducting of supplying cell and atomizer, and forwards step S03 to.
In step S02, microcontroller taking date of manufacture of electronic cigarette as moment of starting timing using time of carrying out timing detection or arrange according to user as the time that starts timing.User's setting is to be undertaken by input module.
The method of the detected electrons cigarette shelf-life of the first preferred embodiment of the present invention also comprises: microcontroller is exported timing time show by the reminding module of electronic cigarette, and in the time that the timing time of the first timing module is equal to or greater than default timing time, the reminding module of electronic cigarette output prompting user's information described in microprocessor control, prompting user's information comprises: auditory tone cues and/or display reminding.
It is the method for the detected electrons cigarette shelf-life of the present invention's the second preferred embodiment referring to Fig. 6, electronic cigarette comprises microcontroller, the second timing module, supplying cell, reminding module, the input module that are connected with microcontroller respectively in this embodiment, the atomizer being connected with supplying cell, the second timing module is also connected with supplying cell.Microcontroller comprises comparison module and control module.The method comprises:
The shelf-life of S11, electronic cigarette is set to default timing time;
S12, the second timing module carry out timing;
S13, microcontroller obtain timing time from the second timing module, and comparison module compares the timing time of the second timing module and default timing time;
S14, microcontroller judge whether timing time is equal to or greater than default timing time duration, if forward step S15 to, forward if not step S16 to;
The supplying cell of control module control electronic cigarette of S15, microcontroller and the supply access of atomizer disconnect;
The control module of S16, microcontroller makes the supply access conducting of supplying cell and atomizer, and forwards step S13 to.
In step S12, microcontroller was controlled the second timing module and is started timing as starting the moment of timing taking date of manufacture of electronic cigarette, or the time arranging according to user is controlled the second timing module as the moment that starts timing and starts timing.User's setting is to be undertaken by input module.The method of the detected electrons cigarette shelf-life of the second preferred embodiment of the present invention also comprises: microcontroller is exported timing time show by the reminding module of electronic cigarette, and in the time that the timing time of the second timing module is equal to or greater than default timing time, the reminding module of electronic cigarette output prompting user's information described in microprocessor control, prompting user's information comprises: auditory tone cues and/or display reminding.
By the method for the shelf-life of the detected electrons cigarette of the first and second preferred embodiments of the present invention, be applied to electronic cigarette, can effectively ensure mouthfeel when user uses electronic cigarette, thereby ensure user's health.
The present invention utilizes the clocking capability of the microcontroller in electronic cigarette or in electronic cigarette, increases a timing module, and microcontroller arranges the shelf-life of electronic cigarette as the duration of timing.When electronic cigarette is dispatched from the factory (date of manufacture), microcontroller can get the resting period of electronic cigarette continuously.When shelf-life that the timing length of microcontroller or the timing length of timing module exceed setting is when length, electronic cigarette will quit work, stop responding user's smoking action, and can exceed the shelf-life with prompting consumer products by the light emitting diode of reminding module or display screen output information.Can prevent like this because the user's that the long tobacco juice taste causing of the resting period of electronic cigarette changes or therefore causes discomfort.
Electronic cigarette can be disposable electric cigarette or the electronic cigarette of can repeatedly charge use and replaceable tobacco juice in an embodiment of the present invention.If electronic cigarette is disposable electric cigarette, will default timing time be set according to the quality guarantee period of electronic cigarette.The timing time started of the first timing module of microcontroller or the second timing module of being connected with microcontroller is taking date of manufacture of electronic cigarette as beginning.If electronic cigarette is can repeatedly charge with using and the electronic cigarette of replaceable tobacco juice, only need to microcontroller, timing time started of the second timing module is set to be controlled by input module by user.And can microcontroller, the timing duration of the second timing module is set to be arranged by input module by user.In the time that user changes tobacco juice, start clocking capability, and timing duration is set., in the time that the length of microcontroller, the second timing module timing reaches the duration of user's setting, make the supplying cell of electronic cigarette and the supply access of atomizer disconnect, and show with reminding user by reminding module.In the time that user changes tobacco juice again, the clocking capability of replacement microcontroller or the second timing module, microcontroller or the second timing module re-start timing.
Should be understood that in an embodiment of the present invention, microcontroller, the second timing module are powered by the supplying cell of electronic cigarette, and in order to ensure continuity and the accuracy of timing, power supply should not be interrupted.
By reference to the accompanying drawings embodiments of the invention are described above; but the present invention is not limited to above-mentioned detailed description of the invention; above-mentioned detailed description of the invention is only schematic; instead of restrictive; those of ordinary skill in the art is under enlightenment of the present invention; not departing from the scope situation that aim of the present invention and claim protect, also can make a lot of forms, within these all belong to protection of the present invention.