CN111245419A - a key circuit - Google Patents
a key circuit Download PDFInfo
- Publication number
- CN111245419A CN111245419A CN202010037497.XA CN202010037497A CN111245419A CN 111245419 A CN111245419 A CN 111245419A CN 202010037497 A CN202010037497 A CN 202010037497A CN 111245419 A CN111245419 A CN 111245419A
- Authority
- CN
- China
- Prior art keywords
- displacement sensor
- button
- voltage
- output
- circuit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000006073 displacement reaction Methods 0.000 claims abstract description 135
- 230000005669 field effect Effects 0.000 claims description 15
- 230000001939 inductive effect Effects 0.000 claims description 14
- 239000002184 metal Substances 0.000 claims description 6
- 239000004020 conductor Substances 0.000 claims description 5
- 230000008859 change Effects 0.000 claims description 2
- 230000000694 effects Effects 0.000 abstract description 9
- 230000009286 beneficial effect Effects 0.000 abstract description 6
- 238000012423 maintenance Methods 0.000 abstract description 6
- 230000006870 function Effects 0.000 description 6
- 238000000034 method Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005259 measurement Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 230000005674 electromagnetic induction Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006698 induction Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K17/00—Electronic switching or gating, i.e. not by contact-making and –breaking
- H03K17/94—Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
- H03K17/965—Switches controlled by moving an element forming part of the switch
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K17/00—Electronic switching or gating, i.e. not by contact-making and –breaking
- H03K17/94—Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
- H03K17/965—Switches controlled by moving an element forming part of the switch
- H03K17/968—Switches controlled by moving an element forming part of the switch using opto-electronic devices
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K17/00—Electronic switching or gating, i.e. not by contact-making and –breaking
- H03K17/94—Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
- H03K17/965—Switches controlled by moving an element forming part of the switch
- H03K17/97—Switches controlled by moving an element forming part of the switch using a magnetic movable element
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K17/00—Electronic switching or gating, i.e. not by contact-making and –breaking
- H03K17/94—Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
- H03K17/965—Switches controlled by moving an element forming part of the switch
- H03K17/97—Switches controlled by moving an element forming part of the switch using a magnetic movable element
- H03K2017/9706—Inductive element
Landscapes
- Input From Keyboards Or The Like (AREA)
- Electronic Switches (AREA)
Abstract
本申请提供了一种按键电路,该电路包括第一位移传感器、被检测物、按键、电压比较器以及开关电路,被检测物随着按键的状态变化而发生位移,所述第一位移传感器用于感测所述被检测物是否发生位移,并将所述被检测物的位移量转换成第一电压量;所述第一位移传感器的输出端连接至所述电压比较器的第一输入端,所述电压比较器用于根据所述第一位移传感器输出的第一电压量确定自身输出的电平信号,使得在电源与所述按键电路的输出端之间的所述开关电路处于导通状态;所述按键电路的输出端在所述开关电路处于导通状态时输出按键信号。实施本申请,按键不用与印制电路板接触,却可以实现按键接入电路的效果,有利于按键与电路板在使用过程中的维修。
The present application provides a button circuit, which includes a first displacement sensor, a detected object, a button, a voltage comparator and a switch circuit. The detected object is displaced with the state of the button, and the first displacement sensor uses for sensing whether the detected object is displaced, and converting the displacement of the detected object into a first voltage; the output end of the first displacement sensor is connected to the first input end of the voltage comparator , the voltage comparator is used to determine the level signal output by itself according to the first voltage output by the first displacement sensor, so that the switch circuit between the power supply and the output end of the key circuit is in a conducting state ; The output end of the button circuit outputs a button signal when the switch circuit is in a conducting state. In the implementation of the present application, the button does not need to be in contact with the printed circuit board, but the effect of the button being connected to the circuit can be achieved, which is beneficial to the maintenance of the button and the circuit board during use.
Description
技术领域technical field
本申请涉及电子技术领域,尤其是一种按键电路。The present application relates to the field of electronic technology, in particular to a key circuit.
背景技术Background technique
按键是一种常用的控制电器元件,用来接通或断开电路,使得电子设备实现某种功能,例如加大音量、开启电子设备或关闭电子设备等等。A key is a common control electrical component used to connect or disconnect a circuit, so that an electronic device can achieve a certain function, such as increasing the volume, turning on or off the electronic device, and so on.
在现有技术中,按键与电路是具有连接关系的,按键与印制电路板PCB焊接在一起,或者按键通过导线与PCB焊接等等,现有技术的方案均是通过按键与电路板连接来实现按键接入电路的,现有的技术方案会带来按键维修困难的问题。In the prior art, the buttons and the circuit are in a connection relationship. The buttons are welded to the printed circuit board PCB, or the buttons are welded to the PCB through wires, etc. The prior art solutions are all connected by the buttons and the circuit board. In order to realize the key access circuit, the existing technical solution will bring about the problem of difficulty in key maintenance.
发明内容SUMMARY OF THE INVENTION
基于上面所述的问题,本申请提供了一种按键电路,按键不用与印制电路板接触,却可以实现按键接入电路的效果,有利于按键与电路板在使用过程中的维修。Based on the above problems, the present application provides a key circuit, the key does not need to be in contact with the printed circuit board, but can achieve the effect of the key being connected to the circuit, which is beneficial to the maintenance of the key and the circuit board during use.
本申请实施例提供了一种按键电路,所述按键电路包括第一位移传感器、被检测物、按键、电压比较器以及开关电路,所述被检测物随着所述按键的状态变化而发生位移,其中:An embodiment of the present application provides a button circuit, the button circuit includes a first displacement sensor, a detected object, a button, a voltage comparator, and a switch circuit, and the detected object is displaced as the state of the button changes ,in:
所述第一位移传感器用于感测所述被检测物是否发生位移,并将所述被检测物的位移量转换成第一电压量;The first displacement sensor is used to sense whether the detected object is displaced, and convert the displacement of the detected object into a first voltage amount;
所述第一位移传感器的输出端连接至所述电压比较器的第一输入端,所述电压比较器用于根据所述第一位移传感器输出的第一电压量确定自身输出的电平信号,使得在电源与所述按键电路的输出端之间的所述开关电路处于导通状态;The output end of the first displacement sensor is connected to the first input end of the voltage comparator, and the voltage comparator is used to determine the level signal output by itself according to the first voltage output by the first displacement sensor, so that The switch circuit between the power supply and the output end of the key circuit is in a conducting state;
所述按键电路的输出端在所述开关电路处于导通状态时输出按键信号。The output end of the key circuit outputs a key signal when the switch circuit is in a conducting state.
进一步的,所述按键电路还包括第二位移传感器;Further, the button circuit also includes a second displacement sensor;
所述第二位移传感器的输出端连接至所述电压比较器的第二输入端,所述第二位移传感器用于感测所述被检测物是否发生位移,并将所述被检测物的位移量转换成第二电压量,其中所述第一位移传感器和所述第二位移传感器在所述按键按下方向的水平线上,并分别位于所述被检测物的两侧。The output end of the second displacement sensor is connected to the second input end of the voltage comparator, the second displacement sensor is used to sense whether the detected object is displaced, and the displacement of the detected object The quantity is converted into a second voltage quantity, wherein the first displacement sensor and the second displacement sensor are on the horizontal line of the pressing direction of the key, and are respectively located on both sides of the detected object.
在一种可能的实现方式中,所述电压比较器用于:In a possible implementation, the voltage comparator is used to:
在所述第一位移传感器输出的第一电压量与所述第二位移传感器输出的第二电压量大小相等时,输出电压为零;When the magnitude of the first voltage output by the first displacement sensor is equal to the magnitude of the second voltage output by the second displacement sensor, the output voltage is zero;
在所述第一位移传感器输出的第一电压量与所述第二位移传感器输出的第二电压量大小不相等时,输出使所述开关电路处于导通状态的非零电压。When the magnitude of the first voltage output by the first displacement sensor is not equal to the magnitude of the second voltage output by the second displacement sensor, a non-zero voltage that keeps the switch circuit in an on state is output.
在一种可能的实施例中,所述第一位移传感器为光电式位移传感器,所述被检测物为非透明物体。In a possible embodiment, the first displacement sensor is a photoelectric displacement sensor, and the detected object is a non-transparent object.
在另一种可能的实施例中,所述第一位移传感器为电感式位移传感器,所述被检测物为金属导体。In another possible embodiment, the first displacement sensor is an inductive displacement sensor, and the detected object is a metal conductor.
可选的,当所述按键的状态为没有按下的状态时,所述第一位移传感器输出的第一电压量和所述第二位移传感器输出的第二电压量大小相等。Optionally, when the state of the button is not pressed, the magnitude of the first voltage output by the first displacement sensor and the second voltage output by the second displacement sensor are equal in magnitude.
在一种可能的实现方式中,所述被检测物通过弹性物体与所述按键机械连接为一体。In a possible implementation manner, the detected object is mechanically connected to the key through an elastic object.
可选的,所述开关电路为场效应管,所述场效应管的栅极与所述电压比较器的输出端连接,所述场效应管的漏极与电源连接,所述场效应管的源极与所述按键电路的输出端连接。Optionally, the switch circuit is a field effect transistor, the gate of the field effect transistor is connected to the output end of the voltage comparator, the drain of the field effect transistor is connected to the power supply, and the The source is connected to the output end of the key circuit.
第二方面,本申请实施例还提供了一种用电设备,所述电子设备内包括上述第一方面或任意一种可能的实施例包括的电路。In a second aspect, an embodiment of the present application further provides an electrical device, where the electronic device includes the circuit included in the first aspect or any of the possible embodiments.
本申请中的按键电路包括位移传感器、被检测物、按键、电压比较器以及开关电路,所述被检测物随着所述按键的状态变化而发生位移,所述位移传感器用于感测所述被检测物是否发生位移,并将所述被检测物的位移量转换成电压量;所述位移传感器的输出端连接至所述电压比较器的输入端,所述电压比较器用于根据所述位移传感器输出的电压量确定自身输出的电平信号,使得在电源与所述按键电路的输出端之间的所述开关电路处于导通状态;所述按键电路的输出端在所述开关电路处于导通状态时输出按键信号。实施本申请,按键不用与印制电路板接触,却可以实现按键接入电路的效果,有利于按键与电路板在使用过程中的维修。The button circuit in this application includes a displacement sensor, a detected object, a button, a voltage comparator and a switch circuit, the detected object is displaced with the state change of the button, and the displacement sensor is used to sense the Whether the detected object is displaced, and convert the displacement of the detected object into a voltage; the output end of the displacement sensor is connected to the input end of the voltage comparator, and the voltage comparator is used to measure the displacement according to the displacement The amount of voltage output by the sensor determines the level signal output by itself, so that the switch circuit between the power supply and the output end of the button circuit is in a conducting state; the output end of the button circuit is in a conducting state when the switch circuit is on The key signal is output in the ON state. In the implementation of the present application, the button does not need to be in contact with the printed circuit board, but the effect of the button being connected to the circuit can be achieved, which is beneficial to the maintenance of the button and the circuit board during use.
附图说明Description of drawings
图1为本申请实施例提供的一种按键电路的结构框图;1 is a structural block diagram of a key circuit provided by an embodiment of the present application;
图2为本申请实施例提供的一种按键电路的原理图;2 is a schematic diagram of a key circuit provided by an embodiment of the present application;
图3为本申请实施例提供的一种电子设备。FIG. 3 is an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings 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 those of ordinary skill in the art without creative work fall within the protection scope of the present application.
下面结合附图来对本申请的技术方案的实施作进一步的详细描述。The implementation of the technical solutions of the present application will be further described in detail below with reference to the accompanying drawings.
参考图1,图1为本申请实施例提供的一种按键电路的结构框图。如图1所示,按键电路10包括第一位移传感器100、被检测物101、按键102、电压比较器103以及开关电路104,所述被检测物101随着所述按键102的状态变化而发生位移,其中:Referring to FIG. 1 , FIG. 1 is a structural block diagram of a key circuit according to an embodiment of the present application. As shown in FIG. 1 , the button circuit 10 includes a first displacement sensor 100 , a detected object 101 , a button 102 , a
所述第一位移传感器100用于感测所述被检测物101是否发生位移,并将所述被检测物101的位移量转换成第一电压量;The first displacement sensor 100 is used to sense whether the detected object 101 is displaced, and convert the displacement of the detected object 101 into a first voltage amount;
所述第一位移传感器101的输出端连接至所述电压比较器103的第一输入端,所述电压比较器103用于根据所述第一位移传感器100输出的第一电压量确定自身输出的电平信号,使得在电源与所述按键电路10的输出端之间的所述开关电路104处于导通状态;The output end of the first displacement sensor 101 is connected to the first input end of the
所述按键电路10的输出端在所述开关电路104处于导通状态时输出按键信号。The output end of the button circuit 10 outputs a button signal when the
所述按键电路10的工作原理如下:The working principle of the key circuit 10 is as follows:
当所述按键102被按下时,所述被检测物101沿着所述按键102按下的方向移动,所述第一位移传感器100感测到所述被检测物101发生了位移,将所述被检测物101发生的位移量转换成第一电压量,并向所述电压比较器103输出所述第一电压量,所述电压比较器103根据所述第一电压量确定自身输出的电平信号,使得所述开关电路104处于导通状态,所述按键电路10的输出端输出的高电平为所述按键信号,代表所述按键102处于按下状态;同理的,当所述按键102松开时,所述开关电路104处于截止状态,所述按键电路10的输出端不输出高电平即不输出所述按键信号,代表所述按键102处于松开状态。When the button 102 is pressed, the object to be detected 101 moves along the direction in which the button 102 is pressed, the first displacement sensor 100 senses that the object to be detected 101 is displaced, The displacement of the detected object 101 is converted into a first voltage, and the first voltage is output to the
进一步的,所述按键电路10还包括第二位移传感器;Further, the button circuit 10 also includes a second displacement sensor;
所述第二位移传感器的输出端连接至所述电压比较器103的第二输入端,所述第二位移传感器用于感测所述被检测物101是否发生位移,并将所述被检测物101的位移量转换成第二电压量,其中所述第一位移传感器100和所述第二位移传感器在所述按键按下方向的水平线上,并分别位于所述被检测物101的两侧。具体的,所述电压比较器103包括两个输入端,所述电压比较器103是对输入信号进行鉴别比较的元器件,在所述第一位移传感器100输出的第一电压量与所述第二位移传感器输出的第二电压量大小相等时,输出电压为零;在所述第一位移传感器100输出的第一电压量与所述第二位移传感器输出的第二电压量大小不相等时,输出使所述开关电路处于导通状态的非零电压。示例性的,当所述按键102的状态为没有按下的状态时,所述第一位移传感器100输出的第一电压量和所述第二位移传感器输出的第二电压量大小相等。The output end of the second displacement sensor is connected to the second input end of the
可以理解的是,所述第二位移传感器用于输出第二电压量,所述第一位移传感器输出的第一电压量和所述第二位移传感器输出的第二电压量可以看做所述电压比较器103的两个差分输入量,所述电压比较器103根据所述第二电压量与所述第一位移传感器输出的第一电压量之间的差值确定自身输出的电平信号,在本实施例中增加所述第二位移传感器,利用所述第一位移传感器和所述第二位移传感器各自输出的电压量之间形成的差分信号,在所述被检测物的位移量较小的情况下实现按键按下的信号输出,从而可以减少按键电路10占用的空间。It can be understood that the second displacement sensor is used to output a second voltage, and the first voltage output by the first displacement sensor and the second voltage output by the second displacement sensor can be regarded as the voltage. The two differential input quantities of the
在一种可能的实施例中,所述第一位移传感器100为光电式位移传感器,所述被检测物101为非透明物体。具体的,光电式位移传感器是一种基于光电效应的传感器,由光源、发光通路以及发光元件构成,在受到可见光照射后即产生光电效应,将光信号转化为电信号输出。当本申请实施例的位移传感器如第一位移传感器和第二位移传感器是光电式位移传感器时,所述被检测物101是非透明物体,用来对所述光电式位移传感器中的光源发射的光束进行反射,所述光束可以是由半导体光源如发光二极管或红外发光二极管等产生的,所述光电式位移传感器可以根据所述被检测物与自身的距离反射回来的光强不同来确定所述被检测物的位置,进一步的,根据相邻两次确定所述被检测物的位置来获取所述被检测物的位移量,从而将所述位移量转换成电压量,实现被检测物与位移传感器之间不用接触却可以测量被检测物位移的效果。实施本实施例,使用光电式位移传感器对被检测物是否发生位移进行感测,具有反应速度快的优点。可以理解的是,所述光电式位移传感器是由制造厂家预先设定的,本申请还可以使用其他工作原理的光电式位移传感器,例如利用光的透射、阻挡或干涉等等,此处只是以利用光的反射来对光电式传感器如何测量被检测物的位移量作示例性说明,并不对本申请使用的光电式位移传感器内部的工作原理进行限制。In a possible embodiment, the first displacement sensor 100 is a photoelectric displacement sensor, and the detected object 101 is a non-transparent object. Specifically, a photoelectric displacement sensor is a sensor based on the photoelectric effect, which is composed of a light source, a light-emitting path and a light-emitting element. After being irradiated by visible light, a photoelectric effect is generated, and the light signal is converted into an electrical signal for output. When the displacement sensors in the embodiments of the present application, such as the first displacement sensor and the second displacement sensor, are photoelectric displacement sensors, the detected object 101 is a non-transparent object, which is used for the light beam emitted by the light source in the photoelectric displacement sensor For reflection, the light beam can be generated by a semiconductor light source such as a light-emitting diode or an infrared light-emitting diode. The position of the detected object, and further, the displacement of the detected object is obtained by determining the position of the detected object twice adjacently, so as to convert the displacement into a voltage amount to realize the detected object and the displacement sensor. The effect of the displacement of the detected object can be measured without contact between them. In this embodiment, the photoelectric displacement sensor is used to sense whether the detected object is displaced, which has the advantage of fast response. It can be understood that the photoelectric displacement sensor is preset by the manufacturer, and the application can also use photoelectric displacement sensors with other working principles, such as using light transmission, blocking or interference, etc. The reflection of light is used to illustrate how the photoelectric sensor measures the displacement of the object to be detected, and the internal working principle of the photoelectric displacement sensor used in the present application is not limited.
在另一种可能的实施例中,所述第一位移传感器100为电感式位移传感器,所述被检测物为金属导体。具体的,电感式位移传感器是一种金属感应的器件,利用电磁感应的原理将被检测物的位移量转化成电压,需要说明的是,所述电感式位移传感器具有一定的测量范围,在所述电感式位移传感器的测量范围内,所述被检测物的位移量与电压之间具有线性关系。电感式位移传感器包括有线圈,对线圈提供交变电流,则电感式位移传感器会产生一个交变磁场,将金属导体即被检测物101置于交变磁场中,金属导体内会产生感应电流,根据电生磁的原理,所述被检测物101也会产生一个磁场,抵消电感式位移传感器中线圈产生的交变磁场,由于被检测物101与电感式位移传感器的距离会影响抵消掉交变磁场的电感的变化量,所以可以通过电感式位移传感器的线圈电感量对所述被检测物的位移进行感测,并将所述被检测物101的位移量转化成电压量。实施本实施例,使用电感式位移传感器将被检测物的位移量转化成电压量,具有测量精度高的优点。同理的,所述电感式也是由制造厂家预先设定的,本申请还可以使用其他工作原理的电感式位移传感器,例如利用线圈的自感、互感或涡流等等,此处只是以利用金属的被检测物在交变磁场中产生涡流效应来对电磁传感器如何测量被检测物的位移量作示例性说明,并不对本申请使用的电磁位移传感器内部的工作原理进行限制。In another possible embodiment, the first displacement sensor 100 is an inductive displacement sensor, and the detected object is a metal conductor. Specifically, the inductive displacement sensor is a metal induction device, which uses the principle of electromagnetic induction to convert the displacement of the detected object into a voltage. It should be noted that the inductive displacement sensor has a certain measurement range. Within the measurement range of the inductive displacement sensor, there is a linear relationship between the displacement of the detected object and the voltage. The inductive displacement sensor includes a coil, and if an alternating current is supplied to the coil, the inductive displacement sensor will generate an alternating magnetic field. When the metal conductor, that is, the detected object 101, is placed in the alternating magnetic field, an induced current will be generated in the metal conductor. According to the principle of electromagnetism, the detected object 101 will also generate a magnetic field to cancel the alternating magnetic field generated by the coil in the inductive displacement sensor. Since the distance between the detected object 101 and the inductive displacement sensor will affect the offsetting of the alternating magnetic field Because of the variation of the inductance of the magnetic field, the displacement of the detected object can be sensed through the coil inductance of the inductive displacement sensor, and the displacement of the detected object 101 can be converted into a voltage. In this embodiment, the inductive displacement sensor is used to convert the displacement of the detected object into a voltage, which has the advantage of high measurement accuracy. Similarly, the inductive type is also preset by the manufacturer. The application can also use inductive displacement sensors with other working principles, such as using the self-inductance, mutual inductance or eddy current of the coil, etc. The detected object produces an eddy current effect in the alternating magnetic field to illustrate how the electromagnetic sensor measures the displacement of the detected object, and does not limit the internal working principle of the electromagnetic displacement sensor used in this application.
在一种可能的实现方式中,所述被检测物101通过弹性物体与所述按键102机械连接为一体。具体的,所述被检测物101与所述按键102机械连接,为了使所述按键102在被按下之后,可以自动弹回恢复至松开状态,可以在所述被检测物101与所述按键102之间放置弹性物体如弹簧,当所述按键102被按下时,弹簧会被压缩,当所述按键102被松开后,所述弹簧利用弹力将所述按键恢复至松开状态的位置。In a possible implementation manner, the detected object 101 is mechanically connected to the key 102 through an elastic object. Specifically, the object to be detected 101 is mechanically connected to the button 102. In order to make the button 102 automatically bounce back to the released state after being pressed, the object to be detected 101 can be connected to the button 102. An elastic object such as a spring is placed between the buttons 102. When the button 102 is pressed, the spring will be compressed. When the button 102 is released, the spring will use the elastic force to restore the button to the released state. Location.
本申请中被检测物随着所述按键的状态变化而发生位移,位移传感器用于感测所述被检测物是否发生位移,并将所述被检测物的位移量转换成电压量;位移传感器的输出端连接至所述电压比较器的输入端,所述电压比较器用于根据所述位移传感器输出的电压量确定自身输出的电平信号,使得在电源与所述按键电路的输出端之间的所述开关电路处于导通状态;所述按键电路的输出端在所述开关电路处于导通状态时输出按键信号。实施本申请,按键不用与印制电路板接触,却可以实现按键接入电路的效果,有利于按键与电路板在使用过程中的维修。In this application, the detected object is displaced as the state of the button changes, and the displacement sensor is used to sense whether the detected object is displaced, and convert the displacement of the detected object into a voltage; the displacement sensor The output terminal of the voltage comparator is connected to the input terminal of the voltage comparator, and the voltage comparator is used to determine the level signal output by itself according to the voltage output by the displacement sensor, so that between the power supply and the output terminal of the key circuit The switch circuit is in a conducting state; the output end of the button circuit outputs a button signal when the switch circuit is in a conducting state. In the implementation of the present application, the button does not need to be in contact with the printed circuit board, but the effect of the button being connected to the circuit can be achieved, which is beneficial to the maintenance of the button and the circuit board during use.
下面结合具体的元器件对图1对应的结构框图进行介绍。参见图2,图2为本申请实施例提供的一种按键电路的原理图。如图2所示,按键电路20包括位移传感器如第一位移传感器2000和第二位移传感器2001、被检测201、按键202、电压比较器203以及开关电路204,示例性的,所述开关电路204可以为场效应管Q1,所述场效应管Q1的栅极与所述电压比较器203的输出端连接,所述场效应管Q1的漏极与电源连接,所述场效应管Q1的源极与所述按键电路20的输出端连接。则如图2所示,各个元器件之间的连接关系如下:The structural block diagram corresponding to FIG. 1 is introduced below in conjunction with specific components. Referring to FIG. 2 , FIG. 2 is a schematic diagram of a key circuit according to an embodiment of the present application. As shown in FIG. 2 , the button circuit 20 includes displacement sensors such as a first displacement sensor 2000 and a second displacement sensor 2001 , a detected 201 , a button 202 , a
所述第一位移传感器2000的输出端连接至所述电压比较器203的反相输入端,所述第二位移传感器2001的输出端连接至所述电压比较器203的正相输入端,所述电压比较器203的输出端与所述场效应管Q1的栅极连接,所述场效应管Q1的漏极与电源连接,所述场效应管Q1的源极与所述按键电路20的输出端连接,可选的,所述按键电路20的输出端可以连接至处理器,所述处理器可以实时读取所述按键电路输出端的电平,所述处理器可以为集成电路,包括但不限于中央处理器(Center Processor Unit,CPU)、嵌入式微控制器(Micro Controller Unit,MCU)、嵌入式微处理器(Micro Processor Unit,MPU)、嵌入式片上系统(System on Chip,SoC)。The output terminal of the first displacement sensor 2000 is connected to the inverting input terminal of the
所述按键电路20的工作原理如下:The working principle of the key circuit 20 is as follows:
当所述按键202没有按下时,所述第一位移传感器2000输出的第一电压量和所述第二位移传感器2001输出的第二电压量大小相等,所述电压比较器203的正相输入端和反相输入端的电压相等,所述电压比较器203无输出,所述按键电路20的输出端为低电平;当所述按键202被按下时,所述被检测物201沿着按键202按下的方向移动,所述第一位移传感器2000输出的第一电压量和所述第二位移传感器2001输出的第二电压量大小不相等。在一种可能的实施例中,所述场效应管Q1是增强型的P沟道场效应管,所述第一位移传感器2000输出的第一电压量大于所述第二位移传感器2001输出的第二位移传感器2001输出的第二电压量,所述电压比较器203输出负电压,所述场效应管Q1处于导通状态,所述电源的电压为所述按键电路20的输出端的电压,即所述按键电路20的输出端为高电平。在另外一种可能的实施例中,所述场效应管Q1是增强型的N沟道场效应管,所述第一位移传感器2000输出的第一电压量小于所述第二位移传感器2001输出的第二位移传感器2001输出的第二电压量,所述电压比较器203输出正电压,所述场效应管Q1处于导通状态,所述电源的电压为所述按键电路20的输出端的电压,即所述按键电路20的输出端为高电平。When the button 202 is not pressed, the first voltage output by the first displacement sensor 2000 and the second voltage output by the second displacement sensor 2001 are equal in magnitude, and the positive phase input of the
实施本申请,按键不用与印制电路板接触,却可以实现按键接入电路的效果,有利于按键与电路板在使用过程中的维修。In the implementation of the present application, the button does not need to be in contact with the printed circuit board, but the effect of the button being connected to the circuit can be achieved, which is beneficial to the maintenance of the button and the circuit board during use.
本申请实施例还提供了一种用电设备,参见图3,所述用电设备30包括按键电路300、收发器301和处理器302,其中:The embodiment of the present application further provides an electrical device, referring to FIG. 3 , the electrical device 30 includes a
所述按键电路300与所述收发器301连接,所述收发器301与所述处理器302连接;The
所述收发器301用于接收所述按键电路300输出端输出的按键信号,所述处理器302用于根据所述收发器301接收到的按键信号来执行指令,例如开启电子设备、关闭电子设备、增加音量或减少音量等等,所述按键电路300用于通过被检测物感测没有焊接在印制电路板上的按键的状态。The transceiver 301 is used to receive the key signal output by the output end of the
可选的,所述用电设备30还可以包括存储器,用于在存储所述处理器302执行的指令。Optionally, the powered device 30 may further include a memory for storing instructions executed by the processor 302 .
其中,处理器302可以是中央处理器(central processing unit,CPU),通用处理器,数字信号处理器(digital signal processor,DSP),专用集成电路(application-specific integrated circuit,ASIC),现场可编程门阵列(field programmable gatearray,器组合,DSP和微处理器的FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请实施例公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理组合等等。The processor 302 may be a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), or a field programmable Gate array (field programmable gate array, device combination, DSP and microprocessor FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logical blocks, modules and circuits described in connection with the disclosure of the embodiments of this application. A processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, and the like.
除了图3所示的按键电路300、收发器302以及处理器302之外,本申请实施例中所述用电设备通常根据该用电设备的实际功能,还可以包括其他硬件,对此不再赘述。可选的,该用电设备能实现上述按键电路所具备的有益效果,所述按键电路300的结构和功能可以参考前文图1至图2所述实施例中的相关描述,此处不再赘述。In addition to the
需要说明的是,上述术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性。It should be noted that the above-mentioned terms "first" and "second" are only used for descriptive purposes, and should not be construed as indicating or implying relative importance.
在本申请所提供的几个实施例中,应该理解到,所揭露的方法、装置以及系统,可以通过其它的方式实现。以上所描述的实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided in this application, it should be understood that the disclosed method, apparatus and system may be implemented in other manners. The above-described embodiments are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined, or Integration into another system, or some features can be ignored, or not implemented. In addition, the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms. of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The unit described above as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may all be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integration The unit can be implemented either in the form of hardware or in the form of hardware plus software functional units.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by program instructions related to hardware, the aforementioned program can be stored in a computer-readable storage medium, and when the program is executed, execute Including the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk and other various A medium on which program code can be stored.
或者,本发明上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present invention may be embodied in the form of software products in essence or the parts that make contributions to the prior art. The computer software products are stored in a storage medium and include several instructions for A computer device (which may be a personal computer, a server, or a network device, etc.) is caused to execute all or part of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic disk or an optical disk and other mediums that can store program codes.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010037497.XA CN111245419B (en) | 2020-01-14 | 2020-01-14 | a button circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010037497.XA CN111245419B (en) | 2020-01-14 | 2020-01-14 | a button circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111245419A true CN111245419A (en) | 2020-06-05 |
| CN111245419B CN111245419B (en) | 2023-06-27 |
Family
ID=70872676
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010037497.XA Expired - Fee Related CN111245419B (en) | 2020-01-14 | 2020-01-14 | a button circuit |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111245419B (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN2710254Y (en) * | 2004-01-15 | 2005-07-13 | 柴世军 | Pressure keyboard module |
| CN102004484A (en) * | 2010-12-23 | 2011-04-06 | 上海工业自动化仪表研究院 | On-line numerical control detection device for key production |
| CN103901791A (en) * | 2014-04-02 | 2014-07-02 | 联想(北京)有限公司 | Response key touch operating method and device and electronic device |
| CN106468957A (en) * | 2016-09-20 | 2017-03-01 | 深圳元佑科技有限公司 | Individualized input equipment and individualized key-press input method |
| CN107678662A (en) * | 2016-08-01 | 2018-02-09 | 腾讯科技(深圳)有限公司 | A kind of control method based on button, device and intelligent terminal |
| CN110134238A (en) * | 2019-05-13 | 2019-08-16 | Oppo(重庆)智能科技有限公司 | Key feedback method, device, storage medium and electronic equipment |
-
2020
- 2020-01-14 CN CN202010037497.XA patent/CN111245419B/en not_active Expired - Fee Related
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN2710254Y (en) * | 2004-01-15 | 2005-07-13 | 柴世军 | Pressure keyboard module |
| CN102004484A (en) * | 2010-12-23 | 2011-04-06 | 上海工业自动化仪表研究院 | On-line numerical control detection device for key production |
| CN103901791A (en) * | 2014-04-02 | 2014-07-02 | 联想(北京)有限公司 | Response key touch operating method and device and electronic device |
| CN107678662A (en) * | 2016-08-01 | 2018-02-09 | 腾讯科技(深圳)有限公司 | A kind of control method based on button, device and intelligent terminal |
| CN106468957A (en) * | 2016-09-20 | 2017-03-01 | 深圳元佑科技有限公司 | Individualized input equipment and individualized key-press input method |
| CN110134238A (en) * | 2019-05-13 | 2019-08-16 | Oppo(重庆)智能科技有限公司 | Key feedback method, device, storage medium and electronic equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111245419B (en) | 2023-06-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Jeong et al. | Living object detection system based on comb pattern capacitive sensor for wireless EV chargers | |
| US10901533B2 (en) | Real handwriting stylus and a touch device | |
| CN103424704B (en) | A kind of battery check device, method and battery | |
| CN104730312B (en) | Non-contact current sensor mounting position change compensation device | |
| US20180214084A1 (en) | Measuring electrode impedance in an impedance measurement circuit | |
| CN111279205A (en) | Method and electronic device for correcting measured values of a sensor | |
| CN100370402C (en) | Touch Sensing Device | |
| Bharadwaj et al. | An unconventional measurement technique to estimate power transfer efficiency in series–series resonant WPT system using S-parameters | |
| TW201443653A (en) | Interface detection circuit | |
| Damnjanovic et al. | A novel approach to extending the linearity range of displacement inductive sensor | |
| CN104034938A (en) | Current detection circuit in electronic voltage transformer | |
| CN111245419A (en) | a key circuit | |
| CN100527063C (en) | Optical input device with light-emitting chip fixed on sensing chip and manufacturing method thereof | |
| CN100517201C (en) | Touch Sensing Device | |
| CN215871190U (en) | Power supply control circuit and socket | |
| CN103513773A (en) | Folding keyboard | |
| CN205843840U (en) | A kind of multi-chip differential type SAW temperature sensor | |
| JPH02232568A (en) | Four-wire type resistance measuring apparatus | |
| CN101004652B (en) | Touch Sensing Device | |
| CN100489888C (en) | Touch sensing device | |
| CN1952863B (en) | Touch type induction system | |
| KR20180131249A (en) | A card reader and a method for receiving card information using the same | |
| CN218567626U (en) | Human body contact detection circuit | |
| TW201740253A (en) | Touch sensing device | |
| CN115825579B (en) | Capacitance detection circuit, chip, method and electronic equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20230627 |
