CN115153108A - Electronic cigarette microphone detection circuit and method - Google Patents
Electronic cigarette microphone detection circuit and method Download PDFInfo
- Publication number
- CN115153108A CN115153108A CN202211020233.9A CN202211020233A CN115153108A CN 115153108 A CN115153108 A CN 115153108A CN 202211020233 A CN202211020233 A CN 202211020233A CN 115153108 A CN115153108 A CN 115153108A
- Authority
- CN
- China
- Prior art keywords
- circuit
- oscillation frequency
- group
- detection threshold
- detection
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 89
- 239000003571 electronic cigarette Substances 0.000 title claims abstract description 39
- 238000000034 method Methods 0.000 title claims abstract description 21
- 230000010355 oscillation Effects 0.000 claims abstract description 97
- 230000000391 smoking effect Effects 0.000 claims abstract description 26
- 230000000737 periodic effect Effects 0.000 claims abstract description 23
- 229910002056 binary alloy Inorganic materials 0.000 claims 1
- 238000006073 displacement reaction Methods 0.000 claims 1
- 230000001960 triggered effect Effects 0.000 claims 1
- 230000008859 change Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000007664 blowing Methods 0.000 description 2
- 239000003990 capacitor Substances 0.000 description 2
- 235000019504 cigarettes Nutrition 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 210000004243 sweat Anatomy 0.000 description 2
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 2
- SNICXCGAKADSCV-JTQLQIEISA-N (-)-Nicotine Chemical compound CN1CCC[C@H]1C1=CC=CN=C1 SNICXCGAKADSCV-JTQLQIEISA-N 0.000 description 1
- 238000000889 atomisation Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000013078 crystal Substances 0.000 description 1
- 230000008713 feedback mechanism Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 229960002715 nicotine Drugs 0.000 description 1
- SNICXCGAKADSCV-UHFFFAOYSA-N nicotine Natural products CN1CCCC1C1=CC=CN=C1 SNICXCGAKADSCV-UHFFFAOYSA-N 0.000 description 1
- 238000011897 real-time detection Methods 0.000 description 1
- 210000003296 saliva Anatomy 0.000 description 1
- 239000000779 smoke Substances 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A24—TOBACCO; CIGARS; CIGARETTES; SIMULATED SMOKING DEVICES; SMOKERS' REQUISITES
- A24F—SMOKERS' REQUISITES; MATCH BOXES; SIMULATED SMOKING DEVICES
- A24F40/00—Electrically operated smoking devices; Component parts thereof; Manufacture thereof; Maintenance or testing thereof; Charging means specially adapted therefor
- A24F40/40—Constructional details, e.g. connection of cartridges and battery parts
-
- A—HUMAN NECESSITIES
- A24—TOBACCO; CIGARS; CIGARETTES; SIMULATED SMOKING DEVICES; SMOKERS' REQUISITES
- A24F—SMOKERS' REQUISITES; MATCH BOXES; SIMULATED SMOKING DEVICES
- A24F40/00—Electrically operated smoking devices; Component parts thereof; Manufacture thereof; Maintenance or testing thereof; Charging means specially adapted therefor
- A24F40/50—Control or monitoring
- A24F40/51—Arrangement of sensors
-
- A—HUMAN NECESSITIES
- A24—TOBACCO; CIGARS; CIGARETTES; SIMULATED SMOKING DEVICES; SMOKERS' REQUISITES
- A24F—SMOKERS' REQUISITES; MATCH BOXES; SIMULATED SMOKING DEVICES
- A24F40/00—Electrically operated smoking devices; Component parts thereof; Manufacture thereof; Maintenance or testing thereof; Charging means specially adapted therefor
- A24F40/50—Control or monitoring
- A24F40/53—Monitoring, e.g. fault detection
Landscapes
- Circuit For Audible Band Transducer (AREA)
Abstract
Description
技术领域technical field
本申请实施例涉及电子烟领域,特别涉及一种电子烟咪头检测电路和方法。The embodiments of the present application relate to the field of electronic cigarettes, and in particular, to an electronic cigarette microphone head detection circuit and method.
背景技术Background technique
电子烟设备是一种模仿卷烟的电子产品,通过电子雾化等手段,将尼古丁和焦油等变成蒸汽后供给吸食。在电子烟或雾化器等产品中,通常利用电子烟咪头的电容量变化来表示吹吸气流的力度和方向,则可以将电容量转化为携带有频率信息的数字信号,再对该数字信号进行处理,得到电容量及其变化量,从而得到吹吸电流的力度和方向。Electronic cigarette equipment is an electronic product that imitates cigarettes. Through electronic atomization and other means, nicotine and tar are converted into vapor and then supplied for smoking. In products such as electronic cigarettes or atomizers, the change in the capacitance of the electronic cigarette head is usually used to indicate the strength and direction of the blowing air flow, then the capacitance can be converted into a digital signal carrying frequency information, and then the The digital signal is processed to obtain the capacitance and its variation, so as to obtain the strength and direction of the blowing and absorbing current.
相关技术中,检测电路都是采用较为复杂的运算电路,如乘法器、除法器、控制芯片和其他逻辑电路器件等,最终导致电路结构过大,影响电子烟产品的空间布局;此外,相关技术中的检测精度都是采用时钟电路技术检测,需要额外内置电容器,且固定参考频率会导致检测精度下降甚至误判,检测精度不高。In the related art, the detection circuits all use relatively complex arithmetic circuits, such as multipliers, dividers, control chips, and other logic circuit devices, which eventually lead to an excessively large circuit structure and affect the spatial layout of electronic cigarette products; in addition, related technologies The detection accuracy in the device is detected by the clock circuit technology, which requires additional built-in capacitors, and the fixed reference frequency will lead to a decrease in the detection accuracy or even misjudgment, and the detection accuracy is not high.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种电子烟咪头检测电路和方法,解决相关技术中检测电路复杂、占用空间,以及检测精度不高的问题;The embodiments of the present application provide an electronic cigarette microphone head detection circuit and method, which solve the problems in the related art that the detection circuit is complex, occupies space, and has low detection accuracy;
一方面,本申请提供一种电子烟咪头检测电路,包括振荡电路、计数电路、比较输出电路和外部选择电路;On the one hand, the present application provides an electronic cigarette microphone head detection circuit, including an oscillation circuit, a counting circuit, a comparison output circuit and an external selection circuit;
所述振荡电路在设备上电时产生振荡频率,所述计数电路连接所述振荡电路,用于检测所述振荡电路的工作频率;其中,吸烟状态和非吸烟状态下所述振荡电路的电容值和产生的振荡频率不相同;The oscillating circuit generates an oscillating frequency when the device is powered on, and the counting circuit is connected to the oscillating circuit for detecting the operating frequency of the oscillating circuit; wherein the capacitance value of the oscillating circuit in the smoking state and the non-smoking state and the resulting oscillation frequency is not the same;
所述计数电路包括计数组和锁存组,所述锁存组用于设定基准振荡频率,所述计数组用于检测周期振荡频率;The counting circuit includes a counting group and a latching group, the latching group is used to set the reference oscillation frequency, and the counting group is used to detect the periodic oscillation frequency;
所述外部选择电路连接所述计数电路和所述比较输出电路,用于设定检测精度;所述比较输出电路包括加法器和比较器组,用于输出电路的振荡频率差,以及电子烟咪头的吸烟状态。The external selection circuit is connected to the counting circuit and the comparison output circuit, and is used to set the detection accuracy; the comparison output circuit includes an adder and a comparator group, and is used to output the oscillation frequency difference of the circuit and the electronic cigarette holder. Smoking status of the head.
另一方面,本申请提供一种电子烟咪头检测方法,所述方法包括:On the other hand, the present application provides a method for detecting an electronic cigarette microphone head, the method comprising:
设备上电,将计数电路中的计数组和锁存组初始化;When the device is powered on, the counting group and latch group in the counting circuit are initialized;
通过所述计数电路对振荡电路进行振荡频率检测,确定基准振荡频率和各个周期内的周期振荡频率;其中,所述振荡电路为RC振荡电路,且连有接咪头传感器,吸烟状态和非吸烟状态下所述振荡电路的电容值和产生的振荡频率不相同;The oscillating circuit is detected by the counting circuit to determine the reference oscillating frequency and the periodic oscillating frequency in each cycle; wherein, the oscillating circuit is an RC oscillating circuit, and is connected with a microphone-connected sensor, smoking state and non-smoking In the state, the capacitance value of the oscillation circuit and the generated oscillation frequency are different;
接收外部选择电路输入的调节指令,设定所述基准振荡频率的检测阈值;其中,所述调节指令用于所述寄存器组对二进制的所述基准振荡频率进行移位,获得所述检测阈值;Receive an adjustment instruction input from an external selection circuit, and set a detection threshold of the reference oscillation frequency; wherein, the adjustment instruction is used for the register group to shift the binary reference oscillation frequency to obtain the detection threshold;
通过比较输出电路中的加法器和比较器组计算所述基准振荡频率和所述周期振荡频率的振荡频率差,以及通过所述振荡频率差和所述检测阈值输出比较结果,根据输出结果判断电子烟咪头的吸烟状态。Calculate the oscillation frequency difference between the reference oscillation frequency and the periodic oscillation frequency by comparing the adder and the comparator group in the output circuit, and output the comparison result through the oscillation frequency difference and the detection threshold, and judge the electronic device according to the output result. The smoking status of the cigarette end.
本申请实施例提供的技术方案带来的有益效果至少包括:通过振荡电路作为起振单元,再通过计数组检测各个周期内的周期振荡频率,同时通过锁存组确定基准振荡频率,该方式无需内置时钟电路,而是通过电路自身和电子烟咪头来进行频率计算,可以减小电路的占用体积;比较输出电路仅使用加法器和比较器组,无需额外引入乘法器和除法器等,又进一步简化的电路的复杂度;而外部选择电路可以根据实际情况调节检测精度,根据精度输出判断结果。相比现有技术中通过时钟电路和逻辑芯片进行处理的方式,可大幅降低电路的复杂度,减小空间布局,还能提高检测精度和速度。The beneficial effects brought by the technical solutions provided by the embodiments of the present application at least include: using an oscillation circuit as a starting unit, then detecting the periodic oscillation frequency in each cycle through a counting group, and determining a reference oscillation frequency through a latch group, this method does not require The built-in clock circuit, but the frequency calculation is performed by the circuit itself and the electronic cigarette microphone head, which can reduce the occupied volume of the circuit; the comparison output circuit only uses an adder and a comparator group, and there is no need to introduce additional multipliers and dividers. The complexity of the circuit is further simplified; and the external selection circuit can adjust the detection accuracy according to the actual situation, and output the judgment result according to the accuracy. Compared with the way of processing through a clock circuit and a logic chip in the prior art, the complexity of the circuit can be greatly reduced, the space layout can be reduced, and the detection accuracy and speed can be improved.
附图说明Description of drawings
图1是本申请实施例提供的电子烟咪头检测电路的结构示意图;1 is a schematic structural diagram of an electronic cigarette microphone head detection circuit provided by an embodiment of the present application;
图2是本申请另一实施例提供的电子烟咪头检测电路的结构示意图;2 is a schematic structural diagram of an electronic cigarette microphone head detection circuit provided by another embodiment of the present application;
图3是本申请实施例提供的电子烟咪头检测方法的流程图;3 is a flowchart of a method for detecting an electronic cigarette microphone head provided by an embodiment of the present application;
图4是本申请实施例提供的电子烟咪头检测方法的逻辑图;4 is a logic diagram of a method for detecting an electronic cigarette microphone head provided by an embodiment of the present application;
图5是本申请实施例提供的电子烟咪头检测电路的时序图。FIG. 5 is a timing diagram of the electronic cigarette microphone head detection circuit provided by the embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。As used herein, "plurality" refers to two or more. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the associated objects are an "or" relationship.
图1是本申请实施例提供的电子烟咪头检测电路的结构示意图。具体包括振荡电路、计数电路、比较输出电路和外部选择电路。振荡电路或振荡模块连接电子烟咪头传感器,电子烟咪头通过气体流量的微弱变化得到电容量的变化量。振荡电路或振荡模块在电子设备正常运行时可以发出规律的振荡频率。本方案采用RC振荡电路作为起振模块,当咪头传感器接入该模块后,可以时刻将用户使用时产生的气流扰动改变为振荡频率变化。FIG. 1 is a schematic structural diagram of a detection circuit for an electronic cigarette microphone head provided by an embodiment of the present application. Specifically, it includes an oscillator circuit, a counting circuit, a comparison output circuit and an external selection circuit. The oscillating circuit or the oscillating module is connected to the sensor of the electronic cigarette microphone head, and the electronic cigarette microphone head obtains the change of the capacitance through the slight change of the gas flow. The oscillating circuit or oscillating module can emit a regular oscillating frequency during normal operation of the electronic device. This solution uses an RC oscillator circuit as the starting module. When the microphone head sensor is connected to the module, the airflow disturbance generated by the user can be changed into the oscillation frequency change at any time.
计数电路和振荡电路相连,包括计数组和锁存组。计数组由若干计数组成,具体数量根据周期振荡数值大小决定。锁存组包括若干锁存器,用于设定基准振荡频率,在理想状态下,基准振荡频率即为无气流扰动时检测的周期振荡频率,锁存状态下可以进行对比以及进行后续计算。The counting circuit is connected with the oscillating circuit, and includes a counting group and a latching group. The count group consists of several counts, and the specific number is determined according to the size of the periodic oscillation value. The latch group includes several latches for setting the reference oscillation frequency. In an ideal state, the reference oscillation frequency is the periodic oscillation frequency detected when there is no airflow disturbance. In the latched state, comparison and subsequent calculations can be performed.
比较输出电路包括加法器和比较器组,用于输出基准振荡频率和周期振荡频率的振荡频率差,根据频率差判断是否吸烟。比较器组可以包括若干比较器,根据其输出结果的高低电平值表示吸烟或未吸烟。由于是采用基础逻辑器件组建的检测电路,所以集成度较高、不占用空间、且不需MCU芯片及其他存储芯片参与运算。使用RC振荡电路可以直接根据无源器件或产生振荡,替代传统的晶振电路,因此也无需再额外内置电容器,进一步缩减电路的占用空间。同时为了提高本电路的检测精度,还设置了外部选择电路。外部选择电路由寄存器组成,连接计数电路和比较输出电路。因为计数器计数的数值较高,直接通过差值判断吸烟或不吸烟会产生较大的误差,在实际使用过程中,微小的手指误触或气流扰动都会导致频率值改变,若直接根据差值启动雾化电路会影响用户的使用体验。The comparison output circuit includes an adder and a comparator group, which are used to output the oscillation frequency difference between the reference oscillation frequency and the periodic oscillation frequency, and judge whether to smoke or not according to the frequency difference. The comparator group may include several comparators, and the high and low level values of their output results indicate smoking or non-smoking. Since it is a detection circuit formed by using basic logic devices, it has a high degree of integration, does not occupy space, and does not require MCU chips and other memory chips to participate in operations. Using the RC oscillator circuit can directly generate oscillation based on passive devices or replace the traditional crystal oscillator circuit, so there is no need for additional built-in capacitors, which further reduces the occupied space of the circuit. At the same time, in order to improve the detection accuracy of this circuit, an external selection circuit is also set. The external selection circuit consists of registers, which are connected to the counting circuit and the comparison output circuit. Because the value counted by the counter is high, judging smoking or non-smoking directly by the difference will cause a large error. In the actual use process, a small finger touch or airflow disturbance will cause the frequency value to change. If you start directly based on the difference value The atomizing circuit will affect the user's experience.
而外部选择电路可以设置检测精度,根据精度来设置检测阈值,也即将检测阈值和加法器输出的数值进行比较,根据结果进行判断。可以在出厂前设置寄存器的检测精度,或者是通过外接按钮随时调控检测精度,以此满足不同用户场景的需求。The external selection circuit can set the detection precision, and set the detection threshold according to the precision, that is, compare the detection threshold with the value output by the adder, and judge according to the result. The detection accuracy of the register can be set before leaving the factory, or the detection accuracy can be adjusted at any time through an external button to meet the needs of different user scenarios.
图2是本申请另一实施例提供的电子烟咪头检测电路的结构示意图。计数器根据设定周期性记录振荡电路的数值,也即数值不唯一。锁存组通过锁存器锁定某一固定数值作为基准振荡频率。该数值由设备每次上电初始化时,根据第一个检测周期的计数值设定,在后续检测过程中,还会根据比较器组输出的结果进一步调整。锁存组输出的结果是固定不变的,计数器通过反相器输出后,再和基准振荡频率值输入到加法器,也即将实时检测的周期振荡频率和基准振荡频率作差,输出即为振荡频率差。FIG. 2 is a schematic structural diagram of a detection circuit for an electronic cigarette microphone head provided by another embodiment of the present application. The counter periodically records the value of the oscillation circuit according to the setting, that is, the value is not unique. The latch group uses the latch to lock a fixed value as the reference oscillation frequency. This value is set according to the count value of the first detection cycle when the device is powered on and initialized, and further adjusted according to the output result of the comparator group in the subsequent detection process. The output result of the latch group is fixed. After the counter is output through the inverter, it is input to the adder with the reference oscillation frequency value, that is, the difference between the real-time detection period oscillation frequency and the reference oscillation frequency is calculated, and the output is the oscillation. frequency difference.
比较器组包括以及比较器和二级比较器,两级比较器输出结果用于判断当前电子烟的吸取状态。外部选择电路包含若干寄存器组,寄存器组根据设定对锁存组的基准数据进行处理。在一些方案中,此部分使用了乘法器或除法器判断,但乘法器和除法器相较于寄存器和加法器的体积更大。且无法调节精度。The comparator group includes a comparator and a two-stage comparator, and the output result of the two-stage comparator is used to judge the current suction state of the electronic cigarette. The external selection circuit includes several register groups, and the register groups process the reference data of the latch group according to the settings. In some schemes, multipliers or dividers are used in this section, but multipliers and dividers are larger than registers and adders. And the accuracy cannot be adjusted.
本方案中的寄存器组件基准频率值作为二进制表示,通过高位右移动实现除法运算。本申请以两个寄存器分别输出一个检测值为例进行说明。第一寄存器将数值整体向右移1位表示除2,移5位表示除32,移7位表示除128。不同寄存器对二进制数值的移动位数根据外部输入决定。示意性的,调节指令SW_REF[13:0]表示二进制基准振荡频率不移动,SW_REF[13:5]表示右移5位,基准振荡频率数值除32;SW_REF[13:7]表示除128。寄存器右移输出即为寄存组内部选择器选择一定位数输出。本方案的第一寄存器输出为第一检测阈值,第二寄存器输出为第二检测阈值,且第一检测阈值大于第二检测阈值。The reference frequency value of the register component in this scheme is represented as binary, and the division operation is realized by moving the high order right. In this application, two registers respectively output a detection value as an example for description. The first register shifts the entire value to the right by 1 bit for division by 2, 5 bits for division by 32, and 7 bits for division by 128. The number of bits shifted for binary values in different registers is determined by the external input. Illustratively, the adjustment command SW_REF[13:0] indicates that the binary reference oscillation frequency does not move, SW_REF[13:5] indicates that it is shifted to the right by 5 bits, and the reference oscillation frequency value is divided by 32; SW_REF[13:7] indicates that it is divided by 128. The right shift output of the register is to select a certain number of bits to output for the internal selector of the register group. In this solution, the output of the first register is the first detection threshold, the output of the second register is the second detection threshold, and the first detection threshold is greater than the second detection threshold.
比较器组的两级比较目的为判断振荡频率差和第一检测阈值和第二检测阈值的大小关系。本方案中以加法器输出一级比较器负极,第二检测阈值输出正极;一级比较器输出输入到二级比较器负极,第一检测阈值输入二级比较器正极为例。The purpose of the two-stage comparison of the comparator group is to determine the magnitude relationship between the oscillation frequency difference and the first detection threshold and the second detection threshold. In this scheme, the adder outputs the negative pole of the first-level comparator, and the second detection threshold outputs the positive pole; the output of the first-level comparator is input to the negative pole of the second-level comparator, and the first detection threshold value is input to the positive pole of the second-level comparator as an example.
当输出为00时,表示为处于吸烟状态,当输出为11时,表示未吸烟;当输出为01时,对锁存组清零,重新获取基准频率值。重新获取基准值的目的是为了消除误触的干扰,例如咪头和手指和物体接触影响电容值。When the output is 00, it means that it is in the smoking state; when the output is 11, it means that it is not smoking; when the output is 01, the latch group is cleared to 0, and the reference frequency value is re-acquired. The purpose of re-acquiring the reference value is to eliminate the interference of false touches, for example, the contact between the microphone head and fingers and objects affects the capacitance value.
综上所述,本电路结构通过振荡电路作为起振单元,再通过计数组检测各个周期内的周期振荡频率,同时通过锁存组确定基准振荡频率,该方式无需内置时钟电路,而是通过电路自身和电子烟咪头来进行频率计算,可以减小电路的占用体积;比较输出电路仅使用加法器和比较器组,无需额外引入乘法器和除法器等,又进一步简化的电路的复杂度;而外部选择电路可以根据实际情况调节检测精度,根据精度输出判断结果。相比现有技术中通过时钟电路和逻辑芯片进行处理的方式,可大幅降低电路的复杂度,减小空间布局,还能提高检测精度和速度。In summary, the circuit structure uses the oscillator circuit as the starting unit, and then detects the periodic oscillation frequency in each cycle through the counting group, and determines the reference oscillation frequency through the latch group. This method does not require a built-in clock circuit, but uses a circuit The frequency calculation is performed by itself and the electronic cigarette microphone, which can reduce the occupied volume of the circuit; the comparison output circuit only uses the adder and the comparator group, and there is no need to introduce additional multipliers and dividers, which further simplifies the complexity of the circuit; The external selection circuit can adjust the detection accuracy according to the actual situation, and output the judgment result according to the accuracy. Compared with the way of processing through a clock circuit and a logic chip in the prior art, the complexity of the circuit can be greatly reduced, the space layout can be reduced, and the detection accuracy and speed can be improved.
图3是本申请实施例提供的电子烟咪头检测方法的流程图,包括如下步骤:3 is a flowchart of a method for detecting an electronic cigarette microphone head provided by an embodiment of the present application, comprising the following steps:
步骤301,设备上电,将计数电路中的计数组和锁存组初始化。
步骤302,通过计数电路对振荡电路进行振荡频率检测,确定基准振荡频率和各个周期内的周期振荡频率。In
在初始化后的第一检测周期内,通过计数电路中的计数组计算振荡电路的第一振荡周期。而后再通过锁存组读取第一振荡周期,并将其确定为基准振荡频率。此处的基准振荡频率是在初始化后电路稳定的第一个周期确定的,此后的基准振荡频率将由检测输出结果决定。In the first detection period after initialization, the first oscillation period of the oscillation circuit is calculated by the counting group in the counting circuit. Then, the first oscillation period is read through the latch group and determined as the reference oscillation frequency. The reference oscillation frequency here is determined in the first cycle when the circuit is stable after initialization, and the reference oscillation frequency thereafter will be determined by the detection output result.
步骤303,接收外部选择电路输入的调节指令,设定基准振荡频率的检测阈值。Step 303: Receive an adjustment instruction input from an external selection circuit, and set a detection threshold of the reference oscillation frequency.
外部输入的调节指令由寄存器组执行,且过程可以在出厂前设定,或用户手动进行调节。外部选择电路连接有检测精度控制按钮,当用户手动输入调节指令时,寄存器组更新存储的第一指令和第二指令,并根据更新后的第一指令和第二指令分别将二进制表示的基准振荡频率的高位向右移动目标位数,获得第一检测阈值和第二检测阈值。例如第一指令设置为SW_REF[13:5],第二指令设置为SW_REF[13:7],该步骤仅需外部的按键即可完成对寄存器的更新。The adjustment command input from the outside is executed by the register group, and the process can be set before the factory, or the user can adjust it manually. The external selection circuit is connected with the detection precision control button. When the user manually inputs the adjustment instruction, the register group updates the stored first instruction and the second instruction, and oscillates the binary representation of the reference according to the updated first instruction and the second instruction. The high order of the frequency is shifted to the right by the target number of bits to obtain the first detection threshold and the second detection threshold. For example, the first command is set to SW_REF[13:5], and the second command is set to SW_REF[13:7]. This step only needs an external key to complete the update of the register.
步骤304,通过比较输出电路中的加法器和比较器组计算基准振荡频率和周期振荡频率的振荡频率差,以及通过振荡频率差和检测阈值输出比较结果,根据输出结果判断电子烟咪头的吸烟状态。Step 304: Calculate the oscillation frequency difference between the reference oscillation frequency and the periodic oscillation frequency by comparing the adder and the comparator group in the output circuit, and output the comparison result through the oscillation frequency difference and the detection threshold, and judge the smoking of the electronic cigarette tip according to the output result. state.
对于各个周期内,计数组检测频率值后,通过反相器对周期振荡频率进行取反,取反后再通过加法器将基准振荡频率和取反后的周期振荡频率进行求和,获得振荡频率差。For each cycle, after the frequency value is detected by the counting group, the periodic oscillation frequency is inverted by the inverter, and after the inversion, the reference oscillation frequency and the inverted periodic oscillation frequency are summed by the adder to obtain the oscillation frequency. Difference.
本方案将第一检测阈值和振荡频率差值输入比较器组中的一级比较器,将第二检测阈值和一级比较器的输出输入到比较器组中的二级比较器。如此比较器只会产生三种结果,大于第一阈值、小于第二阈值,以及介于两者之间。介于两者之间的情况主要针对误触和咪头沾水及受损导致电容值变化的情况。例如,在汗液或唾液附着在咪头上,其在未吸烟状态时的频率值也会改变,所以就需要反馈结果对寄存组进行清零,重新设定基准振荡频率。同时对于不同场景下,因湿度或风力影响下也可能会导致电容值改变,此时可以通过外部控制调节检测精度,降低误判的概率。In this solution, the first detection threshold and the difference of the oscillation frequency are input into the first-level comparator in the comparator group, and the second detection threshold and the output of the first-level comparator are input into the second-level comparator in the comparator group. The comparator thus produces only three results, greater than the first threshold, less than the second threshold, and in between. The situation between the two is mainly for the accidental touch and the situation that the capacitance value changes due to water or damage to the microphone head. For example, when sweat or saliva is attached to the microphone head, its frequency value will also change when it is not smoking, so it is necessary to feedback the result to clear the register group and reset the reference oscillation frequency. At the same time, in different scenarios, the capacitance value may also change due to the influence of humidity or wind. At this time, the detection accuracy can be adjusted through external control to reduce the probability of misjudgment.
参考图4和图5,在确定调节精度(1/32和1/128)和基准振荡频率(4095)的情况下,检测计数值和基准值之间的差值,在第二周期内,计数值变小至4000,频率差为95,也就是位于第一检测阈值(128)和第二检测阈值(32)之间,输出结果即为01,这一改变说明咪头的电容值改变,例如沾水或汗液导致基准值偏移,此时需要及时对基准值进行校准,确保判断的精准性。4 and 5, in the case of determining the adjustment accuracy (1/32 and 1/128) and the reference oscillation frequency (4095), the difference between the count value and the reference value is detected, and in the second cycle, the count The value is reduced to 4000, the frequency difference is 95, that is, it is located between the first detection threshold (128) and the second detection threshold (32), and the output result is 01. This change indicates that the capacitance value of the microphone has changed, for example Water or sweat will cause the reference value to shift. At this time, it is necessary to calibrate the reference value in time to ensure the accuracy of judgment.
综上所述,本方案将锁存组和比较器组连接,形成电路的负反馈机制,在基准频率值发生改变时,及时对寄存组进行清零初始化,重新将计数组的周期振荡频率作为基准振荡频率,确保电路结构的检测精度能够实时更新,且外部选择电路通过寄存器组进行移位选择,直接采用最原始的逻辑器件完成乘法器和除法器的功能,不仅可以提高处理速度,还能减小电路结构的体积和复杂度,且外部输入的调节指令可直接改变寄存器组的移位数量,进而可以自动调节第一检测阈值和第二检测阈值,适应各种使用场景,提高用户的使用体验。In summary, this scheme connects the latch group and the comparator group to form a negative feedback mechanism of the circuit. When the reference frequency value changes, the register group is cleared and initialized in time, and the periodic oscillation frequency of the counting group is re-used as The reference oscillation frequency ensures that the detection accuracy of the circuit structure can be updated in real time, and the external selection circuit performs shift selection through the register group, and directly uses the most primitive logic device to complete the functions of the multiplier and divider, which can not only improve the processing speed, but also The volume and complexity of the circuit structure are reduced, and the adjustment command input from the outside can directly change the shift number of the register group, and then the first detection threshold and the second detection threshold can be automatically adjusted to adapt to various usage scenarios and improve user usage. experience.
以上对本发明的较佳实施例进行了描述;需要理解的是,本发明并不局限于上述特定实施方式,其中未尽详细描述的设备和结构应该理解为用本领域中的普通方式予以实施;任何熟悉本领域的技术人员,在不脱离本发明技术方案作出许多可能的变动和修饰,或修改为等同变化的等效实施例,这并不影响本发明的实质内容;因此,凡是未脱离本发明技术方案的内容,依据本发明的技术实质对以上实施例所做的任何简单修改、等同变化及修饰,均仍属于本发明技术方案保护的范围内。The preferred embodiments of the present invention have been described above; it should be understood that the present invention is not limited to the above-mentioned specific embodiments, and the devices and structures that are not described in detail should be understood as being implemented in a common manner in the art; Any person skilled in the art can make many possible changes and modifications without departing from the technical solutions of the present invention, or modify them to equivalent examples of equivalent changes, which does not affect the essence of the present invention; The content of the technical solution of the present invention, and any simple modifications, equivalent changes and modifications made to the above embodiments according to the technical essence of the present invention still fall within the protection scope of the technical solution of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211020233.9A CN115153108A (en) | 2022-08-24 | 2022-08-24 | Electronic cigarette microphone detection circuit and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211020233.9A CN115153108A (en) | 2022-08-24 | 2022-08-24 | Electronic cigarette microphone detection circuit and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115153108A true CN115153108A (en) | 2022-10-11 |
Family
ID=83481253
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211020233.9A Pending CN115153108A (en) | 2022-08-24 | 2022-08-24 | Electronic cigarette microphone detection circuit and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115153108A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118805965A (en) * | 2024-09-19 | 2024-10-22 | 深圳贝特莱电子科技股份有限公司 | Capacitance detection method of electronic cigarette capacitive microphone, analog front end and electronic cigarette |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1148754A (en) * | 1995-09-19 | 1997-04-30 | 富士通株式会社 | Digital frequency control circuit, phase control circuit and PLL circuit |
US5939948A (en) * | 1997-03-11 | 1999-08-17 | Sony Corporation | Phase locked loop circuit and reproducing apparatus |
JP2001285056A (en) * | 2000-03-29 | 2001-10-12 | Toshiba Microelectronics Corp | Automatic trimming circuit of oscillator |
CN101764607A (en) * | 2008-12-24 | 2010-06-30 | 北京芯技佳易微电子科技有限公司 | Method, device and oscillator for preventing signal oscillation in vicinity of reference electric signal |
CN102523763A (en) * | 2010-09-08 | 2012-06-27 | 松下电器产业株式会社 | Pll frequency synthesizer |
CN103251134A (en) * | 2013-05-20 | 2013-08-21 | 西安拓尔微电子有限责任公司 | Novel electronic cigarette control chip |
CN111067154A (en) * | 2020-01-20 | 2020-04-28 | 深圳市驰泰电子科技有限公司 | Oil leakage prevention electronic cigarette heating wire drive control circuit, method and chip and electronic cigarette |
CN114931242A (en) * | 2022-05-07 | 2022-08-23 | 西安稳先半导体科技有限责任公司 | A state detection circuitry, electron cigarette for electron cigarette |
CN218008192U (en) * | 2022-08-24 | 2022-12-13 | 无锡矽杰微电子有限公司 | Electronic cigarette microphone detection circuit |
-
2022
- 2022-08-24 CN CN202211020233.9A patent/CN115153108A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1148754A (en) * | 1995-09-19 | 1997-04-30 | 富士通株式会社 | Digital frequency control circuit, phase control circuit and PLL circuit |
US5939948A (en) * | 1997-03-11 | 1999-08-17 | Sony Corporation | Phase locked loop circuit and reproducing apparatus |
JP2001285056A (en) * | 2000-03-29 | 2001-10-12 | Toshiba Microelectronics Corp | Automatic trimming circuit of oscillator |
CN101764607A (en) * | 2008-12-24 | 2010-06-30 | 北京芯技佳易微电子科技有限公司 | Method, device and oscillator for preventing signal oscillation in vicinity of reference electric signal |
CN102523763A (en) * | 2010-09-08 | 2012-06-27 | 松下电器产业株式会社 | Pll frequency synthesizer |
CN103251134A (en) * | 2013-05-20 | 2013-08-21 | 西安拓尔微电子有限责任公司 | Novel electronic cigarette control chip |
CN111067154A (en) * | 2020-01-20 | 2020-04-28 | 深圳市驰泰电子科技有限公司 | Oil leakage prevention electronic cigarette heating wire drive control circuit, method and chip and electronic cigarette |
CN114931242A (en) * | 2022-05-07 | 2022-08-23 | 西安稳先半导体科技有限责任公司 | A state detection circuitry, electron cigarette for electron cigarette |
CN218008192U (en) * | 2022-08-24 | 2022-12-13 | 无锡矽杰微电子有限公司 | Electronic cigarette microphone detection circuit |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118805965A (en) * | 2024-09-19 | 2024-10-22 | 深圳贝特莱电子科技股份有限公司 | Capacitance detection method of electronic cigarette capacitive microphone, analog front end and electronic cigarette |
CN118805965B (en) * | 2024-09-19 | 2024-12-03 | 深圳贝特莱电子科技股份有限公司 | Capacitance detection method of electronic cigarette capacitive microphone, analog front end and electronic cigarette |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI450148B (en) | Touch screen touch track detection method and detection device | |
CN115153108A (en) | Electronic cigarette microphone detection circuit and method | |
JP6419614B2 (en) | Data generation apparatus and authentication system | |
CN113168268B (en) | Touch detection method, touch detection circuit, touch chip and electronic equipment | |
US20240159566A1 (en) | Step counting method and device, electronic apparatus and readable storage medium | |
CN218008192U (en) | Electronic cigarette microphone detection circuit | |
JP5965540B2 (en) | Method and apparatus for recognizing key input on virtual keyboard | |
CN108900941A (en) | The method for controlling volume and device of earphone | |
JP2000357046A (en) | Handwriting input device and computer readable recording medium recording handwriting input program | |
Lorenz et al. | Data-and state-dependent power characterisation and simulation of black-box RTL IP components at system level | |
US20220303145A1 (en) | Delay based puf implementation with integrated determination of optimum configuration | |
WO2024066835A1 (en) | Method and apparatus for assessing power supply design, and device and storage medium | |
CN214335060U (en) | Frequency detection circuit | |
CN112782474B (en) | Frequency detection circuit and frequency detection method | |
CN115665319B (en) | Application control method, device, equipment and storage medium based on wireless earphone | |
TWI820704B (en) | Method and device for voice signal analyzation, method and device for chip design | |
US11360585B2 (en) | Gesture recognition system and method for a digital-pen-like device and corresponding digital-pen-like device | |
CN205406081U (en) | Digital control electron tone system | |
KR102058495B1 (en) | Error detection circuit and semiconductor integrated circuit using the same | |
CN116998789A (en) | Electronic cigarette microphone detection circuit and method capable of automatically adjusting reference value | |
TWI584172B (en) | Touch detection method | |
CN112187233A (en) | Reset device, method, clock system and electronic equipment | |
CN113961171B (en) | Random signal generation device and physical unclonable function generation system | |
TWI797918B (en) | Detection method and control system | |
JPH05143397A (en) | Status history device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |