Switching element control method, touch chip and shower

By collecting and preprocessing touch signals on the touch keys, forming a fitting curve and comparing it with the feature library, the signal type is determined to control the switching element, which solves the problem of false triggering caused by fluid interference sources and improves the reliability of the touch keys.

CN119341542APending Publication Date: 2025-01-21JOMOO KITCHEN & BATHROOM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411301320.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-05-17
Filing Date
2024-09-18
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

The liquid interference source acts on the touch button, which may cause false triggering, reducing the reliability and stability of the touch button.

Method used

The touch signal acting on the touch button is continuously collected and preprocessed through a preset period to form a fitting curve, and compared with the preset type of touch signal curve in the feature library to determine the signal type to control the switch element.

Benefits of technology

It effectively avoids false triggering caused by non-human touch keys, improves the reliability of touch keys, and is closer to the actual situation through dynamic comparison, further improving reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119341542A_ABST
    Figure CN119341542A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a switch element control method, a touch chip and a shower. The method comprises the steps that first touch signals acting on touch keys are continuously collected and preprocessed according to a preset period to obtain a first number of first key values; solving the similarity between a first fitting curve formed according to the first number of first key values and each second fitting curve in a feature library; determining the type of the first touch signal according to the relationship between the similarity and a similarity threshold value; and under the condition that the first touch signal is determined to belong to the first type of signal, controlling the corresponding switch element not to act. According to the switch element control method, the touch chip and the shower, false triggering caused by non-human touch can be avoided, and the reliability of the touch key is improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the priority of the Chinese patent application filed with the China Patent Office on May 17, 2024, with application number 202421087920.7 and invention name “Solenoid Valve Control Method, Touch Chip and Shower”, the content of which should be understood as incorporated into this application by reference. Technical Field

[0002] The present invention relates to the field of smart electrical appliances, and in particular to a switch element control method, a touch chip and a shower. Background Art

[0003] The fluid interference source acting on the touch button may be mistaken for a user's touch operation and trigger the touch button, resulting in reduced reliability and stability of the touch button. Summary of the invention

[0004] The embodiments of the present application provide a switch element control method, a touch chip and a shower, which can avoid false triggering caused by non-human touch buttons and improve the reliability of touch buttons.

[0005] The embodiment of the present application provides a switch element control method, which is applied to an electrical device, wherein the electrical device comprises: a panel, at least one touch button, and at least one switch element, wherein the at least one touch button cooperates with the panel; Continuously collecting and preprocessing the first touch signal acting on the touch key according to a preset period to obtain a first number of first key values; Calculating the similarity between a first fitting curve formed according to the first number of first key values ​​and each second fitting curve in the feature library; wherein each second fitting curve in the feature library is a curve obtained by subtracting a curve formed by a group of key values ​​obtained by connecting and collecting and preprocessing the first and second signals acting on the touch keys according to the preset period from a curve formed by a group of key values ​​obtained by connecting and collecting and preprocessing the third type of signals acting on the touch keys according to the preset period, wherein the first type of signal includes a signal generated by non-human touching the touch keys; the second type of signal includes a signal generated by both non-human touching the touch keys and human touching the touch keys, and a signal generated by human touching the touch keys when the touch keys are in an initial state; the third type of signal includes a signal generated by the touch keys in an initial state; determining the type of the first touch signal according to the relationship between the similarity and the similarity threshold; When it is determined that the first touch signal belongs to the first type of signal, the corresponding switch element is controlled not to operate.

[0006] In an exemplary embodiment, it also includes: When it is determined that the first touch signal belongs to the second type of signal, the corresponding switch element is controlled to be turned on or the corresponding switch element is controlled according to the first number of first key values.

[0007] In an exemplary embodiment, controlling corresponding switch elements according to the first number of first key values ​​includes: Calculating a key value generated by manually touching the touch key according to an average value of the first number of first key values, and turning on the switch element when the key value generated by manually touching the touch key is greater than or equal to a first threshold; The first threshold is the minimum key value generated by manually touching the touch key.

[0008] In an exemplary embodiment, calculating the key value generated by manually touching the touch key according to the average value of the first number of first key values ​​includes: In the case where it is determined that the first touch signal is a signal generated by both non-human touching of the touch key and human touching of the touch key, a key value generated by human touching the touch key is obtained by subtracting a value obtained by collecting and preprocessing a signal generated by non-human touching of the touch key and a value obtained by collecting and preprocessing a signal generated by the touch key in an initial state from an average value of the first number of first key values; When it is determined that the first touch signal is a signal generated by manually touching the touch key when the touch key is in an initial state, the key value generated by manually touching the touch key is obtained by subtracting the value obtained by collecting and preprocessing the signal generated by the touch key in the initial state from the average value of the first number of first key values.

[0009] In an exemplary embodiment, determining the type of the first touch signal according to the relationship between the similarity and the similarity threshold includes: When the relationship between the similarity and the similarity threshold is that the similarity is greater than the similarity threshold, the type of the touch signal corresponding to the second fitting curve is used as the type of the first touch signal.

[0010] In an exemplary embodiment, the first fitting curve is formed as follows: The first fitting curve is obtained by subtracting a fitting curve formed according to the first number of first key values ​​from a fitting curve formed according to a group of key values ​​obtained according to the third type of signal.

[0011] In an exemplary embodiment, the first fitting curve is formed as follows: Determine a second number of second key values ​​according to the first number of first key values; The first fitting curve is obtained by subtracting a fitting curve formed according to the second number of second key values ​​from a fitting curve formed according to a group of key values ​​obtained according to the third type of signal.

[0012] In an exemplary embodiment, determining a second number of second key values ​​according to the first number of first key values ​​includes: dividing the first number of first key values ​​into a second number of groups; Each of the second number of groups includes a third number of first key values; An average value of the third number of first key values ​​is used as the second key value.

[0013] In an exemplary embodiment, the non-artificial touch type signal includes a signal generated by a predetermined type of fluid interference source acting on the touch key in a predetermined form.

[0014] The present application embodiment provides a touch chip, including a memory and a processor. The memory is used to store a program for controlling the switch element; The processor is used to read a program for executing the switch element control and execute the method described in any one of the above embodiments.

[0015] The present application provides a shower device, comprising: A panel, at least one touch button, at least one switch element and the above touch chip, wherein the touch button cooperates with the panel.

[0016] In an exemplary embodiment, a circuit board is also included; The circuit board is provided with pin soldering points of the touch chip and soldering pads of each touch button; The wiring length and wiring width between the pin solder joint of the touch chip and each pad meet the preset first requirement; The distance between adjacent touch keys meets the preset second requirement; The wiring position on the circuit board meets the preset third requirement; The spacing between the traces on the circuit board and the electrical components on the circuit board meets a preset fourth requirement.

[0017] In an exemplary embodiment, the panel is made of a glass material or a non-glass material having a dielectric constant within a preset range; The thickness of panels of different materials meets the preset fifth requirement.

[0018] Compared with the related art, the embodiment of the present application compares the actual touch signal with the touch signal of the preset type in the feature library. When it is determined that the actual touch signal is a signal generated by non-human touching the touch key, the corresponding switch element is controlled not to operate, which can avoid false triggering caused by non-human touching the key and improve the reliability of the touch key. In addition, when comparing, the curve formed by the continuous collection of multiple actual touch signals is compared with the curve formed by the preset type of touch signal. Compared with the comparison of the average value of the continuous collection of multiple actual touch signals with the average value of the preset type of touch signal, it reflects the dynamic change process of the force acting on the touch key, which is closer to the actual situation, and further improves the reliability of the touch key.

[0019] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by implementing the present application. Other advantages of the present application can be realized and obtained by the schemes described in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings are used to provide an understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.

[0021] Figure 1 A schematic diagram of a switch element control method according to an embodiment of the present application; Figure 2 A schematic diagram of a touch chip according to an embodiment of the present application; Figure 3 This is a schematic diagram of a shower according to an embodiment of the present application. DETAILED DESCRIPTION

[0022] The present disclosure describes multiple embodiments, but the description is exemplary rather than restrictive, and it is apparent to those skilled in the art that there may be more embodiments and implementations within the scope of the embodiments described in the present disclosure. Although many possible feature combinations are shown in the drawings and discussed in the specific embodiments, many other combinations of the disclosed features are possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with any other feature or element in any other embodiment, or may replace any other feature or element in any other embodiment.

[0023] The present disclosure includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The embodiments, features, and elements disclosed in the present disclosure may also be combined with any conventional features or elements to form a unique invention scheme defined by the claims. Any features or elements of any embodiment may also be combined with features or elements from other invention schemes to form another unique invention scheme defined by the claims. Therefore, it should be understood that any feature shown and / or discussed in the present disclosure may be implemented individually or in any appropriate combination. Therefore, except for the limitations made according to the attached claims and their equivalents, the embodiments are not subject to other limitations. In addition, various modifications and changes may be made within the scope of protection of the attached claims.

[0024] In addition, when describing representative embodiments, the specification may have presented the method and / or process as a specific sequence of steps. However, to the extent that the method or process does not rely on the specific order of the steps described herein, the method or process should not be limited to the steps in the specific order described. As will be appreciated by those of ordinary skill in the art, other orders of steps are also possible. Therefore, the specific order of the steps set forth in the specification should not be interpreted as a limitation to the claims. In addition, the claims for the method and / or process should not be limited to the steps performed in the order written, and those skilled in the art can easily understand that these orders can be changed and still remain within the spirit and scope of the disclosed embodiments.

[0025] The ordinal numbers such as "first", "second", and "third" in this specification are provided to avoid confusion of constituent elements, and are not intended to limit the quantity. The "plurality" in this disclosure means two or more.

[0026] Figure 1 is a schematic diagram of a switch element control method according to an embodiment of the present application, Figure 1 As shown, the switch element control method of the embodiment of the present application includes the following steps 101 to 104: Step 101, continuously collecting and preprocessing first touch signals acting on the touch keys according to a preset period to obtain a first number of first key values; Step 102, obtaining a similarity between a first fitting curve formed according to the first number of first key values ​​and each second fitting curve in a feature library; Step 103, determining the type of the first touch signal according to the relationship between the similarity and the similarity threshold; Step 104: When it is determined that the first touch signal belongs to the first type of signal, control the corresponding switch element to not operate.

[0027] Among them, each second fitting curve in the feature library is a curve obtained by subtracting a curve formed by a group of key values ​​obtained by connecting and collecting and preprocessing the first and second signals acting on the touch key according to the preset period from a curve formed by a group of key values ​​obtained by connecting and collecting and preprocessing the third type of signals acting on the touch key according to the preset period, wherein the first type of signal includes a signal generated by non-artificial touching of the touch key; the second type of signal includes a signal jointly generated by non-artificial touching of the touch key and artificial touching of the touch key, and a signal generated by artificially touching the touch key when the touch key is in an initial state; the third type of signal includes a signal generated when the touch key is in an initial state.

[0028] The embodiment of the present application compares the actual touch signal with the touch signal of the preset type in the feature library. When it is determined that the actual touch signal is a signal generated by non-human touching the touch key, the corresponding switch element is controlled not to operate, thereby avoiding false triggering caused by non-human touching the key and improving the reliability of the touch key. In addition, when comparing, the curve formed by the continuous collection of multiple actual touch signals is compared with the curve formed by the preset type of touch signal. Compared with the comparison of the average value of the continuous collection of multiple actual touch signals with the average value of the preset type of touch signal, it reflects the dynamic change process of the force acting on the touch key, which is closer to the actual situation, thereby further improving the reliability of the touch key.

[0029] The control method of the switch element is applied to an electrical device, and the electrical device may include: a panel, at least one touch button, and at least one switch element, and the at least one touch button cooperates with the panel. The touch button and the panel here can be matched with each other. Abutment refers to two objects being in close contact or close together, with no gap between their surfaces, or one object being firmly pressed on another object. Exemplarily, for example, the touch button in this type of electrical device includes a spring, one end of the spring is in abutment with the panel, and the other end of the spring can be connected to the input end of the touch chip through a resistor, and the output end of the touch chip is connected to the switch element. The type and quantity of the switch element are not limited, and can be set accordingly according to the function of the electrical device. For example, it can be a solenoid valve, or a switching transistor, a thyristor, etc., which is not limited here.

[0030] In step 101, the preset period may be, for example, 10ms. Continuous acquisition may be performed once every 10ms, once after 10ms, and once after another 10ms. Since the total time taken for continuous acquisition is relatively short, the user experience will not be affected in terms of the touch key response speed. For example, if the acquisition is performed 6 times in a row and calculated as once every 10ms, the total time taken is 60ms. However, multiple continuous acquisitions of touch signals can obtain multiple key values ​​for curve fitting, and more accurately exclude interference sources or more accurately determine whether it is a human touch.

[0031] In an exemplary embodiment, when the touch key is pressed, the resistive touch sensor detects a change in resistance, causing the output analog voltage to change, thereby reflecting the magnitude of the signal acting on the touch key through the change in the analog voltage. In order to digitally process the signal acting on the touch key, it is necessary to perform analog-to-digital conversion on the analog voltage to obtain a digital signal. Therefore, the preprocessing may include analog-to-digital conversion.

[0032] The first touch signal may be, for example, a signal generated by different types of fluid interference sources acting on the touch key in a predetermined form, or a signal generated when the touch key is in an initial state, or a signal generated by manually touching the touch key when different types of fluid interference sources act on the touch key in different forms, or a signal generated by manually touching the touch key when the touch key is in an initial state. Exemplarily, different types of fluid interference sources may include interference sources of cold water, hot water, soap, foam, and the like. Exemplarily, different forms may include forms such as attachment, flow, or splashing.

[0033] The first number represents the number of the first touch signals. In this example, the first number is 6. In other examples, it can be any other feasible actual value, which is not limited here.

[0034] In step 102, in an exemplary embodiment, the first fitting curve may be formed as follows: The first fitting curve is obtained by subtracting a fitting curve formed according to the first number of first key values ​​from a fitting curve formed according to a group of key values ​​obtained according to the third type of signal.

[0035] Exemplarily, the fitting method used to form the fitting curve according to the key value may include, but is not limited to, linear fitting, polynomial fitting, exponential fitting, logarithmic fitting, etc., which are not limited here.

[0036] In an exemplary embodiment, the first fitting curve may be formed as follows: Determine a second number of second key values ​​according to the first number of first key values; The first fitting curve is obtained by subtracting a fitting curve formed according to the second number of second key values ​​from a fitting curve formed according to a group of key values ​​obtained according to the third type of signal.

[0037] In an exemplary embodiment, determining a second number of second key values ​​according to the first number of first key values ​​includes: dividing the first number of first key values ​​into a second number of groups; Each of the second number of groups includes a third number of first key values; An average value of the third number of first key values ​​is used as the second key value.

[0038] Assuming that 30 consecutive first key values ​​are obtained, 5 consecutive first key values ​​can be grouped into one group, and the average value of these 5 first key values ​​is taken as a second key value. The number of key values ​​contained in each group in the example here refers to the third number. In this example, the first number is 30, the second number is 6, and the third number is 5. The third number is the number of first key values ​​in each group after the first number of first key values ​​are grouped, so the third number can be smaller than the first number.

[0039] For example, the third number of first key values ​​may be averaged as follows: weighted averaging may be performed directly, that is, the third number of first key values ​​may be added up and divided by the third number to obtain the average value; or after removing the maximum value and the minimum value, the remaining first key values ​​may be added up and divided by the removed number to obtain the average value. Alternatively, other methods may be used to obtain the average value, which is not limited here.

[0040] In step 102, as described above, the first fitting curve is obtained by subtracting a fitting curve formed according to the first number of first key values ​​from a fitting curve formed according to the third type of signal, or by subtracting a fitting curve formed according to the second number of second key values ​​from a fitting curve formed according to the third type of signal. The subtraction of the fitting curve formed according to the second number of second key values ​​from a fitting curve formed according to the third type of signal may be performed in the following manner:

[0041] Assume that the expressions of two curves (for example, a fitting curve formed according to the second number of second key values ​​and a fitting curve formed according to a set of key values ​​obtained from the third type of signal) are respectively: and ,if and is a function, we can directly subtract it in the expression, that is, ;if and are data points, then subtract at each corresponding point. For example, for each Value, calculation Afterwards, you can A new curve is formed, which is the curve obtained by subtracting the two curves.

[0042] In step 102, the first type of signal, i.e., the signal generated by the non-human touch on the touch key, may include a signal generated by a predetermined type of fluid interference source acting on the touch key in a predetermined form. The predetermined type of fluid interference source may include interference sources of cold water, hot water, soap, foam, etc. Exemplarily, the predetermined form may include adhesion, flow, or splashing.

[0043] The second type of signal may include a signal generated by artificially touching the touch key when a predetermined type of fluid interference source acts on the touch key in a predetermined form.

[0044] In step 102, the initial state of the touch key may be the state of the electrical device each time it is powered on. Each time the device is powered on, it will enter the touch key parameter adaptation stage, at which time the touch chip continuously collects and pre-processes the signals generated in the initial state for each touch key according to the preset period, and obtains a set of key values ​​for each touch key in the initial state. A curve can be formed based on the set of key values, and the set of key values ​​and the formed curve are saved in the feature library. When not used for a long time, the touch chip will also scan all touch keys one by one, update the initial values ​​of the touch keys, and realize dynamic tracking.

[0045] In step 103, the method for calculating the similarity of the fitting curves adopts existing methods, such as the mean square error method, the Pearson correlation coefficient method, the mutual information method, the Frobenius norm method, etc. Among them, the mean square error method is to determine the similarity by calculating the average value of the sum of squares of the point-to-point errors between the two curves. The Pearson correlation coefficient method determines the similarity by measuring the linear correlation between the two curves. The mutual information method determines the similarity by measuring the dependence between the two curves. The Frobenius norm method determines the similarity by calculating the Frobenius norm of the difference matrix of the two curves at each point. Which specific similarity method is used is not limited here.

[0046] In an exemplary embodiment, determining the type of the first touch signal according to the relationship between the similarity and the similarity threshold may include: When the relationship between the similarity and the similarity threshold is that the similarity is greater than the similarity threshold, the type of the touch signal corresponding to the second fitting curve is used as the type of the first touch signal.

[0047] Exemplarily, the similarity threshold may be 90%, or may be set to other values ​​or intervals as required, such as greater than 70%.

[0048] Assuming that the type of the first type of signal is the first type, the type of the second type of signal is the second type, the type of the third type of signal is the third type, and the type of the touch signal corresponding to a second fitting curve in the feature library is the first type, then if the similarity between the first fitting curve and the second fitting curve is greater than the similarity threshold, then the type of the first touch signal is the first type. That is, the first touch signal belongs to the first type of signal.

[0049] In step 104, the corresponding switch element does not act, which means that the switch element maintains the original state.

[0050] In an exemplary embodiment, the control method of the switch element may further include: When it is determined that the first touch signal belongs to the second type of signal, the corresponding switch element is controlled to be turned on or the corresponding switch element is controlled according to the first number of first key values.

[0051] In an exemplary embodiment, controlling corresponding switch elements according to the first number of first key values ​​includes: Calculating a key value generated by manually touching the touch key according to an average value of the first number of first key values, and turning on the switch element when the key value generated by manually touching the touch key is greater than or equal to a first threshold; The first threshold is the minimum key value generated by manually touching the touch key.

[0052] In this embodiment, when it is confirmed that the first touch signal belongs to the second category of signals, the key value generated by manually touching the touch key is compared with the minimum key value generated by manually touching the touch key, so that the human touch can be reconfirmed to further avoid false triggering of the touch key, thereby further improving the reliability of the touch key.

[0053] In an exemplary embodiment, calculating the key value generated by manually touching the touch key according to the average value of the first number of first key values ​​includes: In the case where it is determined that the first touch signal is a signal generated by both non-human touching of the touch key and human touching of the touch key, a key value generated by human touching the touch key is obtained by subtracting a value obtained by collecting and preprocessing a signal generated by non-human touching of the touch key and a value obtained by collecting and preprocessing a signal generated by the touch key in an initial state from an average value of the first number of first key values; When it is determined that the first touch signal is a signal generated by manually touching the touch key when the touch key is in an initial state, the key value generated by manually touching the touch key is obtained by subtracting the value obtained by collecting and preprocessing the signal generated by the touch key in the initial state from the average value of the first number of first key values.

[0054] For example, the value obtained by collecting and preprocessing the signal generated when the touch key is in the initial state can be the average value of multiple values ​​collected continuously. When calculating the average value, the maximum and minimum values ​​can be removed and the remaining values ​​can be averaged, so that the initial value of the touch key obtained is more accurate.

[0055] It should be noted that the embodiment of the present application uses a curve for comparison in order to compare the dynamic process within a period of time. If the average value of the collected data is taken for comparison, it belongs to static value comparison. For the embodiment of the present application, the dynamic process can better reflect the actual situation when the key is touched, and can improve the reliability of the touch key compared with the static value comparison.

