Key detection method and device, computer readable storage medium, and terminal
By using a charged conductive plate to simulate the discharge of a human finger, rapid and accurate detection of capacitive buttons is achieved, solving the problems of low efficiency and high cost in existing technologies. This allows for the detection of multiple buttons and the identification of specific faults in a single process.
Patent Information
- Application Number
- CN202210326669.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-30
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2042-03-30
AI Technical Summary
Existing technologies for detecting capacitive buttons are inefficient, labor-intensive, and difficult to quickly determine the specific faults of defective buttons.
A charged conductive plate is used to simulate the discharge of a human finger or gold finger. Multiple buttons are quickly detected by detecting changes in capacitance. A reasonable error threshold is set for accurate detection, and the wrong resistor selection or circuit break is identified in one process.
It improves testing efficiency, reduces labor costs, and enables rapid testing of multiple buttons and accurate location of fault causes in a single process.
Smart Images

Figure CN114675175B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of button testing technology, and in particular to a button testing method and apparatus, a computer-readable storage medium, and a terminal. Background Technology
[0002] With the rapid development of IoT technology, electronic products are increasingly emphasizing innovation in human-computer interaction. Traditional mechanical buttons are gradually being replaced by touch switches, and IoT devices such as smart door locks and smart lighting have adopted touch buttons as the primary interaction method. Capacitive touch buttons offer long lifespan and low maintenance costs, and the silkscreen printing on glass panels adds an aesthetic appeal. As a result, there is a growing number of capacitive touch chip manufacturers and a wider variety of products. The basic structure of a capacitive touch button includes a main control chip, a printed circuit board (PCB), buttons composed of pairs of pads, and a casing material such as glass or acrylic sheet.
[0003] In existing technologies, when inspecting printed circuit boards or finished products containing capacitive buttons on a production line, the buttons are often individually clicked or touched by a human finger or gold finger using an air pump. When a human finger or gold finger touches a capacitive button, the current released by the human body or gold finger has a significant impact on the capacitance value between the two pads in the button. If the button is normal, the capacitance value between the two pads will change abruptly. The button's functionality can be determined by detecting the change in capacitance between the two pads before and after the touch. However, the disadvantages of this approach are: if a product has a large number of buttons, each one needs to be clicked (touched) for inspection, resulting in low efficiency and high labor costs; furthermore, after detecting a defective button, the specific fault cannot be determined immediately, requiring the use of other tools for slow measurement, making the inspection process cumbersome and time-consuming.
[0004] Therefore, there is an urgent need for a button detection method that can quickly detect multiple (all) buttons on the circuit board to be tested in one process, which can significantly improve the efficiency of button detection, simplify the detection process, and reduce labor costs. Summary of the Invention
[0005] The technical problem solved by this invention is how to quickly and easily test multiple buttons on a product at one time when testing capacitive buttons, thereby improving testing efficiency and reducing labor costs.
[0006] To address the aforementioned technical problems, this invention provides a button detection method, comprising the following steps: determining a first capacitance value for multiple buttons on a circuit board to be tested, each button including a pair of pads, the first capacitance value of each button representing the capacitance between the pairs of pads; setting each button as a mutual capacitance touch button, and covering the circuit board to be tested with a charged conductive plate, and discharging a preset pad in the pairs of pads of each button to change the capacitance between the pairs of pads; determining a second capacitance value for the multiple buttons, the second capacitance value of each button representing the capacitance between the pairs of pads; for each button, when the error value between the capacitance difference between the second capacitance value and the first capacitance value and the preset capacitance difference exceeds a preset error range, determining the button as a defective button.
[0007] Optionally, the charged conductive plate includes a discharge capacitor; discharging a preset pad in the pair of pads of each button to change the capacitance between the pair of pads includes: electrically connecting the discharge electrode plate in the discharge capacitor to the preset pad in the pair of pads, and discharging to the preset pad to change the capacitance between the pair of pads.
[0008] Optionally, each button also includes a chip and a resistor, the resistor being connected in series with the chip and the paired pads. The method further includes: for each defective button, determining whether the capacitance difference is greater than 0; if so, confirming that the resistor was selected incorrectly.
[0009] Optionally, each button also includes a chip and a circuit, the circuit being used to connect the chip and the paired pads. The method further includes: for each defective button, determining whether the capacitance difference is less than or equal to 0; if so, confirming that there is an open circuit in the circuit.
[0010] Optionally, after determining that there is an open circuit in the line, the method further includes: setting each defective button as a self-capacitive touch button, and determining the third capacitance value between the charged conductive plate and each pad of the defective button; and determining, based on the third capacitance value, which pad in the line between the chip and the open circuit occurred.
[0011] Optionally, determining which pad and chip the circuit break occurred in based on the third capacitance value includes: removing the charged conductive plate, determining the fourth capacitance value between each pad of the defective button and the ground terminal; if the difference between the third capacitance value and the fourth capacitance value is less than or equal to 0, then it is determined that the circuit between the pad and the chip has broken.
[0012] Optionally, the method further includes: calculating the ratio between the number of defective buttons and the total number of the plurality of buttons; when the ratio is greater than a preset ratio, determining that the circuit board to be tested is defective.
[0013] Optionally, the material of the charged conductive plate is selected from metal materials with a conductivity greater than or equal to a preset threshold.
[0014] This invention also provides a key detection device, comprising:
[0015] A button first capacitance value determination module is used to determine the first capacitance value of multiple buttons on a circuit board to be tested. Each button includes a pair of pads, and the first capacitance value of each button represents the capacitance between the pair of pads. A charged conductive plate discharge module is used to set each button as a mutual capacitance touch button, and to cover the circuit board to be tested with a charged conductive plate and discharge to a preset pad in the pair of pads of each button to change the capacitance between the pair of pads. A button second capacitance value determination module is used to determine the second capacitance value of the multiple buttons, and the second capacitance value of each button represents the capacitance between the pair of pads. A defective button determination module is used to determine that for each button, when the error value between the capacitance difference between the second capacitance value and the first capacitance value and the preset capacitance difference exceeds a preset error range, the button is a defective button.
[0016] This invention also provides a computer-readable storage medium storing a computer program thereon, wherein the computer program is executed by a processor to perform the steps of the above-described key detection method.
[0017] This invention also provides a terminal, including a memory and a processor. The memory stores a computer program that can run on the processor. When the processor runs the computer program, it executes the steps of the above-described key detection method.
[0018] Compared with the prior art, the technical solution of the embodiments of the present invention has the following beneficial effects:
[0019] In this embodiment of the invention, firstly, a first capacitance value between the paired pads of each button on the circuit board to be tested is determined; then, each button is set as a mutual capacitance touch button, and a charged conductive plate is covered on the circuit board to be tested, and a preset pad in the paired pads of each button is discharged to change the capacitance between the paired pads; next, a second capacitance value between the paired pads of each button is determined; for each button, when the error value between the capacitance difference between the second capacitance value and the first capacitance value and the preset capacitance difference exceeds a preset error range, the button is determined to be a defective button. Compared to existing technologies that use manual finger clicks or gold fingers with air pumps to click or touch each button individually, resulting in low detection efficiency, cumbersome processes, and high labor costs, the embodiments of this invention use a charged conductive plate to simulate the discharge of a human finger or gold finger, thereby changing the capacitance between the paired pads of each button. By detecting the capacitance change of the buttons, multiple buttons can be quickly detected simultaneously in one process, which can significantly improve detection efficiency, simplify the operation procedure, and reduce labor costs. In addition, by setting a reasonable error threshold, the error value between the capacitance difference before and after covering the charged conductive plate and the preset capacitance difference can be compared with the error threshold, allowing for accurate detection of button sensitivity.
[0020] Furthermore, each button also includes a chip and a resistor, the resistor being connected in series with the chip and the paired pads. The method further includes: for each defective button, determining whether the capacitance difference is greater than 0; if so, confirming that the resistor was selected incorrectly. Alternatively, each button also includes a chip and a circuit, the circuit being used to connect the chip and the paired pads. The method further includes: for each defective button, determining whether the capacitance difference is less than or equal to 0; if so, confirming that the circuit has an open circuit. By adopting the above technical solution, defective buttons can be detected in a single process, and the specific fault of each defective button can be further determined as to whether it is due to an incorrect resistor selection or an open circuit.
[0021] Furthermore, after determining that the circuit has an open circuit, the method further includes: setting each defective button to a self-capacitive touch button, and determining the third capacitance value between the charged conductive plate and each pad of the defective button; then removing the charged conductive plate, and determining the fourth capacitance value between each pad of the defective button and the ground terminal; if the difference between the third capacitance value and the fourth capacitance value is less than or equal to 0, then it is determined that the circuit between the pad and the chip has an open circuit. By adopting the above technical solution, after determining that the button failure is due to an internal circuit open circuit, the location of the open circuit can be accurately located. Attached Figure Description
[0022] Figure 1This is a flowchart of the first key detection method in this embodiment of the invention;
[0023] Figure 2 This is a schematic diagram of the internal circuit structure of a charged conductive plate in an embodiment of the present invention;
[0024] Figure 3 This is a schematic diagram of the internal circuit structure of a mutual capacitance touch button in an embodiment of the present invention;
[0025] Figure 4 This is a partial flowchart of the second key detection method in this embodiment of the invention;
[0026] Figure 5 This is a schematic diagram of a key detection device according to an embodiment of the present invention. Detailed Implementation
[0027] As mentioned earlier, there are more and more capacitive button products on the market. When testing the printed circuit boards or finished products of capacitive buttons on the production line, the buttons are often clicked or touched one by one by a human finger or gold finger with an air pump. The button’s functionality can be determined by detecting the change in capacitance between the two pads before and after the touch.
[0028] The inventors of this invention discovered through research that the disadvantages of the above-mentioned solution are: if a product has a large number of buttons, it is necessary to click (touch) each one for testing, resulting in low efficiency and high labor costs; in addition, after detecting a defective button, the specific fault of the button cannot be determined immediately, and other tools are needed to measure it slowly, making the testing process cumbersome and time-consuming.
[0029] In this embodiment of the invention, firstly, a first capacitance value between the paired pads of each button on the circuit board to be tested is determined; then, each button is set as a mutual capacitance touch button, and a charged conductive plate is covered on the circuit board to be tested, and a preset pad in the paired pads of each button is discharged to change the capacitance between the paired pads; next, a second capacitance value between the paired pads of each button is determined; for each button, when the error value between the capacitance difference between the second capacitance value and the first capacitance value and the preset capacitance difference exceeds a preset error range, the button is determined to be a defective button. Compared to existing technologies that use manual finger clicks or gold fingers with air pumps to click or touch each button individually, resulting in low detection efficiency, cumbersome processes, and high labor costs, the embodiments of this invention use a charged conductive plate to simulate the discharge of a human finger or gold finger, thereby changing the capacitance between the paired pads of each button. By detecting the capacitance change of the buttons, multiple buttons can be quickly detected simultaneously in one process, which can significantly improve detection efficiency, simplify the operation procedure, and reduce labor costs. In addition, by setting a reasonable error threshold, the error value between the capacitance difference before and after covering the charged conductive plate and the preset capacitance difference can be compared with the error threshold, allowing for accurate detection of button sensitivity.
[0030] To make the above-mentioned objectives, features and beneficial effects of the present invention more apparent and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0031] Reference Figure 1 , Figure 1 This is a flowchart of the first key detection method in an embodiment of the present invention. The first key detection method may include steps S11 to S14:
[0032] Step S11: Determine the first capacitance value of multiple buttons on the circuit board to be tested. Each button includes a pair of pads. The first capacitance value of each button is used to represent the capacitance between the pair of pads.
[0033] Step S12: Set each button as a mutual capacitance touch button, cover the circuit board to be tested with a charged conductive plate, and discharge to the preset pad in the pair of pads of each button to change the capacitance between the pair of pads.
[0034] Step S13: Determine the second capacitance value of the plurality of buttons, wherein the second capacitance value of each button is used to represent the capacitance between the paired pads;
[0035] Step S14: For each button, when the error between the capacitance difference between the second capacitance value and the first capacitance value and the preset capacitance difference value exceeds the preset error range, the button is determined to be a defective button.
[0036] In the specific implementation of step S11, the circuit board to be tested can be a circuit board containing multiple capacitive buttons in smart electronic products such as remote controls, door locks, smart kitchen appliances, elevators, mobile phones, and tablet computers. The circuit board to be tested can be a printed circuit board (PCB), which can specifically include single-sided printed circuit boards, double-sided printed circuit boards, multi-layer printed circuit boards, etc.
[0037] Each button consists of at least a pair of pads, which can be located on a horizontal plane of the circuit board. The pairs of pads do not contact each other and are separated by a non-conductive dielectric (such as air or plastic). Thus, the pairs of pads form the two electrodes of a capacitor. When an external conductive object that can release charge, such as a finger or gold finger, touches or clicks the button, the capacitance between the pairs of pads changes, thereby triggering the button to perform the corresponding function.
[0038] In the specific implementation of step S12, the mutual-capacitive touch button is a concept corresponding to the self-capacitive touch button. A mutual-capacitive touch button can be simply understood as a button with one pad in a charging mode (Receiving Mode, RX) and the other in a discharging mode (Transforming Mode, TX). When a finger touches the button, the charge released by the finger changes the amount of charge received by the pad in the receiving mode, thereby changing the capacitance value between the two pads. A self-capacitive touch button can be simply understood as a button with each pad in a pair in a receiving mode, forming a capacitor with a ground terminal (e.g., ground). The mutual-capacitive mode and self-capacitive mode of the capacitive touch button can be switched via software according to the application scenario.
[0039] In practice, after covering the circuit board to be tested with a charged conductive plate, if the buttons are qualified, the charged conductive plate discharges to the preset pads in the pairs of pads of each button, which changes the capacitance between the pairs of pads of each button. The preset pads can be pads in a mutual capacitance touch button set to charging mode RX (charge receiving mode).
[0040] In some non-limiting embodiments, the material of the charged conductive plate may be selected from metallic materials with a conductivity greater than or equal to a preset threshold, such as copper and its alloys, aluminum and its alloys, silver and its alloys, gold and its alloys, etc.
[0041] Furthermore, the charged conductive plate includes a discharge capacitor; the step of discharging a preset pad in the pair of pads of each button to change the capacitance between the pair of pads includes: electrically connecting the discharge electrode plate in the discharge capacitor to the preset pad in the pair of pads, and discharging to the preset pad to change the capacitance between the pair of pads.
[0042] In a specific implementation, the charged conductive plate may contain a simple circuit capable of discharging. This simple circuit may consist of a power source, a resistor, a capacitor, and wires.
[0043] Reference Figure 2 , Figure 2 This is a schematic diagram of the internal circuit structure of a charged conductive plate according to an embodiment of the present invention. The internal circuit of the charged conductive plate consists of a power supply, a resistor, a capacitor, and several wires, which are connected in series through the wires. When the charged conductive plate covers the circuit board to be tested, the discharge plate in the capacitor releases charge to the pads in the button to be tested, which are set to RX mode, thereby affecting the capacitance between the pairs of pads in the button to be tested. The detection purpose is achieved by analyzing the capacitance change.
[0044] It should be noted that, in addition to setting a circuit in the charged conductive plate to simulate a human finger or gold finger to achieve the discharge function, other suitable methods can be adopted to enable the charged conductive plate to have the discharge function. For example, as a non-limiting embodiment, a conductive plate can be connected to a power source by a wire, and then the conductive plate can be directly used for discharge.
[0045] In the specific implementation of step S13, the second capacitance value of the plurality of buttons is determined, and the second capacitance value of each button is used to represent the capacitance between the paired pads.
[0046] Understandably, because the charged conductive plate covers the key, and this plate simulates a human finger touching each key under test, if the key is qualified (high sensitivity), the second capacitance value between the paired pads in the key will increase sharply (potentially by hundreds to thousands) compared to the first capacitance value. Conversely, if the key is unqualified (low sensitivity or complete loss of sensitivity), the change in the second capacitance value between the paired pads in the key will be minimal or even negligible compared to the first capacitance value. By analyzing the changes in capacitance value between the paired pads in the key, the sensitivity of the key can be detected to determine whether a key is qualified or unqualified.
[0047] In the specific implementation of step S14, for each button, when the error value between the capacitance difference between the second capacitance value and the first capacitance value and the preset capacitance difference exceeds the preset error range, the button is determined to be a defective button.
[0048] In practice, the charged conductive plate can be used to cover multiple qualified products (circuit boards), and the capacitance change of the button with the same function as the button to be tested on each qualified product after covering it with the charged conductive plate can be measured. Then, the average capacitance change is calculated and used as a preset capacitance difference value. The capacitance difference value or capacitance change value refers to the difference between the second capacitance value and the first capacitance value (i.e., the capacitance value after covering the charged conductive plate minus the capacitance value before covering it).
[0049] As a non-limiting embodiment, the circuit board to be tested has 16 buttons to be tested. Using the above technical solution, the capacitance differences of these 16 buttons are calculated to be Δ1 to Δ16. Using 10 qualified products, the average capacitance change of each button in these 10 qualified products is calculated to be ΔOK1 to ΔOK using the same technical solution. 16 Then, for the nth button to be detected, compare Δn and ΔOK. n If ΔOK n If the difference between the capacitance and Δn is within the allowable error range (i.e., within the preset error range), then the button can be confirmed as a qualified button. For example, for a button to be tested, the second capacitance value is B1 = 800, the first capacitance value is A1 = 500, ΔOK1 = 500, and the preset error range is [-100, 100], then: Δ1 = 800 - 500 = 300, ΔOK1 - Δ1 = 500 - 300 = 200 > 100, the error value exceeds the preset error range, thus determining that the button is unqualified.
[0050] In this embodiment of the invention, compared to the prior art which uses manual finger clicks or gold fingers with an air pump to click or touch each button individually, resulting in low detection efficiency, cumbersome process, and high labor costs, this embodiment uses a charged conductive plate to simulate the discharge of a human finger or gold finger to change the capacitance between the paired pads of each button. By detecting the capacitance change of the buttons, multiple buttons can be detected simultaneously in one process, thereby significantly improving detection efficiency, simplifying the operation procedure, and reducing labor costs (for example, as a non-limiting embodiment, using the charged conductive plate and the above scheme, more than a dozen buttons can be detected in less than one second, which is much faster than the detection speed of more than ten seconds in the prior art, significantly improving detection efficiency). In addition, by setting a reasonable error threshold, the error value between the capacitance difference before and after covering the charged conductive plate and the preset capacitance difference is compared with the error threshold, which allows for accurate detection of button sensitivity.
[0051] Furthermore, each button also includes a chip and a resistor, the resistor being connected in series with the chip and the paired pads. The method further includes: for each defective button, determining whether the capacitance difference is greater than 0; if so, confirming that the resistor was selected incorrectly.
[0052] Furthermore, each button also includes a chip and a circuit, the circuit being used to connect the chip and the paired pads. The method further includes: for each defective button, determining whether the capacitance difference is less than or equal to 0; if so, confirming that there is an open circuit in the circuit.
[0053] Reference Figure 3 , Figure 3 This is a schematic diagram of the internal circuit structure of a mutual capacitance touch button according to an embodiment of the present invention. The mutual capacitance touch button includes a chip, with copper wires led out from pins 1 and 2 at both ends of the chip, and respectively connected to a first series resistor and a second series resistor. Then, the first series resistor is connected to a pad 1, and the second series resistor is connected to a pad 2. Pad 1 is in discharge mode TX, and pad 2 is in charging mode RX. Pads 1 and 2 are located on the same horizontal plane, forming a capacitor. The sum of their dimensions is similar to the size of a fingertip.
[0054] In practical implementation, when a person's finger presses or touches the mutual capacitance touch button, the finger touches pads 1 and 2 located on the same horizontal plane. The current released by the human body changes the charging and discharging of the capacitance that originally existed on the two pads. Similarly, when a charged conductive plate covers the mutual capacitance touch button, it simulates the current released by a human finger. If the button is qualified, the capacitance between the two pads will suddenly increase. The state of the button can be detected by detecting the change in capacitance (capacitance difference) between pads 1 and 2 before and after the finger touches it.
[0055] (1) If the capacitance difference is greater than 0, indicating low sensitivity (small sensitivity value), it can be determined that the connection circuit is normal. However, because the capacitance change is too large compared to the capacitance change of a qualified button, the button's sensitivity is insufficient to meet the sensitivity standard of a qualified button. Therefore, the specific cause of the fault is determined to be the incorrect selection of resistors (resistance value is too large). Then, set pin 1 and pin 2 to the Analogue-to-Digital Conversion (ADC) to detect the voltage. Compare the voltage value V1 between pin 1 and pad 1 with the normal voltage value VOK1, and the voltage value V2 between pin 2 and pad 2 with the normal voltage value VOK2 to confirm which series resistor was selected incorrectly.
[0056] (2) If the capacitance difference is less than or equal to 0, the sensitivity is displayed as zero (equivalent to no button). In this case, it can be determined that the problem is not a sensitivity issue, but rather an open circuit in the button's circuitry. Specifically, it could be that the first series resistor and / or the second series resistor are poorly soldered or bent, or that pin 1 and / or pin 2 of the chip are poorly soldered, or it could be a circuit problem during PCB board manufacturing.
[0057] In this embodiment of the invention, after identifying the defective button, the specific reason for the low sensitivity or zero sensitivity of the button is further confirmed based on the capacitance difference of the defective button. Thus, in one process, not only can defective buttons be detected, but also the specific fault of each defective button can be further determined as to whether the resistor is selected incorrectly or the circuit is open.
[0058] Furthermore, the button detection method may further include: calculating the ratio between the number of defective buttons and the total number of the plurality of buttons; when the ratio is greater than a preset ratio, determining that the circuit board to be tested is defective.
[0059] Reference Figure 4 , Figure 4 This is a partial flowchart of the second key detection method in an embodiment of the present invention. The second key detection method may include... Figure 1 The steps S11 to S14 shown may also include steps S41 to S44, and each step is described below.
[0060] In step S41, for each defective button, it is determined whether the capacitance difference is less than or equal to 0. If so, it is confirmed that there is an open circuit in the circuit of the button.
[0061] The circuitry is used to connect the chip and the paired pads in the button. The internal circuit structure of the button can be found in [reference needed]. Figure 3The schematic diagram of the internal circuit structure of the mutual capacitance touch button shown above, as well as the relevant description above, will not be repeated here.
[0062] In step S42, after determining that there is an open circuit in the line, each defective button is set as a self-capacitive touch button, and the third capacitance value between the charged conductive plate and each pad of the defective button is determined.
[0063] It should be noted that when determining the third capacitance value, the charged conductive plate remains covering the circuit board to be tested. In a specific implementation, when the button is set as a self-capacitive touch button, both pads of the button are switched to charging mode RX. In this state, the charged conductive plate and the two pads of the button form two capacitors respectively. The charged conductive plate is equivalent to one polarity plate (discharge plate) of the capacitor, and the two pads of the button are each the other polarity plate (charging plate) of the capacitor.
[0064] In step S43, the charged conductive plate is removed, and the fourth capacitance value between each pad of the defective button and the ground terminal is determined.
[0065] In step S44, if the difference between the third capacitance value and the fourth capacitance value is less than or equal to 0, it is determined that the circuit between the pad and the chip is open.
[0066] Understandably, if the button is a valid button, its sensitivity is high enough. Since the charged conductive plate can discharge to the two pads of the invalid button, the third capacitance value between the charged conductive plate and the pads of the invalid button, without removing the charged conductive plate, will be much greater than the fourth capacitance value between the pads of the invalid button and the ground terminal after removing the charged conductive plate. Therefore, if the difference between the third capacitance value and the fourth capacitance value is less than or equal to 0, it can be determined which pad has an open circuit with the chip.
[0067] In this embodiment of the invention, by adopting the above technical solution, not only can defective buttons be efficiently identified in a single process, but also, after determining that the fault of the defective button is an internal circuit break, the location of the circuit break can be quickly and accurately located.
[0068] For more detailed information on steps S41 to S44 in the specific implementation, please refer to the preceding text and... Figures 1 to 3 The steps described in the document will be executed, and will not be repeated here.
[0069] Reference Figure 5 , Figure 5This is a schematic diagram of a key detection device according to an embodiment of the present invention. The key detection device may include:
[0070] The button first capacitance value determination module 51 is used to determine the first capacitance value of multiple buttons on the circuit board to be tested. Each button includes a pair of pads, and the first capacitance value of each button is used to represent the capacitance between the pair of pads.
[0071] The charged conductive plate discharge module 52 is used to set each button as a mutual capacitance touch button, and to cover the charged conductive plate on the circuit board to be tested, and to discharge to the preset pads in the pairs of pads of each button, so as to change the capacitance between the pairs of pads.
[0072] The button second capacitance value determination module 53 is used to determine the second capacitance value of the plurality of buttons, wherein the second capacitance value of each button is used to represent the capacitance between the paired pads;
[0073] The defective button determination module 54 is used to determine that a button is defective when the error between the capacitance difference between the second capacitance value and the first capacitance value and the preset capacitance difference exceeds a preset error range.
[0074] For details regarding the principle, implementation, and beneficial effects of this button detection device, please refer to the preceding text. Figures 1 to 4 The description of the key detection method shown is not repeated here.
[0075] This invention also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, performs the steps of the above-described key detection method. The computer-readable storage medium may include non-volatile or non-transitory memory, and may also include optical discs, hard disk drives, solid-state drives, etc.
[0076] Specifically, in this embodiment of the invention, the processor can be a central processing unit (CPU), or it can be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0077] It should also be understood that the memory in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced synchronous DRAM (ESDRAM), synchronous linked DRAM (SLDRAM), and direct rambus RAM (DR RAM).
[0078] This invention also provides a terminal, including a memory and a processor. The memory stores a computer program that can run on the processor. When the processor runs the computer program, it performs the steps of the above-described key detection method. The terminal may include, but is not limited to, mobile phones, computers, tablets, and other terminal devices, and may also be servers, cloud platforms, etc.
[0079] It should be understood that the term "and / or" in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article indicates that the preceding and following related objects have an "or" relationship.
[0080] In the embodiments of this application, "multiple" refers to two or more.
[0081] The descriptions of "first," "second," etc., appearing in the embodiments of this application are for illustrative purposes and to distinguish the objects being described. They have no order and do not indicate any special limitation on the number of devices in the embodiments of this application, nor do they constitute any limitation on the embodiments of this application.
[0082] It should be noted that the sequence number of each step in this embodiment does not represent a limitation on the execution order of each step.
[0083] While the present invention has been disclosed above, it is not limited thereto. Any person skilled in the art can make various modifications and alterations without departing from the spirit and scope of the invention; therefore, the scope of protection of the present invention should be determined by the scope defined in the claims.
Claims
1. A key detection method, characterized in that, include: Determine the first capacitance value of multiple buttons on the circuit board to be tested. Each button includes a pair of pads. The first capacitance value of each button is used to represent the capacitance between the pair of pads. Each button is set as a mutual capacitance touch button, and a charged conductive plate is covered on the circuit board to be tested. A preset pad in the pair of pads of each button is discharged to change the capacitance between the pair of pads. Determine the second capacitance value of the plurality of buttons, wherein the second capacitance value of each button is used to represent the capacitance between the paired pads; For each button, if the error between the capacitance difference between the second capacitance value and the first capacitance value and the preset capacitance difference exceeds the preset error range, the button is determined to be a defective button. Each button also includes a chip and a resistor. The resistor is connected in series with the chip and the paired pads. For each defective button, it is determined whether the capacitance difference is greater than 0. If it is, it is confirmed that the connection circuit is normal and that the resistor is selected incorrectly. The incorrect resistor selection means that the resistance value of the resistor is too large.
2. The method according to claim 1, characterized in that, The charged conductive plate contains a discharge capacitor. The step of discharging a preset pad in the pair of pads of each button to change the capacitance between the pair of pads includes: The discharge plate in the discharge capacitor is electrically connected to a preset pad in the pair of pads, and discharge is applied to the preset pad to change the capacitance between the pair of pads.
3. The method according to claim 1, characterized in that, Each button also includes a chip and wiring, the wiring being used to connect the chip and the paired pads, the method further including: For each defective button, determine whether the capacitance difference is less than or equal to 0. If it is, then it is confirmed that there is an open circuit in the circuit.
4. The method according to claim 3, characterized in that, After determining that there is an open circuit in the line, the method further includes: Each defective button is set as a self-capacitive touch button, and the third capacitance value between the charged conductive plate and each pad of the defective button is determined. Based on the third capacitance value, determine in which pad and chip the circuit the open circuit occurred.
5. The method according to claim 4, characterized in that, Determining which pad and chip the circuit break occurred in based on the third capacitance value includes: Remove the charged conductive plate and determine the fourth capacitance value between each pad of the defective button and the ground terminal; If the difference between the third capacitance value and the fourth capacitance value is less than or equal to 0, it is determined that the circuit between the pad and the chip is open.
6. The method according to claim 1, characterized in that, The method further includes: Calculate the ratio between the number of defective buttons and the total number of the plurality of buttons; When the ratio is greater than a preset ratio, the circuit board to be tested is determined to be unqualified.
7. The method according to claim 1, characterized in that, The material of the charged conductive plate is selected from metal materials with a conductivity greater than or equal to a preset threshold.
8. A key detection device, characterized in that, include: A button first capacitance value determination module is used to determine the first capacitance value of multiple buttons on a circuit board to be tested. Each button includes a pair of pads, and the first capacitance value of each button is used to represent the capacitance between the pair of pads. A charged conductive plate discharge module is used to set each button as a mutual capacitance touch button, and to cover the circuit board to be tested with a charged conductive plate and discharge to the preset pads in the pairs of pads of each button to change the capacitance between the pairs of pads. A button second capacitance value determination module is used to determine the second capacitance value of the plurality of buttons, wherein the second capacitance value of each button is used to represent the capacitance between the paired pads; The defective button determination module is used to determine that a button is defective when the error between the capacitance difference between the second capacitance value and the first capacitance value and the preset capacitance difference exceeds a preset error range. Each button also includes a chip and a resistor, with the resistor connected in series with the chip and the paired pads. For each defective button, it is determined whether the capacitance difference is greater than 0. If so, it is confirmed that the connection circuit is normal and that the resistor is selected incorrectly, meaning that the resistance value of the resistor is too large.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, The computer program, when run by the processor, performs the steps of the key detection method according to any one of claims 1 to 7.
10. A terminal comprising a memory and a processor, wherein the memory stores a computer program capable of running on the processor, characterized in that, When the processor runs the computer program, it performs the steps of the key detection method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Testing circuit of capacitive screen and testing method thereof
CN103308776A
Detection method and detection device of display panel, display panel and display equipment
CN110517615A