Key test circuit

By designing a key testing circuit including relays, drive modules and control modules, the problem of traditional key testing relies on manual operation is solved, and automated testing of non-planar or special-shaped keys is realized, and testing efficiency and accuracy are improved. It reduces equipment costs and is suitable for popular use of small and medium-sized enterprises.

CN119064774APending Publication Date: 2024-12-03SHANGHAI ZHUODAO MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411302616.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The traditional key testing method relies on manual operation, is inefficient and inaccurate, and the existing automated testing equipment cannot effectively test non-planar or special-shaped keys, and is expensive and complex in operation, which is not conducive to the popularization and use of small and medium-sized enterprises.

Method used

A key testing circuit including a relay, a driving module and a control module is designed. The control module sends a signal to drive the relay to absorb or release the button to realize automatic testing, which is suitable for non-planar or special-shaped buttons.

Benefits of technology

It realizes automated button testing, improves testing efficiency and accuracy, reduces equipment costs, simplifies the operation interface, and is suitable for popular use of small and medium-sized enterprises.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119064774A_ABST
    Figure CN119064774A_ABST
Patent Text Reader

Abstract

The invention provides a circuit for key testing, relates to the technical field of key testing, and is used for solving the technical problem that a traditional key testing method generally depends on manual operation in the related technology. The circuit comprises a relay, a key is in a first state when the relay is closed, and the key is in a second state when the relay is closed; when the relay is released, the key is in a second state; the output end of the driving module is coupled with the relay, and the driving module is used for enabling the relay to be closed or released; and the control module is coupled with the driving module, the control module is used for generating a control signal, and the driving module enables the relay to be closed or released under the control of the control signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of case testing, and in particular to a circuit for key testing. Background Art

[0002] In the manufacturing process of modern electronic products, buttons are an important interface for users to interact with devices, and the stability and reliability of their performance are crucial. Traditional button testing methods usually rely on manual operation, which is not only inefficient but also easily interfered by human factors, resulting in inaccurate and inconsistent test results. In order to improve test efficiency and accuracy, various automated button testing equipment have appeared on the market.

[0003] However, most of the existing key testers can only test keys placed on a flat surface. For non-planar or special-shaped keys, the testing capabilities are limited. In addition, due to the complex design and high manufacturing cost, the price of these devices is usually high, which is not conducive to the popularization of small and medium-sized enterprises. At the same time, the operating interface of some devices is not user-friendly and requires professional personnel to operate and maintain, which increases the threshold for use. Summary of the invention

[0004] The embodiment of the present application provides a key test circuit, which is used to improve the technical problem in the related art that the traditional key test method usually relies on manual operation.

