Intelligent temperature-sensing interactive cup and kettle lid control method, device and storage medium

By generating motor, light, and audio control parameters through fuzzy logic reasoning algorithms, the problem of monotonous feedback, abrupt adjustments, and inefficient energy consumption of kettle/cup lids has been solved. This has enabled a multi-dimensional interactive experience, natural transitions, and refined energy saving, while also supporting personalized configurations.

CN123124180APending Publication Date: 2026-11-17BEIJING HUHA DESIGN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611351620.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-02
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

Existing technologies for kettle/cup lids have limited feedback mechanisms, rigid adjustments, high energy consumption, and lack personalized customization, making it impossible to achieve on-demand adaptive and deeply personalized control.

Method used

The system uses a fuzzy logic reasoning algorithm combined with multi-dimensional factors (temperature deviation, temperature change rate, ambient light intensity, and battery power) to generate motor, lighting, and audio control parameters, enabling dynamic interactive feedback and deep user customization via mobile terminals.

Benefits of technology

It provides multi-dimensional immersive feedback, with natural and smooth transitions between mechanical movements and lighting, enabling refined energy-saving management, extending battery life, supporting personalized configurations, and reducing the risk of burns.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123124180A_ABST
    Figure CN123124180A_ABST
Patent Text Reader

Abstract

This invention relates to the field of intelligent control technology, and more particularly to an intelligent temperature-sensing interactive cup / kettle lid control method, device, and storage medium. The method includes: acquiring the current temperature, temperature change rate, ambient light intensity, and battery level; when the current temperature reaches a preset high-temperature warning condition, using the temperature deviation of the current temperature relative to a high-temperature threshold, the temperature change rate, the ambient light intensity, and the battery level as input variables, and employing a preset fuzzy logic reasoning algorithm to generate motor control parameters, lighting control parameters, and audio control parameters; when the current temperature does not reach the preset high-temperature warning condition, determining the desired lighting brightness value based on the ambient light intensity and battery level, and adaptively adjusting it to obtain the lighting control parameters. This invention maximizes battery life while ensuring the effectiveness of safety warnings and provides a seamless, multi-dimensional immersive interactive experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent control technology, and in particular to an intelligent temperature-sensing interactive cup and kettle lid control method, device, and storage medium. Background Technology

[0002] Kettle lids and cup lids are frequently used everyday utensils, traditionally limited to sealing, heat preservation, and leak prevention. With the increasing popularity of smart home concepts, consumers expect kettle / cup lids to offer diverse experiences such as temperature feedback, visual and auditory interaction, low-power intelligent management, and network control. Current technologies use temperature sensors to control multi-color LEDs to indicate temperature, but this feedback is static and monotonous, relying solely on color changes. Other products integrate temperature displays and speakers, but the functions lack synergy, and the mechanical structure consists only of a fixed speaker without dynamic display components. These solutions generally suffer from limited information feedback methods, a lack of dynamic visual expression, and the absence of functional components capable of producing obvious physical movements such as rotation, lifting, and opening / closing, resulting in insufficient long-distance intuitive feedback capabilities.

[0003] Furthermore, existing technologies have significant shortcomings in energy management. Lighting control either switches on and off based solely on a single light threshold or remains constantly on, failing to integrate ambient light intensity with remaining battery power for tiered adjustment. This results in power consumption even in bright environments and unnecessary lighting accelerating battery depletion and shutdown when the battery is low. For some products with wireless communication capabilities, the mobile phone can only passively receive temperature data and cannot actively adjust parameters such as lighting modes, mechanical actions, music playback, and temperature thresholds, depriving users of deep customization options. At the control method level, existing solutions all rely on preset fixed thresholds for tiered adjustments, resulting in abrupt and unsmooth transitions. They also fail to incorporate multi-dimensional influencing factors such as temperature change rate, human proximity, and time of day, thus failing to achieve true on-demand adaptive and deeply personalized energy saving. Summary of the Invention

[0004] The purpose of this invention is to provide an intelligent temperature-sensing interactive cup and kettle lid control method, device and storage medium to solve the problems of single feedback method, rigid adjustment, high energy consumption and lack of personalized customization in the prior art.

[0005] To achieve the above objectives, the present invention adopts the following technical solution:

[0006] A method for controlling an intelligent temperature-sensitive interactive cup / pot lid includes:

[0007] Obtain the current temperature, rate of temperature change, ambient light level, and battery level;

[0008] When the current temperature reaches the preset high temperature warning condition, the temperature deviation of the current temperature relative to the high temperature threshold, the temperature change rate, the ambient light intensity, and the battery charge are used as input variables, and a preset fuzzy logic reasoning algorithm is used to generate motor control parameters, lighting control parameters, and audio control parameters.

[0009] When the current temperature does not reach the preset high temperature warning condition, the expected value of the light brightness is determined based on the ambient light intensity and the battery power, and the expected value of the light brightness is adaptively adjusted in combination with the human approach state and the current system time to obtain the light control parameters;

[0010] Obtain the configuration parameters sent by the mobile terminal, and update the internal operating mode and / or threshold based on the configuration parameters.

[0011] Furthermore, the step of generating motor control parameters, lighting control parameters, and audio control parameters using a preset fuzzy logic reasoning algorithm specifically includes:

[0012] The temperature deviation, the rate of temperature change, the ambient light intensity, and the battery charge are fuzzified to obtain fuzzy linguistic values ​​for each input variable;

[0013] Based on a pre-set fuzzy rule base, rule reasoning is performed to obtain fuzzy output quantities;

[0014] The fuzzy output is defuzzified to obtain the basic motor PWM duty cycle, basic LED brightness PWM, basic LED blinking frequency, and basic volume gain.

[0015] Based on the scenario mode preference factor, the human proximity state, and the current system time period, at least one of the basic motor PWM duty cycle, basic LED brightness PWM, basic LED flashing frequency, and basic volume gain is modified to obtain the motor control parameters, the lighting control parameters, and the audio control parameters.

[0016] Furthermore, the fuzzy rule base includes at least one of the following rules:

[0017] When the battery charge is low and the temperature change rate is positive, the rule is to generate a motor coefficient with a higher value.

[0018] When the battery level is low, the temperature deviation is positive and the temperature change rate is zero, the rule is that both the motor coefficient and the light brightness coefficient take low values.

[0019] When the ambient light level is dark, rules are generated to enhance each output coefficient; when the ambient light level is bright, rules are generated to weaken each output coefficient.

[0020] When the rate of temperature change is positive, rules are generated to actively enhance the motor speed coefficient and the light flashing frequency coefficient.

[0021] Furthermore, the step of correcting at least one of the following based on the scenario mode preference factor, the human proximity state, and the current system time period includes:

[0022] Based on the preset energy-saving priority mode, safety priority mode or gentle mode, determine the corresponding gain coefficient, and multiply the gain coefficient by the corresponding basic control quantity;

[0023] When the human body is approaching and there is no one there, and the temperature deviation is not positive and the temperature change rate is not positive, the basic control quantity is multiplied by an attenuation coefficient of less than 1; when the human body is approaching and there is someone there, the attenuation coefficient is restored to not less than 1.

[0024] When the current system time is in a preset nighttime period, the upper limit of the basic LED brightness PWM is limited to a first preset percentage, the basic volume gain is multiplied by a nighttime coefficient less than 1, and the duty cycle of the basic motor PWM is decelerated; however, when the temperature deviation is positive or the temperature change rate is positive, the upper limit limit, the multiplication of the nighttime coefficient, and the constraints in the deceleration process are at least partially released.

[0025] Furthermore, the step of determining the desired light brightness value based on the ambient light intensity and the battery charge, and adaptively adjusting the desired light brightness value in conjunction with the human proximity status and the current system time to obtain the light control parameters specifically includes:

[0026] Using the ambient light intensity and the battery level as inputs, the expected value of the light brightness is obtained through a lightweight fuzzy inference system.

[0027] When the human body is in an unoccupied state, the expected value of the light brightness will be reduced to a second preset percentage or set to zero.

[0028] When the current system time is in a preset nighttime period, the upper limit of the expected value of the light brightness is limited to a third preset percentage, and a control signal to adjust the color temperature to a warm tone is output.

[0029] When the battery level is lower than a preset minimum threshold, a control command is generated to force the mechanical action module and some light display functions to shut down, while retaining the control commands for temperature acquisition, wireless communication and basic monochrome indication.

[0030] Furthermore, it also includes:

[0031] Acquire the opening and closing state information detected by the attitude sensor;

[0032] When an opening event is detected, a control command is generated to pause the dynamic effects of the mechanical action module and the light display module.

[0033] When a lid-closing event is detected, a control command is generated to restore the dynamic effect.

[0034] Furthermore, after obtaining the current temperature, temperature change rate, ambient light intensity, and battery charge, the method further includes:

[0035] Determine whether the rate of temperature change is greater than a preset rate threshold;

[0036] If so, a control command is generated to trigger the enhanced high-temperature warning measures in advance. The control command is used to multiply the motor PWM duty cycle and the light flashing frequency by an enhancement coefficient greater than 1 and trigger the prompt operation.

[0037] Furthermore, the configuration parameters include one or more of the following: temperature threshold, lighting mode, mechanical movement speed, music track, scene mode type, and nighttime period definition.

[0038] According to another aspect of this application, a smart temperature-sensing interactive cup / pot lid control device is also provided, comprising:

[0039] The data acquisition module is used to acquire current temperature, temperature change rate, ambient light intensity, and battery level.

[0040] The fuzzy logic warning module is used to generate motor control parameters, lighting control parameters, and audio control parameters by taking the temperature deviation of the current temperature relative to the high temperature threshold, the temperature change rate, the ambient light intensity, and the battery charge as input variables when the current temperature reaches the preset high temperature warning condition, and using a preset fuzzy logic reasoning algorithm.

[0041] An adaptive energy-saving control module is used to determine the desired light brightness value based on the ambient light intensity and the battery charge when the current temperature does not reach the preset high temperature warning condition, and to adaptively adjust the desired light brightness value in combination with the human proximity state and the current system time to obtain light control parameters;

[0042] The configuration interaction module is used to obtain configuration parameters sent by the mobile terminal and update the internal operating mode and / or threshold according to the configuration parameters.

[0043] According to another aspect of this application, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program, wherein the computer program is used to control the electronic device on which the computer-readable storage medium is located to execute the intelligent temperature-sensing interactive cup and kettle lid control method during runtime.

[0044] The beneficial effects of this invention are as follows: This invention significantly improves the interactive experience and control smoothness. For the first time, a temperature-triggered electromechanical action module is introduced into the lid of a kettle / cup, which can produce obvious physical dynamic effects such as rotation, lifting, opening and closing. It is linked with the light color, flashing rhythm, dynamic screen images and prompt sounds, providing multi-dimensional immersive feedback of vision, hearing and motion, far exceeding the static light display of existing products.

[0045] Meanwhile, fuzzy logic is used to replace fixed threshold grading, and multi-dimensional factors such as temperature deviation, temperature change rate, ambient light, and power consumption are integrated and reasoned to output continuous stepless motor speed, light brightness and flashing frequency, and volume control in real time. This eliminates visual and auditory discomfort caused by gear shifting, and the mechanical action speed and light transition are natural and smooth, greatly upgrading the product's quality.

[0046] In particular, this invention achieves refined, multi-scenario adaptive control in terms of energy-saving management and extended battery life. It employs a dual-factor linkage decision model based on ambient light intensity and battery power, automatically reducing or turning off lights in bright environments, adjusting brightness and dynamic modes according to battery level in dark environments, and forcibly shutting down redundant functions when the battery is low. Under high-temperature warning conditions, a three-parameter collaborative control model is constructed, considering temperature, ambient light, and battery power, dynamically adjusting mechanical speed, light flashing intensity, and warning volume. It provides strong reminders when the battery is high and prioritizes core functions when the battery is low, balancing the priority of anti-scalding warnings with battery life priority. Furthermore, it integrates human proximity sensing and time-of-use information to achieve an on-demand energy consumption strategy of "lighting up when someone is present and dimming when no one is present," and "gentle limiting at night and exceeding limits in high-risk situations." In typical scenarios, this can extend usage time by 30% to 60% compared to a constant-on solution.

