Key time identification circuit, key time identification device and self-generating switch

文档序号:1025108 发布日期:2020-10-27 浏览:22次 中文

阅读说明:本技术 一种按键时长识别电路、按键时长识别装置及自发电开关 (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 core 10, and the key duration identification circuit includes a half-bridge conductive circuit 21, a charge and 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 configured to convert an ac signal output from the self-generating core 10 into a first dc voltage signal; the charging and discharging circuit 22 is connected to the half-bridge conductive circuit 21, and is configured to receive the first dc voltage signal, perform charging or discharging according to the first dc voltage signal, and generate a corresponding switch control signal; the rectifying circuit 23 is connected with the self-generating kernel 10 and is used for converting an alternating current signal output by the self-generating kernel 10 into a second direct current voltage signal, wherein the discharging time of the charging and discharging circuit 22 is longer than that of the rectifying circuit 23; and the switch circuit 24 is connected with the charge and discharge circuit 22 and the rectifying circuit 23, and is used for receiving the second direct-current voltage signal and the switch control signal and generating a key duration identification signal according to the second direct-current voltage signal and the switch control signal.

In this embodiment, the half-bridge conductive circuit 21 is configured to perform half-bridge conductive processing on an ac electrical signal generated from the output end of the self-generating core 10, that is, processing a positive half-wave or a negative half-wave of the ac electrical signal, so as to generate a corresponding first dc voltage signal, for example, the self-generating core 10 cuts a magnetic field after a key is pressed, converts kinetic energy into electrical energy, generates a corresponding first dc voltage signal after passing through the half-bridge conductive circuit 21, and simultaneously converts the ac electrical signal output from the output end of the self-generating core 10 into a second dc voltage signal by the rectifier circuit 23, where the rectifier circuit 23 is a full-bridge rectifier circuit. When the first direct-current voltage signal passes through the charge and discharge circuit 22, the charge and discharge circuit 22 is charged firstly, 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 conducted, the output end of the switch circuit 24 is grounded, and at the moment, the key press duration identification signal is a low level signal.

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 conductive circuit 21, only when the key switch is pressed, a forward first direct current voltage signal can be generated, and when the key switch rebounds, the voltage of the first direct current voltage signal output by the half-bridge conductive circuit 21 is 0V.

In one embodiment, the charging time and the discharging time of the charging and discharging circuit 22 are longer than the time for the rectifying circuit 23 to convert the ac signal into the second dc voltage signal and send the second dc voltage signal to the switching circuit 24 (i.e. the discharging time of the rectifying circuit 23), so if the hand is released after a short press, the key switch rebounds, the self-generating core 10 serving as the kinetic energy conversion device continues to generate power during rebounding, the second dc voltage signal output by the output terminal VDD of the rectifying circuit 23 continues to maintain a high level during rebounding, meanwhile, because the discharging time of the charging and discharging circuit 22 is longer, the discharging process continues, the switching circuit 24 continues to be in a conducting state, the output terminal of the switching circuit 24 continues to maintain a low level for output, i.e. the key duration identification signal is always at a low level during the time t 1.

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 core 10 serving as the kinetic energy conversion device only outputs a positive half-cycle signal at this time, so that the charging and discharging circuit 22 is completely discharged within the time t2, the voltage of the control end of the switch circuit 24 is pulled to the ground, and the switch circuit 24 is turned off. Therefore, after the time t3(t3 > t2) is released, the kinetic energy device rebounds to generate electricity to generate a negative half-cycle signal in the alternating current signal, the charging and discharging circuit 22 is completely discharged, the switching circuit 24 is turned off, the rectifying circuit 23 rectifies the negative half-cycle signal in the alternating current signal and sends the rectified negative half-cycle signal to the output end of the switching circuit 24 to output, a high-level key duration identification signal is generated, and therefore the identification of long-time pressing of the key switch is completed.

In one embodiment, referring to fig. 2, 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.

In the present embodiment, the first diode D1 is used as the half-bridge conducting circuit 21 to perform half-bridge conducting processing on the ac signal generated by the self-generating core 10, so as to avoid interference of the negative half-cycle signal generated by the self-generating core 10 on the switch circuit 24 when the key switch rebounds.

In one embodiment, referring to fig. 2, the charging and discharging circuit 22 includes an energy storage unit 221 and a discharging unit 222; the first terminal of the energy storage unit 221 and the first terminal of the discharge unit 222 are connected to the half-bridge conductive circuit 21, and the second terminal of the discharge unit 222 and the second terminal of the energy storage unit 221 are connected to ground.

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 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 that the voltage of the control terminal of the switch circuit 24 is kept above the turn-on threshold voltage is controlled, so as to control the turn-on time of the switch circuit 24, and further, adjust the time point when the voltage of the output terminal of the switch circuit 24 is at the low level.

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 circuit 22 can be adjusted by the adjustable resistor.

In one embodiment, referring to fig. 2, the switching circuit 24 includes a first switching 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 commonly connected to the output end of the switch circuit 24, the second end of the second resistor R2 is connected to the rectifying circuit 23, the control end of the first switch tube Q1 is connected to the charging and discharging circuit 22, and the current output end of the first switch tube Q1 is grounded.

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 core 10 generates a first direct current voltage signal during a time period from t0 to t1, wherein the abscissa in fig. 3 represents time and the ordinate represents the voltage of the control terminal of the first switching tube Q1. Referring to fig. 4, since the charging time and the discharging time of the charging and discharging circuit 22 are longer than the time for the rectifying circuit 23 to convert the ac signal into the second dc voltage signal and send the second dc voltage signal to the switching circuit 24, the ac signal generated by the self-generating core 10 is converted into the first dc voltage signal through the first diode D1 and then converted into the second dc voltage signal through the rectifying circuit 23, the first dc voltage signal first charges the first capacitor C1, the first switching tube Q1 is turned on after the ac signal reaches the turn-on threshold voltage of the first switching tube Q1, the output terminal VDD of the rectifying circuit 23 is at a high level, the output terminal X of the switching circuit 24 is pulled down to the ground, if the mechanical arm (i.e. the key switch) is pressed down for a short time, the key switch rebounds, the self-generating core 10 as the kinetic energy conversion device continues to generate electricity during rebounding, the second dc voltage signal output by the output terminal VDD of the rectifying circuit 23, meanwhile, since the discharge time of the charge and discharge circuit 22 is long, the discharge process is continued, the switch circuit 24 continues to be in the on state, the output terminal of the switch circuit 24 continues to keep the low level output, that is, the key duration identification signal (i.e., the signal output by the output terminal X) is always in the low level from the time point t0 when the mechanical arm is pressed to the time point t2 when the first capacitor C1 finishes discharging, and then the key switch is determined to be in the short-press state.

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 kernel 10 as the kinetic energy conversion device has only a positive half-cycle signal output when being pressed, so that the charging and discharging circuit 22 is completely discharged within the time t2, the voltage of the control terminal of the switching circuit 24 is pulled to the ground, and the switching circuit 24 is turned off after the time t 2. Therefore, after the time t3(t3 > t2) is released, the kinetic energy device rebounds to generate electricity to generate a negative half-cycle signal in the alternating current signal, the charging and discharging circuit 22 is completely discharged, the switching circuit 24 is turned off, the rectifying circuit 23 rectifies the negative half-cycle signal in the alternating current signal and sends the rectified negative half-cycle signal to the output end X of the switching circuit 24 for output, as shown in fig. 4, the key duration identification signal at the output end X is consistent with the signal at the output end VDD of the rectifying circuit 23, and therefore the key switch is judged to be in the long-press state.

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 core 10 and a key press duration identification circuit as described in any one 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.

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.

9页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种存在式热释电红外感应开关

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类