Disclosure of Invention
The technical problem to be solved by the present invention is to provide a device and a method for automatically detecting cigarettes, aiming at the above-mentioned defects of the prior art.
The technical scheme adopted by the invention for solving the technical problems is as follows: an apparatus for automatically testing cigarettes is constructed, comprising:
the cigarette holder is used for placing cigarettes, a first opening for inserting the cigarettes is formed in one end of the cigarette holder, and a second opening for inserting the heating sheet is formed in the other end of the cigarette holder;
the heating sheet is attached with a heating wire for heating;
the sampling circuit is electrically connected with the heating sheet and is used for monitoring the resistance value of the heating wire in real time in the heating process of the heating wire so as to generate a sampling signal;
the controller is connected with the sampling circuit and used for receiving and generating a control signal according to a sampling signal sent by the sampling circuit, the controller comprises a memory, the memory is arranged in the controller, and a mapping table of corresponding relation between resistance values and time associated with the heating wire is stored in the memory;
the turn-off circuit is respectively connected with the sampling circuit and the controller and is used for controlling the on-off of the heating wire according to the control signal;
the sampling circuit the controller and the turn-off circuit are all arranged on the first surface of a PCB control board, and one end of the PCB control board is fixedly connected with the heating sheet.
Preferably, the smoke tray comprises:
the first opening is arranged at one end of the accommodating cavity, and the second opening is arranged at the other end of the accommodating cavity; the first opening is used for inserting the cigarette into the accommodating cavity, and the second opening is used for inserting the heating sheet into the accommodating cavity;
the accommodating cavity is matched with cigarettes in different shapes.
Preferably, the method further comprises the following steps:
the amplifying circuit is connected in series between the sampling circuit and the signal monitoring end of the controller and is used for amplifying the sampling signal and then sending the amplified sampling signal to the controller;
the sampling circuit comprises a sampling resistor, and the amplifying circuit comprises a first input end, a second input end and an output end;
the first end of sampling resistance with the positive end of the piece that generates heat is connected, the first end of sampling resistance with the series connection link of the positive end of the piece that generates heat with amplifier circuit's first input is connected, the second end of sampling resistance with amplifier circuit's second input is connected, amplifier circuit's output with the signal monitoring end of controller is connected.
Preferably, the turn-off circuit comprises a control MOS transistor, a gate of the control MOS transistor is connected to the power control end of the controller, a source of the control MOS transistor is connected to the second end of the sampling resistor, and a drain of the control MOS transistor is connected to a power supply pin of the controller and is connected to a power supply voltage.
Preferably, the method further comprises the following steps: a battery disposed on a second side of the PCB control board;
and the positive output end of the battery is respectively connected with the drain electrode of the control MOS tube and the power supply pin of the controller.
Preferably, the method further comprises the following steps:
and the battery management module is connected in parallel between the positive output end and the negative output end of the battery and is used for managing and controlling the charging of the battery.
Preferably, the method further comprises the following steps:
the vibration motor and the motor driving circuit are connected with the vibration motor;
the control end of the motor driving circuit is connected with the vibration enabling end of the controller, and is used for receiving and generating a driving signal according to a vibration signal output by the vibration enabling end of the controller, and sending the driving signal to the vibration motor;
the vibration motor is used for receiving and generating vibration according to the driving signal.
Preferably, the PCB control board is further provided with at least one LED indicator for indicating power information/heating time information;
and the signal end of the LED indicator lamp is connected with a signal pin of the controller.
Preferably, the PCB control panel is further provided with a key switch connected with the controller, and the key switch is used for controlling the switch of the device for automatically detecting cigarettes.
The invention also provides a method for automatically detecting cigarettes, which is applied to the device for automatically detecting the cigarettes and comprises the following steps:
s11, monitoring the resistance value change of the heating wire by the sampling circuit, generating a corresponding sampling signal, and sending the sampling signal to a signal monitoring end of the controller;
s12, the controller receives and processes the sampling signal to obtain the actually measured resistance value of the heating wire;
s13, the controller searches in a corresponding relation mapping table of time and resistance values stored in a memory and associated with the heating wire according to the actually measured resistance value to obtain matching time corresponding to the actually measured resistance value;
s14, the controller judges whether the matching time is less than a first preset time, if yes, the step S15 is executed; if not, go to step S16;
s15, the controller judges that no cigarette is on the heating wire, and outputs a control signal to a turn-off circuit to control the heating wire to be disconnected and stop heating the heating wire;
s16, the controller judges whether the matching time is greater than the first preset time and less than the second preset time, if so, the controller judges that a cigarette is on the heating wire.
The device for automatically detecting cigarettes has the following beneficial effects: the device for automatically detecting cigarettes obtains the actual temperature rise time of the heating wire by monitoring the actual resistance value change of the heating wire in real time and based on the time and resistance value corresponding relation mapping table stored in the memory and associated with the heating wire, judges whether the cigarettes are inserted into the heating sheet or not according to the actual temperature rise time of the heating wire, and then controls the on-off of the heating sheet according to the judgment result, thereby effectively avoiding the problem of idle burning of the heating sheet, achieving the aim of saving energy while improving the safety of the electronic cigarette.
Detailed Description
For a more clear understanding of the technical features, objects and effects of the present invention, embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
Referring to fig. 1 and 2, the present invention provides an apparatus for automatically inspecting cigarettes, which comprises: the cigarette holder 12, generate heat piece 1, sampling circuit 2, controller 4 and shut off circuit 3. Specifically, the cigarette holder 12 is used for placing the cigarette 100 and allowing the heating sheet 1 to be inserted therein. The heating sheet 1 is adhered with a heating wire 101 for heating; the sampling circuit 2 is electrically connected with the heating sheet 1 and is used for monitoring the resistance value change of the heating wire 101 in real time in the heating process of the heating wire 101 so as to generate a sampling signal and sending the sampling signal to a signal monitoring end of the controller 4; the controller 4 receives and generates a control signal according to the sampling signal sent by the sampling circuit 2. The controller 4 comprises a memory, the memory is arranged in the controller 4, and a mapping table of the corresponding relation between the time and the resistance value associated with the heating wire 101 is stored in the memory; the turn-off circuit 3 is respectively connected with the controller 4 and the sampling circuit 2 and is used for receiving and controlling the on-off of the heating wire 101 according to the control signal in the heating process of the heating plate 1 so as to control the heating wire 101 to continue heating or stop heating.
Optionally, in this embodiment, one end of the cigarette holder 12 is provided with a first opening 121 for inserting the cigarette 100, and the other end of the cigarette holder 12 is provided with a second opening 122 for inserting the heating element. The cigarette holder 12 further comprises an accommodating cavity for accommodating the cigarette 100 and the heating sheet 1, wherein the first opening 121 is arranged at one end of the accommodating cavity, and the second opening 122 is arranged at the other end of the accommodating cavity; the first opening 121 is used for inserting the cigarette 100 into the accommodating cavity, and the second opening 122 is used for inserting the heating sheet 1 into the accommodating cavity.
Alternatively, the accommodating cavity of the present embodiment may be adapted to cigarettes with different shapes, in other words, the accommodating cavity provided in the cigarette holder 12 may be determined according to the shape of the cigarette 100, and the present invention is not limited in particular.
In some embodiments, the shape of the first opening 121 is based on the receiving cavity into which the cigarette 100 can be inserted, and the invention is not particularly limited. Similarly, the shape of the second opening 122 is based on the receiving cavity into which the heat generating sheet can be inserted, and the invention is not particularly required.
Further, sampling circuit 2, controller 4 and turn-off circuit 3 all set up on the first face of a PCB control panel 13, and the one end fixed connection of PCB control panel 13 generates heat piece 1.
In this embodiment, the other end of PCB control panel 13 still is equipped with the interface 14 that charges, and this interface 14 that charges can supply this automated inspection cigarette's device to be connected with outside charging source to the realization charges to the device of automated inspection cigarette, wherein this interface 14 that charges can be used to directly fill, also can be used to the seat and fills, applicable in the charging source of different grade type.
In specific use, if the electron cigarette is started by mistake and heats heater 101 or heater 101 is at normal heating in-process, through establish ties a sampling circuit 2 on heating plate 1, in the heating wire 101 heating process on heating plate 1, this sampling circuit 2 carries out real-time supervision to the actual resistance change of heater 101 to convert the result of monitoring into corresponding sampling signal, this sampling signal is used for confirming the resistance of heater 101 promptly. The real-time resistance change of the heating wire 101 in the heating process is converted into a corresponding sampling signal and sent to the controller 4, the controller 4 carries out corresponding operation processing after receiving the sampling signal and converts the sampling signal into a corresponding actual measurement resistance (the actual measurement resistance is the current actual resistance of the heating wire), matching time corresponding to the actual measurement resistance is searched from a time-resistance correspondence mapping table stored in a memory according to the actual measurement resistance, the matching time is compared and judged with first preset time and second preset time, if the matching time is less than the first preset time, it can be judged that no cigarette exists on the heating sheet 1, a control signal is output to a turn-off circuit to control the heating wire 101 to be turned off, and heating of the heating wire 101 is stopped; if the matching time is longer than the first preset time and shorter than the second preset time, it can be determined that cigarettes are on the heating wire 101, and at this time, the controller 4 does not adjust the heating wire 101 to keep heating the heating wire 101. Can effectively avoid heater 101 empty burning, prolong the life of heater 101 through above-mentioned control, and can avoid the mistake to touch and burn the user, improve the security of electron cigarette, and can also effectively avoid the waste of the energy.
It should be noted that the time-resistance mapping table stored in the memory of the present embodiment is associated with and uniquely corresponds to the heating wire 101, that is, the time-resistance mapping table reflects the correspondence between the time and the resistance of the heating wire 101. Optionally, the time-resistance correspondence mapping table stored in the memory may be a time-resistance correspondence mapping table obtained by processing the obtained data to form a time-resistance correspondence mapping table and storing the time-resistance correspondence mapping table in the memory. In some embodiments, the corresponding relationship between the time and the resistance value can be made into a relationship curve and stored in the memory.
Further, the device for automatically detecting cigarettes in the embodiment of the invention further comprises:
and the amplifying circuit 5 is connected between the sampling circuit 2 and the signal monitoring end of the controller 4 in series, and is used for amplifying the sampling signal and then sending the amplified sampling signal to the controller 4.
The sampling circuit 2 comprises a sampling resistor, and the amplifying circuit 5 comprises a first input terminal, a second input terminal and an output terminal.
The first end of sampling resistor is connected with the positive end of piece 1 that generates heat, and the first end of sampling resistor and the series connection link of the positive end of piece 1 that generates heat are connected with amplifier circuit 5's first input, and the second end of sampling resistor is connected with amplifier circuit 5's second input, and amplifier circuit 5's output is connected with the signal monitoring end of controller 4.
It can be understood that, in the embodiment of the present invention, the sampling resistor is mainly used for monitoring and sampling the actual resistance value of the heating wire 101 in real time, and therefore, the selected sampling resistor has a very small resistance value, which is generally much smaller than the resistance value of the heating wire 101, so that the purposes of signal monitoring and sampling can be achieved, and the adverse effect on the circuit can not be generated.
Because the resistance value of the sampling resistor is very small, the generated sampling signal is very small, therefore, in the embodiment of the invention, the amplifying circuit 5 is additionally arranged between the signal monitoring end of the controller 4 and the sampling resistor, and the sampling signal is subjected to operational amplification processing by the amplifying circuit 5 and then is sent to the signal monitoring end of the controller 4, so that the sampling signal can be stably monitored by the controller 4, and the stability and the accuracy of signal transmission are improved.
Alternatively, the amplifying circuit 5 may include an operational amplifier, which is a high-precision operational amplifier.
In the embodiment of the present invention, the turn-off circuit 3 includes a control MOS transistor, a gate of the control MOS transistor is connected to the power control end of the controller 4, a source of the control MOS transistor is connected to the second end of the sampling resistor, and a drain of the control MOS transistor is connected to the power supply pin of the controller 4 and is connected to the power supply voltage. The heating time of the heating wire 101 is controlled by the sampling control MOS tube, so that the heating temperature of the heating wire 101 can be accurately controlled. The specific control principle is as follows: the controller 4 outputs a PWM power adjustment signal to the control end of the control MOS transistor to control the on/off of the MOS transistor, thereby achieving the purpose of controlling the heating wire 101 to continue heating or stop heating, and finally achieving effective protection of the heating wire 101, and avoiding the waste of energy and the influence on the service life of the electronic cigarette due to idle burning of the heating wire 101.
Furthermore, the device for automatically detecting cigarettes in the embodiment of the invention can also comprise a battery 7, and the battery 7 is arranged on the second surface of the PCB control board 13. The battery 7 is mainly used to supply power to components arranged on the first side of the PCB control board 13. As shown in fig. 2, the positive output terminal of the battery 7 is connected to the drain of the control MOS transistor and the power supply pin of the controller 4, respectively. As can be seen from fig. 2, the on or off of the MOS transistor controls the on or off of the heating wire 101. For example, when the MOS transistor is controlled to be turned on, the supply voltage provided by the battery 7 can be transmitted to the positive terminal of the heating sheet 1 through the sampling resistor after passing through the drain and the source of the MOS transistor, the heating sheet 1 is in a heating state, and the heating wire 101 is heated; when the control MOS tube is turned off, the drain electrode and the source electrode of the control MOS tube are in a disconnected state, the power supply voltage cannot pass through, and the heating sheet 1 stops heating.
Furthermore, the device for automatically detecting cigarettes in the embodiment of the invention may further include a battery management module 8, and the battery management module 8 is connected in parallel between the positive output end and the negative output end of the battery 7 and is used for managing and controlling the charging of the battery 7.
Alternatively, the battery management module 8 may include a charge management IC and a battery protection IC, which may monitor and control the amount of charge and the charge of the battery 7 in real time. For example, during the charging process, the charging management IC monitors the charging state of the battery 7 in real time, and when the battery 7 is fully charged, the charging management IC outputs a control signal to cut off the connection between the battery 7 and an external power supply, so that the battery 7 is automatically turned off for charging, and the battery 7 is prevented from being damaged due to the overcharge of the battery 7. The battery protection IC can be used for managing and protecting the battery 7.
In an embodiment of the present invention, the apparatus for automatically detecting a cigarette may further include: a vibration motor 11 and a motor drive circuit 10 connected to the vibration motor 11. The control end of the motor driving circuit 10 is connected with the vibration enable end of the controller 4, and is used for receiving and generating a driving signal according to a vibration signal output by the vibration enable end of the controller 4, and sending the driving signal to the vibration motor 11; the vibration motor 11 receives and generates vibrations according to the driving signal.
In the using process, when the heating wire 101 is heated to end smoking, the controller 4 outputs a vibration signal to the motor driving circuit 10, and the motor driving circuit 10 is turned on to generate a driving signal to drive the vibration motor 11 to generate vibration, so as to prompt a user to start smoking.
Optionally, the motor driving circuit 10 according to the embodiment of the present invention may include a driving MOS transistor, and the driving MOS transistor may control the operating state of the vibration motor 11.
In an embodiment of the present invention, the apparatus for automatically detecting a cigarette may further include: at least one LED indicator 6. Wherein, at least the LED indicator lamp 6 is arranged on the first surface of the PCB control board 13 and is used for indicating the LED indicator lamp 6 of the electric quantity information/heating time information; and the signal end of the LED indicator lamp 6 is respectively connected with the signal pin corresponding to the controller 4, and when a plurality of LED indicator lamps 6 are adopted, the signal end of each LED indicator lamp 6 is respectively connected with the signal pin corresponding to the controller 4.
Optionally, the LED indicator 6 of the present embodiment may include 4 LED indicator 6, and the 4 LED indicator 6 may indicate the power signal of the battery or the heating time information of the heating wire 101. For example, in the heating process of the heating wire 101, 4 LED lamps automatically perform a lighting action according to an indication signal output by the controller 4, for example, when the heating time reaches half of the preset heating time, 2 LED lamps are turned on; when the heating time reaches the preset heating time, the 4 LED lamps are fully lighted. Or when the electric quantity is indicated, when the electric quantity indicating signal is received, the corresponding lighting indication is carried out according to the electric quantity indicating signal, for example, if the electric quantity is remained by 50%, 2 LED lamps are on, when the electric quantity is remained by 75%, 3 LED lamps are on, and when the electric quantity is still 100%, 4 LED lamps are all on. Wherein the heating time information indicates that heating is performed while the heater 101 is heating, and the power indication is performed while the heater 101 stops heating.
Further, the device for automatically detecting cigarettes in the embodiment of the invention may further include: the key switch 9 is arranged on the first surface of the PCB control panel 13, and the key switch 9 can be used for triggering the opening of the cigarette automatic detection device, electric quantity indication and the like. For example, when a user presses the key switch 9 for a short time in the using process, the LED lamp displays the electric quantity; long press (e.g., long press for 3 seconds), the heater 101 starts to heat; if the heater 101 is manually controlled to stop heating during the heating process of the heater 101, the heater 101 may be pressed for a long time (e.g., for 3 seconds) to stop heating.
Further, the device for automatically detecting cigarettes in the embodiment of the invention further comprises a shell, the shell is provided with a cavity for placing the device for automatically detecting cigarettes, one end of the cavity is provided with an opening matched with the first opening 121, and the other end of the cavity is provided with an opening for arranging a charging interface therein.
The device for automatically detecting cigarettes monitors the actual resistance value change of the heating wire in real time through the sampling circuit connected with the heating sheet in series, obtains the actual temperature rise time of the heating wire based on the time and resistance value corresponding relation mapping table stored in the memory and associated with the heating wire, automatically judges whether the cigarettes are inserted into the heating sheet according to the actual temperature rise time of the heating wire, and further controls the on-off of the heating sheet according to the judgment result, so that the problem of idle burning of the heating sheet is effectively avoided, the safety of the electronic cigarette is improved, the aim of saving energy is fulfilled, the service life of the electronic cigarette is prolonged, and the electronic cigarette is prevented from being burnt by mistake and injuring users.
The invention also provides a method for automatically detecting cigarettes, which is implemented by the device for automatically detecting cigarettes and specifically comprises the following steps:
s11, the sampling circuit 2 monitors the resistance value change of the heating wire and generates a corresponding sampling signal, and meanwhile, the sampling signal is sent to the signal monitoring end of the controller 4.
And S12, the controller 4 receives and processes the sampling signal to obtain the measured resistance value of the heating wire 101.
S13, the controller 4 searches the mapping table of the correspondence between the time and the resistance value, which is stored in the memory and is associated with the heating wire 101, according to the actually measured resistance value, and obtains the matching time corresponding to the actually measured resistance value.
S14, the controller 4 judges whether the matching time is less than a first preset time, if yes, the step S15 is executed; if not, go to step S16.
S15, the controller 4 judges that no cigarette 100 is on the heating wire, and outputs a control signal to the turn-off circuit 3 to control the heating wire 101 to be disconnected and stop heating the heating wire 101.
S16, the controller 4 judges whether the matching time is longer than a first preset time and shorter than a second preset time, if so, the controller 4 judges that the cigarette 100 is on the heating wire 101.
Optionally, the first preset time and the second preset time in the embodiment of the present invention may be determined according to actual test time. And the time and resistance value corresponding relation mapping table is obtained by repeatedly testing the heating wire in the electronic cigarette during the production of the electronic cigarette and processing according to the test data.
By adopting the method for automatically detecting the cigarettes, the actual temperature rise time of the heating wire can be obtained according to the mapping table of the corresponding relation between the time and the resistance value which are stored in the memory and are associated with the heating wire, whether the cigarettes are inserted into the heating sheet or not is automatically judged according to the actual temperature rise time of the heating wire, and then the on-off of the heating sheet is controlled according to the judgment result, so that the problem that the heating sheet is burnt without combustion is effectively avoided, the safety of the electronic cigarette is improved, the aim of saving energy is fulfilled, the service life of the electronic cigarette is prolonged, and the phenomenon that the electronic cigarette burns without combustion and accidentally injures a user is avoided.
The above embodiments are merely illustrative of the technical ideas and features of the present invention, and are intended to enable those skilled in the art to understand the contents of the present invention and implement the present invention, and not to limit the scope of the present invention. All equivalent changes and modifications made within the scope of the claims of the present invention should be covered by the claims of the present invention.
It will be understood that modifications and variations can be made by persons skilled in the art in light of the above teachings and all such modifications and variations are intended to be included within the scope of the invention as defined in the appended claims.