A key-press duration recognition circuit, a key-press duration recognition device and a self-generating switch

By designing a button duration recognition circuit including a half-bridge conductive circuit, a charge and discharge circuit, a rectifier circuit and a switch circuit, the problem of self-generating switches not being able to recognize the button for a long press or a short press is solved, and effective identification of the button duration is achieved.

CN111835329BActive Publication Date: 2025-03-25SHENZHEN SUNRICHER TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010670752.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-13
Publication Date
2025-03-25
Estimated Expiration
2040-07-13

AI Technical Summary

Technical Problem

The existing self-generating switches cannot recognize the long press or short press of the button, which limits its application range.

Method used

A key duration identification circuit is designed, including a half-bridge conductive circuit, a charge and discharge circuit, a rectifier circuit and a switching circuit. Through these circuits, the alternating current signal output from the power generation core is converted into a DC voltage signal, and the key duration identification signal is generated based on these signals.

Benefits of technology

Effectively identifying long presses or short presses of buttons solves the problem that the self-generating switch cannot recognize these operations and expands its application range.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111835329B_ABST
    Figure CN111835329B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of switch detection technology, and provides a key-press duration recognition circuit, a key-press duration recognition device, and a self-generating switch. The alternating current signal output by the self-generating core is converted into a first direct current voltage signal through a half-bridge conductive circuit to charge or discharge the charge and discharge circuit, thereby generating a corresponding switch control signal to control the conduction and shutdown of the switch circuit. The rectifier circuit converts the alternating current signal output by the self-generating core into a second direct current voltage signal and sends it to the switch circuit. The switch circuit generates a key-press duration recognition signal based on the second direct current voltage signal and the switch control signal, thereby solving the problem that the existing self-generating switch cannot recognize whether a key is pressed for a long time or a short time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of switch detection, and in particular relates to a key-press duration recognition circuit, a key-press duration recognition device, and a self-generating switch. Background Art

[0002] Traditional switches are mainly powered by direct wiring or batteries. As electrical equipment is widely used, electrical equipment has higher requirements for the scope of use and functionality of switches. Self-generating switches are favored by users because they do not require batteries and have simple wiring. In a self-generating switch, by operating the magnet group up and down with a button, the self-generating core can convert mechanical energy into electrical energy, thereby realizing self-generation to provide power to the control board and generate corresponding control signals.

[0003] However, the existing self-generating switch has the problem of being unable to identify whether a button is pressed long or short, which greatly limits the application scope of the self-generating switch. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a key press duration recognition circuit, a key press duration recognition device and a self-generating switch, which can solve the problem that the existing self-generating switch cannot recognize whether a key is pressed long or short.

[0005] A first aspect of an embodiment of the present application provides a key-press duration recognition circuit connected to a self-generating core, the key-press duration recognition circuit comprising:

[0006] A half-bridge conductive circuit, connected to the self-generating core, and used for converting the alternating current signal output by the self-generating core into a first direct current voltage signal;

[0007] a charging and discharging circuit, connected to the half-bridge conductive circuit, configured to receive the first DC voltage signal, and to charge or discharge according to the first DC voltage signal to generate a corresponding switch control signal;

[0008] a rectifier circuit connected to the self-generating core and configured to convert the alternating current signal output by the self-generating core into a second direct current voltage signal, wherein the discharge time of the charge-discharge circuit is greater than the discharge time of the rectifier circuit; and

[0009] The switch circuit is connected to the charge and discharge circuit and the rectifier circuit, and is used to receive the second DC voltage signal and the switch control signal, and generate a key duration recognition signal according to the second DC voltage signal and the switch control signal.

[0010] Optionally, the half-bridge conductive circuit includes a first diode, an anode of the first diode is connected to the self-generating core, and a cathode of the first diode is connected to the charging and discharging circuit.

[0011] Optionally, the charging and discharging circuit includes an energy storage unit and a discharging unit;

[0012] The first end of the energy storage unit and the first end of the discharge unit are commonly connected to the half-bridge conductive circuit, and the second end of the discharge unit and the second end of the energy storage unit are commonly connected to the ground.