[0047] In particular, regarding personalization and intelligence, this invention achieves deep user customization through two-way wireless communication. The mobile application allows for proactive configuration and real-time control of all functional parameters, including temperature thresholds, lighting modes, mechanical movement speed, music tracks, scene modes, and nighttime time definitions. Users can choose safety-first, energy-saving-first, or gentle modes according to their preferences, suitable for different users and usage scenarios. Furthermore, a predictive warning mechanism for temperature change rate is introduced, providing enhanced alerts in advance when the temperature rises sharply, which is more timely than a simple threshold response and effectively reduces the risk of burns. Combined with posture-sensing assisted control, the dynamic effects automatically pause when the lid is opened and resume when it is closed, further reducing unnecessary energy consumption and comprehensively improving the product's intelligence level and user experience. Attached Figure Description

[0048] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0049] Figure 1 This is a flowchart illustrating the intelligent temperature-sensing interactive cup and kettle lid control method of this embodiment.

[0050] Figure 2 This is a flowchart illustrating an embodiment of step S2 according to the present disclosure.

[0051] Figure 3 This is a flowchart illustrating an embodiment of step S3 according to the present disclosure.

[0052] Figure 4 This is a schematic diagram of the intelligent temperature-sensing interactive cup and kettle lid control device in this embodiment. Detailed Implementation

[0053] To more clearly illustrate the present invention, the following description, in conjunction with preferred embodiments and accompanying drawings, further explains the invention. Similar components in the drawings are indicated by the same reference numerals. Those skilled in the art should understand that the specific description below is illustrative rather than restrictive and should not be construed as limiting the scope of protection of the present invention.

[0054] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0055] Please see Figure 1 As shown, it is a flowchart illustrating the intelligent temperature-sensing interactive cup / pot lid control method of this embodiment, including:

[0056] Step S1: Obtain the current temperature, temperature change rate, ambient light intensity, and battery level.

[0057] In this embodiment of the invention, a contact temperature sensor (such as an NTC thermistor) or a non-contact infrared sensor can be used to sense the temperature of the liquid inside the container or the environment, continuously acquiring temperature data sequences at a preset sampling frequency (e.g., 10Hz). For calculating the rate of temperature change, the temperature values ​​at the current moment and the previous one or several sampling points are extracted, and the temperature change ΔT per unit time is obtained through differential calculation. For example, when the sampling interval is 0.1 seconds, ΔT = (Tcurrent - Tprevious) / 0.1s, with units of °C / s.

[0058] Ambient light intensity is provided in real time by an ambient light sensor (such as BH1750 or VEML7700) via I2C or SPI bus, with the value measured in lux. Battery power is calculated by a coulomb counter in the power management module or a voltage integration-based power monitoring circuit, and output as a percentage of remaining power (SOC), ranging from 0% to 100%.

[0059] Step S2: When the current temperature reaches the preset high temperature warning condition, the temperature deviation of the current temperature relative to the high temperature threshold, the temperature change rate, the ambient light intensity, and the battery charge are used as input variables, and a preset fuzzy logic reasoning algorithm is used to generate motor control parameters, lighting control parameters, and audio control parameters.

[0060] In this embodiment of the invention, the preset high-temperature warning condition is that the current temperature T reaches or exceeds a preset high-temperature threshold Th. The default value of the preset high-temperature threshold can be set to 70℃, and the user can customize and adjust it within a reasonable range (e.g., 50℃-90℃) through a mobile terminal APP. When T≥Th, the system determines that it has entered a high-temperature warning state and initiates the linkage warning process.

[0061] To address the abrupt changes caused by fixed threshold-based adjustments in existing technologies, this invention employs a fuzzy logic reasoning algorithm. This algorithm maps continuous values ​​of multiple input variables to fuzzy linguistic values, performs reasoning based on a rule base constructed using expert experience, and ultimately outputs a smooth and continuous control quantity.

[0062] Specifically, four input variables are selected: temperature deviation e, temperature change rate ΔT, ambient light intensity Lux, and battery charge SOC.

[0063] The outputs generated by fuzzy logic reasoning are: motor control parameters (specifically, the motor PWM duty cycle, 0-100%), lighting control parameters (specifically, the LED brightness PWM duty cycle, 0-100%, and the LED blinking frequency, in Hz), and audio control parameters (specifically, the volume gain coefficient, 0-100%, used to control the output power of the audio amplifier). These parameters are written to the corresponding drive circuit registers in real time to drive the motor to rotate, the lights to blink, and the speakers to emit sound.

[0064] Step S3: When the current temperature does not reach the preset high temperature warning condition, determine the expected value of the light brightness based on the ambient light intensity and the battery power, and make adaptive adjustments to the expected value of the light brightness in combination with the human body approach state and the current system time to obtain the light control parameters.

[0065] In this embodiment of the invention, when T < Th, the system exits the high-temperature linkage warning mode and determines a preliminary desired light brightness value Ldesired based on the ambient light illuminance Lux and the battery charge SOC. This process can be implemented using a lightweight lookup table method. The basic principle is: the darker the environment and the more sufficient the battery charge, the higher Ldesired; the brighter the environment and the lower the battery charge, the lower Ldesired. For example, in low light (Lux < 10 lx) and SOC > 50%, Ldesired can be set to 70%; while in bright environments (Lux > 200 lx) or SOC < 20%, Ldesired can be set to 10% or lower.

[0066] Building upon this foundation, the system incorporates two factors—human proximity and current system time—to adaptively adjust Ldesired, further unlocking its energy-saving potential. The adjusted values ​​become the final lighting control parameters applied to the LED driver circuit. These adjustments embody a refined "on-demand lighting" strategy: when a user is detected not near the device, brightness is significantly reduced or even turned off; during user sleep periods, the upper brightness limit is compressed and the color temperature is switched to warmer to provide necessary indications in a gentle, low-interference manner; and when the battery is nearly depleted, the most stringent power-saving measures are implemented.