[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions: An embodiment of the present application provides a button test circuit, which is used for button testing. The circuit includes: a relay, which puts the button in a first state when the relay is energized, and puts the button in a second state when the relay is released; a drive module, an output end of the drive module is coupled to the relay, and the drive module is used to energize or release the relay; a control module, which is coupled to the drive module, and is used to generate a control signal, and the drive module causes the relay to energize or release under the control of the control signal.

[0006] In this way, a control signal can be sent from the control module to the drive module, so that the drive module drives the relay to be energized or released, and the button is placed in the first state or the second state through the energization or release of the relay, so that the button test can be completed automatically. Moreover, since the button is driven by the energization or release of the relay, non-screen buttons or buttons with special shapes can be tested, which improves the technical problem in the related technology that the traditional button testing method usually relies on manual operation.

[0007] In a possible implementation, the driving module includes: a driving unit, a first end of the driving unit is used to receive a power supply voltage, and a second end of the driving unit is coupled to the relay; a control unit, a first end of the control unit is coupled to a control end of the driving unit, a second end of the control unit is grounded, and the control end of the control unit is coupled to the control module to receive the control signal, and the control unit causes the driving unit to drive the relay to be attracted or released under the control of the control signal.

[0008] In a possible implementation, the driving unit includes a driving transistor, a first end of the driving transistor is used to receive the power supply voltage, a second end of the driving transistor is coupled to the relay, and a control end of the driving transistor is coupled to the control unit.

[0009] In a possible implementation, the control unit includes a control transistor, a first end of the control transistor is coupled to the control end of the drive unit, a second end of the control transistor is grounded, and the control end of the control transistor is coupled to the control module.

[0010] In a possible implementation, the circuit also includes a collection module, which is coupled to the output end of the driving module. The collection module is also coupled to the control module. The collection module is used to collect the voltage output by the driving module and transmit it to the control module. The control module determines the number of times the relay is closed based on the voltage.

[0011] In a possible implementation, the acquisition module includes a first resistor and a second resistor, the first end of the first resistor is coupled to the output end of the driving module, the second end of the first resistor is coupled to the first end of the second resistor, the second end of the second resistor is grounded, and the second end of the first resistor is also coupled to the control module.

[0012] In a possible implementation, the circuit further includes an input module, an input terminal of the input module is coupled to a power supply terminal, an output terminal of the input module is coupled to an input terminal of the driving module, and the input module is used to provide a power supply voltage.

[0013] In a possible implementation, the input module includes: a protection unit, a first end of the protection unit is coupled to the power supply end, a second end of the protection unit is coupled to the anode of the first diode, and the protection unit is used to open the circuit between the power supply end and the first diode when the power supply voltage is greater than a preset threshold; a first diode, a cathode of the first diode is coupled to the input end of the driving module; and a filtering unit, the filtering unit is coupled to the input end of the driving module, and the filtering unit is used to filter the power supply voltage.

[0014] In a possible implementation, the protection unit includes a fuse, a first end of the fuse is coupled to the power supply end, a second end of the fuse is coupled to the anode of the first diode, the filtering unit includes a first capacitor, a first end of the first capacitor is coupled to the input end of the driving module, and a second end of the first capacitor is grounded.

[0015] In a possible implementation, the circuit also includes a display module, which includes a driver chip and a display unit. The driver chip is coupled to the control module, and the driver chip is also coupled to the display unit. The driver chip is used to drive the display unit to display according to an interrupt signal of the control module.

[0016] In this way, a control signal can be sent from the control module to the drive module, so that the drive module drives the relay to be energized or released, and the button is placed in the first state or the second state through the energization or release of the relay, so that the button test can be completed automatically. Moreover, since the button is driven by the energization or release of the relay, non-screen buttons or buttons with special shapes can be tested, which improves the technical problem in the related technology that the traditional button testing method usually relies on manual operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A schematic diagram of a circuit structure provided for some embodiments of the present application; Figure 2 A schematic diagram of the structure of a driving module provided in some embodiments of the present application; Figure 3 A schematic diagram of the circuit structure of a driving module provided in some embodiments of the present application; Figure 4 A schematic diagram of the structure of an input module provided for some embodiments of the present application; Figure 5 A schematic diagram of the circuit structure of an input module provided in some embodiments of the present application; Figure 6 A schematic diagram of the circuit structure of the acquisition module provided in some embodiments of the present application. DETAILED DESCRIPTION

[0018] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0019] In the following, the terms "first", "second", etc. are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", etc. may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.

[0020] In addition, in the present application, directional terms such as "up", "down", "left" and "right" may be defined including but not limited to the orientation relative to the schematic placement of the components in the drawings. It should be understood that these directional terms may be relative concepts, which are used for relative description and clarification, and may change accordingly according to the change in the orientation of the components in the drawings.

[0021] In this application, unless otherwise specified or limited, the term "connection" should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection or an indirect connection through an intermediate medium. In addition, the term "electrical connection" can be a way of achieving electrical connection for signal transmission.

[0022] As used herein, “about,” “substantially,” or “approximately” includes the stated value and reference values ​​that are within an acceptable range of deviation from the particular value, where the acceptable range of deviation is as determined by one of ordinary skill in the art taking into account the measurements in question and the errors associated with the measurement of the particular quantity (i.e., the limitations of the measurement system).

[0023] In the embodiments of the present application, the words "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.

[0024] In the manufacturing process of modern electronic products, buttons are an important interface for users to interact with devices, and the stability and reliability of their performance are crucial. Traditional button testing methods usually rely on manual operation, which is not only inefficient but also easily interfered by human factors, resulting in inaccurate and inconsistent test results. In order to improve test efficiency and accuracy, various automated button testing equipment have appeared on the market.

