Novel mechanical and touch multifunctional key implementation method

By combining mechanical and touch buttons in automotive button design, and utilizing an MCU controller and self-calibration unit, the problem of accidental touches in complex environments has been solved, improving button stability and safety, and reducing the difficulty of fault location.

CN121530366APending Publication Date: 2026-02-13CHONGQING REBO LIGHTING & ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511680413.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-17
Publication Date
2026-02-13

AI Technical Summary

Technical Problem

Existing touch buttons are prone to accidental touches in complex electromagnetic environments and variable weather conditions, resulting in low stability and security.

Method used

A novel mechanical and touch-based multi-functional button is designed. By combining the mechanical and touch buttons with an MCU controller, a button detection timer and a self-calibration unit are set to realize real-time detection of button status and fault self-diagnosis. The sensor reference value is adjusted by sliding filtering and first-order IIR filtering algorithms to prevent false triggering.

Benefits of technology

It improves the stability and safety of the buttons, reduces the difficulty of fault location, and enables rapid response and improved maintenance efficiency of button functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121530366A_ABST
    Figure CN121530366A_ABST
Patent Text Reader

Abstract

A novel mechanical and touch multifunctional key implementation method is characterized by comprising the following steps that 1, a multifunctional key system is constructed, the multifunctional key system is provided with an MCU, and the key control end of the MCU is connected with a touch key and a mechanical key; the MCU controller is integrated with a key detection timer and a self-calibration unit; 2, the MCU controller sends an initialization signal to the touch key and the mechanical key, and key initialization is completed; meanwhile, the MCU controller starts a key detection timer to carry out key state timing, and starts an MCU self-calibration function of the self-calibration unit; 3, the MCU controller detects the states of the touch key and the mechanical key in real time, and triggers corresponding functions according to the detected key states; meanwhile, the MCU controller detects the fault condition of the touch key in real time through a touch sensor self-checking program. The method has the advantages that mistaken touch can be prevented, and the safety and stability of the key are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of multi-function button technology, and in particular to a novel method for implementing a mechanical and touch-based multi-function button. Background Technology

[0002] With the rapid advancement of intelligent technology in the automotive industry, more and more components are integrating touch functionality (such as air conditioning controllers, ambient lighting, and reading lights). Compared to mechanical buttons, touch buttons are increasingly popular with consumers due to their more technological feel and aesthetic appeal. However, the electromagnetic environment of a vehicle is complex and its operating conditions are highly variable. China encompasses various climates and geographical conditions, with significant differences in temperature, humidity, and air pressure between the north and south. This presents a significant challenge to the design of touch buttons, requiring careful consideration of their stability and safety while ensuring proper functionality.

[0003] Disadvantages of existing technology: Existing touch buttons are susceptible to environmental and climatic influences, resulting in accidental touches and low stability and security. Summary of the Invention

[0004] This invention provides a novel method for implementing a mechanical and touch-sensitive multi-functional button, which can prevent accidental touches and improve the safety and stability of the button.

[0005] To achieve the above objectives, the present invention provides a novel method for implementing a mechanical and touch-based multi-function button, which, in particular, includes the following steps:

[0006] Step 1: Construct a multi-functional button system. The multi-functional button system is equipped with an MCU controller. The mechanical button control terminal of the MCU controller is connected to mechanical buttons, and the touch button control terminal of the MCU controller is connected to touch buttons. The MCU controller integrates a button detection timer and a self-calibration unit.

[0007] Step 2: The MCU controller sends an initialization signal to the touch button and the mechanical button to complete the button initialization; at the same time, the MCU controller starts the button detection timer to count the button status and starts the MCU self-calibration function of the self-calibration unit.

[0008] Step 3: The MCU controller detects the status of the touch buttons and mechanical buttons in real time, and triggers the corresponding function according to the detected button status; at the same time, the MCU controller detects the fault status of the touch buttons in real time through the touch sensor self-test program.

[0009] The above design allows for the rapid combination of two buttons (touch and mechanical) to trigger different functions. In addition, when a touch abnormality occurs, it can perform a self-test and output prompt information, greatly reducing the difficulty of fault location and improving maintenance efficiency.

[0010] Preferably, the touch button and the mechanical button are physically overlapped, with the touch button located on the surface of the mechanical button.

[0011] During button use, the user's finger presses on the touch button first, and as the pressure increases, the mechanical button located below the touch button is triggered.

[0012] A press that triggers only the touch button is defined as a light press; a press that triggers both the touch button and the mechanical button is defined as a hard press.

[0013] Structurally, the touch button is on top of the mechanical button. When a user presses a button, they will first come into contact with the touch button. Therefore, in the logic design, the state of the touch button should be detected first. If only the touch button signal is detected and the mechanical button signal is not detected, it can be determined as a light press; if both the touch button signal and the mechanical button signal are detected, it can be determined as a hard press, realizing the same pressure-sensitive function as 3D touch.

[0014] Preferably, in step 2, the initialization content of the mechanical button is to initialize the mechanical button detection port as a general input detection interface and set the default value to an invalid state;

[0015] The initialization content of the touch button is to set the touch button parameters, which include, but are not limited to, trigger threshold, release threshold, negative calibration parameters, touch response accuracy, and frequency hopping deviation parameters.

[0016] Preferably, the states of the touch buttons and mechanical buttons include a pressed state and a released state.

[0017] Preferably, in step 3, the MCU controller detects the state of the touch button in real time. When it detects that the touch button is in a pressed state and the pressed duration is within the short press duration range, function one is triggered. The MCU controller continues to detect the state of the mechanical button. When it detects that the mechanical button is in a pressed state and the pressed duration is within the short press duration range, function three is triggered. When it detects that the mechanical button is in a released state, the process ends.

[0018] When a touch button is detected to be pressed and the pressing duration is within the long press duration range, function two is triggered; the MCU controller continues to detect the state of the mechanical button. When a mechanical button is detected to be pressed and the pressing duration is within the long press duration range, function four is triggered; when a mechanical button is detected to be released, the process ends.

[0019] The duration range for short presses and long presses can be set according to actual needs.

[0020] For certain special functions, such as those that may affect vehicle operation, this logic can be applied: the function can only be triggered when both the touch button and the mechanical button are pressed. This dual-button protection enhances safety and prevents accidents caused by accidental triggering.

[0021] Preferably, the first function is a sliding filter algorithm function, and the second function is a first-order IIR filter algorithm function;

[0022] In the reading light button control system, function three is the function of turning the reading light on or off, and function four is the function of adjusting the brightness of the reading light.

[0023] This invention improves response efficiency and prevents false triggering by differentiating the duration of button presses and using different filtering algorithms in different scenarios.

[0024] Preferably, the sliding filter algorithm and the first-order IIR filter algorithm are used to adjust the touch sensor reference value in real time, and the expression for the sliding filter algorithm is:

[0025]

[0026] The expression for the function of the first-order IIR filtering algorithm is:

[0027]

[0028] in, This is the filter length. This is the current touch sensor reference value, i.e., the filtered touch output value; The current touch input value; This is the filtered touch output value from the previous moment; These are the filter coefficients, and their values ​​range from [value range missing]. ; [ni] represents the current time; [ni] represents the i-th time before the current time.

[0029] The self-calibration unit activates the MCU self-calibration function, and adjusts the touch sensor reference value in real time through a sliding filter algorithm or a first-order IIR filter algorithm to prevent false triggering.

[0030] Preferably, in step 3, when the MCU controller detects that the touch button is in the released state but the mechanical button is in the pressed state, the MCU controller starts the touch sensor self-test program to detect the baseline value of the touch sensor in the touch button. When the baseline value of the touch sensor is detected to have not changed within a set time, the MCU controller outputs a touch button fault signal and triggers a maintenance prompt. When the baseline value of the touch sensor is detected to have changed less than the normal threshold within a set time, the MCU controller outputs a touch button fault signal and triggers a maintenance prompt.

[0031] The baseline value is the output value of the touch sensor when the touch button is in the released state. In the absence of any operation, the baseline value will fluctuate slightly.

[0032] If the touch button is not pressed, the test continues. Since the touch button is located on the surface of the mechanical button, if the mechanical button is detected to be pressed at this time, it indicates that the touch button may be faulty. The MCU controller initiates a touch sensor self-test program, continuously monitoring the sensor baseline value. If the baseline value does not change or changes less than the normal threshold within a set time, it indicates that the touch sensor has failed. After confirming the fault information, the MCU controller immediately outputs a "touch button fault" signal, prompting the user to perform repairs.

[0033] The beneficial effects of this invention are: it can quickly realize the combination of two buttons (touch and mechanical) to trigger different functions, achieving the same effect as 3D touch based on the difference in pressing pressure, with a significant cost advantage. Simultaneously, when a touch abnormality occurs, it can perform a self-check and output prompt information, greatly reducing the difficulty of fault location and improving maintenance efficiency.

[0034] This invention perfectly combines the reliability of mechanical buttons with the aesthetics and technological feel of touch buttons, while through software logic innovation, it realizes fault self-checking and warning functions, achieving a clever fusion where 1+1 is greater than 2. Attached Figure Description

[0035] Figure 1 This is a flowchart illustrating the implementation method of the novel mechanical and touch-based multi-function button in the embodiment.

[0036] Figure 2 This is a circuit diagram for a multi-function keypad system. Detailed Implementation

[0037] The present invention will be further described in detail below with reference to the accompanying drawings and specific examples. The following embodiments or drawings are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0038] like Figure 1As shown, a novel method for implementing a mechanical and touch-sensitive multi-function button includes the following steps:

[0039] Step 1: Construct a multi-functional button system. The multi-functional button system is equipped with an MCU controller. The mechanical button control terminal of the MCU controller is connected to mechanical buttons, and the touch button control terminal of the MCU controller is connected to touch buttons. The MCU controller integrates a button detection timer and a self-calibration unit. Figure 1 In the application layer, it refers to the MCU controller.

[0040] The touch button and the mechanical button are physically overlapped. The touch button is located on the surface of the mechanical button. That is, during button use, the touch button is pressed first. As the pressing force increases, the mechanical button located on the lower layer of the touch button is triggered.

[0041] A press that triggers only the touch button is defined as a light press; a press that triggers both the touch button and the mechanical button is defined as a hard press.

[0042] The circuit diagram of the multi-function keypad system is as follows: Figure 2 As shown, Figure 2 In the diagram, J1 is a touch button, S1 is a mechanical button, and IC1 is an MCU controller.

[0043] Step 2: The MCU controller sends initialization signals to the touch buttons and mechanical buttons to complete the button initialization;

[0044] The initialization content of the mechanical button is to initialize the mechanical button detection port as a general input detection interface and set the default value to an invalid state;

[0045] The initialization content of the touch button is to set the touch button parameters, which include, but are not limited to, trigger threshold, release threshold, negative calibration parameters, touch response accuracy, and frequency hopping deviation parameters.

[0046] Simultaneously, the MCU controller starts the key detection timer to count key states and activates the MCU self-calibration function of the self-calibration unit; the MCU self-calibration function adjusts the touch sensor reference value in real time through algorithms such as IIR filtering to prevent false triggering.

[0047] Step 3: The MCU controller detects the status (including pressed and released states) of the touch buttons and mechanical buttons in real time, and triggers the corresponding function according to the detected button status; at the same time, the MCU controller detects the fault status of the touch buttons in real time through the touch sensor self-test program.

[0048] The MCU controller monitors the state of the touch button in real time. When it detects that the touch button is pressed and the pressing duration is within the short press duration range, it triggers function one. The MCU controller continues to monitor the state of the mechanical button. When it detects that the mechanical button is pressed and the pressing duration is within the short press duration range, it triggers function three. When it detects that the mechanical button is released, the process ends.

[0049] When a touch button is detected to be pressed and the pressing duration is within the long press duration range, function two is triggered; the MCU controller continues to detect the state of the mechanical button. When a mechanical button is detected to be pressed and the pressing duration is within the long press duration range, function four is triggered; when a mechanical button is detected to be released, the process ends.

[0050] When the MCU controller detects that the touch button is in the released state but the mechanical button is in the pressed state, the MCU controller starts the touch sensor self-test program to detect the baseline value of the touch sensor in the touch button. When the baseline value of the touch sensor does not change within 5 seconds, the MCU controller outputs a touch button fault signal and triggers a maintenance prompt. When the baseline value of the touch sensor changes less than the normal threshold within 5 seconds, the MCU controller outputs a touch button fault signal and triggers a maintenance prompt.

[0051] Function one is a sliding filter algorithm function, and function two is a first-order IIR filter algorithm function. The sliding filter algorithm function and the first-order IIR filter algorithm function are used to adjust the touch sensor reference value in real time. The expression for the sliding filter algorithm function is:

[0052]

[0053] The expression for the function of the first-order IIR filtering algorithm is:

[0054]

[0055] in, This is the filter length. This is the current touch sensor reference value, i.e., the filtered touch output value; The current touch input value; This is the filtered touch output value from the previous moment; These are the filter coefficients, and their values ​​range from [value range missing]. ; [ni] represents the current time; [ni] represents the i-th time before the current time.

[0056] In this embodiment, the multi-function button system is applied to the reading light button control system. Therefore, function three is the reading light on / off function, and function four is the reading light brightness adjustment function.

[0057] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A novel method for implementing a mechanical and touch-based multi-functional button, characterized in that, Includes the following steps: Step 1: Construct a multi-functional button system. The multi-functional button system is equipped with an MCU controller. The mechanical button control terminal of the MCU controller is connected to mechanical buttons, and the touch button control terminal of the MCU controller is connected to touch buttons. The MCU controller integrates a button detection timer and a self-calibration unit. Step 2: The MCU controller sends an initialization signal to the touch button and the mechanical button to complete the button initialization; at the same time, the MCU controller starts the button detection timer to count the button status and starts the MCU self-calibration function of the self-calibration unit. Step 3: The MCU controller detects the status of the touch buttons and mechanical buttons in real time, and triggers the corresponding function according to the detected button status; at the same time, the MCU controller detects the fault status of the touch buttons in real time through the touch sensor self-test program.

2. The method for implementing a novel mechanical and touch-based multi-function button according to claim 1, characterized in that: The touch button and the mechanical button are physically overlapped, with the touch button located on the surface of the mechanical button.

3. The method for implementing a novel mechanical and touch-based multi-function button according to claim 1, characterized in that: In step 2, the initialization of the mechanical button is to initialize the mechanical button detection port as a general input detection interface and set the default value to an invalid state; The initialization content of the touch button is to set the touch button parameters, which include, but are not limited to, trigger threshold, release threshold, negative calibration parameters, touch response accuracy, and frequency hopping deviation parameters.

4. The method for implementing a novel mechanical and touch-based multi-functional button according to claim 2, characterized in that: The states of the touch buttons and mechanical buttons include pressed state and released state.

5. The method for implementing a novel mechanical and touch-based multi-functional button according to claim 4, characterized in that: In step 3, the MCU controller monitors the state of the touch button in real time. When it detects that the touch button is pressed and the pressing duration is within the short press duration range, function one is triggered. The MCU controller continues to monitor the state of the mechanical button. When it detects that the mechanical button is pressed and the pressing duration is within the short press duration range, function three is triggered. When it detects that the mechanical button is released, the process ends. When a touch button is detected to be pressed and the pressing duration is within the long press duration range, function two is triggered; the MCU controller continues to detect the state of the mechanical button. When a mechanical button is detected to be pressed and the pressing duration is within the long press duration range, function four is triggered; when a mechanical button is detected to be released, the process ends.

6. The method for implementing a novel mechanical and touch-based multi-function button according to claim 5, characterized in that: Function 1 is a sliding filter algorithm function, and function 2 is a first-order IIR filter algorithm function; In the reading light button control system, function three is the function of turning the reading light on or off, and function four is the function of adjusting the brightness of the reading light.

7. The method for implementing a novel mechanical and touch-based multi-functional button according to claim 6, characterized in that: The sliding filter algorithm and the first-order IIR filter algorithm are used to adjust the touch sensor reference value in real time. The expression for the sliding filter algorithm is: ; The expression for the function of the first-order IIR filtering algorithm is: ; in, This is the filter length. This is the current touch sensor reference value, i.e., the filtered touch output value; The current touch input value; This is the filtered touch output value from the previous moment; These are the filter coefficients, and their values ​​range from [value range missing]. ; [ni] represents the current time; [ni] represents the i-th time before the current time.

8. The method for implementing a novel mechanical and touch-based multi-function button according to claim 4, characterized in that: In step 3, when the MCU controller detects that the touch button is in the released state but the mechanical button is in the pressed state, the MCU controller starts the touch sensor self-test program to detect the baseline value of the touch sensor in the touch button. When the baseline value of the touch sensor does not change within a set time, the MCU controller outputs a touch button fault signal and triggers a maintenance prompt. When the baseline value of the touch sensor changes below the normal threshold within a set time, the MCU controller outputs a touch button fault signal and triggers a maintenance prompt.