[0067] Step S4: Obtain the configuration parameters sent by the mobile terminal, and update the internal operating mode and / or threshold according to the configuration parameters.

[0068] In this embodiment of the invention, the control device maintains a bidirectional communication connection with a dedicated application (APP) installed on a mobile terminal (such as a smartphone) via a wireless communication module (such as Bluetooth BLE 5.0 / 5.2 or a Wi-Fi module). The mobile terminal can send configuration parameters to the control device, which receives, parses, and writes them into its internal non-volatile memory (such as Flash), enabling full-function remote customization and real-time activation.

[0069] The configuration parameters cover all adjustable dimensions of system operation. Regarding temperature thresholds, users can redefine the high-temperature warning trigger point Th, for example, adjusting it from the default 70℃ to 60℃ to meet the needs of users more sensitive to temperature. For lighting modes, users can choose from various preset effects such as constant light, breathing, gradient, and rainbow cycle, or customize color themes. Regarding mechanical actions, users can set the operating speed levels of dynamically displayed components (e.g., slow, medium, fast), or completely disable mechanical actions in specific scenarios. For audio, users can choose the type of warning sound or play music tracks stored in the internal memory. Regarding scenario modes, users can choose preset modes such as "Safety First," "Energy Saving First," and "Gentle," each corresponding to a set of preset fuzzy logic gain coefficients and parameter limits, allowing for one-click switching of the overall device behavior style. Regarding nighttime period definition, users can set the start and end times of nighttime periods according to their personal schedules (e.g., 22:00 to 06:00), precisely matching energy-saving strategies with their personal circadian rhythms. Through this deeply open two-way interaction, users become the proactive definers of device behavior.

[0070] In some embodiments of the present invention, step S2 employs a preset fuzzy logic reasoning algorithm to generate motor control parameters, lighting control parameters, and audio control parameters, specifically including:

[0071] Step S201: Fuzzify the temperature deviation, the rate of temperature change, the ambient light intensity, and the battery charge to obtain fuzzy linguistic values ​​for each input variable.

[0072] In this embodiment of the invention, to convert continuously changing physical quantities into qualitative concepts that the fuzzy inference system can handle, fuzzy sets for each input variable are defined. Each input variable is clamped before fuzzification to handle extreme cases exceeding the domain of discourse: when the temperature deviation e exceeds the upper limit of 30°C, it is treated as 30°C, and the forced membership degree μ(PB) = 1.0; when e is below 0°C, it is treated as 0°C, and μ(Z) = 1.0. When the temperature change rate ΔT exceeds the upper limit of 5°C / s, it is treated as 5°C / s, and μ(PB) = 1.0; when it is below 0, it is treated as 0, and μ(Z) = 1.0. When the ambient light intensity Lux exceeds 1000 lx, it is treated as 1000 lx, and μ(B) = 1.0; when it is below 0, it is treated as 0, and μ(D) = 1.0. The battery charge SOC is clamped by hardware within the range of 0-100%. Through the above clamping and forced membership assignment, it is ensured that fuzzy inference can activate rules normally under any extreme input conditions.

[0073] The universe of discourse for the temperature deviation e is [0,30]℃, and it uses four linguistic values: zero (Z), small (PS), medium (PM), and large (PB), all of which use triangular membership functions. The vertex coordinates of zero (Z) are (0,0,5), small (PS) are (0,5,10), medium (PM) are (5,10,20), and large (PB) are (10,20,30).

[0074] The universe of discourse for the rate of temperature change ΔT is [0,5]℃ / s, and the linguistic values ​​are zero (Z), small (PS), and large (PB), all using a triangular membership function. The vertex coordinates of zero (Z) are (0,0,1), small (PS) are (0,1,2), and large (PB) are (1,2,5).

[0075] The universe of discourse for ambient illuminance Lux is [0, 1000] lx, and linguistic values ​​are divided into dark (D), medium (M), and bright (B), using a hybrid trapezoidal and triangular membership function. Dark (D) is a trapezoid with parameters (0, 0, 10, 50), meaning ≤10 lx is fully membership; medium (M) is defined by (10, 50, 200, 500); and bright (B) is defined by (200, 500, 1000, 1000), meaning ≥500 lx is fully membership.

[0076] The domain of the battery's State of Charge (SOC) is [0, 100]%, with linguistic values ​​categorized as Low (L), Medium (M), and High (H), employing a hybrid trapezoidal and triangular membership function. Low (L) is a trapezoidal function (0, 0, 10, 20), where ≤10% is considered the lowest possible charge; Medium (M) is a trapezoidal function (10, 20, 50, 80); and High (H) is a trapezoidal function (50, 80, 100, 100), where ≥80% is considered the highest possible charge.

[0077] All output basic control quantities adopt a unified five-level linguistic value, namely Very Low (VS), Low (S), Medium (M), High (H), and Very High (VH), and all use triangular membership functions. For the basic motor PWM duty cycle, basic LED brightness PWM, and basic volume gain, their universe of discourse is [0,100]%, and the coordinates of the vertices of each linguistic value are: VS(0,0,20), S(0,20,40), M(20,40,60), H(40,60,80), VH(60,80,100). For the basic LED blinking frequency, its universe of discourse is [0,10]Hz. To match this universe of discourse, its linguistic value center value is set separately (for subsequent defuzzification), but the coordinates of the membership function vertices can still be defined as: VS(0,0,2), S(0,2,4), M(2,4,6), H(4,6,8), VH(6,8,10). The above definition ensures that each input value is converted into a linguistic value according to its membership degree, providing a basis for reasoning.

[0078] Step S202: Perform rule reasoning based on a preset fuzzy rule base to obtain fuzzy output quantities.

[0079] In this embodiment of the invention, the fuzzy rule base follows a clear priority: the rate of temperature change ΔT takes precedence over the temperature deviation e, followed by the ambient light intensity Lux, and finally the battery charge SOC. The rule base contains mandatory constraints, such as: when the battery charge is low and the temperature rises rapidly, the motor output should remain at a high level; when the battery charge is low, the positive deviation is small, and the rate of change is zero, the motor and lights are forced to drop to extremely low levels; the output is increased by one level in low-light environments and decreased by one level in bright-light environments, but neither exceeds the range of extremely low to extremely high. The rules are divided into twelve rule groups according to the four levels of temperature deviation e (Z, PS, PM, PB) and the three levels of temperature change rate ΔT (Z, PS, PB). Each group contains nine combinations of ambient light intensity (D, M, B) and battery charge (H, M, L), providing a quaternary fuzzy output {motor PWM duty cycle level, LED brightness level, flicker frequency level, volume gain level}.

[0080] The specific rules for each group are described below:

[0081] When e=Z and ΔT=Z: Under high and medium charge conditions in dim light, all four outputs are medium (M); under low charge conditions in dim light, all are low (S); under high and medium charge conditions in medium light, all are low (S), and under low charge conditions, all are extremely low (VS); under any charge condition in bright light, all are extremely low (VS).

[0082] When e=Z and ΔT=PS: Under dim light, both high and medium charge are high (H); under dim light, both low charge are medium (M); under medium light, both high and medium charge are medium (M), and under low charge are low (S); under bright light, both high and medium charge are low (S), and under low charge are extremely low (VS).

[0083] When e=Z and ΔT=PB: Under dim light, both high and medium charge levels are extremely high (VH); under dim light, low charge level, the motor remains extremely high (VH), and otherwise high (H); under medium light, both high and medium charge levels are high (H), under low charge level, the motor is high (H), and otherwise medium (M); under bright light, both high and medium charge levels are medium (M), under low charge level, the motor is medium (M), and otherwise low (S).

[0084] When e=PS and ΔT=Z: In dim light, both high and medium power levels are high (H); in dim light, low power levels force the motor and light to very low (VS), while the flashing frequency and volume are low (S); in medium light, both high and medium power levels are medium (M), while in low power levels all are forced to very low (VS); in bright light, both high and medium power levels are low (S), while in low power levels all are forced to very low (VS).

[0085] When e=PS and ΔT=PS: Under dim light, both high and medium charge levels are extremely high (VH); under dim light, both low charge levels are high (H); under medium light, both high and medium charge levels are high (H), and under low charge levels are medium (M); under bright light, both high and medium charge levels are medium (M), and under low charge levels are low (S).

[0086] When e=PS and ΔT=PB: Under dim light, both high and medium charge levels are extremely high (VH); under dim light, low charge levels are extremely high (VH) for the motor and flicker frequency, and high (H) for the rest; under medium light, both high and medium charge levels are extremely high (VH) for the motor and flicker frequency, and medium (M) for the rest; under bright light, both high and medium charge levels are high (H) for the motor and flicker frequency, and low (S) for the rest.

[0087] When e=PM and ΔT=Z: Under dim light, both high and medium charge levels are extremely high (VH); under dim light, both low charge levels are high (H); under medium light, both high and medium charge levels are high (H), and under low charge levels are medium (M); under bright light, both high and medium charge levels are medium (M), and under low charge levels are low (S).

[0088] When e=PM and ΔT=PS: Under dim light, both high and medium charge levels are extremely high (VH); under dim light, low charge level, the motor is extremely high (VH), and otherwise high (H); under medium light, both high and medium charge levels are extremely high (VH), under low charge level, the motor is high (H), and otherwise medium (M); under bright light, both high and medium charge levels are high (H), under low charge level, the motor is medium (M), and otherwise low (S).

[0089] When e=PM and ΔT=PB: Under dim light, both high and medium charge levels are extremely high (VH); under dim light, low charge levels, the motor and flashing frequencies are extremely high (VH), and the rest are high (H); under medium light, both high and medium charge levels are extremely high (VH), under low charge levels, the motor and flashing frequencies are extremely high (VH), and the rest are medium (M); under bright light, both high and medium charge levels, the motor and flashing frequencies are extremely high (VH), and the rest are high (H); under low charge levels, the motor and flashing frequencies are extremely high (VH), and the rest are low (S).

[0090] When e=PB and ΔT=Z: Under dim light, both high and medium charge levels are extremely high (VH); under dim light, low charge level, the motor is extremely high (VH), and otherwise high (H); under medium light, both high and medium charge levels are extremely high (VH), under low charge level, the motor is high (H), and otherwise medium (M); under bright light, both high and medium charge levels are high (H), under low charge level, the motor is medium (M), and otherwise low (S).

[0091] When e=PB and ΔT=PS: Under dim light, both high and medium charge levels are extremely high (VH); under dim light, low charge levels, the motor and flashing frequency are extremely high (VH), and the rest are high (H); under medium light, both high and medium charge levels are extremely high (VH), under low charge levels, the motor and flashing frequency are extremely high (VH), and the rest are medium (M); under bright light, both high and medium charge levels, the motor and flashing frequency are extremely high (VH), and the rest are high (H); under low charge levels, the motor and flashing frequency are high (H), and the rest are low (S).

[0092] When e=PB and ΔT=PB: Under dim light, both high and medium charge levels are extremely high (VH); under dim light, low charge levels are extremely high (VH) for the motor and flicker frequency, and high (H) for the rest; under medium light, both high and medium charge levels are extremely high (VH) for the motor and flicker frequency, and medium (M) for the rest; under bright light, both high and medium charge levels are extremely high (VH) for the motor and flicker frequency, and high (H) for the rest; under low charge levels, both high (VH) for the motor and flicker frequency, and low (S) for the rest.

[0093] The inference process adopts the Mamdani min-max inference method. For each activated rule, the membership degree of the input quantity is first minimized with the antecedent of the rule to obtain the activation degree. Then, the maximum value of multiple activation degrees of the same output linguistic value is taken, and finally the fuzzy output set corresponding to each output variable is obtained.

[0094] Step S203: Defuzzify the fuzzy output to obtain the basic motor PWM duty cycle, basic LED brightness PWM, basic LED blinking frequency, and basic volume gain.

