CN218217338U - Key switch debouncing circuit - Google Patents

Key switch debouncing circuit Download PDF

Info

Publication number
CN218217338U
CN218217338U CN202123075599.XU CN202123075599U CN218217338U CN 218217338 U CN218217338 U CN 218217338U CN 202123075599 U CN202123075599 U CN 202123075599U CN 218217338 U CN218217338 U CN 218217338U
Authority
CN
China
Prior art keywords
resistor
key switch
supply voltage
photoelectric coupler
power supply
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.)
Active
Application number
CN202123075599.XU
Other languages
Chinese (zh)
Inventor
包永利
罗开选
张群利
李晓阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shaanxi Baocheng Aviation Instrument Co Ltd
Original Assignee
Shaanxi Baocheng Aviation Instrument Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shaanxi Baocheng Aviation Instrument Co Ltd filed Critical Shaanxi Baocheng Aviation Instrument Co Ltd
Priority to CN202123075599.XU priority Critical patent/CN218217338U/en
Application granted granted Critical
Publication of CN218217338U publication Critical patent/CN218217338U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electronic Switches (AREA)

Abstract

The key switch debouncing circuit comprises a key switch S1, a photoelectric coupler U1, a resistor R2, a resistor R3 and a capacitor C1; one end of the resistor R1 is connected with a 1 st pin of the photoelectric coupler U1, and the other end of the resistor R1 is connected with a power supply voltage VCC1; one end of a key switch S1 is connected with the No. 2 pin of a photoelectric coupler U1, and the other end of the key switch S1 is connected with a ground wire GND1; one end of a resistor R3 is connected with a pin 3 of the photoelectric coupler U1, the other end of the resistor R3 is connected with one end of a capacitor C1, the other end of the capacitor C1 is connected with a ground wire GND2, one end of the resistor R2 is connected with a connection point of the resistor R3 and the pin 3 of the photoelectric coupler U1, and the other end of the resistor R2 is connected with the ground wire GND2; and a 4 th pin of the photoelectric coupler U1 is connected with a power supply voltage VCC2. The utility model discloses the component is small in quantity, and the height level of production is stable, and the interference killing feature is strong, and the quality is reliable, simple process, small, light in weight, with low costs, it is simple to make, is fit for batch production.

Description

Key switch debouncing circuit
Technical Field
The utility model belongs to the technical field of the electronic circuit, concretely relates to key switch removes shake circuit.
Background
The push-button switches are mechanical switches, which cannot be turned on or off immediately due to the elasticity and surface smoothness of the contacts when the switches are turned on or off, and are shaken at the moment of turning on or off. Affecting the acquisition, judgment and processing of the latter stage circuit.
The existing key switch debouncing method comprises the following steps: 1, the software is subjected to debouncing, and the level state is acquired for multiple times by adopting a time delay method in the later-stage software to judge the state of the key switch. The defects are that the post processor resources are occupied, and the software workload is increased. 2, hardware dithering removal is carried out, a delay circuit and a monostable circuit are adopted, the number of devices is large, and the circuit is complex. There is therefore a need for improvements.
SUMMERY OF THE UTILITY MODEL
The utility model provides a technical problem: the utility model provides a key switch removes shake circuit, the utility model discloses a photoelectric coupler, resistance and electric capacity constitution that small performance is stable, after key switch S1 is pressed, output a stable, the high level that does not have the shake, after key switch S1 lifted up, output a stable, the low level that does not have the shake; the device has the advantages of small element quantity, stable high and low levels, strong anti-interference capability, reliable quality, simple process, small volume, light weight, low cost and simple manufacture, and is suitable for batch production.
The utility model adopts the technical proposal that: a key switch debouncing circuit comprises a key switch S1, a photoelectric coupler U1, a resistor R2, a resistor R3 and a capacitor C1; one end of the resistor R1 is connected with a 1 st pin of the photoelectric coupler U1, and the other end of the resistor R1 is connected with a power supply voltage VCC1; one end of the key switch S1 is connected with a No. 2 pin of the photoelectric coupler U1, and the other end of the key switch S1 is connected with a ground wire GND1; one end of the resistor R3 is connected with a pin 3 of the photoelectric coupler U1, the other end of the resistor R3 is connected with one end of the capacitor C1, the other end of the capacitor C1 is connected with a ground wire GND2, one end of the resistor R2 is connected with a connection point of the resistor R3 and the pin 3 of the photoelectric coupler U1, and the other end of the resistor R2 is connected with the ground wire GND2; and the 4 th pin of the photoelectric coupler U1 is connected with a power supply voltage VCC2.
To the further limited of above-mentioned technical scheme, the high level amplitude of supply voltage VCC 2's voltage value decision circuit output, resistance R1's specification and parameter are decided by supply voltage VCC 1's voltage value and optoelectronic coupler U1's preceding stage current parameter, electric capacity C1's specification and parameter are decided by supply voltage VCC 2's voltage value, resistance R2's specification and parameter are decided by supply voltage VCC 2's voltage value and optoelectronic coupler U1's succeeding stage current parameter, resistance R3's specification and parameter are decided by electric capacity C1's appearance value.
In the technical scheme, when the rear-stage voltage in the rear-stage circuit design does not need to be isolated from the front-stage voltage, the power supply voltage VCC1 and the ground wire GND1 can use the same power supply as the power supply voltage VCC2 and the ground wire GND2; when the rear-stage voltage must be isolated from the front-stage voltage in the rear-stage circuit design, the power supply voltage VCC1, the ground wire GND1, the power supply voltage VCC2 and the ground wire GND2 cannot use the same power supply. .
The utility model has the advantages compared with the prior art:
the scheme adopts a photoelectric coupler with small volume and stable performance, a resistor and a capacitor, a stable and jitter-free high level is output after the key switch S1 is pressed down, and a stable and jitter-free low level is output after the key switch S1 is lifted up. The utility model has the advantages of small element quantity, stable high and low levels, strong anti-interference capability and reliable quality, and overcomes the defect of shaking removal of the existing key switch; because the circuit board process is adopted for manufacturing, the process is simple, the volume is small, the weight is light, the cost is low, the manufacturing is simple, and the circuit board is suitable for batch production.
Drawings
Fig. 1 is a schematic circuit diagram of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments in the present invention, all other embodiments obtained by a person skilled in the art without creative work belong to the protection scope of the present invention.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation. The use of the phrase "comprising one of the elements" does not exclude the presence of other like elements in the process, method, article, or apparatus that comprises the element.
Please refer to fig. 1, which illustrates an embodiment of the present invention.
A key switch debouncing circuit comprises a key switch S1, a photoelectric coupler U1, a resistor R2, a resistor R3 and a capacitor C1; one end of the resistor R1 is connected with a 1 st pin of the photoelectric coupler U1, and the other end of the resistor R1 is connected with a power supply voltage VCC1; one end of the key switch S1 is connected with a No. 2 pin of the photoelectric coupler U1, and the other end of the key switch S1 is connected with a ground wire GND1; one end of the resistor R3 is connected with a pin 3 of the photoelectric coupler U1, the other end of the resistor R3 is connected with one end of the capacitor C1, the other end of the capacitor C1 is connected with a ground wire GND2, one end of the resistor R2 is connected with a connection point of the resistor R3 and the pin 3 of the photoelectric coupler U1, and the other end of the resistor R2 is connected with the ground wire GND2; and the 4 th pin of the photoelectric coupler U1 is connected with a power supply voltage VCC2.
The high level amplitude of supply voltage VCC 2's magnitude of voltage decision circuit output, resistance R1's specification and parameter are decided by supply voltage VCC 1's magnitude of voltage and optoelectronic coupler U1's preceding stage current parameter, electric capacity C1's specification and parameter are decided by supply voltage VCC 2's magnitude of voltage, resistance R2's specification and parameter are decided by supply voltage VCC 2's magnitude of voltage and optoelectronic coupler U1's back stage current parameter, resistance R3's specification and parameter are decided by electric capacity C1's appearance value.
When the rear-stage voltage in the rear-stage circuit design does not need to be isolated from the front-stage voltage, the power supply voltage VCC1 and the ground wire GND1 can use the same power supply as the power supply voltage VCC2 and the ground wire GND2; when the rear-stage voltage must be isolated from the front-stage voltage in the rear-stage circuit design, the power supply voltage VCC1, the ground wire GND1, the power supply voltage VCC2 and the ground wire GND2 cannot use the same power supply.
The working principle is as follows: after the key switch S1 is pressed down, the photoelectric coupler U1 starts to work and outputs a high level, the capacitor C1 is charged through the resistor R3, the connection end of the capacitor C1 and the resistor R3 is converted from the low level to the high level, and a stable and jitter-free high level is output; after the key switch S1 is lifted, the photoelectric coupler U1 stops working, the capacitor C1 discharges rapidly through the resistors R2 and R3, the connecting end of the capacitor C1 and the resistor R3 is converted into a low level by a high level, and a stable low level without jitter is output.
The utility model discloses the component is small in quantity, and the height level of production is stable, and the interference killing feature is strong, and the quality is reliable, has overcome the shortcoming that current key switch removed the shake. Because the circuit board process is adopted for manufacturing, the process is simple, the volume is small, the weight is light, the cost is low, the manufacturing is simple, and the circuit board is suitable for batch production.
The utility model discloses successfully use in the test system of the accurate aeronautical instrument of a plurality of models for the test system signal is stable, and the volume reduction, cost reduction is a lot of.
It is obvious to a person skilled in the art that the invention is not restricted to details of the above-described exemplary embodiments, but that it can be implemented in other specific forms without departing from the spirit or essential characteristics of the invention. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.

