A toothbrush control method and device, an electric toothbrush and a readable storage medium
By using built-in sensors to identify wake-up events and device status, the electric toothbrush dynamically builds a set of brushing modes and preloads control parameters, solving the problems of inaccurate wake-up and rigid modes in existing electric toothbrushes, thus improving user experience and energy efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- YUANMENG CHUANGZHI TECHNOLOGY (SHENZHEN) CO LTD
- Filing Date
- 2026-02-09
- Publication Date
- 2026-05-29
AI Technical Summary
Existing electric toothbrushes suffer from inaccurate wake-up detection, static mode sets, rigid parameter loading, unreliable operation termination recognition, and delayed scoring feedback, resulting in poor user experience, high energy consumption, and insufficient functional practicality.
By collecting sensor data through built-in sensors to identify wake-up events, combining device status information to filter a set of candidate brushing modes, and preloading control parameters, the system responds to user input of mode switching commands to achieve precise execution of brushing control actions and scoring feedback.
It achieves an efficient balance between wake-up response and low power consumption, improves the timeliness and reliability of system startup, shortens the user operation path, improves interaction efficiency and personalization, and enhances the quality of user experience.
Smart Images

Figure CN122117232A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart toothbrush technology, and in particular to a toothbrush control method, device, electric toothbrush, and readable storage medium. Background Technology
[0002] In recent years, with the development of smart hardware and IoT technology, electric toothbrushes have evolved from traditional single-vibration-mode products into intelligent health devices integrating sensing, human-computer interaction, and data feedback. Mainstream products are generally equipped with microcontrollers, multi-axis motion sensors, displays, physical buttons, and wireless communication modules, supporting multiple brushing modes, usage status recording, and data synchronization with mobile devices. Some products introduce a wake-up mechanism based on accelerometers, enabling rapid response by detecting hand grip movements in standby mode; the system can drive the motor to perform sonic vibration or sweeping vibration actions based on user-selected parameters such as vibration frequency, swing angle, or working sequence. High-end models also feature brushing behavior analysis functions, using sensor data to calculate scores and storing the results locally or uploading them to the cloud, creating traceable care records.
[0003] However, existing products still suffer from several bottlenecks in mode control: sensor wake-up often uses fixed thresholds, lacking dynamic evaluation of acceleration changes within the sampling window, making it difficult to balance sensitivity—too low a threshold easily leads to false triggers and increased power consumption; too high a threshold may result in missed detections and affect response. Mode selection is not optimized in conjunction with device status, and cannot dynamically generate an available set based on battery level or user preferences, resulting in lengthy operation paths. Switching relies on sequential traversal, lacking a loop indexing mechanism, leading to an inconsistent user experience. Control parameters are often hard-coded into firmware, making it difficult to load on demand and limiting personalization. Although brushing can be rated after completion, there is a lack of reliable determination of "operation termination" (e.g., unverified static state), making it prone to false ratings due to short pauses, and the rating results are not displayed in subsequent interactions, affecting the user's continuous perception and improvement of brushing habits. Summary of the Invention
[0004] In view of this, the embodiments of this application provide a toothbrush control method, device, electric toothbrush and readable storage medium, which can effectively solve the problems of poor user experience, high energy consumption and insufficient functional practicality caused by inaccurate wake-up determination, static mode set, rigid parameter loading, unreliable operation termination recognition and delayed scoring feedback in the prior art.
[0005] In a first aspect, embodiments of this application provide a toothbrush control method, including: The electric toothbrush collects sensor data through its built-in sensors and identifies wake-up events for control triggering based on the sensor data. Upon detecting the wake-up event, the electric toothbrush is controlled to enter the wake-up state and the current device status information is obtained. Based on the device status information, determine the set of candidate brushing modes and load the control parameters corresponding to each mode; In response to a user-inputted mode switching command, a target brushing mode and its corresponding control parameters are matched from the set of candidate brushing modes; Based on the control parameters, the electric toothbrush is driven to perform corresponding brushing control actions.
[0006] In some embodiments, the step of collecting sensor data via a sensor built into the electric toothbrush and identifying a wake-up event for control triggering based on the sensor data includes: The acceleration detection values of the sensor in the three directions of X-axis, Y-axis and Z-axis are acquired to form sensing data to represent the current motion state; Within a preset sampling time window, the acceleration change in each axis is calculated based on the sensed data; Determine whether the change in acceleration exceeds a preset acceleration threshold; When the change in acceleration exceeds a preset acceleration threshold, it is identified as a wake-up event for control triggering.
[0007] In some embodiments, after recognizing the wake-up event, controlling the electric toothbrush to enter a wake-up state and obtaining current device status information includes: After recognizing the wake-up event, a wake-up command for switching device states is sent to the main control chip, and the main control chip is controlled to start the power management module to read the battery voltage sampling value after responding to the wake-up command. Based on the battery voltage sampling value, the power state is divided into multiple preset power ranges to determine the power range in which the battery voltage sampling value is located; Based on the stated power range, corresponding power status information is generated.
[0008] In some embodiments, determining the candidate brushing mode set and loading the corresponding control parameters based on the device status information includes: The device status information is matched with preset brushing mode activation conditions to filter out a set of candidate brushing modes that can be enabled. Based on the candidate brushing mode set, the control parameters corresponding to each brushing mode are extracted from the preset parameter configuration table, and the initial loading is completed.
[0009] In some embodiments, the step of matching a target brushing mode and its corresponding control parameters from the candidate brushing mode set in response to a user-inputted mode switching command includes: In response to the user's mode switching command input via physical buttons, the system increments or cycles to the index position of the next mode based on the index position of the currently selected mode in the set of candidate brushing modes. The target brushing mode is determined based on the updated index position, and the associated control parameters are loaded.
[0010] In some embodiments, driving the electric toothbrush to perform corresponding brushing control actions based on the control parameters includes: Extract control variables suitable for the current target brushing mode from the control parameters. The control variables include at least one of the target vibration frequency, oscillation angle, and working timing parameters. Based on the control variables, drive control commands are generated and sent to the motor drive module of the electric toothbrush, so that the motor drive module drives the electric toothbrush to perform corresponding vibration or sweeping motion actions.
[0011] In some embodiments, after generating drive control commands based on the control variables and sending them to the motor drive module of the electric toothbrush, the process includes: When the brushing control action is detected to have terminated and the sensor does not detect a valid motion signal during the duration, a brushing score is calculated based on the sensor data collected during the brushing process. The calculated brushing score is stored and updated in the brushing history record on the electric toothbrush display interface.
[0012] Secondly, embodiments of this application provide a toothbrush control device, comprising: The data acquisition module is used to collect sensor data through the built-in sensors of the electric toothbrush and identify wake-up events for control triggering based on the sensor data; The wake-up module is used to control the electric toothbrush to enter the wake-up state after recognizing the wake-up event, and to obtain the current device status information; The status judgment module is used to determine the set of candidate brushing modes and load the control parameters corresponding to each mode based on the device status information. The mode response module is used to respond to the mode switching command input by the user and match the target brushing mode and its corresponding control parameters from the candidate brushing mode set; An execution module is used to drive the electric toothbrush to perform corresponding brushing control actions based on the control parameters.
[0013] Thirdly, embodiments of this application provide an electric toothbrush, the electric toothbrush including a processor and a memory, the memory storing a computer program, and the processor executing the computer program to implement the toothbrush control method of the first aspect described above.
[0014] Fourthly, embodiments of this application provide a computer-readable storage medium, wherein when the computer program is executed on a processor, it implements the toothbrush control method of the first aspect described above.
[0015] The embodiments of this application have the following beneficial effects: Sensing data is collected through built-in sensors, and wake-up events for triggering control are identified based on this data; upon recognition of a wake-up event, the toothbrush is controlled to enter a wake-up state and obtain current device status information; a set of candidate brushing modes is determined based on the device status information, and control parameters corresponding to each mode are loaded; in response to user-inputted mode switching commands, a target brushing mode and its corresponding parameters are matched from the target set; finally, the electric toothbrush is driven to perform corresponding brushing control actions based on the selected parameters. This method achieves an efficient balance between wake-up response and low power consumption, improving the timeliness and reliability of system startup; by dynamically constructing an available mode set in conjunction with device status, interference from invalid modes is avoided, shortening the user operation path and improving interaction efficiency; the control parameter preloading mechanism reduces mode switching latency and enhances response smoothness; and significantly improves the convenience, personalization level, and overall user experience quality of the smart toothbrush in daily use. Attached Figure Description
[0016] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 A flowchart of a toothbrush control method according to an embodiment of this application is shown; Figure 2 A schematic diagram of the battery level indicator in the toothbrush control method according to an embodiment of this application is shown; Figure 3 Another flowchart of the toothbrush control method according to an embodiment of this application is shown; Figure 4 A schematic diagram of the physical buttons in the toothbrush control method according to an embodiment of this application is shown; Figure 5 This paper shows a schematic diagram of mode selection in the toothbrush control method according to an embodiment of the present application; Figure 6 A schematic diagram of the electric toothbrush display interface in the toothbrush control method of this application is shown; Figure 7 A schematic diagram of a liquid reminder in a toothbrush control method according to an embodiment of this application is shown; Figure 8A schematic diagram of a toothbrush control method according to an embodiment of this application is shown. Detailed Implementation
[0018] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.
[0019] The components of the embodiments of this application described and illustrated in the accompanying drawings can be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of this application provided in the drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0020] In the following text, the terms "comprising," "having," and their cognates, which may be used in various embodiments of this application, are intended only to indicate a particular feature, number, step, operation, element, component, or combination thereof, and should not be construed as primarily excluding the presence of one or more other features, numbers, steps, operations, elements, components, or combinations thereof, or adding the possibility of one or more combinations thereof. Furthermore, the terms "first," "second," "third," etc., are used only for distinguishing descriptions and should not be construed as indicating or implying relative importance.
[0021] Unless otherwise specified, all terms used herein (including technical and scientific terms) shall have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of this application pertain. Terms (such as those defined in commonly used dictionaries) shall be interpreted as having the same meaning as in their contextual meaning in the relevant technical field and shall not be construed as having an idealized or overly formal meaning, unless clearly defined in the various embodiments of this application.
[0022] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0023] Considering the problems of poor user experience, high energy consumption, and insufficient functional practicality caused by inaccurate wake-up determination, static mode sets, rigid parameter loading, unreliable operation termination recognition, and delayed scoring feedback in existing technologies, a toothbrush control method is proposed. This method constructs a dynamic wake-up event recognition mechanism based on sensor-perceived data, filters the set of allowed brushing modes by combining device status information, and preloads the control parameters corresponding to each mode. It responds to user input of mode switching commands via physical buttons, smoothly switching between modes based on a cyclic indexing mechanism. Furthermore, it generates drive commands based on the control variables of the selected mode to achieve precise control of brush head vibration or sweeping motion. Finally, after detecting complete termination of the brushing action, it calculates the brushing score based on complete session data and updates the local historical record, thus forming a full-link control from wake-up, selection, execution to feedback.
[0024] The toothbrush control method will be explained below with reference to some specific embodiments.
[0025] Figure 1 A flowchart of a toothbrush control method according to an embodiment of this application is shown. Exemplarily, the toothbrush control method includes the following steps: In step S100, sensor data is collected through the built-in sensor of the electric toothbrush, and wake-up events for control triggering are identified based on the sensor data.
[0026] The sensor is a six-axis motion sensor integrated inside the toothbrush, featuring a three-axis accelerometer and a three-axis gyroscope, used to monitor the linear acceleration changes of the device in space in real time. The sensed data is a time-series digital quantity formed by analog-to-digital conversion of the raw analog signal output by the sensor. A wake-up event refers to a valid user action intended to start the toothbrush, such as shaking or tapping the hand; once recognized by the system, this triggers the device to switch from standby to working mode. This mechanism avoids the inconvenience of relying entirely on physical buttons for wake-up, improving ease of use while ensuring battery life.
[0027] In an optional embodiment, step S100 includes the following sub-steps: S101, acquire the acceleration detection values of the sensor in the three directions of X-axis, Y-axis and Z-axis to form sensing data to represent the current motion state.
[0028] The X, Y, and Z axes form an orthogonal coordinate system with the toothbrush body as the reference frame, corresponding to the horizontal, vertical, and longitudinal directions, respectively. The acceleration detection value is a digital quantity in grams, with a typical resolution of 12 bits and a range of ±2g. Exemplarily, when the user picks up the toothbrush, the six-axis sensor continuously collects three-axis data at a sampling frequency of 100Hz and uploads each frame of data to the main control chip ESP32 via the I²C interface. The ESP32 caches the sampling points within the most recent 80ms as a complete data window (e.g., a total of 8 sampling points). This process enables accurate capture of short-term dynamic behavior, ensuring that the perceived data accurately reflects the user's initial action characteristics.
[0029] S102, within a preset sampling time window, calculate the acceleration change in each axis based on the sensing data.
[0030] The sampling time window is a fixed-length data acquisition interval used to define the action segments involved in the judgment, typically 80ms in length. The acceleration change refers to the difference between the maximum and minimum acceleration values along a certain axis within this time window, i.e., Δa = |amax – amin|, in mg, used to quantify the instantaneous disturbance intensity along that axis. For example, after receiving a set of 80ms acceleration data, the data sequences for each of the X, Y, and Z axes are sequentially traversed, and their ranges are calculated for each. For instance, if the maximum value on the X-axis in a certain acquisition is +0.65g and the minimum value is -0.30g, then the change is 0.95g (i.e., 950mg). This result is obtained by the ESP32's CPU performing simple arithmetic operations.
[0031] S103, determine whether the change in acceleration exceeds the preset acceleration threshold.
[0032] The acceleration threshold is a pre-configured trigger threshold value used to distinguish between valid wake-up actions and minor daily disturbances, preventing false triggers. A typical setting is 450mg. As an example, the calculated acceleration changes along the X, Y, and Z axes are compared one by one with 450mg. If the change in any axis exceeds this threshold, the condition is considered met. This judgment is completed through a CMP instruction, and the result directly affects the state of the interrupt flag. For instance, in actual product testing, it was found that the normal action of holding a toothbrush typically produces an acceleration change of 500–1200mg, while shaking it in a bag generally does not exceed 300mg. Therefore, setting the threshold to 450mg achieves a good balance between sensitivity and anti-interference, effectively reducing the false wake-up rate.
[0033] S104 When the change in acceleration exceeds the preset acceleration threshold, it is identified as a wake-up event for control triggering.
[0034] The wake-up event is identified by the generation of a hardware interrupt signal. This signal is actively pulled high by the INT pin of the six-axis sensor and transmitted to the external interrupt input port of the ESP32 main control chip, thereby triggering the MCU to exit deep sleep mode. For example, once the acceleration change in any axis exceeds 450mg, the sensor immediately generates an interrupt pulse. Upon response, the ESP32 activates the power management module, lights up the screen, and enters the "wake-up interface," displaying the previous brushing score.
[0035] For example, the length of the sampling time window can be adjusted according to different usage scenarios. For example, the children's product can be shortened to 50ms to improve sensitivity, while the outdoor travel product can be extended to 100ms to enhance anti-shake capability. In addition, the acceleration threshold can also be personalized through the mobile app and stored in the toothbrush's local Flash, allowing users to adjust the wake-up sensitivity as needed.
[0036] In one optional implementation, the electric toothbrush enters "shipping mode" after completing factory testing. This mode is an ultra-low power protection state specifically designed for the logistics and transportation phase to prevent accidental wake-up due to environmental interference such as shaking or squeezing, which could deplete the battery. In other words, "shipping mode" is actively activated by operators during the final quality inspection stage, guided by production line testing fixtures. The main control chip writes a specific status flag to the non-volatile memory to lock it in this mode. In this mode, the six-axis sensor interrupt signal is blocked, and clicking the mode button or power button will not trigger system wake-up; the screen and Bluetooth module remain off. To exit, press and hold the power button for 3 seconds or more. The main control chip detects a button pulse of the specified duration, clears the shipping flag, and initiates the normal power-on process. After this, the device will not automatically enter this mode again, ensuring full functionality during user operation.
[0037] Step S200: After recognizing the wake-up event, control the electric toothbrush to enter the wake-up state and obtain the current device status information.
[0038] The wake-up state refers to the state in which the electric toothbrush switches from low-power standby mode to normal operating mode. At this time, the main control chip, display screen, and power management module are activated. Device status information includes, but is not limited to, key parameters reflecting the current operating conditions, such as battery level, last usage mode, and storage space status. The purpose of this step is to establish a context-aware foundation, providing a basis for subsequent mode selection and control strategies, and avoiding abnormal behavior caused by ignoring key states (such as starting a high-power mode when the battery is low).
[0039] In an optional embodiment, step S200 includes the following sub-steps: S201, after recognizing a wake-up event, sends a wake-up command to the main control chip to switch the device state, and controls the main control chip to start the power management module to read the battery voltage sampling value after responding to the wake-up command.
[0040] The wake-up command is a system-level command triggered by a hardware interrupt signal generated by the six-axis sensor. It is sent directly to the GPIO port of the main control chip ESP32 via the interrupt pin, serving as the trigger source for exiting deep sleep. The power management module is a power management unit (PMU) integrated on the electric toothbrush motherboard, responsible for power distribution, voltage monitoring, and charge / discharge control. Exemplarily, when the ESP32 receives the interrupt signal, it immediately starts its internal clock circuit, completes initialization self-test, and actively enables the ADC channel in the power management module to digitally sample the analog voltage signal between the positive and negative terminals of the battery, obtaining an accurate battery voltage sample value (unit: mV).
[0041] S202, based on the battery voltage sampling value, divides the power state into multiple preset power ranges to determine the power range in which the battery voltage sampling value is located.
[0042] The battery capacity range is a pre-defined range of voltage segments used to map continuous voltage values to discrete capacity levels. For example, the battery voltage range is divided into four typical ranges: [4.0V, 4.2V] corresponds to "high capacity" (>80%), [3.7V, 4.0V) corresponds to "medium capacity" (40%–80%), [3.5V, 3.7V) corresponds to "low capacity" (<40%), and [3.4V, 3.5V) corresponds to "undervoltage warning" (<10%). The acquired voltage samples are compared one by one to the above threshold boundaries, and a step-by-step judgment method is used to determine their range. For example, if the current voltage is 3.65V, it falls within the [3.5V, 3.7V) range and is judged as a "low capacity" state.
[0043] S203 generates corresponding power status information based on the power range.
[0044] The power status information is structured data containing fields such as battery level identifier, icon code, and whether sound prompts are enabled. For example, when the battery is determined to be "low," the generated power status information is marked "requires reminder," and a pre-set voice prompt (such as "Battery is low, please charge promptly") is associated with it. Simultaneously, the battery icon in the on-screen UI is set to flash yellow. If the level is "undervoltage warning," high-power mode is further disabled, and the charging prompt interface is forced to be displayed first. Figure 2 As shown.
[0045] For example, when the power is below 3.5V, the motor output power drops significantly. Therefore, while generating power status information, the system will automatically limit the maximum swing angle of the sweep mode to prevent the brush head from getting stuck or the motor from overheating due to insufficient voltage.
[0046] In other implementations, the boundaries of the power range can be dynamically adjusted according to the degree of battery aging. For example, the change in internal resistance can be estimated by recording the number of charge-discharge cycles, and the threshold points can be lowered accordingly to improve the long-term accuracy of power judgment. In addition, the power status information can also include temperature sampling results to realize over-temperature protection linkage control and enhance equipment safety.
[0047] Step S300: Based on the device status information, determine the set of candidate brushing modes and load the control parameters corresponding to each mode.
[0048] The device status information refers to a set of data reflecting the current operating conditions acquired by the system after wake-up, including battery level range, last usage mode, Bluetooth connection status, and user-defined configuration flags. The candidate brushing mode set refers to a subset of brushing modes that the user can select and enable in the current state, rather than a simple list of all preset modes. Control parameters refer to the functional variables that each brushing mode depends on, such as vibration frequency, oscillation angle, and operating timing, which need to be pre-loaded before the user switches to ensure a fast response. This step aims to prevent the activation of high-power modes under low battery conditions and to disable invalid options.
[0049] In one alternative embodiment, such as Figure 3 As shown, step S300 includes the following sub-steps: S301, match the device status information with the preset brushing mode activation conditions to filter out a set of candidate brushing modes that can be enabled.
[0050] The brushing mode activation conditions are a set of rule-based judgment logic stored in the Flash memory of the main control chip, used to define under what device states each brushing mode can be enabled. For example, when the power status information indicates "low battery" or "undervoltage warning," the system excludes all high-power sweep vibration modes (due to their large motor load), retaining only the basic acoustic vibration mode as a candidate; if the device is offline and not connected to the app, the recognition modes that require cloud collaboration are hidden.
[0051] In addition, users can set the number and order of display modes through the mobile app. After the relevant configuration is synchronized to the local device, it forms an "enabled flag". Modes that are not enabled will not appear in the target set.
[0052] For example, in actual products, the factory defaults to supporting 7 modes. However, if the user disables "Sensitive Mode" and "Polishing Mode" in the app, these two modes will not be included in the candidate brushing mode set even if the battery is fully charged. This matching process is completed by the ESP32 performing Boolean logic operations, and the output is a structure data containing a list of mode IDs.
[0053] S302, based on the candidate brushing mode set, extracts the control parameters corresponding to each brushing mode from the preset parameter configuration table and completes the initialization loading.
[0054] The parameter configuration table is a two-dimensional mapping structure stored in Flash memory. Each row corresponds to a brushing mode, and the columns include adjustable parameters such as mode name, vibration frequency range, oscillation speed level, oscillation angle limit, and voice prompt index. Initialization loading refers to reading the above parameters from non-volatile memory into the runtime cache of the main control chip's RAM, so that they can be quickly accessed and called when switching modes. For example, for the three sound wave modes, their adjustable vibration frequency parameters (typical range of 280–400 times / minute, in 20 steps) are loaded; for the three sweeping vibration modes, additional exclusive parameters such as oscillation speed (50–120° / s) and maximum oscillation angle (±15°~±30°) are loaded. The entire loading process is completed before entering the "mode selection interface," ensuring that the user does not need to wait for parameter parsing each time they click the mode button. For example, during a wake-up process, if the system recognizes that the current battery level is "medium" and the user has enabled four modes, it will only extract all the control parameters of these four modes from the parameter configuration table and load them into memory, while the parameters of the other modes remain in a dormant state to save resources.
[0055] In other implementations, the parameter configuration table supports dynamic updates, such as injecting parameters for new functional modes through OTA upgrades or App resynchronization; in addition, the loading strategy of control parameters can also be adjusted to on-demand loading based on the running memory situation, that is, loading its parameters only in advance when the user approaches a certain mode, further optimizing system performance.
[0056] In one optional implementation, the electric toothbrush establishes a wireless connection with a mobile terminal application via a built-in Bluetooth module, receives personalized configuration information set by the user in the app, and simultaneously saves it to the local storage unit for subsequent control decisions. This configuration information includes parameters such as the number of enabled modes, the display order of each mode, the default startup mode, and the wake-up sensitivity level. After each successful pairing, the main control chip checks the cloud configuration version number; if an update exists, it downloads the latest parameter set and overwrites the old data in the local cache. This configuration participates in the filtering process of the "candidate brushing mode set" in S301, ensuring that only the user-enabled modes are displayed on the interface, arranged in their set order. For example, when the user sets "Sensitive Mode" as the first display item and hides "Polishing Mode" in the app, the first item in the "Mode Selection Interface" will be Sensitive Mode the next time the toothbrush is woken up, and Polishing Mode will be invisible.
[0057] Step S400: In response to the mode switching command input by the user, the target brushing mode and its corresponding control parameters are matched from the set of candidate brushing modes.
[0058] The mode switching command refers to the operation signal issued by the user through a physical button, which triggers the system to cycle through or select between multiple brushing modes. The candidate brushing mode set is a subset of currently allowed modes filtered based on device status information, and has been constructed in the previous steps. The matching process refers to dynamically determining the next brushing mode to be displayed and enabled based on the user's input behavior, and associating it with its corresponding control parameters. The purpose of this step is to avoid invalid modes being displayed or mistakenly selected, while supporting personalized sorting and smooth switching, forming a coherent interactive experience.
[0059] In an optional embodiment, step S400 includes the following sub-steps: S401 responds to the mode switching command input by the user via physical buttons, and increments or cycles to the index position of the next mode based on the index position of the currently selected mode in the candidate brushing mode set.
[0060] The physical button refers to the "mode button" on the electric toothbrush casing. It is an independent press-type mechanical switch connected to the GPIO interrupt pin of the main control chip and supports short-press detection. The index position refers to the logical number (counting from 0) of the currently selected mode in the candidate brushing mode set array. For example, when the user first wakes up the toothbrush and enters the "mode selection interface," the system defaults to setting the index position to 0, corresponding to the first mode in the set. Each short press of the mode button automatically increments the index value by 1. If the current index has reached the end of the set (e.g., 4 modes in total, currently at index 3), the next press will reset the index to 0, achieving a cyclic switching function. For instance, in a certain use, if the user configures four modes—"Clean → Whitening → Sensitive → Tongue Cleaning"—the button operation will cycle through these four modes sequentially, without jumping to the disabled high-power vibration mode, and without any stuttering or abrupt changes.
[0061] S402, determine the corresponding target brushing mode based on the updated index position, and load the control parameters associated with it.
[0062] The target brushing mode refers to the specific brushing mode pointed to by the latest index value. Control parameters, including executable variables such as vibration frequency, oscillation angle, and working sequence, are pre-loaded into the RAM cache in the S302 for immediate recall. For example, the updated index value is read, the corresponding mode ID in the candidate brushing mode set is accessed, and the cached parameter structure is found using this ID, activating it as the current running parameter group. Simultaneously, the GUI module refreshes the screen UI, displaying the new mode name, icon, and recommended usage time, while playing a pre-set voice prompt (e.g., "Switch to whitening mode"). The voice file is pre-stored in Flash in PCM format and output to the speaker by the ESP32's audio decoding module.
[0063] For example, when a user switches from "Cleaning Mode" to "Sensitive Mode", the system not only updates the vibration frequency to a lower level (such as 300 times / minute), but also limits the maximum amplitude to protect the gums. All parameter changes are completed within 100ms, ensuring real-time response.
[0064] In other implementations, mode switching supports long-press shortcut access, such as long-pressing the mode button for 3 seconds to directly jump to the last used custom combination mode; in addition, gesture-assisted switching can be achieved by combining gyroscope posture recognition, such as tilting the toothbrush left or right to fast forward or rewind the mode, further enriching the interaction.
[0065] In one alternative implementation, such as Figure 4As shown, the electric toothbrush has two physical buttons: the "Mode Button" and the "Power Button." Pressing the power button wakes the toothbrush, displaying the previous brushing score on the wake-up screen. Clicking the Mode Button switches brushing modes, and pressing the power button again starts brushing. While brushing, short presses of the Mode Button adjust the brushing intensity. To pause brushing, press the Mode Button again to switch brushing modes. When the screen is on and brushing is not in progress, pressing and holding the Mode Button for 5 seconds enters the brush head cleaning mode, in which the motor vibrates at maximum frequency for 10 seconds. After 10 seconds (or pressing any button during the process), the brush head will clean itself. Exiting this mode displays the mode selection interface, and the screen turns off after 10 seconds of inactivity. This achieves multi-level function reuse of a single button, improving operational efficiency. As an example, multiple timer tasks are set: when a falling edge of the button is detected, a debounce timer is started; after stabilization, a main duration timer is started, distinguishing between short presses of 0.3 seconds and long presses of 3 seconds. For example, after a user removes their toothbrush overnight, they directly press and hold the mode button for 3 seconds. The system immediately activates the cleaning program; any button press during this time can exit early. After completion, it returns to the "mode selection interface" and turns off the screen after 10 seconds of inactivity. Figure 5 As shown.
[0066] Step S500: Based on the control parameters, drive the electric toothbrush to perform the corresponding brushing control actions.
[0067] Here, control parameters refer to a set of functional variables loaded into the running memory; brushing control actions refer to the process by which an electric toothbrush drives the brush head to produce specific vibrations or compound oscillations through a motor to achieve different cleaning effects. The purpose of this step is to ensure that the system can accurately adjust the brush head's motion characteristics according to the selected mode, providing a personalized oral care experience while ensuring safe use.
[0068] In an optional embodiment, step S500 includes the following sub-steps: S501, extract control variables applicable to the current target brushing mode from the control parameters.
[0069] The control variables include at least one of the following: target vibration frequency, oscillation angle, and working timing parameters. The target vibration frequency refers to the number of reciprocating motions of the main vibration motor per minute, measured in times / minute, typically ranging from 280 to 400 times / minute, used to adjust the intensity of the sonic vibration. The oscillation angle refers to the maximum deflection angle of the brush head driven by the sweeping motor, measured in degrees, typically ±15° to ±30°, used to enhance cleaning coverage between teeth. The working timing parameters refer to the recommended running time (e.g., 2 minutes) and segmented reminder rhythm (e.g., pulse prompts every 30 seconds) and other time control logic for this mode. For example, when the current target brushing mode is "sonic cleaning mode," the system only extracts the target vibration frequency (e.g., 360 times / minute) as the core control variable; while when the mode is "sweeping and vibrating whitening mode," it simultaneously extracts the target vibration frequency (380 times / minute), oscillation speed (100° / s), and maximum oscillation angle (±25°). These variables are read from the RAM cache by the ESP32 and organized into a unified control data structure for use in the next step of generating driver instructions.
[0070] S502 generates drive control commands based on control variables and sends them to the motor drive module of the electric toothbrush so that the motor drive module drives the brush head to perform corresponding vibration or sweeping motion actions.
[0071] The drive control command is a combination of digital signals generated by the main control chip, typically represented as a PWM waveform, direction level, and enable signal. The motor drive module is an H-bridge drive circuit integrated on the motherboard, which receives control signals from the ESP32 and converts them into high-power current outputs to drive the main vibration motor and the sweeping motor to work together. Exemplarily, the ESP32 sets the PWM duty cycle of the main motor according to the extracted target vibration frequency (e.g., 75% corresponds to high-frequency strong vibration), and simultaneously generates a sinusoidal modulation signal based on the swing angle and speed to control the direction and amplitude of the auxiliary motor. The two signals are isolated and amplified before being sent to the motor terminals, enabling the brush head to achieve a composite motion of "high-frequency small amplitude + low-frequency large angle".
[0072] In other implementations, the motor drive module supports an overcurrent protection mechanism that automatically reduces output power and triggers a buzzer when an abnormal load is detected (such as a stuck brush head). In addition, control commands can be adjusted in conjunction with feedback from a six-axis sensor, for example, briefly reducing vibration intensity during violent shaking to prevent gum damage, further improving safety and intelligence.
[0073] In one optional embodiment, when the brushing control action is detected to have terminated and the sensor has not detected a valid motion signal during the duration, a brushing score is calculated based on the sensor data collected during the brushing process. The calculated brushing score is stored and updated in the electric toothbrush display interface and its brushing record, such as... Figure 6 As shown.
[0074] The brushing control action termination refers to the motor stopping its output of vibration or sweeping signals, typically triggered by the user pressing and holding the power button to turn it off or by the automatic timer ending. The duration is an observation window used to confirm that the device has been placed still, typically 8 seconds in length. A valid motion signal refers to a motion segment where the acceleration change detected by the six-axis sensor exceeds a preset threshold (e.g., 150mg). If no such signal is detected within this time period, the brushing action is considered to have completely ended. For example, when the motor stops, a timer is started and the X, Y, and Z axis acceleration data streams are continuously monitored. If none of the sampled frames reach the motion threshold within 8 consecutive seconds, the toothbrush is considered to have been returned to its holder or stored, meeting the scoring trigger condition. At this point, the system calls the scoring algorithm to analyze and process the sensor data cached during this brushing session. The sensor data includes structured parameters such as the time span of the entire brushing process, the vibration intensity distribution at each stage, the trend of posture angle changes, and the number of mode switches. For example, the brushing score uses a weighted comprehensive scoring formula: Total score = Time score × 30% + Coverage uniformity score × 40% + Strength fit score × 30% Specifically: Time score: Whether the actual running time reaches the recommended duration (usually 2 minutes), deduct 10 points for every 30 seconds less; Uniformity of coverage score: The brush head movement trajectory is estimated by integrating the angular velocity of the gyroscope to determine whether the four quadrants of the oral cavity are evenly covered (upper left, upper right, lower left, and lower right). 15 points are deducted for each quadrant missing. Force suitability score: Based on the statistical analysis of the peak acceleration frequency, it is determined whether there is excessive force for a long period of time (>600mg for more than 10 seconds). If so, points will be deducted accordingly.
[0075] For example, during a brushing session, the user used 1 minute and 50 seconds to cover the entire brushing area, applying moderate pressure on average, but experiencing two violent brushing motions in the last 20 seconds. The final score was 82 out of 100. This score was encrypted and compressed and stored in the brushing log table in the Flash storage area, simultaneously updated with the "Last Brushing Score," for direct display on the screen upon the next wake-up. If the user is currently connected to the mobile app, the system will also upload the score to the cloud server via Bluetooth Low Energy for use in health data analysis.
[0076] In other implementations, the scoring results can be associated with a voice broadcast function to play a short prompt before the screen is off, such as: "Score exceeds 90 points." You've scored over 90 points, just a little short. Keep it up! A score exceeding 95 points; That's over 95 points! That's fantastic! Keep up the good work! Score: 100 points; Wow! A perfect score! That's amazing! Brush your teeth for 7 consecutive days; Achieved the feat of brushing teeth for 7 consecutive days! Brush your teeth for 30 consecutive days; I've been brushing my teeth for 30 days straight, that's awesome! Brush your teeth continuously for 180 days; Time flies! You've been brushing your teeth for 180 days straight—that's truly admirable! Brush your teeth for 365 consecutive days; Before we knew it, we'd been together for a year, and you're even better than before! In addition, historical brushing records can generate trend charts by week / month, and detailed improvement suggestions can be viewed on the app, further enhancing user engagement and health management capabilities.
[0077] In one optional implementation, when the electric toothbrush is connected to the charging cable, the system activates a moisture detection mechanism at the charging port to avoid the risk of short circuits or corrosion caused by liquid residue. This mechanism employs a resistive detection principle, determining the presence of a conductive path by measuring the simulated resistance value between the charging terminals. The acquisition circuit inputs both voltage and resistance signals to the ADC channel of the main control chip for comprehensive judgment—if the resistance value is lower than a preset safety threshold (e.g., 5kΩ) and the voltage is below the charging standard range, it is determined that "liquid is present." At this time, the display screen continuously shows the text and icon prompt "Liquid is present at the charging port, please dry before charging," and simultaneously the system locks the motor drive module, disabling the brushing start function, forming an electrical interlock protection. Figure 6 As shown. This detection process is performed periodically while the device is plugged in (sampled every 500ms) until three consecutive readings return to normal before proceeding to the regular charging process. For example, when the user connects the base with an undried toothbrush, the ESP32 identifies the anomaly within 200ms and maintains the warning interface, only lighting up the screen without activating the charging IC. For instance, in actual testing, the average resistance between terminals was found to be approximately 2kΩ in a tap water environment, far lower than the 200kΩ or more in a dry air environment, thus enabling high-precision detection.
[0078] Figure 7 A schematic diagram of a toothbrush control device according to an embodiment of this application is shown. Exemplarily, the device 100 includes: The data acquisition module 110 is used to acquire sensing data through the sensors built into the electric toothbrush, and to identify wake-up events for control triggering based on the sensing data. The wake-up module 120 is used to control the electric toothbrush to enter the wake-up state after recognizing the wake-up event, and to obtain the current device status information; The status judgment module 130 is used to determine the set of candidate brushing modes and load the control parameters corresponding to each mode based on the device status information. The mode response module 140 is used to respond to the mode switching command input by the user and match the target brushing mode and its corresponding control parameters from the candidate brushing mode set. The execution module 150 is used to drive the electric toothbrush to perform corresponding brushing control actions based on the control parameters.
[0079] It is understood that the apparatus of this embodiment corresponds to the method of the above embodiments, and the options in the above embodiments are also applicable to this embodiment, so they will not be described again here.
[0080] This application also provides an electric toothbrush, exemplary of which includes a processor and a memory, wherein the memory stores a computer program, and the processor, by running the computer program, causes the electric toothbrush to perform the functions of the various modules in the above-described method or apparatus.
[0081] The processor can be an integrated circuit chip with signal processing capabilities. The processor can be a general-purpose processor, including at least one of a Central Processing Unit (CPU), Graphics Processing Unit (GPU), Network Processor (NP), Digital Signal Processor (DSP), Application-Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The general-purpose processor can be a microprocessor or any conventional processor, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application.
[0082] The memory can be, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), etc. The memory is used to store computer programs, and the processor can execute the computer programs accordingly after receiving execution instructions.
[0083] This application also provides a computer-readable storage medium for storing the computer program used in the electric toothbrush described above. For example, the computer-readable storage medium may include, but is not limited to, various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0084] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that, in alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0085] In addition, the functional modules or units in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0086] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a smartphone, personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application.
[0087] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. A toothbrush control method, characterized in that, Applied to electric toothbrushes, the method includes: The electric toothbrush collects sensor data through its built-in sensors and identifies wake-up events for control triggering based on the sensor data. Upon detecting the wake-up event, the electric toothbrush is controlled to enter the wake-up state and the current device status information is obtained. Based on the device status information, determine the set of candidate brushing modes and load the control parameters corresponding to each mode; In response to a user-inputted mode switching command, a target brushing mode and its corresponding control parameters are matched from the set of candidate brushing modes; Based on the control parameters, the electric toothbrush is driven to perform corresponding brushing control actions.
2. The toothbrush control method according to claim 1, characterized in that, The process of collecting sensor data through the built-in sensors of the electric toothbrush and identifying wake-up events for control triggering based on the sensor data includes: The acceleration detection values of the sensor in the three directions of X-axis, Y-axis and Z-axis are acquired to form sensing data to represent the current motion state; Within a preset sampling time window, the acceleration change in each axis is calculated based on the sensed data; Determine whether the change in acceleration exceeds a preset acceleration threshold; When the change in acceleration exceeds a preset acceleration threshold, it is identified as a wake-up event for control triggering.
3. The toothbrush control method according to claim 1, characterized in that, Upon recognizing the wake-up event, the process involves controlling the electric toothbrush to enter a wake-up state and acquiring current device status information, including: After recognizing the wake-up event, a wake-up command for switching device states is sent to the main control chip, and the main control chip is controlled to start the power management module to read the battery voltage sampling value after responding to the wake-up command. Based on the battery voltage sampling value, the power state is divided into multiple preset power ranges to determine the power range in which the battery voltage sampling value is located; Based on the stated power range, corresponding power status information is generated.
4. The toothbrush control method according to claim 1, characterized in that, The step of determining a set of candidate brushing modes and loading corresponding control parameters based on the device status information includes: The device status information is matched with preset brushing mode activation conditions to filter out a set of candidate brushing modes that can be enabled. Based on the candidate brushing mode set, the control parameters corresponding to each brushing mode are extracted from the preset parameter configuration table, and the initial loading is completed.
5. The toothbrush control method according to claim 1, characterized in that, The process of responding to a user-inputted mode switching command by matching a target brushing mode and its corresponding control parameters from the candidate brushing mode set includes: In response to the user's mode switching command input via physical buttons, the system increments or cycles to the index position of the next mode based on the index position of the currently selected mode in the set of candidate brushing modes. The target brushing mode is determined based on the updated index position, and the associated control parameters are loaded.
6. The toothbrush control method according to claim 1, characterized in that, The step of driving the electric toothbrush to perform corresponding brushing control actions based on the control parameters includes: Extract control variables suitable for the current target brushing mode from the control parameters. The control variables include at least one of the target vibration frequency, oscillation angle, and working timing parameters. Based on the control variables, drive control commands are generated and sent to the motor drive module of the electric toothbrush, so that the motor drive module drives the electric toothbrush to perform corresponding vibration or sweeping motion actions.
7. The toothbrush control method according to claim 6, characterized in that, After generating drive control commands based on the control variables and sending them to the motor drive module of the electric toothbrush, the process includes: When the brushing control action is detected to have terminated and the sensor does not detect a valid motion signal during the duration, a brushing score is calculated based on the sensor data collected during the brushing process. The calculated brushing score is stored and updated in the brushing history record on the electric toothbrush display interface.
8. A toothbrush control device, characterized in that, include: The data acquisition module is used to collect sensor data through the built-in sensors of the electric toothbrush and identify wake-up events for control triggering based on the sensor data. The wake-up module is used to control the electric toothbrush to enter the wake-up state after recognizing the wake-up event, and to obtain the current device status information; The status judgment module is used to determine the set of candidate brushing modes and load the control parameters corresponding to each mode based on the device status information. The mode response module is used to respond to the mode switching command input by the user and match the target brushing mode and its corresponding control parameters from the candidate brushing mode set; An execution module is used to drive the electric toothbrush to perform corresponding brushing control actions based on the control parameters.
9. An electric toothbrush, characterized in that, The electric toothbrush includes a processor and a memory, the memory storing a computer program, and the processor executing the computer program to implement the toothbrush control method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed on a processor, implements the toothbrush control method according to any one of claims 1-7.