[0095] In this embodiment of the invention, the centroid method is used to refine the fuzzy output. For the basic motor PWM duty cycle, basic LED brightness PWM, and basic volume gain, their linguistic center values ​​are uniformly set as: VS=10, S=20, M=40, H=60, VH=80. For the basic LED blinking frequency, since its domain is [0,10]Hz, its center values ​​are set separately as: VS=1.0Hz, S=2.5Hz, M=4.5Hz, H=6.5Hz, VH=9.0Hz. The defuzzification formula is the sum of the membership degrees of each active linguistic value multiplied by its corresponding center values, divided by the sum of all membership degrees; if the sum of all membership degrees is zero, the output is 0. The resulting basic control quantities change continuously and steplessly within their respective domains, and the warning action intensity transitions smoothly with temperature conditions.

[0096] Step S204: Based on the scenario mode preference factor, the human proximity state, and the current system time period, at least one of the basic motor PWM duty cycle, basic LED brightness PWM, basic LED flashing frequency, and basic volume gain is corrected to obtain the motor control parameters, the lighting control parameters, and the audio control parameters.

[0097] In this embodiment of the invention, the correction rules are as follows: when the scenario mode is safety priority, all control quantities are multiplied by a coefficient of 1.2; when energy saving priority is achieved, they are multiplied by 0.8; and when the mode is gentle, they are multiplied by 0.9, with the upper limit of the flashing frequency clamped at 6Hz. Regarding human proximity correction, when an unoccupied state is detected and the current situation is not an extreme emergency (i.e., e=PB and ΔT=PB are not satisfied), all control quantities are multiplied by 0.3 to reduce power consumption that might disturb others when no one is present; if the situation is an extreme emergency, no reduction is applied even if no one is present, ensuring that safety warnings are not interrupted. Regarding nighttime correction, when the user-preset nighttime period is in a non-extreme emergency situation, the upper limit of LED brightness is clamped at 40%, the volume gain is multiplied by 0.5, and the motor PWM duty cycle is multiplied by 0.7; if the situation is an extreme emergency, no nighttime reduction processing is performed. All corrected control quantities are ultimately clamped within their respective domains (percentage 0-100%, frequency 0-10Hz) and written to the driver register for execution.

[0098] In some embodiments of the present invention, step S3, which determines the desired light brightness value based on the ambient illuminance and the battery charge, and adaptively adjusts the desired light brightness value in conjunction with the human proximity status and the current system time to obtain light control parameters, specifically includes:

[0099] Step S301: Using the ambient light intensity and the battery power as inputs, obtain the expected value of the light brightness through a lightweight fuzzy inference system.

[0100] In this embodiment of the invention, the lightweight fuzzy inference system in normal mode only outputs the expected value of light brightness, Ldesired. The linguistic value definitions of the input variables Lux and SOC are consistent with those in the high-temperature mode. The linguistic value set of the output variable Ldesired is OFF, VS, S, M, and H, all using triangular membership functions: OFF(0,0,10), VS(0,10,30), S(10,30,50), M(30,50,70), H(50,70,100). There are nine fuzzy rules: When the environment is dark, high battery outputs high (H), medium battery outputs medium (M), and low battery outputs low (S); when the environment is medium, high battery outputs medium (M), medium battery outputs low (S), and low battery outputs VS; when the environment is bright, high or medium battery outputs VS, and low battery outputs OFF. The inference method uses the Mamdani method, and the defuzzification method uses the centroid method. The linguistic value center values ​​are OFF=0, VS=10, S=30, M=50, and H=70. Based on this calculation, Ldesired≈70% in low light and with battery >50%, and drops to about 10% or 0% in bright environment or with battery <20%.

[0101] To reduce the computational load on the embedded system, a 9×9 lookup table can be pre-generated for direct online invocation. The discretization scheme is as follows: ambient light intensity (Lux) is divided into 9 levels based on intervals of 0, 10, 30, 50, 100, 200, 400, 600, 800, and 1000 lx, with the midpoint of each interval used as a representative value. Battery state of charge (SOC) is divided into 10 levels in 10% increments, then the first and last values ​​are merged into 9 levels, with representative values ​​of 5%, 15%,…95%. Fuzzy inference and defuzzification are performed offline for each representative input, resulting in Ldesired values ​​stored in non-volatile memory. During operation, the desired brightness value is retrieved by matching the nearest table index based on the real-time Lux and SOC values, eliminating the need for real-time floating-point calculations.

[0102] Step S302: When the human body is in an unoccupied state, the expected value of the light brightness is reduced to a second preset percentage or set to zero.

[0103] In this embodiment of the invention, human proximity detection enables on-demand lighting that illuminates when someone is present and dims when no one is present. When the sensing module outputs an unoccupied state, the Ldesired obtained in S301 is multiplied by a second preset percentage (e.g., 20%). If the ambient light is not extremely dark, it can be set directly to zero. When the state changes from unoccupied to present, the expected light brightness smoothly recovers to the level before decay within approximately 0.5 seconds, providing sensitive and imperceptible lighting wake-up.

[0104] Step S303: When the current system time is in a preset nighttime period, the upper limit of the expected value of the light brightness is limited to a third preset percentage, and a control signal for adjusting the color temperature to a warm tone is output.

[0105] In this embodiment of the invention, the upper limit of brightness during nighttime is, for example, limited to 40%. If the expected value after attenuation by S302 is lower than 40%, it remains unchanged; if it is higher than 40%, it is forcibly clamped at 40%. Regarding color temperature adjustment, the output control signal changes the mixing ratio of the RGB LEDs: the pre-calibrated duty cycle ratio of the RGB three-channel PWM corresponding to a warm color temperature of 2700K is approximately R=100%, G=60%, B=10%, and the ratio corresponding to 3000K is approximately R=100%, G=70%, B=20%. When switching to a warm color tone, based on the current final brightness value, the duty cycles of the red, green, and blue channels are set according to the above ratios, thereby outputting the target warm color temperature at a given brightness, avoiding blue light suppression of melatonin at night.

[0106] Step S304: When the battery power is lower than a preset minimum threshold, generate a control command to force the mechanical action module and some light display functions to be shut down, while retaining the control commands for temperature acquisition, wireless communication and basic monochrome indication.

[0107] In this embodiment of the invention, a preset minimum battery threshold is, for example, 10%. When the SOC falls below this threshold, the system enters an extreme battery life mode. Mechanical motion modules stop, and functions such as RGB dynamic lighting are turned off. Only temperature sensing and wireless communication modules maintain a BLE connection with the mobile terminal, driving a monochrome LED to flash at approximately 10% duty cycle and approximately 3-second intervals as a low battery indicator. In this mode, the overall power consumption is reduced to extremely low, allowing for several days of standby time until recharging.

[0108] In some embodiments of the present invention, the method further includes:

[0109] Acquire the opening and closing state information detected by the attitude sensor;

[0110] When an opening event is detected, a control command is generated to pause the dynamic effects of the mechanical action module and the light display module.

[0111] When a lid-closing event is detected, a control command is generated to restore the dynamic effect.

[0112] In this embodiment of the invention, the introduction of an attitude sensor (such as a six-axis accelerometer / gyroscope) adds attitude perception capability to the system. By analyzing the gravitational acceleration component output by the accelerometer, the current tilt angle of the device can be calculated. When the tilt angle exceeds a preset opening angle threshold (such as 45°) and lasts for a certain period of time (such as 0.5 seconds), it is determined to be an opening event. At this time, any ongoing dynamic effects such as motor rotation and light flashing should be immediately paused. The generated control command can be to directly set the motor PWM duty cycle to zero and the light control parameters to the off state. When the sensor detects that the tilt angle has recovered to near horizontal and stabilized, it is determined to be a closing event. At this time, the system reads the running state before the pause from the memory, generates a control command to restore the previous dynamic effects, and enables the motor, lights, and other modules to resume operation.

[0113] In some embodiments of the present invention, after obtaining the current temperature, temperature change rate, ambient light intensity, and battery charge in step S1, the method further includes:

[0114] Determine whether the rate of temperature change is greater than a preset rate threshold;

[0115] If so, a control command is generated to trigger the enhanced high-temperature warning measures in advance. The control command is used to multiply the motor PWM duty cycle and the light flashing frequency by an enhancement coefficient greater than 1 and trigger the prompt operation.

[0116] In this embodiment of the invention, a preset rate threshold is used to detect dangerous precursors of a rapid temperature rise, and can be set to 2℃ / s. This step can be executed before or in parallel with S20, which determines whether the current temperature has reached the high-temperature threshold, to achieve predictive early warning. When ΔT > 2℃ / s is detected, even if the current temperature T has not yet reached Th (e.g., the current T is 55℃), the system will generate an enhanced control command that is triggered in advance. This command multiplies the motor PWM duty cycle and the light flashing frequency by enhancement coefficients (e.g., 1.3 and 1.5), respectively, so that it operates at an intensity higher than the normal high-temperature warning, attracting the user's immediate attention with strong physical action and visual signals. At the same time, the trigger prompt operation can be controlled by controlling the audio module to emit a short beep, or controlling the vibration module to perform a short vibration. This advanced early warning based on the changing trend gives the user valuable reaction time, allowing cooling measures to be taken before the temperature actually reaches the burn threshold.

[0117] In some embodiments of the present invention, the configuration parameters include one or more of the following: temperature threshold, lighting mode, mechanical action speed, music track, scene mode type, and nighttime period definition. This open parameter system ensures that users can deeply customize the interactive behavior and operating parameters of their kettle / cup lid, much like configuring a smartphone.

[0118] In some embodiments of the present invention, the current system time is provided by a real-time clock module or synchronized from the mobile terminal via the wireless communication module. The two time sources complement each other: when the device is powered on and reset and not connected to a mobile phone, the time is read from the real-time clock module; when a connection is established with a mobile phone, the device actively obtains the standard time from the mobile phone and calibrates the real-time clock module to ensure the long-term accurate operation of time-sensitive functions such as those used during nighttime hours.

[0119] Based on the same inventive concept, according to another aspect of the present invention, embodiments of the present invention also provide an intelligent temperature-sensing interactive cup / pot lid control device, comprising:

[0120] The data acquisition module is used to acquire current temperature, temperature change rate, ambient light intensity, and battery level.

[0121] The fuzzy logic warning module is used to generate motor control parameters, lighting control parameters, and audio control parameters by taking the temperature deviation of the current temperature relative to the high temperature threshold, the temperature change rate, the ambient light intensity, and the battery charge as input variables when the current temperature reaches the preset high temperature warning condition, and using a preset fuzzy logic reasoning algorithm.

[0122] An adaptive energy-saving control module is used to determine the desired light brightness value based on the ambient light intensity and the battery charge when the current temperature does not reach the preset high temperature warning condition, and to adaptively adjust the desired light brightness value in combination with the human proximity state and the current system time to obtain light control parameters;

[0123] The configuration interaction module is used to obtain configuration parameters sent by the mobile terminal and update the internal operating mode and / or threshold according to the configuration parameters.

[0124] The intelligent temperature-sensing interactive cup and kettle lid control device provided in this application embodiment can execute the intelligent temperature-sensing interactive cup and kettle lid control method provided in any embodiment of this application, and has the corresponding functional modules and beneficial effects of the execution method.

[0125] This application also provides a computer-readable storage medium, which is a tangible physical storage medium that can store the aforementioned computer program and various types of data used in the program; the physical storage medium includes, but is not limited to, existing physical storage media or combinations thereof, such as random access memory, read-only memory, optical disk, and hard disk.

[0126] Those skilled in the art will understand that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technique for storing information (such as computer-readable programs, data structures, program modules, or other data). Furthermore, it is known to those skilled in the art that communication media typically contain computer-readable programs, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and can include any information delivery medium.

[0127] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the implementation of the present invention. For those skilled in the art, other variations or modifications can be made based on the above description. It is impossible to exhaustively list all the implementation methods here. All obvious variations or modifications derived from the technical solutions of the present invention are still within the protection scope of the present invention.

Claims

1. A smart temperature-sensing interactive cup or pot lid control method, characterized in that, include: Obtain the current temperature, rate of temperature change, ambient light level, and battery level; When the current temperature reaches the preset high temperature warning condition, the temperature deviation of the current temperature relative to the high temperature threshold, the temperature change rate, the ambient light intensity, and the battery charge are used as input variables, and a preset fuzzy logic reasoning algorithm is used to generate motor control parameters, lighting control parameters, and audio control parameters. When the current temperature does not reach the preset high temperature warning condition, the expected value of the light brightness is determined based on the ambient light intensity and the battery power, and the expected value of the light brightness is adaptively adjusted in combination with the human approach state and the current system time to obtain the light control parameters; Obtain the configuration parameters sent by the mobile terminal, and update the internal operating mode and / or threshold based on the configuration parameters. 2.The method of claim 1, wherein, The process employs a preset fuzzy logic reasoning algorithm to generate motor control parameters, lighting control parameters, and audio control parameters, specifically including: The temperature deviation, the rate of temperature change, the ambient light intensity, and the battery charge are fuzzified to obtain fuzzy linguistic values ​​for each input variable; Based on a pre-set fuzzy rule base, rule reasoning is performed to obtain fuzzy output quantities; The fuzzy output is defuzzified to obtain the basic motor PWM duty cycle, basic LED brightness PWM, basic LED blinking frequency, and basic volume gain. Based on the scenario mode preference factor, the human proximity state, and the current system time period, at least one of the basic motor PWM duty cycle, basic LED brightness PWM, basic LED flashing frequency, and basic volume gain is modified to obtain the motor control parameters, the lighting control parameters, and the audio control parameters. 3.The method of claim 1, wherein, The fuzzy rule base includes at least one of the following rules: When the battery charge is low and the temperature change rate is positive, the rule is to generate a motor coefficient with a higher value. When the battery level is low, the temperature deviation is positive and the temperature change rate is zero, the rule is that both the motor coefficient and the light brightness coefficient take low values. When the ambient light level is dark, rules are generated to enhance each output coefficient; when the ambient light level is bright, rules are generated to weaken each output coefficient. When the rate of temperature change is positive, a rule is generated to actively enhance the motor speed coefficient and the light flashing frequency coefficient.

4. The intelligent temperature-sensing interactive cup or pot lid control method according to claim 1, characterized in that, The step of correcting at least one of the following based on the scenario mode preference factor, the human proximity state, and the current system time period includes: Based on the preset energy-saving priority mode, safety priority mode or gentle mode, determine the corresponding gain coefficient, and multiply the gain coefficient by the corresponding basic control quantity; When the human body is approaching and there is no one there, and the temperature deviation is not positive and the temperature change rate is not positive, the basic control quantity is multiplied by an attenuation coefficient of less than 1; when the human body is approaching and there is someone there, the attenuation coefficient is restored to not less than 1. When the current system time is in a preset nighttime period, the upper limit of the basic LED brightness PWM is limited to a first preset percentage, the basic volume gain is multiplied by a nighttime coefficient less than 1, and the duty cycle of the basic motor PWM is decelerated; however, when the temperature deviation is positive or the temperature change rate is positive, the upper limit limit, the multiplication of the nighttime coefficient, and the constraints in the deceleration process are at least partially released.

5. The smart temperature-sensing interactive cup or pot lid control method according to claim 1, wherein, The process of determining the desired light brightness value based on the ambient light intensity and battery charge, and adaptively adjusting the desired light brightness value in conjunction with the human proximity status and the current system time, yields the light control parameters, specifically including: Using the ambient light intensity and the battery level as inputs, the expected value of the light brightness is obtained through a lightweight fuzzy inference system. When the human body is in an unoccupied state, the expected value of the light brightness will be reduced to a second preset percentage or set to zero. When the current system time is in a preset nighttime period, the upper limit of the expected value of the light brightness is limited to a third preset percentage, and a control signal to adjust the color temperature to a warm tone is output. When the battery level is lower than a preset minimum threshold, a control command is generated to force the mechanical action module and some light display functions to shut down, while retaining the control commands for temperature acquisition, wireless communication and basic monochrome indication.

6. The smart temperature-sensing interactive cup or pot lid control method according to claim 1, wherein, Also includes: Acquire the opening and closing state information detected by the attitude sensor; When an opening event is detected, a control command is generated to pause the dynamic effects of the mechanical action module and the light display module. When a lid-closing event is detected, a control command is generated to restore the dynamic effect.

7. The smart temperature-sensing interactive cup or pot lid control method of claim 1, wherein, After obtaining the current temperature, temperature change rate, ambient light intensity, and battery charge, the method further includes: Determine whether the rate of temperature change is greater than a preset rate threshold; If so, a control command is generated to trigger the enhanced high-temperature warning measures in advance. The control command is used to multiply the motor PWM duty cycle and the light flashing frequency by an enhancement coefficient greater than 1 and trigger the prompt operation.

8. The smart temperature-sensing interactive cup or pot lid control method of claim 1, wherein, The configuration parameters include one or more of the following: temperature threshold, lighting mode, mechanical movement speed, music track, scene mode type, and nighttime period definition.

9. A smart temperature-sensing interactive cup or pot lid control device applied to the smart temperature-sensing interactive cup or pot lid control method of any one of claims 1-8, characterized in that, include: The data acquisition module is used to acquire current temperature, temperature change rate, ambient light intensity, and battery level. The fuzzy logic warning module is used to generate motor control parameters, lighting control parameters, and audio control parameters by taking the temperature deviation of the current temperature relative to the high temperature threshold, the temperature change rate, the ambient light intensity, and the battery charge as input variables when the current temperature reaches the preset high temperature warning condition, and using a preset fuzzy logic reasoning algorithm. An adaptive energy-saving control module is used to determine the desired light brightness value based on the ambient light intensity and the battery charge when the current temperature does not reach the preset high temperature warning condition, and to adaptively adjust the desired light brightness value in combination with the human proximity state and the current system time to obtain light control parameters; The configuration interaction module is used to obtain configuration parameters sent by the mobile terminal and update the internal operating mode and / or threshold according to the configuration parameters.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program is used to control the electronic device on which the computer-readable storage medium is located to perform the intelligent temperature-sensing interactive cup and kettle lid control method according to any one of claims 1-8 during runtime.