[0025] However, most of the existing key testers can only test keys placed on a flat surface. For non-planar or special-shaped keys, the testing capabilities are limited. In addition, due to the complex design and high manufacturing cost, the price of these devices is usually high, which is not conducive to the popularization of small and medium-sized enterprises. At the same time, the operating interface of some devices is not user-friendly and requires professional personnel to operate and maintain, which increases the threshold for use.

[0026] The embodiment of the present application provides a button test circuit, which is used to improve the technical problem that the traditional button 104 test method in the related art usually relies on manual operation.

[0027] The circuit is used for testing the button 104, and the circuit includes a relay 103, a drive module 102, and a control module 105. When the relay 103 is energized, the button 104 is in a first state, and when the relay 103 is released, the button 104 is in a second state. It should be noted that in this application, the state of the button 104 when it is pressed is defined as one of the first state and the second state, and the state of the button 104 when it is released is defined as the other of the first state and the second state.

[0028] The output terminal Out of the driving module 102 is coupled to the relay 103 , and the driving module 102 is used to close or release the relay 103 . The driving module 102 outputs current to the relay 103 to close the electromagnet of the relay 103 , thereby completing the pressing of the button 104 .

[0029] The control module 105 is coupled to the driving module 102 . The control module 105 is used to generate a control signal. The driving module 102 causes the relay 103 to be closed or released under the control of the control signal.

[0030] In this way, a control signal can be sent to the driving module 102 through the control module 105, so that the driving module 102 drives the relay 103 to be attracted or released, and the button 104 is placed in the first state or the second state through the attraction or release of the relay 103, so that the button 104 test can be completed automatically. Moreover, since the button 104 is driven by the attraction or release of the relay 103, non-screen buttons or buttons with special shapes can be tested, which improves the technical problem in the related art that the traditional button testing method usually relies on manual operation.

[0031] like Figure 2 As shown, the driving module 102 includes a driving unit 121 and a control unit 122. A first end of the driving unit 121 is used to receive a power supply voltage, and a second end of the driving unit 121 is coupled to the relay 103. The driving unit 121 is used to provide a power supply voltage to the relay 103.

[0032] For example, Figure 3 As shown, the driving unit 121 includes a driving transistor T1, a third resistor R3 and a fourth resistor R4. The first end of the driving transistor T1 is used to receive the power supply voltage, and the second end of the driving transistor T1 is coupled to the relay 103. The first end of the third resistor R3 is coupled to the first end of the driving transistor T1, the second end of the third resistor R3 is coupled to the first end of the fourth resistor R4, and the second end of the fourth resistor R4 is coupled to the control unit 122. The control end of the driving transistor T1 is connected to the common end of the third resistor R3 and the fourth resistor R4, that is, the connection between the third resistor R3 and the fourth resistor R4.

[0033] When the control unit 122 does not receive the control signal, the driving transistor T1 is turned off, and the supply voltage cannot be transmitted to the relay 103. When the control unit 122 receives the control signal, the control unit 122 is turned on, and the driving transistor T1 is controlled to be turned on, so that the supply voltage can be provided to the relay 103, so that the magnet of the relay 103 is attracted, and the button 104 is pressed.

[0034] Exemplarily, the driving transistor T1 is a P-type transistor.

[0035] In some other examples, the driving module 102 may further include a first indicating unit 123, wherein the first indicating unit 123 includes a fifth resistor R5 and a first light emitting diode L1. The first light emitting diode L1 is coupled to the second end of the driving transistor T1 through the fifth resistor R5. When the driving transistor T1 provides a power supply voltage to the relay 103, the first light emitting diode L1 is in a light emitting state.

[0036] The first end of the control unit 122 is coupled to the control end of the drive unit 121, the second end of the control unit 122 is grounded, the control end of the control unit 122 is coupled to the control signal output end Ctrl coupled to the control module 105 to receive the control signal, and the control unit 122 enables the drive unit 121 to drive the relay 103 to be attracted or released under the control of the control signal.

[0037] Exemplarily, the control unit 122 includes a sixth resistor R6 and a control transistor T2. The first end of the control transistor T2 is coupled to the control end of the driving unit 121, the second end of the control transistor T2 is grounded, and the control end of the control transistor T2 is coupled to the control module 105. The first end of the sixth resistor R6 is coupled to the control module 105 to receive the control signal, and the second end of the sixth resistor R6 is coupled to the first end of the control transistor T2. In this way, the control signal can be prevented from being too large to damage the control transistor T2.