[0013] Optionally, the energy storage unit is a first capacitor.

[0014] Optionally, the discharge unit is a first resistor.

[0015] Optionally, the first resistor is an adjustable resistor.

[0016] Optionally, the switching circuit includes a first switching tube and a second resistor; the current input end of the first switching tube and the first end of the second resistor are connected to the output end of the switching circuit, the second end of the second resistor is connected to the rectifier circuit, the control end of the first switching tube is connected to the charging and discharging circuit, and the current output end of the first switching tube is grounded.

[0017] Optionally, the first switch tube is an N-type MOS tube.

[0018] A second aspect of an embodiment of the present application provides a key press duration recognition device, comprising a key press duration recognition circuit as described in any one of the above items.

[0019] A third aspect of an embodiment of the present application provides a self-generating switch, comprising a self-generating core and a key-press duration recognition circuit as described in any one of the above items.

[0020] The embodiments of the present application provide a key-press duration recognition circuit, a key-press duration recognition device, and a self-generating switch. The AC signal output by the self-generating core is converted into a first DC voltage signal through a half-bridge conductive circuit to charge or discharge the charge and discharge circuit, thereby generating a corresponding switch control signal to control the conduction and shutdown of the switch circuit. The rectifier circuit converts the AC signal output by the self-generating core into a second DC voltage signal and sends it to the switch circuit. The switch circuit generates a key-press duration recognition signal based on the second DC voltage signal and the switch control signal, thereby solving the problem that the existing self-generating switch cannot recognize whether a key is pressed for a long time or a short time. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0022] Figure 1 It is a structural diagram of a key-press duration recognition circuit provided by an embodiment of the present application;

[0023] Figure 2 is a structural schematic diagram of a key-press duration recognition circuit provided by another embodiment of the present application;

[0024] Figure 3 is a schematic diagram of a voltage waveform at a control end of a switch circuit provided by an embodiment of the present application;

[0025] Figure 4 1 is a waveform diagram of a switching circuit output terminal X and a rectifier circuit output terminal VDD provided by an embodiment of the present application. DETAILED DESCRIPTION

[0026] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0027] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0028] In the self-generating switch, the self-generating core is coupled to the linkage device, so that when the key switch is pressed, the linkage device drives the self-generating core to cut the magnetic flux lines to generate electrical energy, and a reset member is arranged under the linkage arm to store energy when the linkage device is pushed downward, so that the linkage arm is released when the key switch is released, and the linkage arm is returned to its original position. Specifically, the reset member elastically supports the linkage arm in the initial state of the self-generating switch, and stores potential energy when the self-generating switch is pressed, and then when the key switch is released, the reset member releases the potential energy to return the linkage arm to its original position.

[0029] Figure 1 This is a schematic diagram of a key-press duration recognition circuit provided in an embodiment of the present application. Figure 1 As shown, the key-press duration recognition circuit in the present embodiment is connected to the self-generating core 10, and the key-press duration recognition circuit includes a half-bridge conductive circuit 21, a charge-discharge circuit 22, a rectifier circuit 23 and a switch circuit 24. Specifically, the half-bridge conductive circuit 21 is connected to the self-generating core 10, and is used to convert the AC signal output by the self-generating core 10 into a first DC voltage signal; the charge-discharge circuit 22 is connected to the half-bridge conductive circuit 21, and is used to receive the first DC voltage signal, and charge or discharge according to the first DC voltage signal to generate a corresponding switch control signal; the rectifier circuit 23 is connected to the self-generating core 10, and is used to convert the AC signal output by the self-generating core 10 into a second DC voltage signal, wherein the discharge time of the charge-discharge circuit 22 is greater than the discharge time of the rectifier circuit 23; the switch circuit 24 is connected to the charge-discharge circuit 22 and the rectifier circuit 23, and is used to receive the second DC voltage signal and the switch control signal, and generate a key-press duration recognition signal according to the second DC voltage signal and the switch control signal.

[0030] In this embodiment, the half-bridge conductive circuit 21 is used to perform half-bridge conductive processing on the AC signal generated at the output end of the self-generating core 10, that is, to process the positive half-wave or negative half-wave of the AC signal, so as to generate a corresponding first DC voltage signal. For example, after the key is pressed, the self-generating core 10 cuts the magnetic field, converts the kinetic energy into electrical energy, and generates a corresponding first DC voltage signal after passing through the half-bridge conductive circuit 21. At the same time, the rectifier circuit 23 converts the AC signal output from the output end of the self-generating core 10 into a second DC voltage signal, wherein the rectifier circuit 23 is a full-bridge rectifier circuit. When the first DC voltage signal passes through the charge-discharge circuit 22, the charge-discharge circuit 22 is first charged, and a switch control signal is generated and sent to the control end of the switch circuit 24. When the voltage of the switch control signal generated by charging is the switch threshold voltage, the switch circuit 24 is turned on, and the output end of the switch circuit 24 is grounded. At this time, the key duration recognition signal is a low-level signal.

[0031] The key switch can generate an AC signal when it is continuously pressed and rebounded. Due to the unidirectional conductive characteristics of the half-bridge conductive circuit 21, a positive first DC voltage signal is generated only when the key switch is pressed. When the key switch rebounds, the voltage of the first DC voltage signal output by the half-bridge conductive circuit 21 is 0V.

[0032] In one embodiment, the charging time and the discharging time of the charge and discharge circuit 22 are greater than the time for the rectifier circuit 23 to convert the AC signal into a second DC voltage signal and send it to the switch circuit 24 (i.e., the discharge time of the rectifier circuit 23). Therefore, if the key switch is released after a short press, it will bounce back, and the self-generating core 10 as a kinetic energy conversion device will continue to generate electricity during the rebound. The second DC voltage signal output by the output terminal VDD of the rectifier circuit 23 will continue to maintain a high level during the rebound process. At the same time, since the discharge time of the charge and discharge circuit 22 is relatively long, its discharge process is still continuing, the switch circuit 24 continues to be in the on state, and the output terminal of the switch circuit 24 continues to maintain a low level output, that is, the key duration recognition signal is always at a low level within time t1, thereby completing the recognition of the short press of the key switch.

[0033] If the user presses the key switch for a long time without releasing it, the key switch cannot rebound at this time. The self-generating core 10 as a kinetic energy conversion device only outputs a positive half-cycle signal at this time. Therefore, the charge-discharge circuit 22 will be completely discharged within time t2, and the voltage at the control end of the switch circuit 24 will be pulled to the ground, and the switch circuit 24 will be turned off. Therefore, after time t3 (t3>t2), the user lets go, and the kinetic energy device rebounds to generate a negative half-cycle signal in the AC signal. Since the charge-discharge circuit 22 has been completely discharged, the switch circuit 24 is turned off, and the rectifier circuit 23 rectifies the negative half-cycle signal in the AC signal and sends it to the output end of the switch circuit 24 for output, generating a high-level key duration recognition signal, thereby completing the recognition of the long press of the key switch.

[0034] In one embodiment, see Figure 2 As shown, the half-bridge conductive circuit 21 includes a first diode D1 , an anode of the first diode D1 is connected to the self-generating core 10 , and a cathode of the first diode D1 is connected to the charge and discharge circuit 22 .

[0035] In this embodiment, the first diode D1 is used as a half-bridge conductive circuit 21 to perform half-bridge conductive processing on the AC signal generated by the self-generating core 10, so as to prevent the negative half-cycle signal generated by the self-generating core 10 from interfering with the switch circuit 24 when the key switch bounces back.

[0036] In one embodiment, see Figure 2 As shown, the charge and discharge circuit 22 includes an energy storage unit 221 and a discharge unit 222; the first end of the energy storage unit 221 and the first end of the discharge unit 222 are connected to the half-bridge conductive circuit 21, and the second end of the discharge unit 222 and the second end of the energy storage unit 221 are connected to the ground.

[0037] In this embodiment, the energy storage unit 221 is used to charge and store energy when receiving an electrical signal, and discharge through the discharge unit 222 after stopping receiving the electrical signal, thereby controlling the voltage of the control end of the switch circuit 24. For example, by controlling the charging speed of the energy storage unit 221 and the discharging speed of the discharge unit 222, the time for which the voltage at the control end of the switch circuit 24 is maintained above the turn-on threshold voltage is controlled, thereby controlling the turn-on time of the switch circuit 24, and further, adjusting the time point when the voltage at the output end of the switch circuit 24 is at a low level.

[0038] In one embodiment, the energy storage unit 221 is a first capacitor C1.

[0039] In one embodiment, the discharge unit 222 may be a resistor, or a load circuit composed of a plurality of resistors connected in series or in parallel.

[0040] For example, see Figure 2 As shown, in one embodiment, the discharge unit 222 is a first resistor R1.

[0041] In one embodiment, the first resistor R1 is an adjustable resistor.

[0042] In this embodiment, the charging time and the discharging time of the charging and discharging circuit 22 can be adjusted by the adjustable resistor.

[0043] In one embodiment, see Figure 2 As shown, the switch circuit 24 includes a first switch tube Q1 and a second resistor R2; the current input end of the first switch tube Q1 and the first end of the second resistor R2 are connected to the output end of the switch circuit 24, the second end of the second resistor R2 is connected to the rectifier circuit 23, the control end of the first switch tube Q1 is connected to the charge and discharge circuit 22, and the current output end of the first switch tube Q1 is grounded.

[0044] In one embodiment, the first switch tube Q1 is an N-type MOS tube.

[0045] See also Figure 3 As shown, when the robot arm is pressed, during the time period from t0 to t1, the self-generating core 10 generates a first DC voltage signal, Figure 3 The horizontal axis represents time, and the vertical axis represents the voltage at the control end of the first switch tube Q1. Figure 4As shown, since the charging time and the discharging time of the charge-discharge circuit 22 are greater than the time for the rectifier circuit 23 to convert the AC signal into the second DC voltage signal and send it to the switch circuit 24, the AC signal generated by the self-generating core 10 is converted into a first DC voltage signal after passing through the first diode D1, and then converted into a second DC voltage signal after passing through the rectifier circuit 23. The first DC voltage signal first charges the first capacitor C1, and after reaching the conduction threshold voltage of the first switch tube Q1, the first switch tube Q1 is turned on. At this time, the output terminal VDD of the rectifier circuit 23 is at a high level, and the output terminal X of the switch circuit 24 is pulled down to the ground. If the robot arm (i.e., the robot arm is pressed After the key switch is short pressed, the key switch is released, and the key switch bounces back. The self-generating core 10 as a kinetic energy conversion device continues to generate electricity during the rebound, and the second DC voltage signal output by the output terminal VDD of the rectifier circuit 23 continues to maintain a high level during the rebound process. At the same time, since the discharge time of the charge and discharge circuit 22 is relatively long, its discharge process is still continuing, the switch circuit 24 continues to be in the on state, and the output end of the switch circuit 24 continues to maintain a low level output, that is, the key duration recognition signal (that is, the signal output by the output terminal X) is always at a low level from the time point t0 when the robot arm is pressed to the time point t2 when the first capacitor C1 is discharged, then it is judged that the key switch is in a short press state.

[0046] If the user presses the key switch for a long time without releasing it, that is, the key switch cannot rebound between time point t0 and time point t2, the self-generating core 10 as a kinetic energy conversion device will only output a positive half-cycle signal when pressed. Therefore, the charge-discharge circuit 22 will be completely discharged within time t2, and the voltage at the control end of the switch circuit 24 will be pulled to the ground, and the switch circuit 24 will be turned off after time t2. Therefore, after time t3 (t3>t2), the user releases the key switch, and the kinetic energy device rebounds to generate a negative half-cycle signal in the AC signal. Since the charge-discharge circuit 22 has been completely discharged, the switch circuit 24 is turned off, and the rectifier circuit 23 rectifies the negative half-cycle signal in the AC signal and sends it to the output terminal X of the switch circuit 24, see Output, Figure 4 As shown, at this time, the key duration recognition signal at the output terminal X is consistent with the signal of the output terminal VDD of the rectifier circuit 23, so that it is determined that the key switch is in a long-press state.

[0047] A second aspect of an embodiment of the present application provides a key press duration recognition device, which includes a key press duration recognition circuit as described in any one of the above items.

[0048] A third aspect of the embodiments of the present application provides a self-generating switch, which includes a self-generating core 10 and a key-press duration recognition circuit as described above.

[0049] The embodiments of the present application provide a key-press duration recognition circuit, a key-press duration recognition device, and a self-generating switch. The AC signal output by the self-generating core is converted into a first DC voltage signal through a half-bridge conductive circuit to charge or discharge the charge and discharge circuit, thereby generating a corresponding switch control signal to control the conduction and shutdown of the switch circuit. The rectifier circuit converts the AC signal output by the self-generating core into a second DC voltage signal and sends it to the switch circuit. The switch circuit generates a key-press duration recognition signal based on the second DC voltage signal and the switch control signal, thereby solving the problem that the existing self-generating switch cannot recognize whether a key is pressed for a long time or a short time.

[0050] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A key-press duration recognition circuit, connected to a self-generating core, characterized in that: The key-press duration recognition circuit comprises: A half-bridge conductive circuit is connected to the self-generating core and is used to convert the AC signal output by the self-generating core into a first DC voltage signal; wherein the self-generating core is coupled to a linkage device, and when the key switch is pressed, the linkage device drives the self-generating core to cut the magnetic flux lines to generate electrical energy; a charging and discharging circuit, connected to the half-bridge conductive circuit, configured to receive the first DC voltage signal, and to charge or discharge according to the first DC voltage signal to generate a corresponding switch control signal; a rectifier circuit connected to the self-generating core and configured to convert the alternating current signal output by the self-generating core into a second direct current voltage signal, wherein the discharge time of the charge-discharge circuit is greater than the discharge time of the rectifier circuit; and The switch circuit is connected to the charge and discharge circuit and the rectifier circuit, and is used to receive the second DC voltage signal and the switch control signal, and generate a key duration recognition signal according to the second DC voltage signal and the switch control signal.

2. The key-press duration recognition circuit according to claim 1, characterized in that: The half-bridge conductive circuit includes a first diode, an anode of the first diode is connected to the self-generating core, and a cathode of the first diode is connected to the charging and discharging circuit.

3. The key-press duration recognition circuit according to claim 2, characterized in that: The charging and discharging circuit includes an energy storage unit and a discharging unit; The first end of the energy storage unit and the first end of the discharge unit are commonly connected to the half-bridge conductive circuit, and the second end of the discharge unit and the second end of the energy storage unit are commonly connected to the ground.

4. The key-press duration recognition circuit according to claim 3, characterized in that: The energy storage unit is a first capacitor.

5. The key-press duration recognition circuit according to claim 3, characterized in that: The discharge unit is a first resistor.

6. The key-press duration recognition circuit according to claim 5, characterized in that: The first resistor is an adjustable resistor.

7. The key-press duration recognition circuit according to claim 1, characterized in that: The switching circuit includes a first switching tube and a second resistor; the current input end of the first switching tube and the first end of the second resistor are connected to the output end of the switching circuit, the second end of the second resistor is connected to the rectifier circuit, the control end of the first switching tube is connected to the charging and discharging circuit, and the current output end of the first switching tube is grounded.

8. The key-press duration recognition circuit according to claim 7, characterized in that: The first switch tube is an N-type MOS tube.

9. A key-press duration recognition device, characterized in that: It comprises a key-press duration recognition circuit as described in any one of claims 1 to 8.

10. A self-generating switch, characterized in that: It comprises a self-generating core and a key-press duration recognition circuit as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Key duration identification circuit, key duration identification device and self-generating switch

    CN212367244U