[0056] Figure 2 is a schematic diagram of a touch chip according to an embodiment of the present application, such as Figure 2 As shown, it includes a memory 100 and a processor 200, The memory 100 is used to store a program for controlling the switch element; The processor 200 is used to read a program for executing the switch element control and execute the method described in any one of the above embodiments.

[0057] Figure 3 is a schematic diagram of a shower device according to an embodiment of the present application, such as Figure 3 As shown, the shower comprises: a panel, at least one touch button, at least one switch element and the above-mentioned touch chip, and the touch button cooperates with the panel.

[0058] The shower may include a plurality of touch buttons, and different water discharge effects may be controlled by different touch buttons. For example, the plurality of touch buttons may include a hand-held shower touch button, a lower water discharge touch button, and a top spray water discharge touch button.

[0059] The shower may include a plurality of switch elements, which may be solenoid valves. The type and number of solenoid valves are not limited and may be set accordingly according to the function of the shower. For example, the battery valve may be a hand-held shower solenoid valve or a bottom water outlet solenoid valve or a top spray solenoid valve. Each solenoid valve is respectively arranged in the water path of each water outlet, and is used to open these water paths so that water can flow out of the corresponding components. For example, a hand-held shower solenoid valve is arranged in the water path of the water outlet of the hand-held shower. When the hand-held shower solenoid valve is opened, water flows out of the water outlet of the hand-held shower.

[0060] The hand-held showerhead touch button, the lower water outlet touch button, and the top spray water outlet touch button are used to control the opening and closing of the hand-held showerhead solenoid valve, the lower water outlet solenoid valve, and the top spray solenoid valve, respectively. Exemplarily, the touch button switch includes a spring, one end of the spring abuts against the panel, and the other end of the spring can be connected to the input end of the touch chip through a resistor, and the output end of the touch chip is connected to the solenoid valve.

[0061] In an exemplary embodiment, the shower is provided with a circuit board, on which pin solder joints of the touch chip and a solder pad of each touch button are provided; The wiring length and wiring width between the pin solder joint of the touch chip and each pad meet the preset first requirement; The spacing between adjacent touch key switches meets the preset second requirement; The wiring position on the circuit board meets the preset third requirement; The spacing between the traces on the circuit board and the electrical components on the circuit board meets a preset fourth requirement.

[0062] For example, the preset first requirement may be that the maximum length of the trace between the pin solder joint of the touch chip and each pad may be 200 mm, and the maximum trace width may be 0.3 mm. Because the trace is short, the spatial interference is small; if the trace is long, the electromagnetic waves in daily life will cause crosstalk to the trace, thereby forming clutter and causing the touch button to be triggered incorrectly.

[0063] The preset second requirement may be that the spacing between adjacent touch keys exceeds 1 mm to avoid mutual influence between adjacent touch keys. The influence here may mean that when one touch key is pressed, the adjacent touch keys will also have a large change, thereby causing false triggering of the adjacent touch keys.

[0064] The preset third requirement may be that the routing line is prohibited from being arranged under any touch button unless the routing line is connected to the touch button.

[0065] If the wiring is arranged under the touch button, the signal will fluctuate during the transmission process. There will be a spatial electromagnetic field around the fluctuating signal. The spring will generate a current signal when cutting the spatial electromagnetic field, which may cause false triggering of the touch button.

[0066] The preset fourth requirement may be that the safe distance between the touch button wiring and the metal parts of other electrical devices is greater than 5 mm, otherwise self-inductance capacitance will be generated between the spring of the touch button and the metal part, resulting in inaccurate detected capacitance value.

[0067] In an exemplary embodiment, the material of the panel is a glass material or a non-glass material with a dielectric constant within a preset range. Because for glass materials or non-glass materials with a dielectric constant within a preset range (dielectric constant can be 2.0-8.0), after a finger touches these insulating materials, the capacitance value will not change, and metal will absorb the capacitance signal between the capacitive sensor and the human body, resulting in decreased sensitivity and inability to correctly identify the finger touch signal, thereby affecting the switch control of the switch element. Therefore, the material of the panel cannot be a conductive material, and paint containing metal particles cannot be used on the panel.

[0068] The thickness of panels of different materials meets the preset fifth requirement.

[0069] For example, the preset fifth requirement may be that the maximum thickness of a panel made of non-glass material is less than 5 mm, and the thickness of a panel made of glass material is less than 8 mm. If the thickness of the panel is too large, the change in capacitance cannot be detected.

[0070] When the touch button is a spring-type inductive button, the distance between the spring button and the panel should be consistent, and there should be no gap between the top of the spring and the panel.

[0071] When the shower of the embodiment of the present application is in the standby state, the touch chip continuously collects the touch signal acting on a certain touch key according to the preset cycle, the touch chip in the circuit board assembly pre-processes the touch signal to obtain multiple key values, and compares the multiple key values ​​with each group of key values ​​in the feature library. If the comparison result is that the similarity with each group of key values ​​in the feature library is lower than the similarity threshold, it is determined that the touch signal is not generated by a fluid interference source such as cold water, hot water, soap, foam, etc. or is generated when the touch key is in the initial state, and then the average value of the multiple key values ​​is subtracted from the value obtained by collecting and pre-processing the signal generated by the predetermined type of fluid interference source acting on the touch key in a predetermined form to obtain the key value generated by artificially touching the touch key and the minimum threshold corresponding to the artificial touch situation, or the average value of the multiple key values ​​is subtracted from the value obtained by collecting and pre-processing the signal generated by the touch key when the touch key is in the initial state to obtain the key value generated by artificially touching the touch key and the minimum threshold corresponding to the artificial touch situation, if the comparison result is greater than or equal to, then the solenoid valve corresponding to the touch key is opened. Assuming that the touch key is a hand-held shower touch key, the hand-held shower solenoid valve is opened. By eliminating the interference sources of fluids such as cold water, hot water, soap, and foam from acting on the touch buttons, water can be prevented from accidentally touching the panel during showering, causing the water button to be accidentally triggered, thereby preventing the shower from accidentally discharging water. By eliminating the situation where the touch button is in the initial state, the initial state of the touch button can be avoided, causing the water button to be accidentally triggered, thereby preventing the shower from accidentally discharging water. It can also prevent the water button from being accidentally triggered by a slight human touch, thereby preventing the shower from accidentally discharging water.

[0072] The present application describes multiple embodiments, but the description is exemplary rather than restrictive, and it is obvious to those skilled in the art that there may be more embodiments and implementations within the scope of the embodiments described in the present application. Although many possible feature combinations are shown in the drawings and discussed in the specific embodiments, many other combinations of the disclosed features are also possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with any other feature or element in any other embodiment, or may replace any other feature or element in any other embodiment.

[0073] The present application includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The embodiments, features and elements disclosed in the present application may also be combined with any conventional features or elements to form a unique invention scheme. Any features or elements of any embodiment may also be combined with features or elements from other invention schemes to form another unique invention scheme. Therefore, it should be understood that any feature shown and / or discussed in the present application may be implemented individually or in any appropriate combination. Therefore, except for the limitations made according to the attached claims and their equivalents, the embodiments are not subject to other restrictions. In addition, various modifications and changes may be made within the scope of protection of the attached claims.

[0074] In addition, when describing representative embodiments, the specification may have presented the method and / or process as a specific sequence of steps. However, to the extent that the method or process does not rely on the specific order of the steps described herein, the method or process should not be limited to the steps of the specific order described. As will be understood by those of ordinary skill in the art, other sequences of steps are also possible. Therefore, the specific sequence of the steps set forth in the specification should not be interpreted as a limitation to the claims. In addition, the claims for the method and / or process should not be limited to the steps of performing them in the order written, and those skilled in the art can easily understand that these sequences can be changed and still remain within the spirit and scope of the embodiments of the present application.

[0075] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or transient medium). As is known to those skilled in the art, the term "computer storage medium" includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0076] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0077] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A switch element control method, applied to an electrical device, the electrical device comprising: A panel, at least one touch button, and at least one switch element, wherein the at least one touch button cooperates with the panel; characterized in that: Continuously collecting and preprocessing the first touch signal acting on the touch key according to a preset period to obtain a first number of first key values; Calculating the similarity between a first fitting curve formed according to the first number of first key values ​​and each second fitting curve in the feature library; wherein each second fitting curve in the feature library is a curve obtained by subtracting a curve formed by a group of key values ​​obtained by connecting and collecting and preprocessing the first and second signals acting on the touch keys according to the preset period from a curve formed by a group of key values ​​obtained by connecting and collecting and preprocessing the third type of signals acting on the touch keys according to the preset period, wherein the first type of signal includes a signal generated by non-human touching the touch keys; the second type of signal includes a signal generated by both non-human touching the touch keys and human touching the touch keys, and a signal generated by human touching the touch keys when the touch keys are in an initial state; the third type of signal includes a signal generated by the touch keys in an initial state; determining the type of the first touch signal according to the relationship between the similarity and the similarity threshold; When it is determined that the first touch signal belongs to the first type of signal, the corresponding switch element is controlled not to operate.

2. The switching element control method according to claim 1, characterized in that: When it is determined that the first touch signal belongs to the second type of signal, the corresponding switch element is controlled to be turned on or the corresponding switch element is controlled according to the first number of first key values.

3. The switch element control method according to claim 2, characterized in that: The controlling the corresponding switch elements according to the first number of first key values ​​includes: Calculating a key value generated by manually touching the touch key according to an average value of the first number of first key values, and turning on the switch element when the key value generated by manually touching the touch key is greater than or equal to a first threshold; The first threshold is the minimum key value generated by manually touching the touch key.

4. The switch element control method according to claim 3, characterized in that: The step of calculating the key value generated by manually touching the touch key according to the average value of the first number of first key values ​​includes: In the case where it is determined that the first touch signal is a signal generated by both non-human touching of the touch key and human touching of the touch key, a key value generated by human touching the touch key is obtained by subtracting a value obtained by collecting and preprocessing a signal generated by non-human touching of the touch key and a value obtained by collecting and preprocessing a signal generated by the touch key in an initial state from an average value of the first number of first key values; When it is determined that the first touch signal is a signal generated by manually touching the touch key when the touch key is in an initial state, the key value generated by manually touching the touch key is obtained by subtracting the value obtained by collecting and preprocessing the signal generated by the touch key in the initial state from the average value of the first number of first key values.

5. The switch element control method according to claim 1, characterized in that: The determining the type of the first touch signal according to the relationship between the similarity and the similarity threshold comprises: When the relationship between the similarity and the similarity threshold is that the similarity is greater than the similarity threshold, the type of the touch signal corresponding to the second fitting curve is used as the type of the first touch signal.

6. The switch element control method according to claim 1, characterized in that: The first fitting curve is formed as follows: The first fitting curve is obtained by subtracting a fitting curve formed according to the first number of first key values ​​from a fitting curve formed according to a group of key values ​​obtained according to the third type of signal.

7. The switching element control method according to claim 1, characterized in that: The first fitting curve is formed as follows: Determine a second number of second key values ​​according to the first number of first key values; The first fitting curve is obtained by subtracting a fitting curve formed according to the second number of second key values ​​from a fitting curve formed according to a group of key values ​​obtained according to the third type of signal.

8. The switching element control method according to claim 7, characterized in that: The determining a second number of second key values ​​according to the first number of first key values ​​comprises: dividing the first number of first key values ​​into a second number of groups; Each of the second number of groups includes a third number of first key values; An average value of the third number of first key values ​​is used as the second key value.

9. The switch element control method according to claim 1, characterized in that: The non-artificial touch type signal includes a signal generated by a predetermined type of fluid interference source acting on the touch key in a predetermined form.

10. A touch chip, comprising a memory and a processor, characterized in that: The memory is used to store a program for controlling the switch element; The processor is used to read a program for executing the switch element control and execute the method according to any one of claims 1 to 9.

11. A shower, characterized in that: include: A panel, at least one touch button, at least one switch element and the touch chip as claimed in claim 10, wherein the touch button cooperates with the panel.

12. The shower device according to claim 11, characterized in that: Also includes circuit boards; The circuit board is provided with pin soldering points of the touch chip and soldering pads of each touch button; The wiring length and wiring width between the pin solder joint of the touch chip and each pad meet the preset first requirement; The distance between adjacent touch keys meets the preset second requirement; The wiring position on the circuit board meets the preset third requirement; The spacing between the traces on the circuit board and the electrical components on the circuit board meets a preset fourth requirement.

13. The shower device according to claim 11, characterized in that: The material of the panel is a glass material or a non-glass material having a dielectric constant within a preset range; The thickness of panels of different materials meets the preset fifth requirement.