[0038] Exemplarily, the control module 105 may be a single chip microcomputer, which sends a control signal to the control terminal of the control transistor T2 to turn on or off the control transistor T2. For example, when the control transistor T2 is an N-type MOS, the single chip microcomputer sends a high level signal to turn on the control transistor T2, and when the control transistor T2 is a P-type MOS, the single chip microcomputer sends a low level signal to turn off the control transistor T2.

[0039] In one possible implementation, Figure 1 As shown, the circuit also includes a collection module 106, which is coupled to the output end of the driving module 102. The collection module 106 is also coupled to the control module 105. The collection module 106 is used to collect the voltage output by the driving module 102 and transmit it to the control module 105. The control module 105 determines the number of times the relay 103 is closed according to the voltage.

[0040] For example, Figure 6 As shown, the acquisition module 106 includes a first resistor R1 and a second resistor R2, wherein a first end of the first resistor R1 is coupled to an output end Out of the driving module 102, a second end of the first resistor R1 is coupled to a first end of the second resistor R2, a second end of the second resistor R2 is grounded, and a second end of the first resistor R1 is also coupled to the control module 105. The control module 105 obtains the number of times the relay 103 is pulled in, that is, the number of times the button 104 is pressed, by obtaining the voltage on the second resistor R2.

[0041] When the driving transistor T1 is turned off, the voltage on the second resistor R2 is at a high level. When the driving transistor T1 is turned on and the relay 103 is attracted under the action of the power supply voltage, the voltage on the second resistor R2 rises to a high level. Therefore, when the control module 105 detects that the voltage on the second resistor R2 changes from a low level to a high level, it can be considered that the relay 103 is attracted and the button 104 is in a pressed state. Therefore, the control module 105 can obtain the number of tests of the button 104 by obtaining the number of high levels on the second resistor R2.

[0042] In some examples, the acquisition module 106 may further include a first connector CN1, a second diode D2, and a second capacitor C2. The positive input terminal of the first connector CN1 is coupled to the first terminal of the first resistor R1, and the negative input terminal of the first connector CN1 is grounded. The anode of the second diode D2 is coupled to the first terminal of the first resistor R1, and the cathode of the second diode D2 is grounded. The first terminal of the second capacitor C2 is coupled to the second terminal of the first resistor R1, and the second terminal of the second capacitor C2 is grounded.

[0043] In a possible implementation, the circuit further includes an input module 101, an input terminal of the input module 101 is coupled to a power supply terminal, an output terminal of the input module 101 is coupled to an input terminal of the driving module 102, and the input module 101 is used to provide a power supply voltage. The power supply terminal is used to provide a power supply voltage to the input module 101.

[0044] For example, Figure 5 As shown, the input module 101 includes a second connector CN2, a protection unit 111, a filtering unit 112 and a first diode D1. The positive input terminal of the second connector CN2 is coupled to the power supply terminal, and the negative input terminal of the second connector CN2 is grounded. The first end of the protection unit 111 is coupled to the positive output terminal of the second connector CN2, and the second end of the protection unit 111 is coupled to the anode of the first diode D1. The protection unit 111 is used to open the circuit between the power supply terminal and the first diode D1 when the power supply voltage is greater than a preset threshold. The cathode of the first diode D1 is coupled to the input terminal of the driving module 102. The filtering unit 112 is coupled to the input terminal of the driving module 102, and the filtering unit 112 is used to filter the power supply voltage.

[0045] Exemplarily, the protection unit 111 includes a fuse F1, a first end of the fuse F1 is coupled to the power supply end, and a second end of the fuse F1 is coupled to the anode of the first diode D1. The filtering unit 112 includes a first capacitor C1, a first end of the first capacitor C1 is coupled to the input end of the driving module 102, and a second end of the first capacitor C1 is grounded.

[0046] In a possible implementation, the input module 101 further includes a second indicating unit 113, and the second indicating unit 113 includes a seventh resistor R7 and a second light emitting diode L2. When the supply voltage is input, the second light emitting diode L2 is in a light emitting state.

[0047] In a possible implementation, the circuit further includes a display module, the display module includes a driver chip and a display unit, the driver chip is coupled to the control module 105, the driver chip is also coupled to the display unit, and the driver chip is used to drive the display unit to display according to the interrupt signal of the control module 105. Each time the driving transistor T1 is turned on, a rising edge signal triggering interrupt will be given to the control module 105 (i.e., the single-chip microcomputer) through the second resistor R2. The driver chip is coupled to the control module 105. When an interrupt is generated, the control module 105 drives the digital tube driving circuit through the driver chip, so that the key 104 counts +1.

[0048] For example, the driver chip is a 74HC245TS bus transceiver. The display unit can be a FJ4301BH 3-digit 0.4-inch red digital tube. The connection between the driver chip and the display unit is a conventional technical means for those skilled in the art, which will not be described in detail here.

[0049] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that the diagnostic method in the above embodiment can be implemented by software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of various embodiments of the present invention.

[0050] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0051] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0052] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0053] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated units may be implemented in the form of hardware.

[0054] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A key test circuit, used for key test, characterized in that: The circuit comprises: a relay, wherein when the relay is closed, the button is in a first state, and when the relay is released, the button is in a second state; A driving module, the output end of which is coupled to the relay, and the driving module is used to close or release the relay; A control module is coupled to the drive module, the control module is used to generate a control signal, and the drive module causes the relay to be attracted or released under the control of the control signal.

2. The circuit according to claim 1, characterized in that The driving module comprises: A driving unit, wherein a first end of the driving unit is used to receive a power supply voltage, and a second end of the driving unit is coupled to the relay; A control unit, wherein a first end of the control unit is coupled to a control end of the drive unit, a second end of the control unit is grounded, and the control end of the control unit is coupled to the control module to receive the control signal. The control unit enables the drive unit to drive the relay to close or release under the control of the control signal.

3. The circuit according to claim 2, characterized in that The driving unit comprises a driving transistor, a first terminal of the driving transistor is used to receive the power supply voltage, a second terminal of the driving transistor is coupled to the relay, and a control terminal of the driving transistor is coupled to the control unit.

4. The circuit according to claim 3, characterized in that The control unit comprises a control transistor, a first terminal of the control transistor is coupled to the control terminal of the driving unit, a second terminal of the control transistor is grounded, and the control terminal of the control transistor is coupled to the control module.

5. The circuit according to claim 1, characterized in that The circuit also includes a collection module, which is coupled to the output end of the driving module and is also coupled to the control module. The collection module is used to collect the voltage output by the driving module and transmit it to the control module. The control module determines the number of times the relay is closed based on the voltage.

6. The circuit according to claim 5, characterized in that The acquisition module includes a first resistor and a second resistor, wherein the first end of the first resistor is coupled to the output end of the driving module, the second end of the first resistor is coupled to the first end of the second resistor, the second end of the second resistor is grounded, and the second end of the first resistor is also coupled to the control module.

7. The circuit according to claim 1, characterized in that The circuit further comprises an input module, an input terminal of the input module is coupled to a power supply terminal, an output terminal of the input module is coupled to an input terminal of the driving module, and the input module is used to provide a power supply voltage.

8. The circuit according to claim 7, characterized in that The input module comprises: A protection unit, wherein a first end of the protection unit is coupled to the power supply end, a second end of the protection unit is coupled to the anode of the first diode, and the protection unit is used to disconnect the power supply end and the first diode when the power supply voltage is greater than a preset threshold; a first diode, wherein a cathode of the first diode is coupled to an input terminal of the driving module; A filter unit is coupled to the input end of the driving module, and is used for filtering the supply voltage.

9. The circuit according to claim 7, characterized in that The protection unit includes a fuse, a first end of the fuse is coupled to the power supply end, a second end of the fuse is coupled to the anode of the first diode, and the filtering unit includes a first capacitor, a first end of the first capacitor is coupled to the input end of the driving module, and a second end of the first capacitor is grounded.

10. The circuit according to claim 1, characterized in that The circuit also includes a display module, which includes a driver chip and a display unit. The driver chip is coupled to the control module, and is also coupled to the display unit. The driver chip is used to drive the display unit to display according to an interrupt signal from the control module.