Key time identification circuit, key time identification device and self-generating switch
阅读说明:本技术 一种按键时长识别电路、按键时长识别装置及自发电开关 (Key time identification circuit, key time identification device and self-generating switch ) 是由 龚飞 于 2020-07-13 设计创作,主要内容包括:本申请适用于开关检测技术领域,提供了一种按键时长识别电路、按键时长识别装置及自发电开关,通过半桥导电电路将自发电内核输出的交流电信号转换为第一直流电压信号,以对充放电电路进行充电或者放电,从而生成对应的开关控制信号对开关电路的导通和关断进行控制,整流电路基于自发电内核输出的交流电信号转换为第二直流电压信号发送至开关电路,开关电路根据第二直流电压信号和开关控制信号生成按键时长识别信号,解决了现有的自发电开关存在的无法识别按键长按或者短按的问题。(The utility model is suitable for a switch detects technical field, a long recognition circuit is long when button, long recognition device and spontaneous electric switch are long when button, the alternating current signal who will generate electricity from the kernel output through half-bridge conductive circuit converts first direct current voltage signal into, with charge or discharge to charge-discharge circuit, thereby it controls to switch on and off of switch circuit to generate corresponding on-off control signal, rectifier circuit converts the alternating current signal of generating electricity from the kernel output into second direct current voltage signal and sends to switch circuit, long recognition signal is long when switch circuit generates the button according to second direct current voltage signal and on-off control signal, the problem that current spontaneous electric switch exists can't discernment button press for a long time or press for a short time has been solved.)
1. The utility model provides a long recognition circuit when button, is connected with the kernel from electricity generation, its characterized in that, long recognition circuit includes when button:
the half-bridge conductive circuit is connected with the self-generating core and used for converting an alternating current signal output by the self-generating core into a first direct current voltage signal;
the charging and discharging circuit is connected with the half-bridge conductive circuit and used for receiving the first direct-current voltage signal, charging or discharging according to the first direct-current voltage signal and generating a corresponding switch control signal;
the rectifying circuit is connected with the self-generating kernel and used for converting an alternating current signal output by the self-generating kernel into a second direct current voltage signal, wherein the discharging time of the charging and discharging circuit is longer than that of the rectifying circuit; and
and the switching circuit is connected with the charging and discharging circuit and the rectifying circuit and used for receiving the second direct-current voltage signal and the switching control signal and generating a key duration identification signal according to the second direct-current voltage signal and the switching control signal.
2. The key press duration identification circuit of claim 1, wherein the half-bridge conduction circuit comprises a first diode, an anode of the first diode is connected with the self-generating core, and a cathode of the first diode is connected with the charge and discharge circuit.
3. The key duration identification circuit of claim 2, wherein the charge and discharge circuit comprises an energy storage unit and a discharge unit;
the first end of the energy storage unit and the first end of the discharge unit are connected to the half-bridge conductive circuit in a common mode, and the second end of the discharge unit and the second end of the energy storage unit are connected to the ground in a common mode.
4. The key press duration identification circuit of claim 3, wherein the energy storage unit is a first capacitor.
5. The key press duration identification circuit of claim 3, wherein the discharge unit is a first resistor.
6. The key press duration identification circuit of claim 5, wherein the first resistor is an adjustable resistor.
7. The key press duration identification circuit of claim 1, wherein the switching circuit comprises a first switching tube and a second resistor; the current input end of the first switch tube and the first end of the second resistor are connected to the output end of the switch circuit, the second end of the second resistor is connected with the rectifying circuit, the control end of the first switch tube is connected with the charging and discharging circuit, and the current output end of the first switch tube is grounded.
8. The key duration identification circuit of claim 7, wherein the first switch transistor is an N-type MOS transistor.
9. A key press duration identification apparatus comprising a key press duration identification circuit as claimed in any one of claims 1 to 8.
10. A self-generating switch characterized by comprising a self-generating core and the key duration identification circuit according to any one of claims 1 to 8.
Technical Field
The application belongs to the technical field of switch detection, and particularly relates to a key time length identification circuit, a key time length identification device and a self-generating switch.
Background
The conventional switch is mainly directly wired to supply power or supplied with power by a battery, and as electrical equipment is widely used, the requirements of the electrical equipment on the use range and the functionality of the switch are higher. The self-generating switch is favored by users due to the characteristics of no need of batteries, simple wiring and the like. In the self-generating switch, the magnet group is operated through the keys to move up and down, so that the self-generating kernel converts mechanical energy into electric energy, and further the self-generating kernel provides a power supply for the control panel to generate a corresponding control signal.
However, the conventional self-generating switch has the problem that the long press or the short press of the key cannot be identified, so that the application range of the self-generating switch is greatly limited.
Disclosure of Invention
In view of this, the embodiment of the application provides a key duration identification circuit, a key duration identification device and a self-generating switch, which can solve the problem that the existing self-generating switch cannot identify the long-time pressing or the short-time pressing of the key.
The first aspect of the embodiment of the application provides a key duration identification circuit, which is connected with a self-generating kernel, and comprises:
the half-bridge conductive circuit is connected with the self-generating core and used for converting an alternating current signal output by the self-generating core into a first direct current voltage signal;
the charging and discharging circuit is connected with the half-bridge conductive circuit and used for receiving the first direct-current voltage signal, charging or discharging according to the first direct-current voltage signal and generating a corresponding switch control signal;
the rectifying circuit is connected with the self-generating kernel and used for converting an alternating current signal output by the self-generating kernel into a second direct current voltage signal, wherein the discharging time of the charging and discharging circuit is longer than that of the rectifying circuit; and
and the switching circuit is connected with the charging and discharging circuit and the rectifying circuit and used for receiving the second direct-current voltage signal and the switching control signal and generating a key duration identification signal according to the second direct-current voltage signal and the switching control signal.
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 charge and discharge circuit.
Optionally, the charge and discharge circuit includes an energy storage unit and a discharge unit;
the first end of the energy storage unit and the first end of the discharge unit are connected to the half-bridge conductive circuit in a common mode, and the second end of the discharge unit and the second end of the energy storage unit are connected to the ground in a common mode.
Optionally, the energy storage unit is a first capacitor.
Optionally, the discharge unit is a first resistor.
Optionally, the first resistor is an adjustable resistor.
Optionally, the switching circuit includes a first switching tube and a second resistor; the current input end of the first switch tube and the first end of the second resistor are connected to the output end of the switch circuit, the second end of the second resistor is connected with the rectifying circuit, the control end of the first switch tube is connected with the charging and discharging circuit, and the current output end of the first switch tube is grounded.
Optionally, the first switch tube is an N-type MOS tube.
A second aspect of the embodiments of the present application provides a key duration identification apparatus, including the key duration identification circuit according to any one of the above items.
A third aspect of the embodiments of the present application provides a self-generating switch, including a self-generating core and the key duration identification circuit as described in any of the above.
The embodiment of the application provides a long recognition circuit of length of button, long recognition device of length of button and spontaneous electric switch, the alternating current signal that will generate electricity from the output of core is converted into first direct current voltage signal through half-bridge conductive circuit, with charge or discharge to the charging and discharging circuit, thereby it controls to generate corresponding on-off control signal to switch circuit's switching on and off, rectifier circuit is based on the alternating current signal conversion of generating electricity from the output of core and is second direct current voltage signal transmission to switch circuit, switch circuit is according to the long recognition signal of length of second direct current voltage signal and on-off control signal generation button, the unable discernment button that current spontaneous electric switch exists is pressed for a long time or the problem of pressing for a short time has been solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic structural diagram of a key press duration identification circuit according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a key press duration identification circuit according to another embodiment of the present application;
FIG. 3 is a schematic diagram of a voltage waveform at a control terminal of a switching circuit according to an embodiment of the present application;
fig. 4 is a schematic waveform diagram of the output terminal X of the switching circuit and the output terminal VDD of the rectifying circuit according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the self-generating switch, the self-generating kernel is coupled to the linkage device, so that when the key switch is pressed, the linkage device drives the self-generating kernel to cut the magnetic induction line to generate electric energy in a linkage manner, and the linkage device is arranged below the linkage arm through the reset piece to store and enable the linkage arm when the linkage device is pushed to move downwards, so that the linkage arm is released when the key switch is loosened, and the linkage arm is enabled to return to the original position. Specifically, the reset piece elastically supports the linkage arm when the self-generating switch is in an initial state, potential energy is stored when the self-generating switch is in a pressed state, and then when the key switch is released, the reset piece releases the potential energy to enable the linkage arm to return to the original position.
Fig. 1 is a schematic structural diagram of a key duration identification circuit provided in an embodiment of the present application, and referring to fig. 1, the key duration identification circuit in this embodiment is connected to a self-generating
In this embodiment, the half-bridge
The key switch can generate an alternating current signal when continuously pressing and rebounding, and because of the one-way conductive characteristic of the half-bridge
In one embodiment, the charging time and the discharging time of the charging and discharging
If the user presses the key switch for a long time without releasing the key switch, the key switch cannot be rebounded, and the self-generating
In one embodiment, referring to fig. 2, the half-bridge
In the present embodiment, the first diode D1 is used as the half-bridge conducting
In one embodiment, referring to fig. 2, the charging and discharging
In this embodiment, the energy storage unit 221 is configured to store energy for charging when receiving an electrical signal, and discharge through the discharge unit 222 after stopping receiving the electrical signal, so as to control the voltage of the control terminal of the
In one embodiment, the energy storage unit 221 is a first capacitor C1.
In one embodiment, the discharge unit 222 may be a resistor, or a load circuit formed by connecting a plurality of resistors in series or in parallel.
For example, referring to fig. 2, in one embodiment, the discharge unit 222 is a first resistor R1.
In one embodiment, the first resistor R1 is an adjustable resistor.
In the present embodiment, the charging time and the discharging time of the charging and discharging
In one embodiment, referring to fig. 2, the
In one embodiment, the first switch Q1 is an N-type MOS transistor.
Referring to fig. 3, when the robot arm is pressed down, the self-generating
If the user presses the key switch for a long time without releasing the key switch, that is, the key switch cannot be rebounded from the time point t0 to the time point t2, the self-generating
A second aspect of the embodiments of the present application provides a key duration identification apparatus, which includes the key duration identification circuit according to any one of the above embodiments.
A third aspect of the embodiments of the present application provides a self-generating switch including a self-generating
The embodiment of the application provides a long recognition circuit of length of button, long recognition device of length of button and spontaneous electric switch, the alternating current signal that will generate electricity from the output of core is converted into first direct current voltage signal through half-bridge conductive circuit, with charge or discharge to the charging and discharging circuit, thereby it controls to generate corresponding on-off control signal to switch circuit's switching on and off, rectifier circuit is based on the alternating current signal conversion of generating electricity from the output of core and is second direct current voltage signal transmission to switch circuit, switch circuit is according to the long recognition signal of length of second direct current voltage signal and on-off control signal generation button, the unable discernment button that current spontaneous electric switch exists is pressed for a long time or the problem of pressing for a short time has been solved.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.
- 上一篇:一种医用注射器针头装配设备
- 下一篇:一种存在式热释电红外感应开关