Induction key structure, press control method, electronic equipment and readable storage medium

文档序号:424220 发布日期:2021-12-21 浏览:40次 中文

阅读说明:本技术 感应按键结构、按压控制方法、电子设备及可读存储介质 (Induction key structure, press control method, electronic equipment and readable storage medium ) 是由 李小辉 卢伟杰 陈伟 艾永东 于 2020-06-19 设计创作,主要内容包括:本发明公开了一种感应按键结构、按压控制方法、电子设备及可读存储介质,所述按压控制方法包括以下步骤:在检测到感应元件的感应信号发生变化时,获取光敏元件的光强采样值;在所述光强采样值小于第一预设值时,执行所述感应元件对应的操作。本发明提高了对电子设备控制的准确性。(The invention discloses an induction key structure, a press control method, electronic equipment and a readable storage medium, wherein the press control method comprises the following steps: when the change of the sensing signal of the sensing element is detected, acquiring a light intensity sampling value of the photosensitive element; and when the light intensity sampling value is smaller than a first preset value, executing the corresponding operation of the sensing element. The invention improves the accuracy of controlling the electronic equipment.)

1. An inductive button structure, comprising:

the pressing panel is provided with a light-transmitting pressing area;

the sensing element is arranged on one side of the pressing panel, which is far away from the pressing area, so as to sense the pressing operation of a finger of a user on the pressing area;

the light incidence side of the photosensitive element faces the pressing area, and the photosensitive element is arranged on one side of the pressing panel, which is far away from the pressing area;

the processor, the inductive element and the photosensitive element are all electrically connected with the processor.

2. The sensing key structure of claim 1, wherein the photosensitive element is disposed within the sensing element.

3. The sensing key structure of claim 2, wherein the sensing element comprises a conductive spring, and a sensing electrode and a supporting member disposed at two ends of the conductive spring, the sensing electrode being electrically connected to the processor via the conductive spring and the supporting member; the photosensitive element comprises a photosensitive sensor, and a pin of the photosensitive sensor penetrates through the support to be electrically connected with the processor.

4. A press control method applied to an electronic device including the sensing key structure of any one of claims 1 to 3, the control method comprising the steps of:

when the change of the sensing signal of the sensing element is detected, acquiring a light intensity sampling value of the photosensitive element;

and when the light intensity sampling value is smaller than a first preset value, executing the corresponding operation of the sensing element.

5. The control method of claim 4, wherein the step of obtaining the light intensity sample value of the photosensitive element when the change of the sensing signal of the sensing element is detected comprises the following steps:

when the light intensity sampling value is greater than or equal to the first preset value, reducing the running power; alternatively, the first and second electrodes may be,

and when the light intensity sampling value is greater than or equal to the first preset value, executing shutdown operation.

6. The control method of claim 4, wherein the step of performing the corresponding operation of the sensing element when the sampled light intensity value is smaller than the first preset value comprises:

when the light intensity sampling value is smaller than the first preset value, the number of the sensing elements with the changed sensing signals is obtained;

and when the number of the sensing elements with the changed sensing signals is less than the preset number, executing the corresponding operation of the sensing elements.

7. The control method of claim 4, wherein the step of obtaining light intensity samples of the light sensitive element is followed by:

acquiring a light intensity sampling value of a photosensitive element corresponding to the sensing element with the changed sensing signal;

the step of executing the corresponding operation of the sensing element comprises:

and executing the operation corresponding to the sensing element with the changed sensing signal, wherein the electronic equipment comprises a plurality of sensing key structures.

8. The control method of claim 4, wherein after the step of obtaining light intensity samples of the light sensitive element, the control method further comprises:

and when the light intensity sampling value is smaller than a second preset value, controlling a backlight lamp of the induction key structure or controlling a function indicator lamp of the induction key structure to be turned on.

9. A press control method applied to an electronic device including the sensing key structure of any one of claims 1 to 3, the control method comprising the steps of:

acquiring a light intensity sampling value of the photosensitive element;

when the light intensity sampling value is smaller than a first preset value, acquiring an induction signal of an induction element;

and when the induction signal changes, executing the corresponding operation of the induction element.

10. The control method of claim 9, wherein the step of performing the corresponding operation of the sensing element when the sensing signal changes comprises:

acquiring the number of the sensing elements with the changed sensing signals;

and when the number of the sensing elements with the changed sensing signals is less than the preset number, executing the corresponding operation of the sensing elements.

11. An electronic device, characterized in that the electronic device comprises an inductive button structure according to any one of claims 1-3; the electronic device further comprises a memory, a processor and a press control program stored on the memory and executable on the processor, the press control program when executed by the processor implementing the steps of the press control method according to any one of claims 4 to 10.

12. A readable storage medium, characterized in that the readable storage medium has a press control program stored thereon, which, when executed by a processor, implements the steps of the press control method according to any one of claims 3 to 10.

Technical Field

The invention belongs to the technical field of induction keys, and particularly relates to an induction key structure, a press control method, electronic equipment and a readable storage medium.

Background

In the prior art, when a user finger controls the electronic device by operating the capacitive sensing key, an equivalent capacitor is formed between the finger and the sensing key structure, so that the original capacitance value is changed, the change of a capacitance sampling value is caused, and the operation of the user on the sensing key can be effectively identified through the capacitance change value electronic device. However, in the process of boiling water or boiling soup, when the soup overflows and flows through the sensing key, an equivalent capacitor is formed between the liquid and the sensing key structure, and since the equivalent capacitor value is relatively close to the capacitor value when the sensing key is pressed by the finger of the user, program misjudgment is often caused, and the control accuracy of the electronic device is low.

Disclosure of Invention

The invention mainly aims to provide an induction key structure, and aims to solve the problem of low control accuracy of electronic equipment in the prior art.

In order to achieve the above object, the present invention provides an induction key structure, including: the pressing panel is provided with a light-transmitting pressing area; the sensing element is arranged on one side of the pressing panel, which is far away from the pressing area, so as to sense the pressing operation of a finger of a user on the pressing area; the light incidence side of the photosensitive element faces the pressing area, and the photosensitive element is arranged on one side of the pressing panel, which is far away from the pressing area; the processor, the inductive element and the photosensitive element are all electrically connected with the processor.

Further, the photosensitive element is arranged in the sensing element.

Furthermore, the sensing element comprises a conductive spring, and a sensing electrode and a supporting piece which are arranged at two ends of the conductive spring, and the sensing electrode is electrically connected with the processor through the conductive spring and the supporting piece; the photosensitive element comprises a photosensitive sensor, and a pin of the photosensitive sensor penetrates through the support to be electrically connected with the processor.

In order to achieve the above object, the present invention further provides a press control method applied to an electronic device, where the electronic device includes the sensing button structure as described in any one of the above embodiments, and the press control method includes the following steps:

when the change of the sensing signal of the sensing element is detected, acquiring a light intensity sampling value of the photosensitive element;

and when the light intensity sampling value is smaller than a first preset value, executing the corresponding operation of the sensing element.

Further, when the change of the sensing signal of the sensing element is detected, the step of obtaining the light intensity sampling value of the photosensitive element comprises the following steps:

when the light intensity sampling value is greater than or equal to the first preset value, reducing the running power; or when the light intensity sampling value is greater than or equal to the first preset value, executing shutdown operation.

Further, when the light intensity sampling value is smaller than a first preset value, the step of executing the corresponding operation of the sensing element comprises:

when the light intensity sampling value is smaller than the first preset value, the number of the sensing elements with the changed sensing signals is obtained;

and when the number of the sensing elements with the changed sensing signals is less than the preset number, executing the corresponding operation of the sensing elements.

Further, the step of obtaining light intensity samples of the light sensitive element may be followed by the steps of:

acquiring a light intensity sampling value of a photosensitive element corresponding to the sensing element with the changed sensing signal;

the step of executing the corresponding operation of the sensing element comprises:

and executing the operation corresponding to the sensing element with the changed sensing signal, wherein the electronic equipment comprises a plurality of sensing key structures.

Further, after the step of obtaining the light intensity sampling value of the photosensitive element, the control method further comprises:

and when the light intensity sampling value is smaller than a second preset value, controlling a backlight lamp of the induction key structure or controlling a function indicator lamp of the induction key structure to be turned on.

In order to achieve the above object, the present invention further provides a press control method applied to an electronic device, where the electronic device includes the sensing button structure as described in any one of the above embodiments, and the press control method includes the following steps:

acquiring a light intensity sampling value of the photosensitive element;

when the light intensity sampling value is smaller than a first preset value, acquiring an induction signal of an induction element;

and when the induction signal changes, executing the corresponding operation of the induction element.

Further, when the sensing signal changes, the step of executing the operation corresponding to the sensing element includes:

acquiring the number of the sensing elements with the changed sensing signals;

and when the number of the sensing elements with the changed sensing signals is less than the preset number, executing the corresponding operation of the sensing elements.

In order to achieve the above object, the present invention also provides an electronic device, including: an induction button arrangement as claimed in any one of the preceding claims; the electronic device comprises a memory, a processor and a press control program stored on the memory and executable on the processor, wherein the press control program, when executed by the processor, implements the steps of the press control method as described in any one of the above.

To achieve the above object, the present invention further provides a readable storage medium having a press control program stored thereon, the press control program, when executed by a processor, implementing the steps of the press control method according to any one of the above.

According to the technical scheme, when the change of the sensing signal of the sensing element is detected, the light intensity sampling value of the photosensitive element is obtained, when the light intensity sampling value is smaller than the first preset value, it is determined that the finger of a user presses the pressing area instead of the soup covers the pressing area, at the moment, the electronic equipment executes the operation corresponding to the sensing element, the problem that the control function of the electronic equipment is disordered due to the overflow of the soup is effectively solved, and the accuracy of controlling the electronic equipment is improved.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.

FIG. 1 is a schematic structural diagram of an embodiment of an inductive button structure according to the present invention;

FIG. 2 is a schematic structural diagram of another view angle of the sensing button structure according to the present invention;

FIG. 3 is a flowchart illustrating a pressing control method according to an embodiment of the present invention;

FIG. 4 is a flowchart illustrating a pressing control method according to another embodiment of the present invention;

FIG. 5 is a flowchart illustrating a step S10 of the pressing control method according to the present invention;

FIG. 6 is a flowchart illustrating a pressing control method according to another embodiment of the present invention;

FIG. 7 is a flowchart illustrating a pressing control method according to still another embodiment of the present invention;

fig. 8 is a flowchart illustrating a step S130 of the pressing control method according to the present invention.

The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

It should be noted that all the directional indicators (such as up, down, left, right, front, and rear … …) in the embodiment of the present invention are only used to explain the relative position relationship between the components, the movement situation, etc. in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indicator is changed accordingly.

In addition, the descriptions related to "first", "second", etc. in the present invention are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.

Referring to fig. 1-2, the present invention provides an inductive button structure 100, wherein the inductive button structure 100 includes: a pressing panel (not shown) provided with a light-transmitting pressing region (not shown); the sensing element 10 is arranged on one side, away from the pressing area, of the pressing panel so as to sense the pressing operation of the finger of the user on the pressing area; the light-incoming side of the photosensitive element 20 faces the pressing area, and the photosensitive element 20 is arranged on one side of the pressing panel, which faces away from the pressing area; a processor (not shown), to which the sensing element 10 and the photosensitive element 20 are electrically connected.

In the present embodiment, the induction key structure 100 is disposed on an electronic device, and is particularly suitable for being applied to a household appliance such as an induction cooker and a water heater, the number of the induction key structures 100 may be one or more, and the electronic device is exemplified as an induction cooker in the following description. When the induction key structure 100 is applied to an induction cooker, the induction key structure 100 is used for receiving a pressing operation of a user so as to enable electronic equipment to realize a corresponding function according to the pressing operation.

In this embodiment, the pressing panel is an operation panel of a user, a pressing area formed on the pressing panel is pressed by a finger of the user to realize pressing operation, the pressing area is light-permeable, and the pressing area may be made of a material having light-permeability, such as glass. The sensing element 10 is disposed on a side of the pressing panel away from the pressing area, the sensing element 10 corresponds to the pressing area, and the sensing element 10 is configured to detect/sense a pressing operation of a user on the pressing area, specifically, the sensing element 10 may be a capacitive sensing element or a resistive sensing element, and the sensing element 10 is exemplified as the capacitive sensing element 10. The photosensitive element 20 is also disposed on a side of the pressing panel away from the pressing area, that is, the photosensitive element 20 and the sensing element 10 are disposed on the same side of the pressing panel, a light incident side of the photosensitive element 20 is disposed toward the pressing area, and the photosensitive element 20 is configured to sense a light change at the position of the pressing area; the controller may be a control board, and the controller is electrically connected to both the photosensitive element 20 and the sensing element 10. When a user finger presses the pressing area, the capacitance value of the sensing element 10 changes and is detected by the control board, meanwhile, because the user finger shields the pressing area, light received by the photosensitive element 20 is reduced, and a light intensity sampling value output by the photosensitive element 20 is also reduced, at this time, the controller can determine that the user finger triggers the pressing operation, and execute the operation corresponding to the sensing element 10, such as turning on and off the computer, increasing the operating power and the like. When soup of the induction cooker overflows due to boiling and flows to the pressing area, the sensing element 10 can sense the pressing operation, but the soup is generally thin and has light transmittance, so that the light intensity sampling value output by the photosensitive element 20 does not change greatly, at this time, the controller can determine that the soup is triggered by the finger of a user instead of the finger of the user, and at this time, the electronic device does not execute the operation corresponding to the sensing element 10.

In this embodiment, whether the sensing signal of the sensing element 10 changes or not is detected, and meanwhile, whether the light intensity sampling value of the photosensitive element 20 changes or not is detected, when both the sensing signal and the light intensity sampling value change, whether the detected light intensity sampling value is smaller than a preset value or not is judged, when the light intensity sampling value is smaller than the preset value, the controller determines that the user's finger is not the soup to trigger the pressing operation, and at this time, the electronic device executes the function corresponding to the sensing element 10. When the light intensity sampling value is larger than the preset value, the controller determines that the soup is triggered to be pressed by fingers of a user instead of the user, at the moment, the electronic equipment does not execute the operation corresponding to the sensing element 10, the problem that the control function of the electronic equipment is disordered due to overflow of the soup is effectively solved, and the accuracy of controlling the electronic equipment is improved.

It can be understood that in the present embodiment, the controller may determine that the pressing operation is detected when the capacitance variation value of the sensing element 10 is greater than a preset value, and the light intensity sampling value of the photosensitive element 20 is greater than a preset value.

Further, the photosensitive element 20 is disposed in the sensing element 10.

In this embodiment, by disposing the photosensitive element 20 in the sensing element 10, the photosensitive element 20 is adjacent to the sensing element 10, and the photosensitive element 20 faces the pressing area, the photosensitive element 20 can detect the light variation of the pressing area more accurately. It is understood that the photosensitive element 20 may not be disposed in the sensing element 10, but the photosensitive element 20 may be disposed adjacent to the sensing element 10 or disposed next to the sensing element 10, and the light incident side of the photosensitive element 20 is directed to the pressing area, and the photosensitive element 20 may also detect the light change of the pressing area.

Further, the sensing element 10 includes a conductive spring 11, and a sensing electrode 12 and a supporting member 13 disposed at two ends of the conductive spring 11, wherein the sensing electrode 12 is electrically connected to the processor through the conductive spring 11 and the supporting member 13; the photosensitive element 20 includes a photosensitive sensor (not shown), and a pin 21 of the photosensitive sensor passes through the support 13 to be electrically connected with the processor.

In this embodiment, the sensing electrode 12 is attached to the surface of the pressing panel away from the pressing area, the conductive spring 11 is connected to the sensing electrode 12 and the supporting member 13, the supporting member 13 supports the conductive spring 11, the sensing electrode 12 and the photosensitive element 20 on one hand, the supporting member 13 is electrically connected to the conductive spring 11 and the controller on the other hand, so as to send the real-time capacitance value of the conductive spring 11 to the controller, the controller determines whether the capacitance value is changed or not according to the received capacitance value and determines the variation of the capacitance value, the photosensitive sensor is used for sensing the light change of the pressing area and sending the collected light intensity sampling value to the controller, the controller judges whether the light is changed or not according to the received light intensity sampling value and determines the variable quantity of the light intensity sampling value. It should be noted that the pins 21 of the photosensitive sensor are not in contact with the support 13, so as to insulate the photosensitive sensor from the support 13.

Referring to fig. 3, a pressing control method provided by the present invention is applied to an electronic device, where the electronic device includes the above-mentioned sensing button structure, and in embodiment 1 of the pressing control method, the pressing control method includes the following steps:

and step S10, acquiring the light intensity sampling value of the photosensitive element when the change of the sensing signal of the sensing element is detected.

In this embodiment, when a finger of a user or soup is covered on the pressing area, the sensing signal of the sensing element changes, the sensing signal carries the current capacitance value of the sensing element, and the controller can determine whether the current capacitance value of the sensing element changes and the variation of the capacitance value compared with the capacitance value collected last time according to the received sensing signal; the controller acquires when detecting the sensing element's sensing signal and changing the light intensity sampling value of light sensitive element is non-light tight press regional light and change like user's finger press in when pressing the region, the light intensity sampling value of light sensitive element will change, and the controller can judge according to receiving the light intensity sampling value whether the light intensity sampling value of light sensitive element has taken place the change and the light intensity sampling value compares the change volume when gathering the light intensity sampling value last time.

And step S20, when the light intensity sampling value is smaller than a first preset value, executing the corresponding operation of the sensing element.

In this embodiment, when the light intensity sampling value is smaller than the first preset value, it indicates that a user's finger presses on the pressing area at this time, and the electronic device executes an operation corresponding to the sensing element, it should be noted that the electronic device may include one or more sensing key structures, and different sensing key structures correspond to different functions, so that when the light intensity sampling value is smaller than the first preset value, the operation corresponding to the sensing element whose sensing signal changes is executed, but not the operation corresponding to the sensing element whose sensing signal does not change.

In summary, in this embodiment, when a change in the sensing signal of the sensing element is detected, the light intensity sampling value of the photosensitive element is obtained, and when the light intensity sampling value is smaller than the first preset value, it is determined that the user presses the pressing area with a finger instead of the soup covering the pressing area, at this time, the electronic device executes the operation corresponding to the sensing element, so that the problem of confusion of the control function of the electronic device due to overflow of the soup is effectively avoided, and the accuracy of controlling the electronic device is improved.

Referring to fig. 4, a 2 nd embodiment of the pressing control method is proposed based on the 1 st embodiment of the pressing control method, and in the 2 nd embodiment, the step S10 is followed by:

step S30, when the light intensity sampling value is larger than or equal to the first preset value, reducing the running power; or when the light intensity sampling value is greater than or equal to the first preset value, executing shutdown operation.

In this embodiment, when the light intensity sampling value is greater than or equal to the first preset value, it indicates that the soup covers the pressing area, so that the sensing signal of the sensing element changes, and the finger of the user presses the pressing area, but the soup overflows due to boiling, so that the electronic device automatically reduces the operating power or automatically shuts down, and other potential safety hazards caused by continuous overflow of the soup are avoided.

Referring to fig. 5, a 3 rd embodiment of the pressing control method is proposed based on the 1 st to 2 nd embodiments of the pressing control method, in the 3 rd embodiment, the step S10 includes:

step S11, when the light intensity sampling value is smaller than the first preset value, acquiring the number of the sensing elements with the changed sensing signals;

step S12, when the number of the sensing elements with the changed sensing signals is less than the preset number, executing an operation corresponding to the sensing elements.

In this embodiment, it may be that the light intensity sampling value is smaller than the first preset value because the ambient light where the electronic device is located is insufficient or the light at night is insufficient, in this case, the overflow of the soup can also cause the change of the sensing signal of the sensing element, and at this time, if the electronic device directly executes the operation corresponding to the sensing element, the control function of the electronic device will be confused because the user does not press the pressing area at this time. Therefore, in this embodiment, when the light intensity sampling value is smaller than the first preset value, the number of the sensing elements with the changed sensing signals is further obtained, and since the user generally presses only 1-2 pressing areas at a time, when the number of the sensing elements with the changed sensing signals is smaller than a preset number, for example, 3, it is considered that the user's finger performs the pressing operation, at this time, the electronic device performs the operation corresponding to the sensing elements, and when the number of the sensing elements with the changed sensing signals is greater than or equal to the preset number, for example, 3, it is considered that the soup covers 3 and more than 3 pressing areas, so that the sensing signals of 3 and more than 3 sensing elements are changed, the electronic device does not perform the operation corresponding to the sensing elements, thereby effectively avoiding the problem of confusion of control function caused by insufficient ambient light and overflow of the electronic device, the accuracy of controlling the electronic equipment is improved.

Based on the 1 st to 3 rd embodiments of the above-described pressing control method, a 4 th embodiment of the pressing control method is proposed, in the 4 th embodiment, the step S10 is followed by including:

step S40, acquiring a light intensity sampling value of the photosensitive element corresponding to the sensing element with the changed sensing signal;

the step S20 includes:

step S21, executing an operation corresponding to the sensing element with a change in the sensing signal, wherein the electronic device includes a plurality of sensing button structures.

In this embodiment, the electronic device includes a plurality of the sensing button structures, the light intensity sampling values of different light sensitive elements are different due to different positions of light sensitive elements in different button structures or due to the fact that some light sensitive elements have shielding objects or the fact that the shielding degree of a user's hand on different light sensitive elements is different, therefore, when the light intensity sampling value is smaller than a first preset value, the light intensity sampling value of the light sensitive element corresponding to the sensing element with the changed sensing signal is further obtained, and only when the light intensity sampling value of the light sensitive element corresponding to the sensing element with the changed sensing signal is smaller than the first preset value, the electronic device is further controlled to execute the operation corresponding to the sensing element with the changed sensing signal, so that the sensing element with the changed sensing signal and the light sensitive element with the light intensity smaller than the first preset value belong to the same sensing button structure, the problem of disordered control functions of the electronic equipment caused by false detection of the photosensitive element is avoided, and the accuracy of control over the electronic equipment is improved.

Referring to fig. 6, a 5 th embodiment of the pressing control method is proposed based on the 1 st to 4 th embodiments of the pressing control method, in the 5 th embodiment, after the step S10, the control method further includes:

and step S50, when the light intensity sampling value is smaller than a second preset value, controlling a backlight lamp of the induction key structure or controlling a function indicator lamp of the induction key structure to be turned on.

In this embodiment, the second preset value has no inevitable size relationship with the first preset value, when the light intensity sampling value is smaller than the second preset value, it indicates that light around the electronic device is insufficient due to shielding at night or in a pressing area, and at this time, the backlight of the induction key structure or the function indicator lamp of the induction key structure is controlled to be turned on, so that a user can see each induction key structure clearly, and the operation of the user is facilitated.

Referring to fig. 7, to achieve the above object, the present invention further provides a press control method applied to an electronic device, where the electronic device includes the above-mentioned sensing button structure, and in embodiment 6 of the press control method, the press control method includes the following steps:

step S110, a light intensity sampling value of the photosensitive element is obtained.

In this embodiment, acquire in real time the light intensity sampling value of light sensitive element, it is non-light tight press regional light change if the user's finger press in press regional when leading to light change, the light intensity sampling value of light sensitive element will change, and the controller can judge according to receiving the light intensity sampling value whether the light intensity sampling value of light sensitive element has taken place to change and the light intensity sampling value compares the change volume when gathering the light intensity sampling value last time. When the soup is covered on the pressing area, the light intensity sampling value of the photosensitive element can not be changed too much.

And step S120, when the light intensity sampling value is smaller than a first preset value, acquiring an induction signal of the induction element.

In this embodiment, when the light intensity sampling value is smaller than the first preset value, it indicates that the finger of the user presses the pressing area, but it may also be that the light intensity sampling value is smaller than the first preset value due to insufficient light around the electronic device, so that the sensing signal of the sensing element is obtained to further determine whether the finger of the user presses the pressing area.

Step S130, when the sensing signal changes, executing an operation corresponding to the sensing element.

In this embodiment, when the sensing signal changes, it indicates that the user's finger presses on the control area, and electronic equipment carries out the operation that sensing element corresponds has effectively avoided electronic equipment because of the not enough and chaotic problem of control function that soup spills over and leads to of ambient light, has improved the accuracy to electronic equipment control. Furthermore, in the embodiment, when the light intensity sampling value is smaller than the first preset value, the sensing signal of the sensing element is obtained instead of detecting whether the sensing signal of the sensing element changes, so that the working energy consumption of the sensing element can be reduced.

Referring to fig. 8, a 7 th embodiment of the pressing control method is proposed based on the 6 th embodiment of the pressing control method, and in the 7 th embodiment, the step S130 includes:

step S131, acquiring the number of the sensing elements with the changed sensing signals;

step S132, when the number of the sensing elements with the changed sensing signals is smaller than the preset number, executing an operation corresponding to the sensing elements.

In this embodiment, it is possible that the light intensity sampling value being smaller than the first preset value is caused by insufficient light in an environment where the electronic device is located, in this case, the overflow of the soup can also cause a change in a sensing signal of the sensing element, and at this time, if the electronic device directly executes an operation corresponding to the sensing element, a control function of the electronic device will be confused, because the user does not press the pressing area at this time. Therefore, in this embodiment, when the light intensity sampling value is smaller than the first preset value, the number of the sensing elements in which the sensing signal changes is further obtained, and since the user generally presses only 1-2 pressing areas at a time, when the number of the sensing elements in which the sensing signal changes is smaller than the preset number, for example, 3, it is considered that the user performs the pressing operation with the finger, and at this time, the electronic device performs the operation corresponding to the sensing element; when the number of the sensing elements with the changed sensing signals is larger than or equal to the preset number of the sensing elements with the changed sensing signals, such as 3, the soup is considered to cover 3 and more than 3 pressing areas, the sensing signals of the sensing elements with the number of 3 and more than 3 are changed, at the moment, the electronic equipment does not execute the operation corresponding to the sensing elements, the problem that the electronic equipment is disordered due to insufficient ambient light and overflow of the soup is effectively avoided, and the accuracy of controlling the electronic equipment is improved.

In order to achieve the above object, the present invention also provides an electronic device, including: the induction key structure is described above; and/or the electronic device comprises a memory, a processor and a press control program stored on the memory and executable on the processor, the press control program, when executed by the processor, implementing the steps of the press control method as described above.

To achieve the above object, the present invention further provides a readable storage medium having a press control program stored thereon, the press control program, when executed by a processor, implementing the steps of the press control method according to any one of the above.

The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种芯片振荡器温度补偿控制系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类