Oral care device, double-key trigger recognition module and trigger recognition method

By using a single pressure-sensitive chip in electronic devices for difference calculation and threshold judgment, the functions of two buttons are realized, solving the problems of space and high cost of multiple chips, simplifying the key recognition process and improving user experience .

CN119070801APending Publication Date: 2024-12-03NANJING PRIME SEMICON CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411085991.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The design of multiple integrated buttons in existing electronic devices requires multiple pressure-sensitive chips, resulting in large space and high cost of chip boards, and lack of effective solutions.

Method used

A double-key trigger recognition method is adopted to realize the functions of two buttons through difference calculation and threshold judgment using a single-block pressure sensing chip, reducing the number and space requirements of the chips.

Benefits of technology

It realizes the implementation of two key functions in a smaller space and low cost, simplifies the key trigger recognition process, optimizes the key release threshold, and supports continuous key operation, improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119070801A_ABST
    Figure CN119070801A_ABST
Patent Text Reader

Abstract

The invention provides an oral care device, a double-key trigger recognition module and a trigger recognition method. The trigger identification method of the double-key module comprises the following steps of: a) initializing, and setting a forward accumulated difference value, a reverse accumulated difference value, a forward minimum value mark, a reverse minimum value mark, a forward maximum value, a forward minimum value, a reverse maximum value and a reverse minimum value as 0; b) the data acquisition unit performs data sampling on the sensing unit at a preset sampling frequency; c) performing difference calculation on the sampled data, and when the moment is t, the difference data calculation formula is as follows: difference data delta Ft = the current measurement value Ft-the last measurement value Ft-1; and d) judging whether the first key or the second key is triggered or not according to the difference value data. According to the invention, one pressure sensing chip is used for realizing the functions of two integrated keys, so that the material cost and the space required by the structure are saved, the key trigger identification method is simplified, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of touch data processing, and in particular to an oral care device, a double-button trigger recognition module, and a trigger recognition method. Background Art

[0002] In many existing electronic devices, buttons that can realize dual operations are usually designed, such as increasing and decreasing the volume, increasing and decreasing the pressure, increasing and decreasing the speed, forward switching and reverse switching of modes, etc. The button function is realized by designing buttons that can be pressed by users on the surface of the electronic device and a sensor chip located at the button position, and the sensor chip senses the state of the button being pressed to realize the button function.

[0003] At present, in the button design of existing electronic devices, the realization of the integrated button function relies on the combination of a single button + a pressure-sensitive chip to realize the function of a group of integrated buttons. When the electronic device needs multiple integrated buttons, multiple pressure-sensitive chips are needed to realize their button functions respectively. At this time, the chip board (PCB) inside the device needs more space to place multiple pressure-sensitive chips. Structurally, the chip board needs more space, and the cost of the pressure-sensitive chip is relatively high, and the material cost of the product also increases accordingly. This will bring significant disadvantages to the product's structural design, internal space, overall size, and product design cost. Summary of the invention

[0004] The purpose of the present invention is to provide an oral care device and a dual-button trigger recognition module and a trigger recognition method, which can realize the functions of two buttons by using a single pressure-sensitive chip, thereby reducing the size of the product as a whole and reducing the design cost of the product.

[0005] According to a first aspect of the present invention, a trigger identification method for a dual-button module is provided, comprising the following steps:

[0006] a) Initialization: set the forward cumulative difference, reverse cumulative difference, forward minimum value mark, reverse minimum value mark, forward maximum value, forward minimum value, reverse maximum value, and reverse minimum value to 0;

[0007] b) the data acquisition unit samples data from the sensing unit at a preset sampling frequency;

[0008] c) Perform difference calculation on the data sampled at each moment. When the moment is t, the difference data calculation formula is: Difference data ΔF t = This measurement value F t –Last measured value F t-1 ;

[0009] d) Determine whether the first button or the second button is triggered:

[0010] If there are N consecutive difference data ΔF greater than or equal to 0 t , ΔF t+1 ...ΔF t+n-1 , and the N difference data ΔF greater than or equal to 0 t , ΔF t+1 ...ΔF t+n-1 If the positive cumulative difference obtained by summing is greater than the positive trigger threshold, it means that the first button is triggered, otherwise, it means that the first button is not triggered;

[0011] If there are M consecutive difference data ΔF less than 0 t , ΔF t+1 , ...ΔF t+m-1 , , and the M difference data ΔF less than 0 t , , ΔF t+1 , ...ΔF t+m-1 , If the absolute value of the reverse accumulated difference obtained by summing is greater than the reverse trigger threshold, it indicates that the second button is triggered; otherwise, it indicates that the second button is not triggered.

[0012] Further, in step d), if it is determined that the first button is triggered, the state of the first button is stored as triggered; if it is determined that the second button is triggered, the state of the second button is stored as triggered, and the process returns to step b); otherwise, the states of the first button and the second button are stored as released, and the process returns to step b).

[0013] Furthermore, before returning to step b), the method further includes step e) temporarily storing the current measurement value as the last measurement value for the next difference data calculation.

[0014] Further, in the step d), if there is difference data greater than or equal to 0, the following steps are performed:

[0015] f) Determine whether the difference data is greater than or equal to 0 for the first time, read the positive minimum value mark, if the positive minimum value mark is 0, record the last measured value as the positive minimum value, record the current measured value as the positive maximum value, and set the positive minimum value mark to 1; otherwise, if the positive minimum value mark is 1, record the current measured value as the positive maximum value, and the positive minimum value remains unchanged;

[0016] g) The current difference data is summed with the aforementioned N-1 consecutive difference data greater than or equal to 0 to obtain positive difference data.

[0017] Further, in the step d), if there is difference data less than 0, the following steps are performed:

[0018] h) Determine whether the difference data is less than 0 for the first time, read the reverse minimum value mark, if the reverse minimum value mark is 0, record the absolute value of the last measured value as the reverse minimum value, record the absolute value of the current measured value as the reverse maximum value, and set the reverse minimum value mark to 1; otherwise, if the reverse minimum value mark is 1, record the absolute value of the current measured value as the reverse maximum value, and the reverse minimum value remains unchanged;

[0019] i) The current difference data is summed with the aforementioned M-1 consecutive difference data less than 0 to obtain a reverse cumulative difference.

[0020] Further, before step d), the following steps are also included:

[0021] j) Read whether the current state of the first button or the second button is triggered. If the state of the first button or the second button is triggered, determine whether to update the state of the triggered first button or the second button to released based on the difference data; if not, that is, the states of the first button and the second button are both non-triggered, execute step d).

[0022] Furthermore, in step j), if the current state of the first button is triggered, the specific process of determining whether to update the state of the first button to released according to the difference data is as follows:

[0023] Determine whether the current difference data is greater than or equal to 0. If so, update the positive maximum value to the current measured value, otherwise the positive maximum value remains unchanged;

[0024] Determine whether the current measurement value is less than the positive key release threshold. If so, update the first key state to released, reset the positive cumulative difference and the positive minimum value mark to 0, and return to step b); otherwise, return directly to step b).

[0025] Furthermore, the positive key release threshold is set as: (positive maximum value+positive minimum value)*first coefficient.

[0026] Furthermore, the first coefficient is preferably 0.5.

[0027] Furthermore, in step j), if the current state of the second button is triggered, the specific process of determining whether to update the state of the second button to released according to the difference data is as follows:

[0028] Determine whether the current difference data is less than or equal to 0. If so, update the reverse maximum value to the absolute value of the current measurement value, otherwise the reverse maximum value remains unchanged;

[0029] Determine whether the absolute value of the current measurement value is less than the reverse key release threshold. If so, update the second key state to released, reset the reverse cumulative difference and reverse minimum value mark to 0, and return to step b); otherwise, return directly to step b).

[0030] Furthermore, the reverse key release threshold is set as: (reverse maximum value+reverse minimum value)*second coefficient.

[0031] Furthermore, the second coefficient is preferably 0.5.

[0032] According to a second aspect of the present invention, a trigger identification method for a dual-button module is also provided, comprising the following steps:

[0033] a) Initialization: set the forward cumulative difference, reverse cumulative difference, forward minimum value mark, reverse maximum value mark, forward maximum value, forward minimum value, reverse maximum value, and reverse minimum value to 0;

[0034] b) the data acquisition unit samples data from the sensing unit at a preset sampling frequency;

[0035] c) Perform difference calculation on the data sampled at each moment. When the moment is t, the difference data calculation method is: difference data ΔF t = This measurement value F t –Last measured value F t-1 ;

[0036] d) Determine whether the first button or the second button is triggered:

[0037] If there are N consecutive difference data ΔF greater than or equal to 0 t , ΔF t+1 ...ΔF t+n-1 , and the N difference data ΔF greater than or equal to 0 t , ΔF t+1 ...ΔF t+n-1 If the positive cumulative difference obtained by summing is greater than the positive trigger threshold, it indicates that the first button is triggered; otherwise, it indicates that the first button is not triggered;

[0038] If there are M consecutive difference data ΔF less than 0 t , ΔF t+1 , ...ΔF t+m-1 , , and the M difference data ΔF less than 0 t , ΔF t+1 , ...ΔF t+m-1, If the reverse cumulative difference obtained by summing is less than the reverse trigger threshold, it means that the second button is triggered; otherwise, it means that the second button is not triggered.

[0039] According to a third aspect of the present invention, a double-button trigger recognition module is also provided, comprising:

[0040] A sensing unit, used to receive external operations;

[0041] A data collection unit collects data from the key sensing unit according to a preset frequency;

[0042] The data processing unit receives the data collected by the data collection unit and calculates the difference data according to the data. At time t, the difference data calculation method is: difference data ΔF t = This measurement value F t –Last measured value F t-1 , and determine whether the first button or the second button is triggered:

[0043] If there are N consecutive difference data ΔF greater than or equal to 0 t , ΔF t+1 ...ΔF t+n-1 , and the N difference data ΔF greater than or equal to 0 t , ΔF t+1 ...ΔF t+n-1 If the positive cumulative difference obtained by summing is greater than the positive trigger threshold, it means that the first key is triggered; if there are M consecutive difference data less than 0 ΔF t , ΔF t+1 , ...ΔF t+m-1 , , and the M difference data ΔF less than 0 t , ΔF t+1 , ...ΔF t+m-1 , If the absolute value of the reverse cumulative difference obtained by summing is greater than the reverse trigger threshold, it means that the second button is triggered; otherwise, it means that the first button and the second button are not triggered;

[0044] The output unit receives the calculation result of the data processing unit and outputs the calculation result.

[0045] Furthermore, the aforementioned sensing unit is a pressure sensing chip.

[0046] According to a fourth aspect of the present invention, a double-button trigger recognition module is provided, comprising:

[0047] A sensing unit, used to receive external operations;

[0048] A data collection unit collects data from the key sensing unit according to a preset frequency;

[0049] The data processing unit receives the data collected by the data collection unit and calculates the difference data according to the data. At time t, the difference data calculation method is: difference data ΔF t = This measurement value F t –Last measured value F t-1 , and determine whether the first button or the second button is triggered:

[0050] If there are N consecutive difference data ΔF greater than or equal to 0 t , ΔF t+1 ...ΔF t+n-1 , and the N difference data ΔF greater than or equal to 0 t , ΔF t+1 ...ΔF t+n-1 If the positive cumulative difference obtained by summing is greater than the positive trigger threshold, it means that the first key is triggered; if there are M consecutive difference data less than 0 ΔF t , ΔF t+1 , ...ΔF t+m-1 , , and the M difference data ΔF less than 0 t , ΔF t+1 , ...ΔF t+m-1 , If the reverse cumulative difference obtained by summing is less than the reverse trigger threshold, it means that the second button is triggered; otherwise, it means that the first button and the second button are not triggered;

[0051] The output unit receives the calculation result of the data processing unit and outputs the calculation result.

[0052] Furthermore, the aforementioned sensing unit is a pressure sensing chip.

[0053] According to a fifth aspect of the present invention, there is also provided an oral care device, such as an electric toothbrush, comprising the above-mentioned double-button trigger recognition module.

[0054] The dual-button trigger recognition module proposed in the present invention uses a pressure-sensitive chip to detect different deformations and output different signals, that is, to realize the key characteristics of generating different signals after buttons in different parts are pressed. Using a pressure-sensitive chip to realize two integrated key functions greatly saves material costs and the space required for the structure. In addition, the trigger recognition method of the present invention simplifies the method of key trigger recognition, optimizes the release threshold of the key, and can realize continuous key operation, further improving the user experience.

[0055] It should be understood that all combinations of the aforementioned concepts and the additional concepts described in more detail below can be considered as part of the inventive subject matter of the present disclosure as long as such concepts are not mutually inconsistent. In addition, all combinations of the claimed subject matter are considered as part of the inventive subject matter of the present disclosure.

[0056] The foregoing and other aspects, embodiments and features of the present invention can be more fully understood from the following description in conjunction with the accompanying drawings. Other additional aspects of the present invention, such as the features and / or beneficial effects of the exemplary embodiments, will be apparent from the following description or learned from the practice of the specific embodiments according to the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] The accompanying drawings are not intended to be drawn to scale. In the accompanying drawings, each identical or nearly identical component shown in each figure may be represented by the same reference numeral. For clarity, not every component is labeled in each figure. Embodiments of various aspects of the present invention will now be described by way of example and with reference to the accompanying drawings.

[0058] Figure 1 It is a flow chart of a trigger identification method of a dual-button module according to an embodiment of the present invention.

[0059] Figure 2 Is for Figure 1 A flowchart of determining whether the first button is triggered in the trigger identification method.

[0060] Figure 3 Is for Figure 1 A flowchart of determining whether the second button is triggered in the trigger identification method.

[0061] Figure 4 Is for Figure 1 A flowchart of determining whether the first button is released in a trigger recognition method.

[0062] Figure 5 Is for Figure 1 A flowchart of determining whether the second button is released in the trigger recognition method.

[0063] Figure 6FIG. 4 is a schematic diagram of a double-button trigger recognition module according to another embodiment of the present invention. DETAILED DESCRIPTION

[0064] In order to better understand the technical content of the present invention, specific embodiments are given and described as follows in conjunction with the accompanying drawings.

[0065] Various aspects of the present invention are described in this disclosure with reference to the accompanying drawings, in which many illustrative embodiments are shown. The embodiments of the present disclosure are not necessarily intended to include all aspects of the present invention. It should be understood that the various concepts and embodiments introduced above, as well as those described in more detail below, can be implemented in any of many ways, because the concepts and embodiments disclosed by the present invention are not limited to any implementation. In addition, some aspects disclosed by the present invention can be used alone or in any appropriate combination with other aspects disclosed by the present invention.

[0066] Example 1

[0067] The trigger identification method of the dual-button module according to an embodiment of the present invention comprises the following steps:

[0068] a) Initialization: set the forward cumulative difference, reverse cumulative difference, forward minimum value mark, reverse minimum value mark, forward maximum value, forward minimum value, reverse maximum value, and reverse minimum value to 0;

[0069] b) the data acquisition unit samples data from the sensing unit at a preset sampling frequency;

[0070] c) Calculate the difference of the data sampled at each time. For any time t, the difference data ΔF t The calculation formula is: Difference data ΔF t = This measurement value F t –Last measured value F t-1 ;

[0071] d) Determine whether the first button or the second button is triggered:

[0072] If there are N consecutive difference data ΔF greater than or equal to 0 t , ΔF t+1 ...ΔF t+n-1 , and the N difference data ΔF greater than or equal to 0 t , ΔF t+1 ...ΔF t+n-1 If the positive cumulative difference obtained by summing is greater than the positive trigger threshold, it means that the first button is triggered, otherwise, it means that the first button is not triggered;

[0073] If there are M consecutive difference data ΔF less than 0 t, ΔF t+1 , ...ΔF t+m-1 , , and the M difference data ΔF less than 0 t , , ΔF t+1 , ...ΔF t+m-1 , If the absolute value of the reverse accumulated difference obtained by summing is greater than the reverse trigger threshold, it indicates that the second button is triggered; otherwise, it indicates that the second button is not triggered.

[0074] As an optional embodiment, in step d), if it is determined that the first button is triggered, the state of the first button is updated to triggered; if it is determined that the second button is triggered, the state of the second button is stored as triggered, and the process returns to step b); otherwise, the states of the first button and the second button are stored as released, and the process returns to step b).

[0075] As an optional embodiment, before returning to step b), the method further includes step e) temporarily storing the current measurement value as the last measurement value for the next difference data calculation.

[0076] As an optional embodiment, in the step d), if the difference data is greater than or equal to 0, the following steps are performed:

[0077] f) Determine whether the difference data is greater than or equal to 0 for the first time, read the positive minimum value mark, if the positive minimum value mark is 0, record the last measured value as the positive minimum value, record the current measured value as the positive maximum value, and set the positive minimum value mark to 1; otherwise, if the positive minimum value mark is 1, record the current measured value as the positive maximum value, and the positive minimum value remains unchanged;

[0078] g) The current difference data is summed with the aforementioned N-1 consecutive difference data greater than or equal to 0 to obtain positive difference data.

[0079] As an optional embodiment, if there is difference data less than 0, perform the following steps:

[0080] h) Determine whether the difference data is less than 0 for the first time, read the reverse minimum value mark, if the reverse minimum value mark is 0, record the absolute value of the last measured value as the reverse minimum value, record the absolute value of the current measured value as the reverse maximum value, and set the reverse minimum value mark to 1; otherwise, if the reverse minimum value mark is 1, record the absolute value of the current measured value as the reverse maximum value, and the reverse minimum value remains unchanged;

[0081] i) The current difference data is summed with the aforementioned M-1 consecutive difference data less than 0 to obtain a reverse cumulative difference.

[0082] As an optional embodiment, before step d),

[0083] The following steps are included:

[0084] j) Read whether the current state of the first button or the second button is triggered. If the state of the first button or the second button is triggered, determine whether to update the state of the triggered first button or the second button to released based on the difference data; if not, that is, the states of the first button and the second button are both non-triggered, execute step d).

[0085] As an optional embodiment, in step j), if the current state of the first button is triggered, the specific process of determining whether to update the state of the first button to released according to the difference data is as follows:

[0086] Determine whether the current difference data is greater than or equal to 0. If so, update the positive maximum value to the current measured value, otherwise the positive maximum value remains unchanged;

[0087] Determine whether the current measurement value is less than the positive key release threshold. If so, update the first key state to released, reset the positive cumulative difference and the positive minimum value mark to 0, and return to step b); otherwise, return directly to step b).

[0088] As an optional embodiment, the aforementioned positive key release threshold is set to: (positive maximum value+positive minimum value)*first coefficient. Wherein, the first coefficient is optionally set to 0.5.

[0089] As an optional embodiment, in step j), if the current state of the second button is triggered, the specific process of determining whether to update the state of the second button to released according to the difference data is as follows:

[0090] Determine whether the current difference data is less than or equal to 0. If so, update the reverse maximum value to the absolute value of the current measurement value, otherwise the reverse maximum value remains unchanged;

[0091] Determine whether the absolute value of the current measurement value is less than the reverse key release threshold. If so, update the second key state to released, reset the reverse cumulative difference and reverse minimum value mark to 0, and return to step b); otherwise, return directly to step b).

[0092] As an optional embodiment, the aforementioned reverse key release threshold is set as: (reverse maximum value+reverse minimum value)*second coefficient. Wherein, the second coefficient is optionally set to 0.5.

[0093] Example 2

[0094] Combination Figure 1 As shown, a flowchart showing an example of a trigger identification method of a dual-button module according to the aforementioned embodiment is shown. Figure 1 As shown, the trigger identification method of the dual-button module specifically includes the following steps:

[0095] a) Initialization: set the forward cumulative difference, reverse cumulative difference, forward minimum value mark, reverse minimum value mark, forward maximum value, forward minimum value, reverse maximum value, and reverse minimum value to 0;

[0096] b) The data acquisition unit samples the sensing unit at a preset sampling frequency and performs difference calculation on the sampled data. At time t, the difference data calculation formula is: Difference data ΔF t = This measurement value F t –Last measured value F t-1 ;

[0097] c) reading the current state of the first button to determine whether it has been triggered; if so, executing step d); if not, executing step e);

[0098] d) Determine whether the state of the first button is updated to released, if yes, update the state of the first button to released, reset the positive cumulative difference and the positive minimum value mark to 0, and store the current measurement value as the last measurement value when the difference is calculated next time; if no, directly store the current measurement value as the last measurement value when the difference is calculated next time; return to step b);

[0099] e) reading the current state of the second button to determine whether it has been triggered. If so, executing step f); if not, executing step g);

[0100] f) determining whether the state of the second button is updated to released; if so, updating the state of the second button to released, resetting the reverse cumulative difference and the reverse minimum value mark to 0, and storing the current measurement value as the last measurement value for the next difference calculation; if not, directly storing the current measurement value as the last measurement value for the next difference calculation; returning to step b);

[0101] g) Determine whether the difference data is greater than or equal to 0. At time t, the difference data calculation method is: difference data ΔF t = This measurement value F t –Last measured value F t-1 In this embodiment, the pressure sensing module is taken as an example, so the pressure difference = current pressure value - last pressure value. tIf the value is greater than or equal to 0, the reverse cumulative difference is cleared to 0 and it is determined according to the difference data whether to update the state of the first button to trigger; if so, the state of the first button is updated to trigger, and the current measurement value is stored as the last measurement value when the difference is calculated next time; if not, the current measurement value is directly stored as the last measurement value when the difference is calculated next time; return to step b); if the difference data is less than 0, the forward cumulative difference is cleared to 0 and it is determined according to the difference data whether to update the state of the second button to trigger; if so, the state of the second button is updated to trigger, and the current measurement value is stored as the last measurement value when the difference is calculated next time; if not, the current measurement value is directly stored as the last measurement value when the difference is calculated next time; return to step b).

[0102] In the initial operation, both the first button and the second button are not triggered, then the difference data is used to determine whether to update the first button or the second button to trigger. First, read the difference data ΔF t Is it greater than or equal to 0? If the difference data is greater than or equal to 0, clear the reverse accumulated difference to 0 and determine whether the first button is triggered. If the difference data ΔF t If the positive accumulated difference is less than 0, the positive accumulated difference is cleared to 0, and further judgment is made as to whether the second button is triggered. In this embodiment, the first button is defined as the positive button and the second button is defined as the negative button, which is not limited to other embodiments.

[0103] If the difference data is greater than or equal to 0, determine whether the first button is triggered. The specific process is as follows Figure 2 As shown. First, clear the reverse cumulative difference to 0, then determine whether the difference data is greater than or equal to 0 for the first time, read whether the positive minimum value mark is 0, if yes, it means that the difference data is greater than or equal to 0 for the first time, record the current measurement value as the positive maximum value, record the last measurement value as the positive minimum value, and set the positive minimum value mark to 1; on the contrary, if the positive minimum value mark is 1, it means that the difference data is not greater than or equal to 0 for the first time, temporarily store the difference data greater than or equal to 0 this time, and record the current measurement value as the positive maximum value. If there are N-1 consecutive difference data greater than or equal to 0 before the current moment t, sum the N difference data greater than or equal to 0 to obtain the positive cumulative difference. Then determine whether the positive cumulative difference is greater than the set positive trigger threshold. If yes, update the first button to the triggered state, otherwise, the first button maintains the current release state, and temporarily stores the current measurement value as the "last measurement value" when calculating the difference data next time. The process of determining whether the first button is triggered is completed.

[0104] On the contrary, if the difference data is less than 0, it is determined whether the second button is triggered, and the specific process is similar to the determination process of whether the first button is triggered. Figure 3As shown, first clear the forward cumulative difference to 0, then determine whether the difference data is less than 0 for the first time, read whether the reverse minimum value mark is 0, if yes, it means that the difference data is less than 0 for the first time, record the absolute value of this measurement value as the reverse maximum value, record the absolute value of the last measurement value as the reverse minimum value, and set the reverse minimum value mark to 1. On the contrary, if the reverse minimum value mark is not 0, but 1, it means that the difference data is not less than 0 for the first time, temporarily store the difference data less than 0 this time, and record the absolute value of this measurement value as the reverse maximum value. If there are M-1 consecutive difference data with a size greater than 0 before this moment t, then sum the M difference data less than 0 to obtain the reverse cumulative difference. Then determine whether the absolute value of the reverse cumulative difference is greater than the set reverse trigger threshold. If yes, it means that the second button state needs to be updated to the trigger state. Otherwise, the second button maintains the current state, and temporarily stores the current measurement value as the "last measurement value" when calculating the difference data next time. The process of determining whether the second button is triggered is completed.

[0105] If after step b), the current state of the first button or the second button is read as triggered, it is necessary to execute a process of determining whether the first button or the second button is released.

[0106] Figure 4 for Figure 1 A specific flow chart for determining whether to update the first button state to released. Figure 4 In the example shown, the process of determining whether to update the first button state to released includes the following steps:

[0107] Determine whether the difference data is greater than or equal to zero. If not, proceed to the subsequent steps. If yes, record the current measurement value as the maximum positive value and proceed to the subsequent steps.

[0108] Determine whether the current measurement value is less than the positive key release threshold. If so, update the state of the first key to release, clear the positive cumulative difference and the positive minimum value mark, temporarily store the current measurement value as the "last measurement value" when calculating the difference data next time and return to step b). Otherwise, directly temporarily store the current measurement value as the "last measurement value" when calculating the difference data next time and return to step b).

[0109] The positive key release threshold is set to (positive maximum value + positive minimum value)*calculation coefficient, and the calculation coefficient is preferably 0.5, that is, the positive key release threshold = (positive maximum value + positive minimum value)*0.5.

[0110] Figure 5 for Figure 1The specific flow chart of determining whether to update the second button state to release is similar to the process of determining whether to update the first button state to release. Figure 5 In the example shown, the specific process of determining whether to update the second button state to released is as follows:

[0111] Determine whether the difference data is less than or equal to zero. If not, proceed to the subsequent steps. If yes, record the absolute value of this measurement as the maximum positive value, and then proceed to the subsequent steps.

[0112] Determine whether the current measurement value is less than the reverse key release threshold. If so, update the state of the second key to release, clear the reverse cumulative difference and the reverse minimum value mark, temporarily store the current measurement value as the "last measurement value" for the next calculation of difference data and return to step b); otherwise, directly temporarily store the current measurement value as the "last measurement value" for the next calculation of difference data and return to step b).

[0113] The reverse key release threshold is set as (reverse maximum value+reverse minimum value)*calculation coefficient, and the calculation coefficient is preferably 0.5, that is, the reverse key release threshold=(reverse maximum value+reverse minimum value)*0.5.

[0114] In this embodiment, when judging whether the reverse key is triggered or released, the absolute value of the measurement is taken for comparison. However, the present invention is not limited to this. In other embodiments, the measurement data can be directly compared with the reverse key release threshold. The specific process is a well-known technology for people with general knowledge in this field and will not be repeated here.

[0115] Figure 6 The diagram exemplarily shows a double-button trigger recognition module according to another embodiment of the present invention.

[0116] The double-button trigger recognition module includes a sensing unit, a data acquisition unit, a data processing unit and an output unit.

[0117] The sensing unit is used to receive external operations.

[0118] The data collection unit collects data from the key sensing unit according to a preset frequency.

[0119] The data processing unit receives the data collected by the data collection unit and calculates the difference data according to the data. For any time t, the difference data calculation method is: the difference data ΔF t = This measurement value F t –Last measured value F t-1 ; Then further determine whether the first button or the second button is triggered based on the above difference data:

[0120] If there are N consecutive difference data ΔF greater than or equal to 0 t , ΔF t+1 ...ΔF t+n-1 , and the N difference data ΔF greater than or equal to 0 t , ΔF t+1 ...ΔF t+n-1 If the positive cumulative difference obtained by summing is greater than the positive trigger threshold, it indicates that the first button is triggered; otherwise, it indicates that the first button is not triggered;

[0121] If there are M consecutive difference data ΔF less than 0 t , ΔF t+1 , ...ΔF t+m-1 , , and the M difference data ΔF less than 0 t , ΔF t+1 , ...ΔF t+m-1 , If the absolute value of the reverse accumulated difference obtained by summing is greater than the reverse trigger threshold, it indicates that the second button is triggered; otherwise, it indicates that the second button is not triggered.

[0122] The output unit receives the calculation result of the data processing unit and outputs the calculation result.

[0123] In other embodiments, the data processing unit may adopt other appropriate designs. For example, the data acquisition unit receives the data collected by the above data acquisition unit, and performs difference data calculation based on the above data. For any time t, the difference data calculation method is: difference data ΔF t = This measurement value F t –Last measured value F t-1 , and then further determine whether the first button or the second button is triggered based on the above difference data:

[0124] If there are N consecutive difference data ΔF greater than or equal to 0 t , ΔF t+1 ...ΔF t+n-1 , and the N difference data ΔF greater than or equal to 0 t , ΔF t+1 ...ΔF t+n-1 If the positive cumulative difference obtained by summing is greater than the positive trigger threshold, it indicates that the first button is triggered; otherwise, it indicates that the first button is not triggered;

[0125] If there are M consecutive difference data ΔF less than 0 t, ΔF t+1 , ...ΔF t+m-1 , , and the M difference data ΔF less than 0 t , ΔF t+1 , ...ΔF t+m-1 , If the reverse cumulative difference obtained by summing is less than the reverse trigger threshold, it means that the second button is triggered;

[0126] Otherwise, it means that the second button is not triggered.

[0127] In the above embodiments, the sensing unit may be a pressure sensing chip, such as a strain gauge, a MEMS pressure sensing chip, etc.

[0128] The present invention further provides an oral care device, comprising the above-mentioned double-button trigger recognition module. For example, the oral care device can be a water flosser or an electric toothbrush. Other structural parts of the water flosser or electric toothbrush are well-known technologies to people with general knowledge in the field and will not be described in detail here.

[0129] Taking an electric toothbrush as an example, a pressure-sensing chip can be used to detect deformation in both the forward and reverse directions, and output forward and reverse signals, that is, to realize the button feature of generating different signals after pressing buttons in different parts, and to realize two integrated button functions with a pressure-sensing chip, which greatly saves material costs and the space required for the structure. In addition, the trigger recognition method of the present invention simplifies the method of button trigger recognition, optimizes the button release threshold, and can realize continuous button operation, further improving the user experience.

[0130] Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. A person with ordinary knowledge in the technical field to which the present invention belongs may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be determined by the definition of the claims.

Claims

1. A trigger identification method for a dual-button module, It is characterized in that The following steps are involved: a) Initialization: set the forward cumulative difference, reverse cumulative difference, forward minimum value mark, reverse minimum value mark, forward maximum value, forward minimum value, reverse maximum value, and reverse minimum value to 0; b) the data acquisition unit samples data from the sensing unit at a preset sampling frequency; c) Calculate the difference of the data sampled at each time. For any time t, the difference data ΔF t The calculation formula is: Difference data ΔF t = This measurement value F t –Last measured value F t-1 ; d) Determine whether the first button or the second button is triggered: If there are N consecutive difference data ΔF greater than or equal to 0 t , ΔF t+1 ...ΔF t+n-1 , and the N difference data ΔF greater than or equal to 0 t , ΔF t+1 ...ΔF t+n-1 If the positive cumulative difference obtained by summing is greater than the positive trigger threshold, it means that the first button is triggered, otherwise, it means that the first button is not triggered; If there are M consecutive difference data ΔF less than 0 t , ΔF t+1 , ...ΔF t+m-1 , , and the M difference data ΔF less than 0 t , , ΔF t+1 , ...ΔF t+m-1 , If the absolute value of the reverse accumulated difference obtained by summing is greater than the reverse trigger threshold, it indicates that the second button is triggered; otherwise, it indicates that the second button is not triggered.

2. The trigger identification method of the dual-button module according to claim 1, It is characterized in that In the step d), if it is determined that the first button is triggered, the state of the first button is updated to triggered; if it is determined that the second button is triggered, the state of the second button is stored as triggered, and the process returns to step b); otherwise, the states of the first button and the second button are stored as released, and the process returns to step b).

3. The trigger identification method of the dual-button module according to claim 2, It is characterized in that Before returning to step b), the method further includes step e) temporarily storing the current measurement value as the last measurement value for the next difference data calculation.

4. The trigger identification method of the dual-button module according to claim 1, It is characterized in that In the step d), if the difference data is greater than or equal to 0, the following steps are performed: f) Determine whether the difference data is greater than or equal to 0 for the first time, read the positive minimum value mark, if the positive minimum value mark is 0, record the last measured value as the positive minimum value, record the current measured value as the positive maximum value, and set the positive minimum value mark to 1; Otherwise, if the positive minimum value flag is 1, the current measurement value is recorded as the positive maximum value, and the positive minimum value remains unchanged; g) The current difference data is summed with the aforementioned N-1 consecutive difference data greater than or equal to 0 to obtain positive difference data.

5. The trigger identification method according to claim 1, It is characterized in that In step d), if there is difference data less than 0, perform the following steps: h) Determine whether the difference data is less than 0 for the first time, read the reverse minimum value mark, if the reverse minimum value mark is 0, record the absolute value of the last measured value as the reverse minimum value, record the absolute value of the current measured value as the reverse maximum value, and set the reverse minimum value mark to 1; otherwise, if the reverse minimum value mark is 1, record the absolute value of the current measured value as the reverse maximum value, and the reverse minimum value remains unchanged; i) The current difference data is summed with the aforementioned M-1 consecutive difference data less than 0 to obtain a reverse cumulative difference.

6. The trigger identification method of the dual-button module according to claim 1, It is characterized in that The following steps are included before step d): j) Read whether the current state of the first button or the second button is triggered. If the state of the first button or the second button is triggered, determine whether to update the state of the triggered first button or the second button to released based on the difference data; if not, that is, the states of the first button and the second button are both non-triggered, execute step d).

7. The trigger identification method of the dual-button module according to claim 6, It is characterized in that In step j), if the current state of the first button is triggered, the specific process of determining whether to update the state of the first button to released according to the difference data is as follows: Determine whether the current difference data is greater than or equal to 0. If so, update the positive maximum value to the current measured value, otherwise the positive maximum value remains unchanged; Determine whether the current measurement value is less than the positive key release threshold. If so, update the first key state to release, reset the positive cumulative difference and the positive minimum value mark to 0, and return to step b); Otherwise, return directly to step b).

8. The trigger identification method of the dual-button module according to claim 7, It is characterized in that The positive key release threshold is set to: (positive maximum value+positive minimum value)*first coefficient.

9. The trigger identification method of the dual-button module according to claim 8, It is characterized in that The first coefficient is set to 0.

5.

10. The trigger identification method of the dual-button module according to claim 6, It is characterized in that In step j), if the current state of the second button is triggered, the specific process of determining whether to update the state of the second button to released according to the difference data is as follows: Determine whether the current difference data is less than or equal to 0. If so, update the reverse maximum value to the absolute value of the current measurement value, otherwise the reverse maximum value remains unchanged; Determine whether the absolute value of the current measurement value is less than the reverse key release threshold. If so, update the second key state to release, reset the reverse cumulative difference and the reverse minimum value mark to 0, and return to step b); Otherwise, return directly to step b).

11. The trigger identification method of the dual-button module according to claim 10, It is characterized in that The reverse key release threshold is set as: (reverse maximum value+reverse minimum value)*second coefficient.

12. The trigger identification method of the dual-button module according to claim 11, It is characterized in that The second coefficient is set to 0.

5.

13. A trigger identification method for a dual-button module, It is characterized in that The following steps are involved: a) Initialization: set the forward cumulative difference, reverse cumulative difference, forward minimum value mark, reverse maximum value mark, forward maximum value, forward minimum value, reverse maximum value, and reverse minimum value to 0; b) the data acquisition unit samples data from the sensing unit at a preset sampling frequency; c) Calculate the difference of the data sampled at each time. For any time t, the difference data ΔF t The calculation method is: difference data ΔF t = This measurement value F t –Last measured value F t-1 ; d) Determine whether the first button or the second button is triggered: If there are N consecutive difference data ΔF greater than or equal to 0 t , ΔF t+1 ...ΔF t+n-1 , and the N difference data ΔF greater than or equal to 0 t , ΔF t+1 ...ΔF t+n-1 If the positive cumulative difference obtained by summing is greater than the positive trigger threshold, it indicates that the first button is triggered; otherwise, it indicates that the first button is not triggered; If there are M consecutive difference data ΔF less than 0 t , ΔF t+1 , ...ΔF t+m-1 , , and the M difference data ΔF less than 0 t , , ΔF t+1 , ...ΔF t+m-1 , If the reverse cumulative difference obtained by summing is less than the reverse trigger threshold, it means that the second button is triggered; otherwise, it means that the second button is not triggered.

14. A dual-button trigger recognition module, It is characterized in that include: A sensing unit, used to receive external operations; A data collection unit collects data from the key sensing unit according to a preset frequency; The data processing unit receives the data collected by the data collection unit and calculates the difference data according to the data. At time t, the difference data calculation method is: difference data ΔF t = This measurement value F t –Last measured value F t-1 ; And determine whether the first button or the second button is triggered: If there are N consecutive difference data ΔF greater than or equal to 0 t , ΔF t+1 ...ΔF t+n-1 , and the N difference data ΔF greater than or equal to 0 t , ΔF t+1 ...ΔF t+n-1 If the positive cumulative difference obtained by summing is greater than the positive trigger threshold, it indicates that the first button is triggered; otherwise, it indicates that the first button is not triggered; If there are M consecutive difference data ΔF less than 0 t , ΔF t+1 , ...ΔF t+m-1 , , and the M difference data ΔF less than 0 t , ΔF t+1 , ...ΔF t+m-1 , If the absolute value of the reverse cumulative difference obtained by summing is greater than the reverse trigger threshold, it indicates that the second button is triggered; otherwise, it indicates that the second button is not triggered; The output unit receives the calculation result of the data processing unit and outputs the calculation result.

15. The double-button trigger recognition module according to claim 14, It is characterized in that The sensing unit is a pressure sensing chip.

16. A double-button trigger recognition module, It is characterized in that include: A sensing unit, used to receive external operations; A data collection unit collects data from the key sensing unit according to a preset frequency; The data processing unit receives the data collected by the data collection unit and calculates the difference data according to the data. At time t, the difference data calculation method is: difference data ΔF t = This measurement value F t –Last measured value F t-1 , and determine whether the first button or the second button is triggered: If there are N consecutive difference data ΔF greater than or equal to 0 t , ΔF t+1 ...ΔF t+n-1 , and the N difference data ΔF greater than or equal to 0 t , ΔF t+1 ...ΔF t+n-1 If the positive cumulative difference obtained by summing is greater than the positive trigger threshold, it indicates that the first button is triggered; otherwise, it indicates that the first button is not triggered; If there are M consecutive difference data ΔF less than 0 t , ΔF t+1 , ...ΔF t+m-1 , , and the M difference data ΔF less than 0 t , ΔF t+1 , ...ΔF t+m-1 , If the reverse cumulative difference obtained by summing is less than the reverse trigger threshold, it means that the second button is triggered; otherwise, it means that the second button is not triggered; The output unit receives the calculation result of the data processing unit and outputs the calculation result.

17. The double-button trigger recognition module according to claim 16, It is characterized in that The sensing unit is a pressure sensing chip.

18. An oral care device, It is characterized in that It comprises the double-button trigger recognition module as described in any one of claims 14-17.