Claims (3)

1. A key switch debouncing circuit is characterized in that: the circuit comprises a key switch S1, a photoelectric coupler U1, a resistor R2, a resistor R3 and a capacitor C1; one end of the resistor R1 is connected with a 1 st pin of the photoelectric coupler U1, and the other end of the resistor R1 is connected with a power supply voltage VCC1; one end of the key switch S1 is connected with a No. 2 pin of the photoelectric coupler U1, and the other end of the key switch S1 is connected with a ground wire GND1; one end of the resistor R3 is connected with a pin 3 of the photoelectric coupler U1, the other end of the resistor R3 is connected with one end of the capacitor C1, the other end of the capacitor C1 is connected with a ground wire GND2, one end of the resistor R2 is connected with a connection point of the resistor R3 and the pin 3 of the photoelectric coupler U1, and the other end of the resistor R2 is connected with the ground wire GND2; and the 4 th pin of the photoelectric coupler U1 is connected with a power supply voltage VCC2.
2. A key switch debouncing circuit as recited in claim 1, wherein: the high level amplitude of supply voltage VCC 2's voltage value decision circuit output, resistance R1's specification and parameter are decided by supply voltage VCC 1's voltage value and optoelectronic coupler U1's preceding stage current parameter, electric capacity C1's specification and parameter are decided by supply voltage VCC 2's voltage value, resistance R2's specification and parameter are decided by supply voltage VCC 2's voltage value and optoelectronic coupler U1's back level current parameter, resistance R3's specification and parameter are decided by electric capacity C1's appearance value.
3. A key switch debouncing circuit as recited in claim 2, wherein: when the rear-stage voltage in the rear-stage circuit design does not need to be isolated from the front-stage voltage, the power supply voltage VCC1 and the ground wire GND1 can use the same power supply as the power supply voltage VCC2 and the ground wire GND2; when the rear-stage voltage must be isolated from the front-stage voltage in the rear-stage circuit design, the power supply voltage VCC1, the ground wire GND1, the power supply voltage VCC2 and the ground wire GND2 cannot use the same power supply.
CN202123075599.XU 2021-12-09 2021-12-09 Key switch debouncing circuit Active CN218217338U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202123075599.XU CN218217338U (en) 2021-12-09 2021-12-09 Key switch debouncing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202123075599.XU CN218217338U (en) 2021-12-09 2021-12-09 Key switch debouncing circuit

Publications (1)

Publication Number Publication Date
CN218217338U true CN218217338U (en) 2023-01-03

Family

ID=84628479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202123075599.XU Active CN218217338U (en) 2021-12-09 2021-12-09 Key switch debouncing circuit

Country Status (1)

Country Link
CN (1) CN218217338U (en)

Similar Documents

Publication Publication Date Title
CN107665033B (en) Digital logic circuit module with reset deburring function
CN101668057A (en) Terminal and system with function of multimeter
CN103605017A (en) Detection method of vehicle switch quantity signal
CN218217338U (en) Key switch debouncing circuit
CN103095257A (en) Anti-shake circuit
US20090207061A1 (en) Sigma-delta conversion circuit suitable for photocurrent measurement applications
CN208128219U (en) Multifunction push key circuit
CN107957563B (en) Lamp state detection circuit and device
CN103823124B (en) A kind of power lead conducted interference signal testing circuit being applicable to on-the-spot electromagnetic compatibility and detecting
CN209911585U (en) Rain amount measuring device with interference elimination function
CN204068684U (en) For the current foldback circuit of power device
CN204836131U (en) Effective switch input signal acquisition circuit of high level
CN100579148C (en) Testing apparatus for ringing current breadth
CN214539779U (en) Voltage variation trigger circuit
CN110456146A (en) Power detection device and power detecting method
CN205844510U (en) Pulse check photometer head
CN213934849U (en) Infrared signal processing circuit and infrared touch screen
CN202395987U (en) Diagnosis circuit for microphone
CN217112420U (en) Module testing device and module testing system
CN220399631U (en) Anti-interference electric energy pulse receiving circuit
CN207924078U (en) A kind of high frequency partial discharge acquisition module
CN217981764U (en) Monitoring device and electronic equipment
CN201141868Y (en) Small-current start screening circuit of quartz flexibility accelerometer
CN215071612U (en) Automatic protection circuit is used in laboratory
CN203574635U (en) Signal conversion equipment

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant