Touch key control circuit and touch device
By introducing the driving circuit and voice recognition module in the touch button control circuit, the drive circuit is turned on only when someone approaches, and the problem of accidental touch when the unmanned operation is solved, and the effect of reducing the error probability and maintaining low power consumption is achieved.
Patent Information
- Application Number
- CN202411469457.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-21
- Publication Date
- 2025-01-28
AI Technical Summary
In the prior art, touch buttons are prone to error-touch problems when unmanned operation, and software filtering algorithms alone cannot effectively reduce the probability of error-touch, and at the same time increase device power consumption.
A touch button control circuit is designed. By connecting the drive circuit between the main control chip and the touch button, and combining the voice recognition module and the self -locking circuit, the drive circuit is only turned on when someone approaches to avoid mistakes when no one is.
Effectively reduce the error probability when unmanned operations, and maintain the power consumption of equipment. At the same time, it is realized through hardware circuits to improve reliability.
Smart Images

Figure CN119382689A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a touch device, in particular to a touch key control circuit and a touch device. Background Art
[0002] With the development of technology, devices are becoming more and more intelligent, and now most products have voice functions. In order to improve the user experience, voice functions also need to be combined with some physical operation methods, often touch button functions.
[0003] For devices with touch button functions, they are generally also equipped with touch buttons. When the device is in an electromagnetic, dusty, or water vapor environment, the buttons may be accidentally touched. Currently, touch buttons basically use software filtering algorithms to remove interference. To improve user experience, touch products often do not have a wake-up operation and are in a normally open state. In addition, touch buttons need to recognize relatively weak signals and have a wide range of recognition. Algorithms alone cannot filter out all interference.
[0004] The above implementation not only increases the power consumption of the device, but also fails to achieve a good effect of reducing the probability of false touches when no one is operating.
[0005] Therefore, how to design a touch button control circuit and a touch device that can reduce the probability of false touches of touch buttons when no one is operating them, without substantially increasing power consumption, is a technical problem that needs to be solved urgently in the industry. Summary of the invention
[0006] In view of the problem in the prior art that the implementation method of removing interference by using a software filtering algorithm cannot filter out all interference, the present invention proposes a touch button control circuit and a touch device.
[0007] The technical solution of the present invention is to propose a touch key control circuit, including a main control
[0008] A chip, and a touch button connected to the main control chip, characterized in that a driving circuit is connected in series between the main control chip and the touch button;
[0009] The touch key control circuit further includes: a voice recognition module for identifying whether a person is approaching, and a voice control module for controlling the driving circuit to be turned on when a person is approaching.
[0010] Furthermore, the voice control module includes:
[0011] A self-locking circuit, which is used to provide a continuous driving signal to the driving circuit when someone approaches, so as to maintain the conducting state of the driving circuit;
[0012] a trigger circuit connected between the voice recognition module and the self-locking circuit, and configured to trigger the self-locking circuit when the voice recognition module detects that someone is approaching;
[0013] A reset circuit is connected between the main control chip and the self-locking circuit, and is used to close the self-locking circuit after the touch button completes the touch instruction.
[0014] Furthermore, the trigger circuit includes: a resistor R1, a resistor R6, and an NPN transistor Q1;
[0015] The collector of the NPN transistor Q1 is connected to the power supply, the base of the NPN transistor Q1 is connected in series with the resistor R6 and then connected to the output end of the voice recognition module, and the emitter of the NPN transistor Q1 is connected in series with the resistor R1 and then grounded.
[0016] Furthermore, the self-locking circuit includes: a resistor R2, a resistor R3, a resistor R4, a PNP transistor Q2, and an NPN transistor Q3;
[0017] The collector of the NPN transistor Q3 is connected in series with the resistor R4 and then connected to the power supply, the emitter of the NPN transistor Q3 is grounded, and the base of the NPN transistor Q3 is connected in series with the resistor R3 and then connected between the emitter of the NPN transistor Q1 and the resistor R1;
[0018] The emitter of the PNP transistor Q2 is connected to the power supply, the collector of the PNP transistor Q2 is connected in series with the resistor R2 and then connected between the resistor R3 and the emitter of the NPN transistor Q1, and the base of the PNP transistor Q2 is connected between the resistor R4 and the collector of the NPN transistor Q3.
[0019] Further, the reset circuit includes: a resistor R5, an NPN transistor Q5;
[0020] The collector of the NPN transistor Q5 is connected between the resistor R3 and the emitter of the NPN transistor Q1, the emitter of the NPN transistor Q5 is grounded, and the base of the NPN transistor Q5 is connected in series with the resistor R5 and then connected to the main control chip.
[0021] Further, the driving circuit includes: a PNP transistor Q4;
[0022] The collector of the PNP transistor Q4 is connected to the touch button, the emitter of the PNP transistor Q4 is connected to the main control chip, and the base of the PNP transistor Q4 is connected between the resistor R4 and the collector of the NPN transistor Q3.
[0023] Furthermore, the main control chip provides a high-level signal to the base of the NPN transistor Q5 through the resistor R5 only when the touch signal sent by the touch button is received and a preset time has passed.
[0024] Furthermore, the speech recognition module also includes a microphone and a storage module;
[0025] The microphone is used to collect the ambient sound after ADC conversion;
[0026] The storage module stores sound signals having a preset fundamental frequency range;
[0027] When the ambient sound collected by the microphone is within the preset fundamental frequency range, the speech recognition module sends a high level signal.
[0028] Furthermore, the preset fundamental frequency range is the fundamental frequency range of human voice.
[0029] The present invention also provides a touch device, wherein the touch device has the above touch key control circuit.
[0030] Compared with the prior art, the present invention has at least the following beneficial effects:
[0031] The touch button control circuit proposed in the present invention is provided with a driving circuit connected between the main control chip and the touch button. The driving circuit is in a disconnected state when no one is around, which can avoid the probability of accidental touch when no one is operating. At the same time, the present invention can continuously provide a driving signal through a self-locking circuit when someone approaches, thereby maintaining the continuous conduction of the driving circuit and ensuring the stability of the key operation. All functions of the present invention are implemented through hardware circuits, without the need to add additional software algorithms, and have high reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0033] Figure 1 This is a flowchart of the overall touch key control circuit proposed by the present invention;
[0034] Figure 2 This is a module diagram of the entire touch key control circuit proposed by the present invention;
[0035] Figure 3This is a circuit topology diagram of the touch key control circuit proposed in the present invention. DETAILED DESCRIPTION
[0036] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0037] Thus, a feature indicated in this specification will be used to illustrate one of the features of an embodiment of the present invention, rather than implying that each embodiment of the present invention must have the described feature. In addition, it should be noted that this specification describes many features. Although some features can be combined together to illustrate possible system designs, these features can also be used in other combinations that are not explicitly described. Thus, unless otherwise stated, the described combinations are not intended to be limiting.
[0038] The principle and structure of the present invention are described in detail below with reference to the accompanying drawings and embodiments.
[0039] Devices with touch button functions are generally also equipped with touch buttons. When the device is in an electromagnetic, dusty, or water vapor environment, accidental button touches may occur. Currently, touch buttons basically use software filtering algorithms to remove interference.
[0040] In the above scheme, touch products often do not have a wake-up operation to improve user experience, and the device is always in the normally open state, which will result in higher power consumption;
[0041] At the same time, the touch buttons need to recognize relatively weak signals with a wide recognition range. Using software filtering algorithms alone cannot filter out all interference.
[0042] In view of the above problems, the present invention proposes a touch key control circuit, which includes a main control chip and a touch key connected to the main control chip;
[0043] A driving circuit is connected in series between the main control chip and the touch button;
[0044] The touch key control circuit further includes: a voice recognition module for identifying whether a person is approaching, and a voice control module for controlling the driving circuit to be turned on when a person is approaching;
[0045] When the driving circuit is turned on, the main control chip can receive the touch key signal sent by the touch key.
[0046] In the above design, the driving circuit is connected in series between the main control chip and the touch button. Therefore, only when the driving circuit is turned on, the touch button can normally send a touch button signal to the main control chip to ensure the normal operation of the touch device.
[0047] In order to avoid false triggering of the touch buttons when no one is around, the drive circuit is arranged in the present invention to be in a disconnected state when no one is around, and is only turned on when the voice recognition module recognizes that someone is approaching and the voice control module sends a drive signal. That is, through the above arrangement, the present invention can ensure that the touch buttons and the main control chip are in a disconnected state when no one is around. In this case, no matter what kind of interference occurs, the touch device will not be falsely triggered. Therefore, the present invention can completely eliminate the problem of false triggering of the touch device when no one is around.
[0048] See also Figure 2 , which is a module diagram of the present invention as a whole, which includes a voice recognition module, a voice control module, a touch button, an MCU (i.e., a main control chip), and a working device;
[0049] Its normal working process is that the voice recognition module detects whether someone is approaching, and reminds the voice control module when someone is approaching. At this time, the voice control module will drive the circuit ( Figure 2 The touch button (not shown) sends a driving signal to turn on the driving circuit. After the driving circuit is turned on, the touch button signal sent by the touch button can be normally transmitted to the main control chip. At this time, after the touch button is manually triggered, the touch button responds to send a touch button signal. After the main control chip receives the touch button signal, it controls the working device to perform the corresponding action.
[0050] Furthermore, the voice control module in the present invention includes:
[0051] A self-locking circuit, which is used to provide a continuous driving signal to the driving circuit when someone approaches, so as to maintain the conducting state of the driving circuit;
[0052] A trigger circuit, which is connected between the voice recognition module and the self-locking circuit, and is used to trigger the self-locking circuit when the voice recognition module detects that someone is approaching;
[0053] The reset circuit is connected between the main control chip and the self-locking circuit, and is used to close the self-locking circuit after the touch key completes the touch instruction.
[0054] The following describes the working process of the voice control module in the present invention in combination with the trigger circuit, the self-locking circuit, and the reset circuit:
[0055] The trigger circuit is connected between the voice recognition module and the self-locking circuit. When someone approaches the touch device, the voice recognition module can detect that someone is approaching, and at the same time send a signal to the trigger circuit that someone is approaching. After the trigger circuit receives the signal, it triggers the self-locking circuit to lock the self-locking circuit.
[0056] The output end of the self-locking circuit is connected to the driving circuit. After the self-locking circuit is locked, it will continue to output a driving signal, which is a high-level signal in the specific embodiment of the present invention. After receiving the driving signal, the driving circuit will be in a conducting state. Since the self-locking circuit will continue to output the driving signal at this time, it will ensure that the driving circuit is always in a conducting state, avoiding the problem of sudden power failure during manual operation of the touch key;
[0057] The reset circuit is connected between the main control chip and the self-locking circuit. When the touch key is manually operated, the main control chip can receive the touch key signal from the touch key, thereby controlling the working device to work. Therefore, when no touch key signal is received, the main control chip can determine that the touch key has completed the touch instruction. At this time, the main control chip can send a reset signal to the self-locking circuit through the reset circuit, thereby closing the self-locking circuit and preventing the touch device from being in a normally open state.
[0058] It should be noted here that during the manual operation process, there will sometimes be a pause, and the manual operation has not ended at this time. If the self-locking circuit is directly turned off, and then the drive circuit is turned off, causing the touch buttons to fail to work, it will seriously affect the user experience. Therefore, the time for sending the reset signal in the present invention is set at the end of the manual operation and after a preset time.
[0059] Here, the end of manual operation can be determined based on whether the main control chip receives a touch key signal, and the preset time can generally be set to 5 minutes. This setting can avoid the occurrence of the above problems.
[0060] It can be seen from the above introduction that each part of the present invention is implemented by a hardware circuit. The following is a specific description of each part of the circuit of the present invention in conjunction with the accompanying drawings;
[0061] For the trigger circuit:
[0062] See also Figure 3 , the trigger circuit includes: resistor R1, resistor R6, and NPN transistor Q1;
[0063] The collector of the NPN transistor Q1 is connected to the power supply, the base of the NPN transistor Q1 is connected in series with a resistor R6 and then connected to the output end of the voice recognition module, and the emitter of the NPN transistor Q1 is connected in series with a resistor R1 and then grounded.
[0064] Its working principle is:
[0065] The conduction condition of NPN transistor Q1 is that the base voltage is higher than the emitter voltage. Here, the emitter of NPN transistor Q1 is grounded through resistor R1. Therefore, as long as the audio signal is at a high level, NPN transistor Q1 can be normally turned on.
[0066] On the contrary, when the audio signal is at a low level, the NPN transistor Q1 will be in a cut-off state.
[0067] Here, the audio signal is a signal sent by the voice recognition module, which sends a high-level signal when someone approaches, and sends a low-level signal when no one approaches. That is, the NPN transistor Q1 will be turned on when someone approaches, and turned off when no one approaches.
[0068] Here, the on and off states of the NPN transistor Q1 will affect the working state of the self-locking circuit, that is, the triggered self-locking circuit mentioned above.
[0069] Continue to see Figure 3 , the self-locking circuit includes: resistor R2, resistor R3, resistor R4, PNP transistor Q2, NPN transistor Q3;
[0070] The collector of the NPN transistor Q3 is connected in series with a resistor R4 and then connected to the power supply, the emitter of the NPN transistor Q3 is grounded, and the base of the NPN transistor Q3 is connected in series with a resistor R3 and then connected between the emitter of the NPN transistor Q1 and the resistor R1;
[0071] The emitter of the PNP transistor Q2 is connected to the power supply, the collector of the PNP transistor Q2 is connected in series with the resistor R2 and then connected between the resistor R3 and the emitter of the NPN transistor Q1, and the base of the PNP transistor Q2 is connected between the resistor R4 and the collector of the NPN transistor Q3.
[0072] Its working principle is:
[0073] The conduction condition of the PNP transistor Q2 is that the emitter voltage is higher than the base voltage. When no one is near, that is, when the NPN transistor Q1 is in the cut-off state, the power supply cannot be guided to the ground through the NPN transistor Q1 and the resistor R1. The base of the PNP transistor Q2 is connected to the power supply through the resistor R4 and is at a high level. At the same time, the emitter of the PNP transistor Q2 is directly connected to the power supply and is also at a high level. Since the emitter of the PNP transistor Q2 and the base of the PNP transistor Q2 are both at a high level, the conduction condition of the PNP transistor Q2 is not met. At this time, the PNP transistor Q2 is in the cut-off state.
[0074] The conduction condition of NPN transistor Q3 is that the base voltage is higher than the emitter voltage. When no one is near, that is, when NPN transistor Q1 is in the cut-off state, the power supply cannot be guided to the ground through NPN transistor Q1 and resistor R1. At this time, the base of NPN transistor Q3 is equivalent to being directly connected to the ground through resistors R3 and R1, which is a low level. The emitter of NPN transistor Q3 is directly connected to the ground, which is also a low level. Since the base of NPN transistor Q3 and the base of NPN transistor Q3 are both low levels, the conduction condition of NPN transistor Q3 is not met. At this time, NPN transistor Q3 is in the cut-off state.
[0075] The resistor R4 and the collector of the NPN transistor Q3 are connected to the driving circuit (i.e., the base of the PNP transistor Q4). When the NPN transistor Q3 is in the cut-off state, the voltage emitted by the power supply cannot be directed to the ground through the resistor R4, resulting in the base of the PNP transistor Q4 being directly connected to the power supply, i.e., receiving a high-level signal. In other words, when no one is approaching, the voice control circuit provides a high-level signal to the driving circuit.
[0076] When someone approaches, that is, when the NPN transistor Q1 is in the on state, the NPN transistor Q1 is equivalent to a wire, which makes the base of the NPN transistor Q3 directly connected to the power supply through the resistor R3 as a high level. At the same time, the emitter of the NPN transistor Q3 is directly connected to the ground as a low level, which meets the on condition of the NPN transistor Q3. At this time, the NPN transistor Q3 is in the on state;
[0077] After the NPN transistor Q3 is turned on, the NPN transistor Q3 is equivalent to a wire. At this time, the base of the PNP transistor Q2 is equivalent to being directly grounded and becomes a low level. At the same time, the emitter of the PNP transistor Q2 is directly connected to the power supply at a high level, satisfying the conduction condition of the PNP transistor Q2. At this time, the PNP transistor Q2 is in a conduction state.
[0078] After the PNP transistor Q2 and the NPN transistor Q3 are turned on, the power supply can provide a high level to the base of the NPN transistor Q3 through the collector of the PNP transistor Q2, the resistor R2, and the resistor R3, thereby maintaining the on state of the NPN transistor Q3;
[0079] At the same time, since the NPN transistor Q3 is turned on, the base terminal of the PNP transistor Q2 is equivalent to being directly grounded through the NPN transistor Q3 and is at a low level, thereby maintaining the PNP transistor Q2 in the on state;
[0080] This mutual conduction state will cause the PNP transistor Q2 and the NPN transistor Q3 to form a self-locking circuit, so that both are continuously turned on.
[0081] The resistor R4 and the collector of the NPN transistor Q3 are connected to the driving circuit (that is, the base of the PNP transistor Q4). When the NPN transistor Q3 is in the on state, the base of the PNP transistor Q4 is equivalent to being directly connected to the ground through the NPN transistor Q3 at a low level. At the same time, since the PNP transistor Q2 and the NPN transistor Q3 form a self-locking circuit, the two are continuously turned on. In this case, the base of the PNP transistor Q4 will continue to be at a low level, that is, when someone approaches, the voice control circuit continues to provide a low-level signal to the driving circuit. The low-level signal here is the driving signal mentioned above, that is, the driving signal is continuously provided to maintain the conduction of the driving circuit.
[0082] Continue to see Figure 3 , the reset circuit includes: resistor R5, NPN transistor Q5;
[0083] The collector of the NPN transistor Q5 is connected between the resistor R3 and the emitter of the NPN transistor Q1, the emitter of the NPN transistor Q5 is grounded, and the base of the NPN transistor Q5 is connected in series with the resistor R5 and then connected to the main control chip.
[0084] Its working principle is:
[0085] The conduction condition of the NPN transistor Q5 is that the base voltage is higher than the emitter voltage. Since the base of the NPN transistor Q5 is directly connected to the main control chip through the resistor R5, the conduction state of the NPN transistor Q5 is directly controlled by the main control chip.
[0086] When the main control chip sends a low-level signal, since the emitter of the NPN transistor Q5 is grounded at a low level, the base of the NPN transistor Q5 and the base of the NPN transistor Q5 are both low levels, and the conduction condition of the NPN transistor Q5 is not met. At this time, the NPN transistor Q5 is in a cut-off state. Because the NPN transistor Q5 is not directly connected to the self-locking circuit, it will not affect the self-locking circuit when it is cut off. At this time, the self-locking circuit maintains self-locking normally;
[0087] When the main control chip sends a high-level signal, since the emitter of the NPN transistor Q5 is grounded to a low level, the NPN transistor Q5 is turned on at this time. Since the collector of the NPN transistor Q5 is grounded through the resistor R1, the emitter of the NPN transistor Q5 is directly grounded. In order to ensure that the collector of the NPN transistor Q5 is always pulled down to a low level, the collector of the NPN transistor Q5 is connected to the base of the NPN transistor Q3 through the resistor R3, which will make the base of the NPN transistor Q3 also become a low level. At this time, the NPN transistor Q3 can no longer meet the conduction condition and is in a cut-off state. After the NPN transistor Q3 is cut off, it can no longer guide the voltage of the power supply to the ground through the resistor R4, which will make the base of the PNP transistor Q2 connected to the power supply through the resistor R4 again and become a high level. At this time, the PNP transistor Q2 can no longer meet the conduction condition and is in a cut-off state. At this time, both the PNP transistor Q2 and the NPN transistor Q3 are in the cut-off state, and the self-locking state is released;
[0088] That is, after the main control chip provides a high-level signal to the NPN transistor Q5, the above self-locking circuit will be turned off.
[0089] Here, the main control chip provides a high level signal to the base of the NPN transistor Q5 through the resistor R5 only when the touch signal sent by the touch key is received and a preset time has passed.
[0090] The reason is as mentioned above. During the manual operation process, there will sometimes be a pause, and the manual operation has not ended at this time. If the self-locking circuit is directly turned off, and then the drive circuit is turned off, causing the touch buttons to fail to work, it will seriously affect the user experience. Therefore, the time for sending the reset signal in the present invention is set at the end of the manual operation and after a preset time. The reset signal here is also the above-mentioned high-level signal.
[0091] Continue to see Figure 3 , the driving circuit includes: a PNP transistor Q4;
[0092] The collector of the PNP transistor Q4 is connected to the touch button, the emitter of the PNP transistor Q4 is connected to the main control chip, and the base of the PNP transistor Q4 is connected between the resistor R4 and the collector of the NPN transistor Q3.
[0093] When no one is approaching, as mentioned above, at this time, the base of the PNP transistor Q4 obtains a high-level signal through the self-locking circuit, and the emitter of the PNP transistor Q4 is directly connected to the main control chip and is also at a high level. Since the emitter of the PNP transistor Q4 and the base of the PNP transistor Q4 are both at high levels, the conduction condition of the PNP transistor Q4 is not met. At this time, the PNP transistor Q4 is in a cut-off state. Since the PNP transistor Q4 is directly connected in series between the main control chip and the touch button, after the PNP transistor Q4 is cut off, the touch button cannot provide a touch button signal to the main control chip, that is, when no one is approaching, the touch button and the main control chip are directly in a disconnected state. No matter what kind of external interference there is, the touch button will not trigger the working device through the main control chip, thereby avoiding the possibility of false triggering;
[0094] When someone approaches, as mentioned above, the base of the PNP transistor Q4 obtains a continuous low-level signal through the self-locking circuit, and the emitter of the PNP transistor Q4 is directly connected to the main control chip and is also high-level. At this time, the PNP transistor Q4 is continuously turned on, which is equivalent to a wire. The touch button is directly connected to the main control chip, and the touch button can be manually operated to send a touch button signal to control the operation of the working equipment through the main control chip. Due to the locking of the self-locking circuit, this process will continue until the self-locking circuit is released, that is, when the main control chip sends a reset signal, the manual operation has ended and the unmanned state continues.
[0095] The following is combined with Figure 3 The overall process of the present invention is described in series:
[0096] The voice control module includes state 1 and state 2, wherein state 1 is when the voice recognition module recognizes that there is no one approaching.
[0097] In state 1, when the voice recognition module recognizes that no one is approaching, the audio signal output by the voice recognition module is low level. At this time, NPN transistor Q1 is cut off, PNP transistor Q2 is cut off, NPN transistor Q3 is cut off, PNP transistor Q4 is cut off, and NPN transistor Q5 is cut off. The touch button signal cannot reach the main control chip, that is, the touch button is in the off state;
[0098] The main control chip outputs a low level signal to the base of the NPN transistor Q5 by default until the main control chip receives the last touch key signal and after a preset time, the main control chip does not detect the touch key signal again, and the main control chip starts to output a high level signal to the base of the NPN transistor Q5;
[0099] In state 1, when the voice recognition module recognizes that someone is approaching, the audio signal output by the voice recognition module is high level. At this time, NPN transistor Q1 is turned on, PNP transistor Q2 is turned on, NPN transistor Q3 is turned on, and PNP transistor Q4 is turned on. At this time, PNP transistor Q2 and NPN transistor Q3 form a self-locking circuit to ensure that the base of PNP transistor Q4 is continuously at a low level, and the touch button signal can reach the main control chip normally, that is, the touch button is in the on state;
[0100] State 1: The self-locking circuit is turned on, the PNP transistor Q4 is turned on, and the touch key signal can enter the main control chip normally. After the main control chip recognizes it, it controls the working device to perform the corresponding action, which is called state 2.
[0101] After entering state 2, if a touch key signal is generated, the PNP transistor Q4 is turned on, and the touch key signal can be normally transmitted to the main control chip through the PNP transistor Q4. The main control chip can perform corresponding operations according to the touch key signal.
[0102] The main control chip receives the last touch key signal, and after a preset time, the main control chip does not detect the touch key signal again. At this time, the main control chip outputs a high-level signal to the base of the NPN transistor Q5. After the NPN transistor Q5 is turned on, the NPN transistor Q5 will pull down the base of the NPN transistor Q3, so that the NPN transistor Q3 is turned off. At the same time, the base of the PNP transistor Q2 returns to a high level and is in a cut-off state. At this time, the self-locking circuit is turned off. If the voice recognition module does not recognize that someone is approaching, state 2 is turned off and returns to state 1.
[0103] When the voice recognition module recognizes that someone is approaching and the self-locking circuit is turned on, the entire circuit is no longer controlled by the audio signal, and the main control chip can normally recognize the touch button signal. When the main control chip controls the NPN transistor Q5 to conduct, the self-locking circuit is turned off, and after returning to state 1, the voice recognition module starts to recognize whether someone is approaching again.
[0104] See also Figure 2 , the speech recognition module in the present invention also includes a microphone and a storage module;
[0105] The microphone is used to collect the ambient sound after ADC conversion;
[0106] The storage module stores sound signals with a preset base frequency range;
[0107] When the ambient sound collected by the microphone is within the preset fundamental frequency range, the speech recognition module sends a high-level signal.
[0108] The microphone of the smart device is always in operation. When the microphone is working normally, it will always collect the sound of the surrounding environment. When the surrounding environment emits sound, it is collected by the normally working microphone and converted by the ADC. The voice recognition module detects whether the sound is within the preset base frequency range and outputs an audio signal.
[0109] If the voice recognition module detects that the sound is within the preset base frequency range, the audio signal is at a high level, otherwise it is at a low level.
[0110] The preset fundamental frequency range is the fundamental frequency range of human voice.
[0111] Recognizing human voices mainly involves identifying the sound features produced by vocal cord vibrations. These features have a certain degree of commonality in all people's speeches, such as the fundamental frequency of vocal cord vibrations: the fundamental frequency of vocal cord vibrations for men is usually between 85Hz and 180Hz, and the fundamental frequency range for women is 165Hz to 255Hz. Different people's gaits, shoes, and ground materials will affect the characteristics of footsteps. Using a diverse data set to cover these variables can achieve the goal of identifying comprehensive footsteps.
[0112] See also Figure 1 , which is the overall working flow diagram of the touch key control circuit in the present invention. After the device is powered on and initialized, the microphone starts to collect external sounds and then identifies whether someone is approaching. When it is identified that someone is approaching, the main control chip starts to detect the touch key signal. After detecting the touch key signal, it can normally enter the main control chip for identification, so that the working device executes the action corresponding to the touch key signal.
[0113] The present invention also provides a touch device, wherein the touch device has the above touch key control circuit.
[0114] Compared with the prior art, the present invention has at least the following beneficial effects:
[0115] The touch button control circuit proposed in the present invention is provided with a driving circuit connected between the main control chip and the touch button. The driving circuit is in a disconnected state when no one is around, which can avoid the probability of accidental touch when no one is operating. At the same time, the present invention can continuously provide a driving signal through a self-locking circuit when someone approaches, thereby maintaining the continuous conduction of the driving circuit and ensuring the stability of the key operation. All functions of the present invention are implemented through hardware circuits, without the need to add additional software algorithms, and have high reliability.
[0116] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A touch key control circuit, comprising a main control chip and a touch key connected to the main control chip, characterized in that: A driving circuit is connected in series between the main control chip and the touch button; The touch key control circuit further includes: a voice recognition module for identifying whether a person is approaching, and a voice control module for controlling the driving circuit to be turned on when a person is approaching; When the driving circuit is turned on, the main control chip can receive a touch key signal sent by the touch key.
2. The touch key control circuit according to claim 1, characterized in that: The voice control module comprises: A self-locking circuit, which is used to provide a continuous driving signal to the driving circuit when someone approaches, so as to maintain the conducting state of the driving circuit; a trigger circuit connected between the voice recognition module and the self-locking circuit, and configured to trigger the self-locking circuit when the voice recognition module detects that someone is approaching; A reset circuit is connected between the main control chip and the self-locking circuit, and is used to close the self-locking circuit after the touch button completes the touch instruction.
3. The touch key control circuit according to claim 2, characterized in that: The trigger circuit includes: a resistor R1, a resistor R6, and an NPN transistor Q1; The collector of the NPN transistor Q1 is connected to the power supply, the base of the NPN transistor Q1 is connected in series with the resistor R6 and then connected to the output end of the voice recognition module, and the emitter of the NPN transistor Q1 is connected in series with the resistor R1 and then grounded.
4. The touch key control circuit according to claim 3, characterized in that: The self-locking circuit includes: a resistor R2, a resistor R3, a resistor R4, a PNP transistor Q2, and an NPN transistor Q3; The collector of the NPN transistor Q3 is connected in series with the resistor R4 and then connected to the power supply, the emitter of the NPN transistor Q3 is grounded, and the base of the NPN transistor Q3 is connected in series with the resistor R3 and then connected between the emitter of the NPN transistor Q1 and the resistor R1; The emitter of the PNP transistor Q2 is connected to the power supply, the collector of the PNP transistor Q2 is connected in series with the resistor R2 and then connected between the resistor R3 and the emitter of the NPN transistor Q1, and the base of the PNP transistor Q2 is connected between the resistor R4 and the collector of the NPN transistor Q3.
5. The touch key control circuit according to claim 4, characterized in that: The reset circuit includes: a resistor R5 and an NPN transistor Q5; The collector of the NPN transistor Q5 is connected between the resistor R3 and the emitter of the NPN transistor Q1, the emitter of the NPN transistor Q5 is grounded, and the base of the NPN transistor Q5 is connected in series with the resistor R5 and then connected to the main control chip.
6. The touch key control circuit according to claim 5, characterized in that: The driving circuit comprises: a PNP transistor Q4; The collector of the PNP transistor Q4 is connected to the touch button, the emitter of the PNP transistor Q4 is connected to the main control chip, and the base of the PNP transistor Q4 is connected between the resistor R4 and the collector of the NPN transistor Q3.
7. The touch key control circuit according to claim 5, characterized in that: The main control chip provides a high level signal to the base of the NPN transistor Q5 through the resistor R5 only when the touch signal sent by the touch button is received and a preset time has passed.
8. The touch key control circuit according to claim 1, characterized in that: The speech recognition module also includes a microphone and a storage module; The microphone is used to collect the ambient sound after ADC conversion; The storage module stores sound signals having a preset fundamental frequency range; When the ambient sound collected by the microphone is within the preset fundamental frequency range, the speech recognition module sends a high level signal.
9. The touch key control circuit according to claim 8, characterized in that: The preset fundamental frequency range is the fundamental frequency range of human voice.
10. A touch device, characterized in that: The touch device comprises the touch key control circuit as claimed in any one of claims 1 to 9.