CN107425839B - Trigger test method and system for product containing capacitive sensor - Google Patents

Trigger test method and system for product containing capacitive sensor Download PDF

Info

Publication number
CN107425839B
CN107425839B CN201710632264.2A CN201710632264A CN107425839B CN 107425839 B CN107425839 B CN 107425839B CN 201710632264 A CN201710632264 A CN 201710632264A CN 107425839 B CN107425839 B CN 107425839B
Authority
CN
China
Prior art keywords
capacitance
value
product
threshold value
trigger
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.)
Active
Application number
CN201710632264.2A
Other languages
Chinese (zh)
Other versions
CN107425839A (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 Management Co Ltd
Original Assignee
Shanghai Kostal Huayang Automotive Electric Co Ltd
Kostal Shanghai Management 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 Management Co Ltd filed Critical Shanghai Kostal Huayang Automotive Electric Co Ltd
Priority to CN201710632264.2A priority Critical patent/CN107425839B/en
Publication of CN107425839A publication Critical patent/CN107425839A/en
Application granted granted Critical
Publication of CN107425839B publication Critical patent/CN107425839B/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

Abstract

The application discloses a trigger test method and system for a product containing a capacitive sensor, wherein the method comprises the following steps: obtaining a first capacitance value formed after a product is pressed; obtaining a second capacitance value formed after the product is released; obtaining a capacitance calibration value of the product according to the first capacitance value and the second capacitance value; obtaining a capacitance deviation value according to the capacitance calibration value and a capacitance threshold value of the product; and writing the capacitance deviation value serving as a capacitance compensation value into a trigger algorithm of a product to obtain a compensation trigger algorithm. The trigger test method comprises the steps of calibrating each product, comparing a calibration result with a capacitance threshold value shared by batch products, and compensating a difference value serving as a compensation value into a trigger algorithm to obtain a compensation trigger algorithm. When the product is triggered, new triggering judgment can be carried out according to the compensation triggering algorithm, correct triggering and false triggering can be prevented, and the accuracy of product identification user triggering operation is improved.

Description

Trigger test method and system for product containing capacitive sensor
Technical Field
The invention relates to the technical field of calibration compensation testing of a capacitive sensor, in particular to a trigger testing method of a product containing the capacitive sensor. Also relates to a trigger test system based on the trigger test method.
Background
Product that contains capacitive sensor, like capacitive sensing touch switch, compare with traditional mechanical type switch, capacitive sensing touch switch does not need human direct contact metal, can thoroughly eliminate the potential safety hazard, even take gloves also can use to do not receive influences such as the dry moist human resistance change of weather, it is more convenient to use. The capacitive touch sensor of the capacitive sensing touch switch can be placed behind any insulating layer (typically glass or plastic material) and can be easily made into a keypad that is sealed from the surrounding environment.
The triggering action of a product containing a capacitive sensor is that a finger touches a sensing area of the product, two capacitance values of the sensing area are obtained by pressing and releasing, if the difference value of the two capacitance values exceeds the capacitance threshold value of the sensing area, the product is successfully triggered, and for a capacitive sensing touch switch, if the difference value of the two capacitance values after pressing and releasing exceeds the capacitance threshold value of the switch, the capacitive sensing touch switch can be turned on or turned off.
However, for the mass-produced products containing capacitive sensors with the same capacitance threshold, the capacitance difference obtained by the trigger action of an individual product cannot reach the capacitance threshold, so that the product cannot be successfully triggered and the trigger operation of a user cannot be correctly identified; or the precision and the sensitivity of individual products are high, and the capacitance difference obtained by the trigger action greatly exceeds the capacitance threshold value, so that the products are easily interfered by the external environment, false triggering is caused, and the trigger operation of a user cannot be correctly identified.
In summary, how to solve the problem that the product with the capacitive sensor cannot correctly identify the trigger operation of the user becomes a problem to be solved urgently by those skilled in the art.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method for triggering and testing a product including a capacitive sensor, so as to improve the accuracy of the triggering operation of the product for identifying a user.
Another object of the present invention is to provide a trigger test system based on the trigger test method, so as to improve the accuracy of product identification user trigger operation.
In order to achieve the purpose, the invention provides the following technical scheme:
a method of triggered testing of a product containing a capacitive sensor, comprising:
s100, obtaining a first capacitance value formed after the product is pressed;
s200, acquiring a second capacitance value formed after the product is released;
s300, obtaining a capacitance calibration value of the product according to the first capacitance value and the second capacitance value;
s400, obtaining a capacitance deviation value according to the capacitance calibration value and the capacitance threshold value of the product;
and S500, writing the capacitance deviation value serving as a capacitance compensation value into a trigger algorithm of the product to obtain a compensation trigger algorithm.
Preferably, in the above trigger test method, the step S300 specifically includes: and subtracting the first capacitance value from the second capacitance value to obtain the capacitance calibration value.
Preferably, in the above trigger test method, the step S400 specifically includes: and subtracting the capacitance calibration value from the capacitance threshold value to obtain the capacitance deviation value.
Preferably, in the above trigger test method, the trigger algorithm in step S500 is:
subtracting a pressing capacitance value formed after the product is pressed from a release capacitance value formed after the product is released to obtain a capacitance threshold value;
and comparing the capacitance threshold value with the capacitance threshold value, if the capacitance threshold value is larger than or equal to the capacitance threshold value, the product is successfully triggered, and if the capacitance threshold value is smaller than the capacitance threshold value, the product is not successfully triggered.
Preferably, in the above trigger test method, the compensation trigger algorithm in step S500 is:
subtracting a pressing capacitance value formed after the product is pressed from a release capacitance value formed after the product is released to obtain a capacitance threshold value;
adding or subtracting the capacitance compensation value and the capacitance threshold value to obtain a corrected capacitance threshold value;
and comparing the corrected capacitance threshold value with the capacitance threshold value, wherein if the corrected capacitance threshold value is larger than or equal to the capacitance threshold value, the product is successfully triggered, and if the corrected capacitance threshold value is smaller than the capacitance threshold value, the product is not successfully triggered.
Preferably, in the above trigger test method, the pressing of the product in step S100 specifically presses the product with a metal simulation finger.
Preferably, in the above trigger test method, the metal simulation finger is driven by a robot arm to perform pressing and releasing operations, and the step S100 specifically includes:
s101, sending a pressing instruction to the robot arm, and controlling the robot arm to drive the metal simulation finger to press the product;
s102, obtaining the first capacitance value which is sent by the product and formed after being pressed;
the step S200 is specifically:
s201, sending a release instruction to the robot arm, and controlling the robot arm to drive the metal simulation finger to release from the product;
s202, obtaining the second capacitance value formed after the product is released.
The embodiment of the invention also provides a trigger test system of a product containing the capacitive sensor, which comprises the following components:
the processor is used for acquiring a first capacitance value formed after the product is pressed, acquiring a second capacitance value formed after the product is released, acquiring a capacitance calibration value of the product according to the first capacitance value and the second capacitance value, acquiring a capacitance deviation value according to the capacitance calibration value and a capacitance threshold value of the product, and writing the capacitance deviation value into a trigger algorithm of the product as a capacitance compensation value to obtain a compensation trigger algorithm;
the processor is in communication connection with the product through the communication module;
and the test fixture is used for fixing the product.
Preferably, in the above trigger test system, a metal dummy finger is further included for pressing the product.
Preferably, in the above trigger test system, the trigger test system further includes a robot arm, the metal simulation finger is connected to the robot arm, the robot arm is connected to the processor, the processor is further configured to send a pressing instruction to the robot arm, control the robot arm to drive the metal simulation finger to press the product, send a release instruction to the robot arm, and control the robot arm to drive the metal simulation finger to release from the product.
Compared with the prior art, the invention has the beneficial effects that:
according to the triggering test method of the product containing the capacitive sensor, the first capacitance value formed after the product is pressed and the second capacitance value formed after the product is released are obtained, the capacitance calibration value of the product is obtained according to the first capacitance value and the second capacitance value, the capacitance deviation value is obtained according to the capacitance calibration value and the capacitance threshold value of the product, and the capacitance deviation value is written into the triggering algorithm of the product as the capacitance compensation value to obtain the compensation triggering algorithm. The trigger test method of the invention obtains the compensation trigger algorithm by calibrating each product, comparing the calibrated result with the capacitance threshold value shared by batch products and compensating the difference value of the two as the compensation value into the trigger algorithm, so that the product can perform new trigger judgment according to the compensation trigger algorithm when performing trigger operation, can correctly trigger if the previous normal operation fails to meet the trigger condition, and can prevent false trigger for the previous product with higher sensitivity, thereby improving the accuracy of the product in identifying the trigger operation of a user.
The trigger test system for the product with the capacitive sensor provided by the embodiment of the invention is based on the trigger test method in the invention, the trigger test system calibrates each product, compares the calibrated result with a capacitance threshold value shared by batch products, and compensates the difference value of the calibrated result and the capacitance threshold value as a compensation value into a trigger algorithm to obtain a compensation trigger algorithm.
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 present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic diagram of a trigger test system for a product including a capacitive sensor according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for triggering a test of a product including a capacitive sensor according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a step S100 of a method for triggering a test of a product including a capacitive sensor according to an embodiment of the present invention;
fig. 4 is a flowchart of a step S200 of a method for triggering a test of a product including a capacitive sensor according to an embodiment of the present invention.
Wherein, 1 is a test fixture, 2 is a metal simulation finger, 3 is a robot arm, 4 is a processor, 5 is a communication module, and 6 is a product.
Detailed Description
The core of the invention is to provide a trigger test method of a product containing a capacitive sensor, which improves the accuracy of the product in identifying the trigger operation of a user.
The invention also provides a trigger test system based on the trigger test method, which improves the accuracy of the product identification user trigger operation.
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.
Referring to fig. 2, an embodiment of the present invention provides a method for triggering and testing a product including a capacitive sensor, which is hereinafter referred to as a triggering and testing method, and includes the following steps:
step S100, obtaining a first capacitance value formed after the product 6 is pressed, and pressing the sensing area of the product 6 including the capacitive sensor can form a capacitance value.
Step S200, obtaining a second capacitance value formed after releasing the product 6, that is, when the product 6 is not pressed any more, the sensing area of the product 6 forms another capacitance value.
Step S300, a capacitance calibration value of the product 6 is obtained according to the first capacitance value and the second capacitance value, where the capacitance calibration value is a difference value between the first capacitance value and the second capacitance value.
And step S400, obtaining a capacitance deviation value according to the capacitance calibration value and the capacitance threshold value of the product 6. The capacitance threshold value is a capacitance value which is successfully triggered by a product, and is an average reference value obtained according to a plurality of capacitance calibration values of batch products; the capacitance calibration values of each product 6 are different, and therefore, there is a deviation between the capacitance calibration value of each product 6 and the capacitance threshold value, and this deviation is a capacitance deviation value.
And S500, writing the capacitance deviation value serving as a capacitance compensation value into a trigger algorithm of the product 6 to obtain a compensation trigger algorithm.
The triggering algorithm is a set of same algorithms that each product 6 follows when performing triggering operation, and the triggering operation of the product 6 judges whether the triggering is successful according to the triggering algorithm. But for individual products 6, success cannot be triggered according to the same triggering algorithm when the operation is correctly triggered. Alternatively, the individual products 6 are too sensitive and accurate, are disturbed by the external environment, and are also triggered by mistake according to the same triggering algorithm, because the products 6 have capacitance deviation values.
Therefore, the trigger test method of the invention calibrates each product 6, compares the calibrated result with the capacitance threshold value shared by the batch of products 6, compensates the difference value of the two as the compensation value into the trigger algorithm to obtain a new compensation trigger algorithm, so that when the product is triggered again, new trigger judgment can be carried out according to the compensation trigger algorithm, the product can be triggered correctly if the previous normal trigger operation does not meet the trigger condition, and the product 6 with higher sensitivity can be prevented from being triggered by mistake, thereby improving the accuracy of the trigger operation of the product identification user.
In this embodiment, the step S300 is optimized, and the step S300 obtains the capacitance calibration value of the product 6 according to the first capacitance value and the second capacitance value, specifically: and subtracting the first capacitance value from the second capacitance value to obtain a capacitance calibration value. Typically, a first capacitance value resulting from pressing the product 6 is smaller than a second capacitance value resulting from releasing the product 6, and the resulting capacitance calibration is positive. Of course, the second capacitance value may be subtracted from the first capacitance value, the obtained capacitance calibration value is a negative value, and the absolute value may be used for subsequent determination.
In this embodiment, step S400 is optimized, and the capacitance deviation value obtained according to the capacitance calibration value and the capacitance threshold value of the product 6 in step S400 specifically includes: and subtracting the capacitance calibration value from the capacitance threshold value to obtain a capacitance deviation value. When the capacitance calibration value is smaller than the capacitance threshold value, it means that the correct trigger operation cannot meet the requirement of successful trigger, the capacitance calibration value is small, and the obtained capacitance deviation value is a negative value. When the capacitance calibration value is larger than the capacitance threshold value and exceeds a certain range, the capacitance sensor of the product 6 is too sensitive and accurate, false triggering is easily caused, the capacitance calibration value is large, and the obtained capacitance deviation value is a positive value. Both of these cases require capacitive compensation. Of course, the capacitance calibration value may be subtracted from the capacitance threshold value to obtain a capacitance deviation value, the capacitance deviation value obtained by the smaller capacitance calibration value is a positive value, and the capacitance deviation value obtained by the larger capacitance calibration value is a negative value, which may be used for subsequent write compensation, but the compensation algorithm is different.
The embodiment provides a specific triggering algorithm, that is, the triggering algorithm in step S500 is:
subtracting the pressing capacitance value formed after the product 6 is pressed from the releasing capacitance value formed after the product 6 is released to obtain a capacitance threshold value, wherein the capacitance threshold value is a difference value and is a positive value;
and comparing the capacitance threshold value with the capacitance threshold value, if the capacitance threshold value is larger than or equal to the capacitance threshold value, the product is successfully triggered, and if the capacitance threshold value is smaller than the capacitance threshold value, the product is not successfully triggered.
It can be seen that, according to the original trigger algorithm, for the product 6 whose correct trigger operation cannot reach the trigger condition, the product 6 cannot be correctly triggered, and the capacitance threshold is low. For the product 6 with higher sensitivity, the product is easily interfered by the external environment, false triggering is caused, and the capacitance threshold value is higher.
Of course, the triggering algorithm not only adopts the above algorithm, but also provides another triggering algorithm, specifically:
subtracting a release capacitance value formed after releasing the product 6 from a pressing capacitance value formed after pressing the product 6 to obtain a capacitance threshold value, and taking an absolute value of the capacitance threshold value to obtain an absolute capacitance threshold value, wherein the capacitance threshold value is a difference value and is a negative value, and the absolute capacitance threshold value is a positive value;
and comparing the absolute capacitance threshold value with the capacitance threshold value, wherein if the absolute capacitance threshold value is larger than or equal to the capacitance threshold value, the product is successfully triggered, and if the absolute capacitance threshold value is smaller than the capacitance threshold value, the product is not successfully triggered.
For the first trigger algorithm, the capacitance deviation value in step S500 is written into the trigger algorithm as a capacitance compensation value, and the obtained compensation trigger algorithm specifically includes:
and subtracting the pressing capacitance value formed after the product 6 is pressed from the releasing capacitance value formed after the product 6 is released to obtain the capacitance threshold value.
Adding or subtracting the capacitance compensation value and the capacitance threshold value to obtain a corrected capacitance threshold value; specifically, when the capacitance compensation value (i.e., the capacitance deviation value) is obtained by subtracting the capacitance calibration value from the capacitance threshold value, the modified capacitance threshold value is obtained by adding the capacitance compensation value to the capacitance threshold value; when the capacitance compensation value (namely the capacitance deviation value) is obtained by subtracting the capacitance valve value from the capacitance calibration value, the corrected capacitance threshold value is obtained by subtracting the capacitance compensation value from the capacitance threshold value.
And comparing the corrected capacitance threshold value with the capacitance threshold value, if the corrected capacitance threshold value is larger than or equal to the capacitance threshold value, the product is successfully triggered, and if the corrected capacitance threshold value is smaller than the capacitance threshold value, the product is not successfully triggered.
Therefore, the original trigger algorithm is compensated to obtain a new modified capacitance threshold value, and the smaller capacitance threshold value is added to the capacitance compensation value, so that the correct trigger operation meets the condition of successful trigger; and the capacitance compensation value is subtracted from the larger capacitance threshold value, so that the condition of successful triggering cannot be met by false triggering operation, and the successful false triggering is avoided. The new trigger algorithm improves the accuracy of the product identification trigger operation.
For the second trigger algorithm, the writing of the capacitance deviation value as the capacitance compensation value into the trigger algorithm in step S500 to obtain a second compensation trigger algorithm specifically includes:
subtracting a release capacitance value formed after releasing the product 6 from a pressing capacitance value formed after pressing the product 6 to obtain a capacitance threshold value, and taking an absolute value of the capacitance threshold value to obtain an absolute capacitance threshold value.
Adding or subtracting the capacitance compensation value and the absolute capacitance threshold value to obtain a corrected capacitance threshold value; specifically, when the capacitance compensation value (i.e., the capacitance deviation value) is obtained by subtracting the capacitance calibration value from the capacitance threshold value, the modified capacitance threshold value is obtained by adding the capacitance compensation value to the absolute capacitance threshold value; when the capacitance compensation value (i.e. the capacitance deviation value) is obtained by subtracting the capacitance valve value from the capacitance calibration value, the corrected capacitance threshold value is obtained by subtracting the capacitance compensation value from the absolute capacitance threshold value.
And comparing the corrected capacitance threshold value with the capacitance threshold value, if the corrected capacitance threshold value is larger than or equal to the capacitance threshold value, the product is successfully triggered, and if the corrected capacitance threshold value is smaller than the capacitance threshold value, the product is not successfully triggered.
In the present embodiment, the product 6 is pressed in step S100, specifically, the product 6 is pressed by the metal dummy finger 2, so as to touch the product 6 with the capacitive touch sensor. The metal simulation finger 2 may be made of copper, aluminum, or the like. Because the metal has good stability, errors cannot be introduced due to the metal simulation finger 2 in a long time. The metal simulation finger 2 is used for simulating a human finger, and the size of the metal simulation finger 2 can be correspondingly changed according to the sizes of fingers of different people. Of course, in addition to the pressing test using the metal dummy finger 2, the test can be performed manually using the finger pressing product 6, but is less stable than the metal dummy finger 2.
As shown in fig. 3 and 4, further, in the present embodiment, the metal simulation finger 2 is driven by the robot arm 3 to perform pressing and releasing operations, and step S100 specifically includes:
step S101, sending a pressing instruction to the robot arm 3, and controlling the robot arm 3 to drive the metal simulation finger 2 to press the product 6;
and step S102, acquiring a first capacitance value formed after the product 6 is pressed.
Correspondingly, step S200 specifically includes:
step S201, sending a release instruction to the robot arm 3, and controlling the robot arm 3 to drive the metal simulation finger 2 to release from the product 6;
and step S202, acquiring a second capacitance value formed after the product 6 is released.
The metal simulation finger 2 is driven by the control robot arm 3 to press and release the product 6, so that the consistency of triggering actions at each time is ensured, the testing precision is improved, the automatic triggering test of the product 6 is realized, and the errors caused by manual labor intensity and manual operation are reduced. Of course, the metal dummy finger 2 can be manually operated to perform the test.
Based on the trigger test method described in the above embodiment, the embodiment of the present invention further provides a trigger test system for a product including a capacitive sensor, which is hereinafter referred to as a trigger test system, as shown in fig. 1, and includes a processor 4, a communication module 5, and a test fixture 1.
The processor 4 can be a computer or a PLC, and the processor 4 is in communication connection with the product 6 through the communication module 5; the processor 4 is configured to obtain a first capacitance value formed after the product 6 is pressed, obtain a second capacitance value formed after the product 6 is released, obtain a capacitance calibration value of the product 6 according to the first capacitance value and the second capacitance value, obtain a capacitance deviation value according to the capacitance calibration value and a capacitance threshold value of the product 6, write the capacitance deviation value as a capacitance compensation value into a trigger algorithm of the product 6, and obtain a compensation trigger algorithm.
The test fixture 1 is used for fixing the product 6, so that the product 6 is not moved in the test process, the test fixture 1 can be switched according to different products 6, and the product 6 can be a capacitive sensing touch switch.
The trigger test system is used for calibrating each product 6, comparing the calibration result with the capacitance threshold value shared by the batch of products 6, and compensating the difference value of the calibration result and the capacitance threshold value as a compensation value into the trigger algorithm to obtain a compensation trigger algorithm, so that when the products 6 are triggered, new trigger judgment can be carried out according to the compensation trigger algorithm, correct trigger can be carried out when the previous normal operation does not meet the trigger condition, false trigger can be prevented for the previous products 6 with higher sensitivity, and the accuracy of the products 6 in recognizing the user trigger operation is improved.
Further, the trigger test system in this embodiment further includes a metal dummy finger 2 for pressing the product 6. The metal simulation finger 2 may be made of copper, aluminum, or the like. Because the metal has good stability, errors cannot be introduced due to the metal simulation finger 2 in a long time. The metal simulation finger 2 is used for simulating a human finger, and the size of the metal simulation finger 2 can be correspondingly changed according to the sizes of fingers of different people. Of course, in addition to the pressing test using the metal dummy finger 2, the test can be performed manually using the finger pressing product 6, but is less stable than the metal dummy finger 2.
Furthermore, in this embodiment, the trigger test system further includes a robot arm 3, the metal simulation finger 2 is connected to the robot arm 3, the robot arm 3 is connected to the processor 4, the processor 4 is further configured to send a pressing instruction to the robot arm 3, control the robot arm 3 to drive the metal simulation finger 2 to press the product 6, send a release instruction to the robot arm 3, and control the robot arm 3 to drive the metal simulation finger 2 to release from the product 6. Drive metal emulation finger 2 through robot arm 3 and press and release product 6, trigger operation has guaranteed to trigger the action unanimity at every turn, has improved the measuring accuracy, can realize the automatic trigger test of product 6 under the unmanned on duty's the condition, has reduced the error that artifical intensity of labour and manual operation brought, can adapt to various test environment and test object. Of course, the metal dummy finger 2 can be manually operated to perform the test.
Taking a capacitive sensing touch switch (hereinafter referred to as a capacitive switch) as an example, a description is given to a working process of a trigger test system of the capacitive sensing touch switch:
the metal simulation finger 2 is loaded on the robot arm 3, the robot arm 3 is connected with the processor 4, the capacitance switch is loaded on the test fixture 1, and the capacitance switch is in communication connection with the processor 4 through the communication module 5, so that real-time communication between the processor 4 and the capacitance switch is completed.
During operation, processor 4 sends the press instruction to robot arm 3, and after robot arm 3 received the press instruction, drive metal emulation finger 2 and press the operation to capacitance switch's specific position, capacitance switch formed first capacitance value and sent for processor 4 through communication module 5, and processor 4 receives and takes notes first capacitance value. And then, the processor 4 sends a release instruction to the robot arm 3, the robot arm 3 drives the metal simulation finger 2 to leave the capacitance switch after receiving the release instruction, when the metal simulation finger leaves a certain distance, the capacitance switch forms a second capacitance value and sends the second capacitance value to the processor 4 through the communication module 5, and the processor 4 receives and records the second capacitance value.
The processor 4 subtracts the first capacitance value from the second capacitance value to obtain a capacitance calibration value of the capacitive switch, and the processor 4 sends the capacitance calibration value to the capacitive switch through the communication module 5. The processor 4 obtains a capacitance deviation value according to the capacitance calibration value and the capacitance threshold value of the capacitance switch, and the processor 4 writes the capacitance deviation value into a trigger algorithm of the capacitance switch as a capacitance compensation value to obtain a compensation trigger algorithm.
And when the capacitive switch is triggered again, judging according to a new compensation triggering algorithm, if the difference value between the released capacitance value and the pressed capacitance value is larger than or equal to the capacitance threshold value, triggering the capacitive switch successfully, and turning on or turning off the capacitive switch, otherwise, failing to trigger successfully, and failing to turn on or turn off the capacitive switch.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. A method of triggered testing of a product containing a capacitive sensor, comprising:
s100, obtaining a first capacitance value formed after the product is pressed;
s200, acquiring a second capacitance value formed after the product is released;
s300, obtaining a capacitance calibration value of the product according to the first capacitance value and the second capacitance value, wherein the capacitance calibration value is a difference value between the first capacitance value and the second capacitance value;
s400, obtaining a capacitance deviation value according to the capacitance calibration value and a capacitance threshold value of the product, wherein the capacitance deviation value is a deviation between the capacitance calibration value and the capacitance threshold value, and the capacitance threshold value is an average reference value obtained according to a plurality of capacitance calibration values of batch products;
s500, writing the capacitance deviation value serving as a capacitance compensation value into a trigger algorithm of the product to obtain a compensation trigger algorithm, wherein the trigger algorithm is as follows:
subtracting a pressing capacitance value formed after the product is pressed from a release capacitance value formed after the product is released to obtain a capacitance threshold value;
and comparing the capacitance threshold value with the capacitance threshold value, if the capacitance threshold value is larger than or equal to the capacitance threshold value, the product is successfully triggered, and if the capacitance threshold value is smaller than the capacitance threshold value, the product is not successfully triggered.
2. The trigger test method according to claim 1, wherein the step S300 specifically includes: and subtracting the first capacitance value from the second capacitance value to obtain the capacitance calibration value.
3. The trigger test method according to claim 1, wherein the step S400 specifically includes: and subtracting the capacitance calibration value from the capacitance threshold value to obtain the capacitance deviation value.
4. The trigger test method of claim 1, wherein the compensation trigger algorithm in step S500 is:
subtracting a pressing capacitance value formed after the product is pressed from a release capacitance value formed after the product is released to obtain a capacitance threshold value;
adding or subtracting the capacitance compensation value and the capacitance threshold value to obtain a corrected capacitance threshold value;
and comparing the corrected capacitance threshold value with the capacitance threshold value, wherein if the corrected capacitance threshold value is larger than or equal to the capacitance threshold value, the product is successfully triggered, and if the corrected capacitance threshold value is smaller than the capacitance threshold value, the product is not successfully triggered.
5. The trigger testing method according to any one of claims 1 to 4, wherein the pressing of the product in step S100 is performed by pressing the product with a metal simulated finger.
6. The trigger testing method according to claim 5, wherein the metal simulation finger is driven by a robot arm to perform pressing and releasing operations, and the step S100 specifically comprises:
s101, sending a pressing instruction to the robot arm, and controlling the robot arm to drive the metal simulation finger to press the product;
s102, obtaining the first capacitance value which is sent by the product and formed after being pressed;
the step S200 is specifically:
s201, sending a release instruction to the robot arm, and controlling the robot arm to drive the metal simulation finger to release from the product;
s202, obtaining the second capacitance value formed after the product is released.
7. A system for triggered testing of a product containing a capacitive sensor, comprising:
a processor, configured to obtain a first capacitance value formed after the product is pressed, obtain a second capacitance value formed after the product is released, obtain a capacitance calibration value of the product according to the first capacitance value and the second capacitance value, where the capacitance calibration value is a difference between the first capacitance value and the second capacitance value, obtain a capacitance deviation value according to the capacitance calibration value and a capacitance threshold value of the product, where the capacitance deviation value is a deviation between the capacitance calibration value and the capacitance threshold value, and the capacitance threshold value is an average reference value obtained according to a plurality of capacitance calibration values of batch products, write the capacitance deviation value as a capacitance compensation value into a trigger algorithm of the product, so as to obtain a compensation trigger algorithm, where the trigger algorithm is: subtracting a pressing capacitance value formed after the product is pressed from a release capacitance value formed after the product is released to obtain a capacitance threshold value; comparing the capacitance threshold value with the capacitance threshold value, if the capacitance threshold value is larger than or equal to the capacitance threshold value, the product is successfully triggered, and if the capacitance threshold value is smaller than the capacitance threshold value, the product is not successfully triggered;
the processor is in communication connection with the product through the communication module;
and the test fixture is used for fixing the product.
8. The trigger testing system of claim 7, further comprising a metal dummy finger for pressing the product.
9. The trigger test system of claim 8, further comprising a robot arm, wherein the metal simulation finger is connected to the robot arm, the robot arm is connected to the processor, and the processor is further configured to send a pressing command to the robot arm, control the robot arm to drive the metal simulation finger to press the product, and send a releasing command to the robot arm to control the robot arm to drive the metal simulation finger to release from the product.
CN201710632264.2A 2017-07-28 2017-07-28 Trigger test method and system for product containing capacitive sensor Active CN107425839B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710632264.2A CN107425839B (en) 2017-07-28 2017-07-28 Trigger test method and system for product containing capacitive sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710632264.2A CN107425839B (en) 2017-07-28 2017-07-28 Trigger test method and system for product containing capacitive sensor

Publications (2)

Publication Number Publication Date
CN107425839A CN107425839A (en) 2017-12-01
CN107425839B true CN107425839B (en) 2021-05-25

Family

ID=60430635

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710632264.2A Active CN107425839B (en) 2017-07-28 2017-07-28 Trigger test method and system for product containing capacitive sensor

Country Status (1)

Country Link
CN (1) CN107425839B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112198381A (en) * 2020-09-18 2021-01-08 上海纳恩汽车技术有限公司 Test system of vehicle capacitance door handle

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414819A (en) * 2007-10-16 2009-04-22 通泰积体电路股份有限公司 Sensing method and apparatus for controlling current source and compensating touch control capacitance
CN101896825A (en) * 2007-12-14 2010-11-24 赛普拉斯半导体公司 Compensation circuit for a TX-RX capacitive sensor
WO2014009206A1 (en) * 2012-07-09 2014-01-16 Preh Gmbh Touch-sensitive operating unit with rotating touch layer
CN103607187A (en) * 2013-11-12 2014-02-26 青岛歌尔声学科技有限公司 Method and apparatus for detecting whether capacitor touch button is triggered
CN103677452A (en) * 2012-08-30 2014-03-26 华为终端有限公司 Capacitive touch screen calibration method and capacitive touch device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414819A (en) * 2007-10-16 2009-04-22 通泰积体电路股份有限公司 Sensing method and apparatus for controlling current source and compensating touch control capacitance
CN101896825A (en) * 2007-12-14 2010-11-24 赛普拉斯半导体公司 Compensation circuit for a TX-RX capacitive sensor
WO2014009206A1 (en) * 2012-07-09 2014-01-16 Preh Gmbh Touch-sensitive operating unit with rotating touch layer
CN103677452A (en) * 2012-08-30 2014-03-26 华为终端有限公司 Capacitive touch screen calibration method and capacitive touch device
CN103607187A (en) * 2013-11-12 2014-02-26 青岛歌尔声学科技有限公司 Method and apparatus for detecting whether capacitor touch button is triggered

Also Published As

Publication number Publication date
CN107425839A (en) 2017-12-01

Similar Documents

Publication Publication Date Title
CN101963873B (en) Method for setting and calibrating capacitive-type touch panel capacitance base value
CN101896878A (en) Touch sensor device, control method, touch panel device and program
EP2703965A1 (en) Method for calibration and capacitive touch screen and capacitive touch apparatus
US20110157083A1 (en) Resistive touch apparatus
CN102722286B (en) Reference updating method of touch detection terminal capable of removing large-scale interference and system
US10914773B2 (en) Resolution adjustment for capacitive touch sensor
CN106681553B (en) A kind of adjusting method and terminal of touch-control pressure threshold
JP2839972B2 (en) Pressure-sensitive coordinate input device
WO2018232695A1 (en) Method and apparatus for updating current reference value of touch screen, touch screen and electronic terminal
CN107425839B (en) Trigger test method and system for product containing capacitive sensor
US20180275826A1 (en) Method for Improving Fault Tolerance of Touchscreen and Touchscreen Terminal
JP6519816B2 (en) Capacitive sensor operation in response to proximity sensor data
CN103576210A (en) Proximity sensing method
CN113453122A (en) Wearing detection method, wearing detection device, wearing detection equipment and computer-readable storage medium
US20240001558A1 (en) Robot calibration method, robot and computer-readable storage medium
CN111083271A (en) Wearing detection method, system, equipment and computer readable storage medium
CN102662533B (en) Method for eliminating non-normal contact interference in infrared touch system
TWI498789B (en) Proximity sensing method, proximity sensing device, and electronic device
CN113342204B (en) Touch control system adapting method, device, equipment, storage medium and program product
JP2014206868A (en) Input device, input program and input method
US10884563B2 (en) Method for determining change of initial distance of sensing electrode
CN108801321A (en) Sensor calibrating method, electronic device and computer readable storage medium
CN108139841A (en) For detecting the method and apparatus of pressure
CN114237427B (en) High-sensitivity touch pressure detection method and system
KR20200072263A (en) Electronic device and method for identifying parasitic capacitance

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