CN112152603A - Capacitive touch sensor and control method - Google Patents

Capacitive touch sensor and control method Download PDF

Info

Publication number
CN112152603A
CN112152603A CN202011079382.3A CN202011079382A CN112152603A CN 112152603 A CN112152603 A CN 112152603A CN 202011079382 A CN202011079382 A CN 202011079382A CN 112152603 A CN112152603 A CN 112152603A
Authority
CN
China
Prior art keywords
multifunctional control
control end
controlling
capacitor
touch sensor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011079382.3A
Other languages
Chinese (zh)
Other versions
CN112152603B (en
Inventor
苗帆
包月月
周虎
沈建于
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Kostal Huayang Automotive Electric Co Ltd
Kostal Shanghai Mechatronic Co Ltd
Original Assignee
Shanghai Kostal Huayang Automotive Electric Co Ltd
Kostal Shanghai Mechatronic Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Kostal Huayang Automotive Electric Co Ltd, Kostal Shanghai Mechatronic Co Ltd filed Critical Shanghai Kostal Huayang Automotive Electric Co Ltd
Priority to CN202011079382.3A priority Critical patent/CN112152603B/en
Publication of CN112152603A publication Critical patent/CN112152603A/en
Application granted granted Critical
Publication of CN112152603B publication Critical patent/CN112152603B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/94Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
    • H03K17/96Touch switches
    • H03K17/962Capacitive touch switches
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Electronic Switches (AREA)

Abstract

The application discloses capacitanc touch sensor and control method, including MCU, include: the circuit comprises a first capacitor, a second capacitor, a first resistor and a second resistor; one end of the first capacitor is connected with the first multifunctional control end of the MCU, the other end of the first capacitor, one end of the first resistor and one end of the second resistor are connected, the other end of the first resistor is connected with the second multifunctional control end of the MCU, the other end of the second resistor is connected with the second capacitor, and the other end of the second capacitor is connected with the touch functional film; according to the capacitive touch sensor, a special touch chip is not needed, and the existing MCU in the original system is utilized to build the capacitive touch sensor, so that the cost is reduced. Meanwhile, the MCU has higher flexibility support degree to the circuit, so that specific parameters of the device can be changed according to actual application requirements, and the electromagnetic compatibility characteristic is improved while the accuracy is ensured.

Description

Capacitive touch sensor and control method
Technical Field
The invention relates to the technical field of electronics, in particular to a capacitive touch sensor and a control method.
Background
In the last decade, mobile devices such as mobile phones and tablet computers have led to the trend of one-wave touch operation in the field of human-computer interaction. Capacitive touch sensors, commonly used in mobile electronic devices, have gained market acceptance with a concomitant demand for higher performance of capacitive sensors.
Meanwhile, with the development of the automobile industry, in order to enable a driver or a passenger to operate more and more functions as simply and quickly as possible, the development of the automobile industry also becomes a design challenge in the field of human-computer interaction in the automobile industry.
For this reason, capacitive sensors used in the automotive industry tend to have more stringent design requirements. The concrete expression is as follows: smaller response delay, higher reliability, and electromagnetic compatibility. In the industry at present, the touch function is usually realized by a dedicated touch chip, or signals need to be amplified by an operational amplifier. Therefore, the cost of the sensor is high and cannot be reduced; meanwhile, if a dedicated touch chip is used, the effect of optimizing the electromagnetic compatibility characteristic by adjusting parameters is often very limited, even cannot be adjusted, and the dedicated touch chip does not have the potential of optimizing the electromagnetic compatibility characteristic.
Therefore, there is a need for a lower cost, more reliable capacitive touch sensor.
Disclosure of Invention
In view of the above, the present invention provides a capacitive touch sensor and a control method thereof, which can reduce the cost and improve the reliability and accuracy. The specific scheme is as follows:
a capacitive touch sensor, comprising an MCU, comprising: the circuit comprises a first capacitor, a second capacitor, a first resistor and a second resistor;
one end of the first capacitor is connected with the first multifunctional control end of the MCU, the other end of the first capacitor, one end of the first resistor and one end of the second resistor are connected, the other end of the first resistor is connected with the second multifunctional control end of the MCU, the other end of the second resistor is connected with the second capacitor, and the other end of the second capacitor is connected with the touch functional film.
Optionally, the capacitive touch sensor applied to the above includes:
s11: controlling the first multifunctional control end and the second multifunctional control end to fully discharge all capacitors;
s12: controlling the first multifunctional control end to charge all capacitors and controlling the second multifunctional control end to be in a suspended state;
s13: controlling the first multifunctional control end to be in a suspended state, and controlling the second multifunctional control end to be in a grounding state;
s14: repeating S12 and S13 until a preset cycle number is reached;
s15: controlling the second multifunctional control end to be in a grounding state, and controlling the first multifunctional control end to measure the current voltage on the port of the first multifunctional control end;
s16: and judging the touch state on the touch surface according to the current voltage on the first multifunctional control end port.
Optionally, the step of controlling the first multifunctional control terminal to charge all the capacitors includes:
and controlling the first multifunctional control end to charge all capacitors in a high-potential pull-up mode.
Optionally, after the controlling the first multifunctional control terminal to measure the voltage at the current first multifunctional control terminal port, the method further includes:
and controlling the first multifunctional control end and the second multifunctional control end to fully discharge all the capacitors.
The invention also discloses a control method of the capacitive touch sensor, which is applied to the capacitive touch sensor and comprises the following steps:
s21: controlling the first multifunctional control end and the second multifunctional control end to fully discharge all capacitors;
s22: controlling the first multifunctional control end to charge all capacitors and controlling the second multifunctional control end to be in a suspended state;
s23: controlling the first multifunctional control end to be in a suspended state, and controlling the second multifunctional control end to be in a grounding state;
s24: repeating S22 and S23 until reaching the preset number of charge accumulation cycles;
s25: controlling the first multifunctional control end to measure the voltage on the current first multifunctional control end port;
s26: repeating S22-S25 until reaching the preset number of measurement cycles;
s27: and judging the touch state on the touch surface according to the voltage on the current first multifunctional control end port measured by the first multifunctional control end for the last time.
Optionally, the step of controlling the first multifunctional control terminal to charge all the capacitors includes:
and controlling the first multifunctional control end to charge all capacitors in a high-potential pull-up mode.
In the present invention, a capacitive touch sensor, including an MCU, includes: the circuit comprises a first capacitor, a second capacitor, a first resistor and a second resistor; one end of the first capacitor is connected with a first multifunctional control end of the MCU, the other end of the first capacitor, one end of the first resistor and one end of the second resistor are connected, the other end of the first resistor is connected with a second multifunctional control end of the MCU, the other end of the second resistor is connected with the second capacitor, and the other end of the second capacitor is connected with the touch functional film.
The invention does not need to use a special touch chip, but utilizes the existing MCU in the original system to build the capacitive touch sensor, thereby reducing the cost. Meanwhile, the MCU has higher flexibility support degree to the circuit, so that specific parameters of the device can be changed according to actual application requirements, and the electromagnetic compatibility characteristic is improved while the accuracy is ensured.
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 embodiments of the invention, and that for a person skilled in the art, other drawings can be obtained from the provided drawings without inventive effort.
FIG. 1 is a circuit topology diagram of a capacitive touch sensor according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a capacitive touch sensor according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a control method for a capacitive touch sensor according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating another capacitive touch sensor control method according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. 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.
An embodiment of the present invention discloses a capacitive touch sensor, which is shown in fig. 1, and includes an MCU1(MCU, Microcontroller Unit, micro control Unit), including: the circuit comprises a first capacitor C1, a second capacitor C2, a first resistor R1 and a second resistor R2;
one end of a first capacitor C1 is connected with a first multifunctional control end 2 of the MCU1, the other end of the first capacitor C1, one end of a first resistor R1 and one end of a second resistor R2 are connected, the other end of the first resistor R1 is connected with a second multifunctional control end 3 of the MCU1, the other end of the second resistor R2 is connected with a second capacitor C2, and the other end of the second capacitor C2 is connected with a touch functional film C3.
Specifically, in the embodiment of the present invention, a separate touch chip is not used, and the existing MCU1 in the existing system is selected for control, so that the capacitive touch sensor in the embodiment of the present invention can be applied to various vehicle-mounted systems. For example, the MCU1 of an air conditioning module, an instrument panel module, or a window switch module in a vehicle may be used to implement a touch control function required by a capacitive touch sensor, thereby saving the cost caused by adding a touch chip. For another example, the touch function of the air conditioner switch panel with the touch function can be realized by combining the capacitive touch sensor of the embodiment of the present invention with the existing main control MCU of the panel itself, without adding a dedicated touch function chip.
The first multifunctional control terminal 2 and the second multifunctional control terminal 3 of the MCU1 can be switched to a pull-up state to provide voltage to the circuit to charge the capacitor in the capacitive touch sensor, or switched to a ground state to discharge the capacitor in the capacitive touch sensor, or switched to a floating state, i.e., switched to an NC state to suspend the capacitive touch sensor. The first multifunctional control terminal 2 of the MCU1 can also be switched to an ADC state to detect the voltage on the first capacitor C1.
It is understood that the circuit of the embodiment of the present invention interacts with the surrounding environment in practical use to generate a corresponding parasitic capacitance and parasitic resistance, as shown in fig. 2, including a first equivalent parasitic capacitance Cp1 and a second equivalent parasitic capacitance Cp2, wherein the touch functional film C3 may be equivalent to a varying capacitance C3.
Specifically, one end of the first equivalent parasitic capacitor Cp1 is connected to the second multifunctional control terminal 3 of the MCU1, the other end of the first equivalent parasitic capacitor Cp1 is grounded, one end of the second equivalent parasitic capacitor Cp2 is connected to the first multifunctional control terminal 2 of the MCU1, and the other end of the second equivalent parasitic capacitor Cp2 is grounded.
Specifically, in actual use, the touch functional film C3, i.e., the variable capacitance C3, undergoes a capacitance change of the picofarad level due to the approach, contact, or separation of a finger or a conductor. In operation, all capacitors in the circuit are charged multiple times at high frequency. The charges on the first equivalent parasitic capacitor Cp1, the second capacitor C2 and the measured target variable capacitor C3 are continuously accumulated in the first capacitor C1, and finally the voltage value of the first capacitor C1 is measured through the first multifunctional control terminal 2 of the MCU1, so as to achieve the purpose of measuring the variable capacitor C3.
Wherein, the current RC circuit is fully charged during each charging so as to carry out full charging.
Because the capacitance of the varying capacitance C3 is related to the three states of finger or other conductor approach, contact, and departure. Therefore, the capacitance value change of the variable capacitor C3 can be indirectly reflected by measuring the voltage value of the first capacitor C1. Therefore, after one measurement is completed, the above-mentioned operation is executed again, and the voltage value of the first capacitor C1 measured in each measurement is compared with the preset threshold value, so that the approach, contact or separation of the finger or other conductor to, from or to the touch functional film C3 can be sensed.
For example, the voltage threshold a, the threshold B, and the threshold C of the first capacitance C1 may be set corresponding to three stages of approaching, contacting, or separating from the touch functional film C3, respectively. For example, when a finger does not approach the touch functional film C3, the voltage of the first capacitor C1 is lower than the threshold a, when the finger approaches the touch functional film C3, the voltage of the first capacitor C1 measured each time continuously rises, and when the voltage exceeds the threshold a, it can be determined that the product is in a stage where the finger approaches the touch functional film C3; when the voltage of the first capacitor C1 continues to rise and exceed the threshold value B, it can be judged that the finger contacts the preset touch surface of the product; when the finger is far away from the touch functional film C3, the voltage of the first capacitor C1 will drop, and when the voltage is lower than the threshold C, it can be determined that the product belongs to the stage when the finger is far away from the touch functional film C3. By comparing the threshold value of each stage with the change of the original signal quantity, namely the voltage change of the first capacitor C1 measured each time, the three states of approach, contact and departure of the finger or other conductors can be judged. According to the judging method, the capacitive touch sensor can send out a touch signal to other functional modules so as to feed back the operation of the user. Of course, after the capacitive touch sensor measures the three stages, corresponding reactions can be set according to actual application requirements, which is not described herein, and the embodiment of the present invention focuses on that the capacitive touch sensor can detect the three stages.
The product may be a device incorporating the capacitive touch sensor according to the embodiment of the present invention, for example, a device such as a smartphone or a touch panel including the capacitive touch sensor according to the embodiment of the present invention and other modules such as the touch functional film C3.
In particular, the automotive industry often has electromagnetic compatibility requirements for the electronic products used. High frequency circuits tend to radiate electromagnetic waves of a certain frequency outward. In order to solve the problem, the electromagnetic compatibility characteristic of the sensor can be improved by adjusting the parameters of the components by combining the circuit. The resistance values of the first resistor R1 and the second resistor R2 can be independently or cooperatively adjusted to reduce the charging and discharging speed in the charging process and the discharging process, so that the radiation to the outside is reduced. For example, the resistance value is increased accordingly. Meanwhile, the capacitance values of the first capacitor C1 and the second capacitor C2 can be adjusted according to actual requirements, so that the sensor achieves better electromagnetic compatibility characteristics.
Therefore, the embodiment of the invention does not adopt an independent touch chip, and the existing MCU1 is utilized to build the capacitive touch sensor, so that the cost of the whole system is reduced. Meanwhile, the MCU1 has higher flexibility support degree to the circuit, so that specific parameters of the device can be changed according to actual application requirements, and the electromagnetic compatibility characteristic is improved while the accuracy is ensured.
Correspondingly, the embodiment of the invention also discloses a capacitive touch sensor control method, which is shown in fig. 2 and fig. 3 and is applied to the capacitive touch sensor, and the method comprises the following steps:
s11: controlling the first multifunctional control end 2 and the second multifunctional control end 3 to fully discharge all capacitors;
s12: the first multifunctional control end 2 is controlled to charge all capacitors, and the second multifunctional control end 3 is controlled to be in a suspension state;
s13: controlling the first multifunctional control end 2 to be in a suspended state, and controlling the second multifunctional control end 3 to be in a grounding state;
s14: repeating S12 and S13 until a preset cycle number is reached;
s15: controlling the second multifunctional control end 3 to be in a grounding state, and controlling the first multifunctional control end 2 to measure the current voltage on the port of the first multifunctional control end;
s16: and judging the touch state on the touch surface according to the current voltage on the first multifunctional control end port.
The touch surface is a touch surface for touch of a product comprising the capacitive touch sensor.
Specifically, first, both the first multifunctional control terminal 2 and the second multifunctional control terminal 3 can be switched to a grounding state, i.e. a ground level (GND), through the MCU1, and the charges in all the capacitors are fully discharged.
Then, the MCU1 switches the first multi-function control terminal 2 to a power state, i.e., a power supply gear (VCC), and the second multi-function control terminal 3 to a floating state, i.e., a floating gear (NC), to charge all capacitors in the circuit. Then, the MCU1 switches the first multi-function control terminal 2 to the suspension position (NC) and the second multi-function control terminal 3 to the ground position (GND), so that the circuit is suspended.
In this phase, the first parasitic capacitance Cp1And the charges of the second capacitor C2 and the variable capacitor C3 spontaneously move to the first capacitor C1, thereby charging the first capacitor C1. And then, the capacitor is continuously and repeatedly charged and discharged. In which a charge and discharge is performed once and is referred to as a charge cycle. And entering a measuring link after a plurality of charging cycles.
In the measurement link, the MCU1 switches the first multifunctional control terminal 2 to an analog-to-digital converter (ADC) and the second multifunctional control terminal 3 to a Ground (GND) stage. The voltage value on the first capacitor C1 is read by the first multifunctional control terminal 2, and one measurement is completed.
Specifically, the time required for one complete probing process (S11 to S16) is within the range of 2.5ms to 5 ms.
Therefore, the embodiment of the invention is based on the capacitive touch sensor, and detects the touch state between the touch surface and the finger or other conductors through the structure and the measurement step of the capacitive touch sensor, thereby realizing the touch function.
Specifically, the step S12 is to control the first multifunctional control terminal 2 to charge all the capacitors, which may specifically be to control the first multifunctional control terminal 2 to charge all the capacitors in a high-potential pull-up mode; the voltage output of the first multifunctional control end 2 can be slowed down by adopting a high-potential pull-up mode, the charging time is prolonged, and therefore the electromagnetic compatibility characteristic of the sensor is improved.
In addition, the capacitive sensor can be adjusted and changed correspondingly according to the specific conditions of the product, such as the size of the product, the size of the touch area, the specific electromagnetic compatibility requirement and other factors. For example, the charging time is not consistent, that is, the charging time of the power supply in the MCU1 to each capacitor in the S12 phase and the absorbing time of the charges of the other capacitors in the first capacitor C1 in the S13 phase, that is, the floating time, are set by a program, to be different from each other in each repetition. By the control mode, electromagnetic waves radiated outwards by the sensor can be reduced in a specific frequency band, so that the electromagnetic compatibility of the sensor is improved; in addition, the preset number of cycles of S12 and S13, i.e., the number of cycles of step S14, may be adjusted. By reducing the number of cycles, the amount of signal is reduced, but the interference received by the sensor is correspondingly reduced. Through reasonable setting of the cycle number, the electromagnetic compatibility characteristic of the sensor can be improved.
Further, after the first multifunctional control terminal 2 is controlled to measure the voltage at the current first multifunctional control terminal port at S15, the first multifunctional control terminal 2 and the second multifunctional control terminal 3 can be controlled to be grounded to fully discharge all capacitors, so as to perform the next measurement and end the current measurement.
Correspondingly, another capacitive touch sensor control method is further disclosed in the embodiments of the present invention, as shown in fig. 2 and fig. 4, and is applied to the capacitive touch sensor described above, and the method includes:
s21: controlling the first multifunctional control end 2 and the second multifunctional control end 3 to fully discharge all capacitors;
s22: the first multifunctional control end 2 is controlled to charge all capacitors, and the second multifunctional control end 3 is controlled to be in a suspension state;
s23: controlling the first multifunctional control end 2 to be in a suspended state, and controlling the second multifunctional control end 3 to be in a grounding state;
s24: repeating S22 and S23 until reaching the preset number of charge accumulation cycles;
s25: controlling the first multifunctional control end 2 to measure the current voltage on the port of the first multifunctional control end;
s26: repeating S22-S25 until reaching the preset number of measurement cycles;
s27: and judging the touch state on the touch surface according to the last voltage on the port of the first multifunctional control end measured by the first multifunctional control end 2.
Specifically, in order to reduce the influence of errors, the discharging process is not directly performed after the charge accumulation process is performed once, but the charge accumulation cycle is continued, S22 and S23 are repeatedly performed until the preset number of charge accumulation cycles is reached, and the charge on the variable capacitor C3 is accumulated to the first capacitor C1 by the charge accumulation cycles multiple times.
Specifically, after the preset plurality of charge accumulation cycles are completed, S25 is executed to measure the voltage value of the first capacitor C1 after one charge cycle. After measuring the voltage, the next measurement is not performed by directly discharging, but the process from S22 to S25 is performed again, and the measurement is performed continuously, forming a larger measurement cycle. Thus, in the process of continuously accumulating the charge on the first capacitor C1, a plurality of measurements are carried out until a preset number of measurement cycles is reached, and finally, a whole detection process is completed, and because errors of each measurement are accumulated, mutual cancellation phenomena exist among random errors. Therefore, the measurement cycle described above helps reduce the influence of errors on the measurement result, and can reflect the touch state on the touch surface more accurately.
Specifically, after the number of measurement cycles executed in S26 is repeated, the last current voltage at the first multifunctional control port measured in S25 in the last measurement cycle is obtained, and the touch state on the touch surface can be determined according to the last current voltage at the first multifunctional control port.
Therefore, the embodiment of the invention provides a capacitive touch sensor control method with smaller error and more accuracy based on the capacitive touch sensor.
Specifically, the step S22 is to control the first multifunctional control terminal 2 to charge all the capacitors, which may specifically be to control the first multifunctional control terminal 2 to charge all the capacitors in a high-potential pull-up mode; the voltage output of the first multifunctional control end 2 can be slowed down by adopting a high-potential pull-up mode, the charging time is prolonged, and therefore the electromagnetic compatibility characteristic of the sensor is improved.
In addition, the capacitance type sensor can be adjusted and changed according to specific conditions of a product, such as the size of the product, the size of a touch function membrane, specific electromagnetic compatibility requirements and other factors, for example, the time of each charging is inconsistent, namely, the time of charging each capacitor from the power supply in the MCU1 in the stage S22 and the time of absorbing other capacitor charges by the first capacitor C1 in the stage S23, namely the floating time, are different from each other in each repetition. By the control mode, electromagnetic waves radiated outwards by the sensor can be reduced in a specific frequency band, so that the electromagnetic compatibility of the sensor is improved. In addition, the preset number of cycles can be controlled. For example, the number of charge accumulation cycles and the number of measurement cycles are reduced, and the number of cycles is reduced, thereby reducing the amount of signals and the interference received by the sensor. Through reasonable setting of the cycle number, the electromagnetic compatibility characteristic of the sensor can be improved.
Further, after the last voltage at the port of the first multifunctional control terminal is measured in S27, the first multifunctional control terminal 2 and the second multifunctional control terminal 3 may be controlled to fully discharge all capacitors, so as to perform the next measurement, and end the current measurement.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The technical content provided by the present invention is described in detail above, and the principle and the implementation of the present invention are explained in this document by applying specific examples, and the above description of the examples is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (6)

1. A capacitive touch sensor comprising an MCU, comprising: the circuit comprises a first capacitor, a second capacitor, a first resistor and a second resistor;
one end of the first capacitor is connected with the first multifunctional control end of the MCU, the other end of the first capacitor, one end of the first resistor and one end of the second resistor are connected, the other end of the first resistor is connected with the second multifunctional control end of the MCU, the other end of the second resistor is connected with the second capacitor, and the other end of the second capacitor is connected with the touch functional film.
2. A capacitive touch sensor control method applied to the capacitive touch sensor according to claim 1, comprising:
s11: controlling the first multifunctional control end and the second multifunctional control end to fully discharge all capacitors;
s12: controlling the first multifunctional control end to charge all capacitors and controlling the second multifunctional control end to be in a suspended state;
s13: controlling the first multifunctional control end to be in a suspended state, and controlling the second multifunctional control end to be in a grounding state;
s14: repeating S12 and S13 until a preset cycle number is reached;
s15: controlling the second multifunctional control end to be in a grounding state, and controlling the first multifunctional control end to measure the current voltage on the port of the first multifunctional control end;
s16: and judging the touch state on the touch surface according to the current voltage on the first multifunctional control end port.
3. The capacitive touch sensor control method of claim 2, wherein the controlling the first multifunctional control terminal to charge all capacitors comprises:
and controlling the first multifunctional control end to charge all capacitors in a high-potential pull-up mode.
4. The capacitive touch sensor control method of claim 2 or 3, wherein after controlling the first multi-function control terminal to measure the voltage at the current first multi-function control terminal port, further comprising:
and controlling the first multifunctional control end and the second multifunctional control end to fully discharge all the capacitors.
5. A capacitive touch sensor control method applied to the capacitive touch sensor according to claim 1, comprising:
s21: controlling the first multifunctional control end and the second multifunctional control end to fully discharge all capacitors;
s22: controlling the first multifunctional control end to charge all capacitors and controlling the second multifunctional control end to be in a suspended state;
s23: controlling the first multifunctional control end to be in a suspended state, and controlling the second multifunctional control end to be in a grounding state;
s24: repeating S22 and S23 until reaching the preset number of charge accumulation cycles;
s25: controlling the first multifunctional control end to measure the voltage on the current first multifunctional control end port;
s26: repeating S22-S25 until reaching the preset number of measurement cycles;
s27: and judging the touch state on the touch surface according to the voltage on the current first multifunctional control end port measured by the first multifunctional control end for the last time.
6. The capacitive touch sensor control method of claim 5, wherein the controlling the first multifunctional control terminal to charge all capacitors comprises:
and controlling the first multifunctional control end to charge all capacitors in a high-potential pull-up mode.
CN202011079382.3A 2020-10-10 2020-10-10 Capacitive touch sensor and control method Active CN112152603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011079382.3A CN112152603B (en) 2020-10-10 2020-10-10 Capacitive touch sensor and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011079382.3A CN112152603B (en) 2020-10-10 2020-10-10 Capacitive touch sensor and control method

Publications (2)

Publication Number Publication Date
CN112152603A true CN112152603A (en) 2020-12-29
CN112152603B CN112152603B (en) 2023-04-14

Family

ID=73952924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011079382.3A Active CN112152603B (en) 2020-10-10 2020-10-10 Capacitive touch sensor and control method

Country Status (1)

Country Link
CN (1) CN112152603B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101213461A (en) * 2005-06-03 2008-07-02 辛纳普蒂克斯公司 Methods and systems for detecting a capacitance using SIGMA-DELTA measurement techniques
US20080251299A1 (en) * 2007-04-13 2008-10-16 Generalplus Technology Inc. Capacitance touch sensor
CN101499793A (en) * 2008-01-31 2009-08-05 杭州利尔达科技有限公司 Capacitor induction type touch press-key based on MCU and measuring method for touch press-key capacitance
CN201467099U (en) * 2009-06-08 2010-05-12 深圳市鑫汇科科技有限公司 Capacitive sensing key circuit and keyboard
CN201518478U (en) * 2009-09-25 2010-06-30 赣州市英唐电子科技有限公司 Capacitive touch induction circuit
CN201577081U (en) * 2009-12-18 2010-09-08 宁波舜韵电子有限公司 Capacitive touch induction key circuit
CN101900574A (en) * 2009-05-28 2010-12-01 瑞萨电子株式会社 Differentiate human body and touch electrode contactless semiconductor devices and tactile sensor are arranged
JP2011257882A (en) * 2010-06-07 2011-12-22 Toyota Boshoku Corp Touch sensor and touch detection method
CN102522975A (en) * 2011-11-29 2012-06-27 四川长虹电器股份有限公司 Adaptive-environmental touch key circuit and key touch detection method
US20190181860A1 (en) * 2017-12-12 2019-06-13 Nxp Usa, Inc. Reduction of Capacitive Touch Sense Electrode Sample Value Change When Electrode Scan Period is Changed

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101213461A (en) * 2005-06-03 2008-07-02 辛纳普蒂克斯公司 Methods and systems for detecting a capacitance using SIGMA-DELTA measurement techniques
CN101283507A (en) * 2005-06-03 2008-10-08 辛纳普蒂克斯公司 Methods and systems for switched charge transfer capacitance measuring using shared components
US20080251299A1 (en) * 2007-04-13 2008-10-16 Generalplus Technology Inc. Capacitance touch sensor
CN101499793A (en) * 2008-01-31 2009-08-05 杭州利尔达科技有限公司 Capacitor induction type touch press-key based on MCU and measuring method for touch press-key capacitance
CN101900574A (en) * 2009-05-28 2010-12-01 瑞萨电子株式会社 Differentiate human body and touch electrode contactless semiconductor devices and tactile sensor are arranged
CN201467099U (en) * 2009-06-08 2010-05-12 深圳市鑫汇科科技有限公司 Capacitive sensing key circuit and keyboard
CN201518478U (en) * 2009-09-25 2010-06-30 赣州市英唐电子科技有限公司 Capacitive touch induction circuit
CN201577081U (en) * 2009-12-18 2010-09-08 宁波舜韵电子有限公司 Capacitive touch induction key circuit
JP2011257882A (en) * 2010-06-07 2011-12-22 Toyota Boshoku Corp Touch sensor and touch detection method
CN102522975A (en) * 2011-11-29 2012-06-27 四川长虹电器股份有限公司 Adaptive-environmental touch key circuit and key touch detection method
US20190181860A1 (en) * 2017-12-12 2019-06-13 Nxp Usa, Inc. Reduction of Capacitive Touch Sense Electrode Sample Value Change When Electrode Scan Period is Changed

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
CHENCHI ERIC LUO: "A low power self-capacitive touch sensing analog front end with sparse multi-touch detection", 《IEEE》 *
CHENCHI ERIC LUO: "A low power self-capacitive touch sensing analog front end with sparse multi-touch detection", 《IEEE》, 14 July 2014 (2014-07-14) *
史明: "《一种基于通用微控制器的电容滑条传感器的设计与实现》", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》 *
史明: "《一种基于通用微控制器的电容滑条传感器的设计与实现》", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》, 15 January 2020 (2020-01-15) *

Also Published As

Publication number Publication date
CN112152603B (en) 2023-04-14

Similar Documents

Publication Publication Date Title
US8415957B2 (en) Capacitance measurement circuit and method
US9442144B1 (en) Capacitive field sensor with sigma-delta modulator
US9702914B2 (en) Capacitance measurement device and electronic device thereof
EP2637308B1 (en) Method for judging capacitance type touch buttons
EP3640779B1 (en) Capacitance detection circuit, touch chip and electronic device
CN102200869B (en) Capacitance type touch control device and sensing device thereof
US20110122089A1 (en) Signal processing circuit for electrostatic capacity type touch panel
CN110300897A (en) Capacitive detection circuit, touch device and terminal device
CN111801584B (en) Capacitance detection circuit, touch device and terminal equipment
US7755614B2 (en) Motion detection system and motion detection method
JP5517251B2 (en) Touch sensor and touch detection method
CN104808847A (en) Anti-interference method and device for detection of touch screen, touch sensor and touch terminal
CN112152603B (en) Capacitive touch sensor and control method
CN102042867A (en) Shock detection circuit
CN102227700A (en) Puck-type pointing apparatus, pointing system, and pointing method
US9823772B2 (en) Sensing device
CN101738543A (en) Anti-interference capacitor detection device and method
US10775526B2 (en) Capacitance detecting device
CN116203411A (en) Touch key capacitance detection method and system applied to MCU
CN110221094B (en) Airflow detection circuit and device
CN112161673B (en) Accurate capacitive liquid level detection circuit and adjustment mode
CN109407867B (en) Touch detection system, detection method thereof and touch device
JP2015064771A (en) Touch panel device
CN111106820B (en) Touch key control system and control method thereof
CN101738542A (en) Anti-interference capacitor detection device and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant