[go: up one dir, main page]

CN218772487U - Key switch lamp circuit, control panel and equipment - Google Patents

Key switch lamp circuit, control panel and equipment Download PDF

Info

Publication number
CN218772487U
CN218772487U CN202222202663.4U CN202222202663U CN218772487U CN 218772487 U CN218772487 U CN 218772487U CN 202222202663 U CN202222202663 U CN 202222202663U CN 218772487 U CN218772487 U CN 218772487U
Authority
CN
China
Prior art keywords
key switch
led lamp
resistor
gpio
lamp 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.)
Active
Application number
CN202222202663.4U
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.)
New H3C Technologies Co Ltd Hefei Branch
Original Assignee
New H3C Technologies Co Ltd Hefei Branch
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 New H3C Technologies Co Ltd Hefei Branch filed Critical New H3C Technologies Co Ltd Hefei Branch
Priority to CN202222202663.4U priority Critical patent/CN218772487U/en
Application granted granted Critical
Publication of CN218772487U publication Critical patent/CN218772487U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The embodiment of the application provides key switch lamp circuit, control panel and equipment, wherein, key switch lamp circuit, including key switch SW, CPU and LED lamp, CPU's IO input GPII connects divider resistor R1's one end, divider resistor R1 and pull-up resistance R0 establish ties, power supply voltage Vcc is connected to the pull-up resistance R0 other end, the key switch SW is connected to the voltage dividing point that pull-up resistance R0 and divider resistor R1 are connected, key switch SW's other end ground connection GND, the LED lamp is connected to CPU's IO output. The operation mode of the embodiment of the application is simple, and the method is suitable for all people to operate. In addition, the physical key switch is adopted, so that complex software control is not needed, and a software operation interface is also not needed.

Description

Key switch lamp circuit, control panel and equipment
Technical Field
The application relates to the field of communication equipment, in particular to a key switch lamp circuit, a control panel and equipment.
Background
The existing electronic equipment is easy to cause light pollution because of over-lighting or continuous flashing of the indicator light. Especially at night, affects the normal rest of the user.
As known to the inventor, a common solution is to set an application program on a portable electronic device such as a mobile phone, and to control the shutdown through the mobile phone. The operation is complicated under this kind of solution, is not fit for old man and child. In addition, the software complexity is relatively high, and a special software operation interface needs to be set.
Disclosure of Invention
In order to overcome the problems in the related art, the application provides a key switch lamp circuit, a control panel and equipment.
According to the first aspect of the application, an embodiment provides a key switch lamp circuit, which comprises a key switch SW, a CPU and an LED lamp, and is characterized in that an IO input end GPII of the CPU is connected to one end of a voltage dividing resistor R1, the voltage dividing resistor R1 is connected in series with a pull-up resistor R0, the other end of the pull-up resistor R0 is connected to a power supply voltage Vcc, a voltage dividing point at which the pull-up resistor R0 is connected to the voltage dividing resistor R1 is connected to the key switch SW, the other end of the key switch SW is grounded GND, and an IO output end GPIO of the CPU is connected to the LED lamp.
Preferably, the voltage divider further comprises a capacitor C1, one end of the capacitor C1 is connected between the ground GND and the key switch SW, and the other end of the capacitor C1 is connected to the connection end of the IO input end GPII of the CPU and the voltage divider circuit R1.
Preferably, the number of the IO output ends GPIO of the CPU is GPIO 0-GPIOm, and each IO output end is connected with one LED lamp.
Preferably, the positive pole and the negative pole of the LED lamp are respectively connected with the first series resistor R2 and the second series resistor R3.
Further, the anode of the LED lamp is connected to one end of the first resistor string R2, the cathode of the LED lamp is connected to the second resistor string R3, and the other end of the first resistor string R2 is connected to the LED power source Vccled;
if the GPIO at the IO output end is low level, the corresponding LED lamp is lightened;
if the GPIO of the IO output end is high level, the corresponding LED lamp is turned off;
and if the IO output end GPIO is high-low staggered level, the corresponding LED lamp flickers.
Furthermore, the anode of the LED lamp is connected to the second series resistor R3, the cathode of the LED lamp is connected to one end of the first series resistor R2, and the other end of the first series resistor R2 is grounded to GND;
if the GPIO of the IO output end is low level, the corresponding LED lamp is turned off;
when the GPIO of the IO output end is high level, the corresponding LED lamp is lightened;
and if the IO output end GPIO is high-low staggered level, the corresponding LED lamp flickers.
Preferably, the high-low staggered level of the IO output terminal GPIO is as long as the low level time or as long as the high level time or as short as the low level time or as short as the high level time.
The application second aspect provides take key switch lamp circuit control panel, including control panel, still include above-mentioned key switch lamp circuit, the LED lamp sets up on control panel.
The third aspect of the present application further provides a device with a key switch lamp circuit control panel, including the above key switch lamp circuit control panel.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
the operation mode of the embodiment of the application is simple, and the method is suitable for all people to operate. In addition, the physical key switch is adopted, so that complex software control is not needed, and a software operation interface is not needed.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments consistent with the present application and together with the application, serve to explain the principles of the application.
FIG. 1 is a schematic diagram of an embodiment of a key switch lamp circuit according to the present application;
fig. 2 is a schematic diagram of a second embodiment of the key switch lamp circuit of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
In order to solve the problems in the background art, an embodiment of the first aspect of the present application provides a key switch lamp circuit, as shown in fig. 1, including a key switch SW, a CPU and an LED lamp, an IO input terminal GPII of the CPU is connected to one end of a voltage dividing resistor R1, the other end of the voltage dividing resistor R1 is connected to one end of a pull-up resistor R0, and the other end of the pull-up resistor is connected to a power supply voltage Vcc. The voltage division point of the pull-up resistor R0 connected with the voltage division resistor R1 is connected to one end of the key switch SW, and the other end of the key switch SW is grounded GND. And the IO output end GPIO of the CPU is connected with the LED lamp. The switching value signal of the key switch SW is input to the CPU through an IO input end GPII, the CPU outputs a corresponding control signal to an IO output end GPIO according to the received switching value signal of the key switch SW, and the control signal corresponds to the control of the LED lamp. The operation mode of the embodiment of the application is simple, and the method is suitable for all people to operate. In addition, the physical key switch is adopted, so that complex software control is not needed, and a software operation interface is also not needed.
In the above embodiment, the positive electrode and the negative electrode of each LED lamp are respectively connected to the first series resistor R2 and the second series resistor R3, and the series resistors are used to adjust the signal quality and the current magnitude, so as to adjust the light brightness.
Embodiments are provided herein in which two LEDs are connected.
In the first embodiment, as shown in fig. 1:
the anode of the LED lamp is connected with one end of the first series resistor R2, the cathode of the LED lamp is connected with the second series resistor R3, and the other end of the first series resistor R2 is connected with an LED power source Vccled;
if the GPIO of the IO output end is low level, the corresponding LED lamp is lightened;
if the GPIO at the IO output end is high level, the corresponding LED lamp is turned off;
and if the IO output end GPIO is high-low staggered level, the corresponding LED lamp flickers.
Example two, as shown in fig. 2:
the anode of the LED lamp is connected with the second series resistor R3, the cathode of the LED lamp is connected with one end of the first series resistor R2, and the other end of the first series resistor R2 is grounded GND;
if the GPIO at the IO output end is low level, the corresponding LED lamp is turned off;
when the GPIO of the IO output end is high level, the corresponding LED lamp is lightened;
and if the IO output end GPIO is high-low staggered level, the corresponding LED lamp flickers.
If there are several LED lamps, LED0 to LEDm, as in the above embodiment, the corresponding first series resistance is from R20 to R2m, respectively, and the second series resistance is from R30 to R3m, respectively.
Where the level of the high-low crossing may indicate that the LED light is flashing. The high-low level signal may be a signal in which each high level is as long as the low level time period or the high level time is long and the low level time is short or the high level time is short and the low level time is long. In addition, other functions can be achieved by controlling the time of the key switch SW, such as restarting or recovering the initial state by pressing for 6 seconds.
As another embodiment, on the basis of the above embodiment, there are a plurality of IO output terminals GPIO of the CPU, which are GPIO0 to GPIO, respectively, and each IO output terminal is connected to one LED lamp, which is LED0 to LEDm, respectively. A plurality of LED lamps can be controlled, and the LED lamps can indicate corresponding to different functions of the equipment.
The embodiment of the application further comprises a capacitor C1, one end of the capacitor C1 is connected between the ground GND and the key switch SW, and the other end of the capacitor C1 is connected to the connecting end of the IO input end GPII of the CPU and the voltage dividing circuit R1. The capacitor C1 and the divider resistor R1 form an RC filter circuit, and the anti-shake function of the key switch can be realized.
The second aspect of the embodiment of the application also provides a control panel with a key switch lamp circuit, which comprises a control panel and the key switch lamp circuit, wherein the LED lamp is arranged on the control panel.
The equipment with the key switch lamp circuit control panel comprises the control panel with the key switch lamp circuit.
All the above-mentioned embodiments refer to the directional terms such as upper, lower, left, right, front, rear, horizontal, vertical, left, right, etc., and the directional terms are used in the drawings.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
The present invention is not intended to be limited to the particular embodiments shown and described, but is to be accorded the widest scope consistent with the principles and novel features herein disclosed.

Claims (9)

1. The key switch lamp circuit comprises a key switch SW, a CPU and an LED lamp, and is characterized in that an IO input end GPII of the CPU is connected with one end of a divider resistor R1, the divider resistor R1 is connected with a pull-up resistor R0 in series, the other end of the pull-up resistor R0 is connected with a power supply voltage Vcc, a voltage division point connected with the pull-up resistor R0 and the divider resistor R1 is connected with the key switch SW, the other end of the key switch SW is grounded GND, and an IO output end GPIO of the CPU is connected with the LED lamp.
2. A key switch lamp circuit according to claim 1, further comprising a capacitor C1, wherein one end of the capacitor C1 is connected between the ground GND and the key switch SW, and the other end of the capacitor C1 is connected to the connection end of the IO input terminal GPII of the CPU and the voltage divider circuit R1.
3. A key switch lamp circuit according to claim 1, wherein there are several IO output terminals GPIO of the CPU, which are GPIO 0-GPIOm, and each IO output terminal is connected with an LED lamp.
4. A key switch lamp circuit according to claim 1, wherein the LED lamp is connected with a first series resistor R2 and a second series resistor R3 at the positive and negative poles respectively.
5. The key switch lamp circuit according to claim 4, wherein the anode of the LED lamp is connected to one end of a first series resistor R2, the cathode of the LED lamp is connected to a second series resistor R3, and the other end of the first series resistor R2 is connected to an LED power source Vccled; if the GPIO at the IO output end is low level, the corresponding LED lamp is lightened;
if the GPIO of the IO output end is high level, the corresponding LED lamp is turned off;
and if the IO output end GPIO is high-low staggered level, the corresponding LED lamp flickers.
6. A key switch lamp circuit according to claim 4, characterized in that the anode of the LED lamp is connected with a second series resistor R3,
the cathode of the LED lamp is connected with one end of a first resistor R2, and the other end of the first resistor R2 is grounded GND;
if the GPIO of the IO output end is low level, the corresponding LED lamp is turned off;
if the GPIO at the IO output end is high level, the corresponding LED lamp is lightened;
and if the IO output end GPIO is high-low staggered level, the corresponding LED lamp flickers.
7. A key switch lamp circuit according to claim 5 or 6, characterized in that the high-low staggered level of the IO output GPIO is as long as the low level time or long as the high level time and short as the low level time.
8. The key switch lamp circuit control panel comprises a control panel and is characterized by further comprising the key switch lamp circuit according to any one of claims 1-7, wherein the LED lamp is arranged on the control panel.
9. An apparatus with a key switch lamp circuit control panel characterized by comprising the key switch lamp circuit control panel according to claim 8.
CN202222202663.4U 2022-08-22 2022-08-22 Key switch lamp circuit, control panel and equipment Active CN218772487U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202222202663.4U CN218772487U (en) 2022-08-22 2022-08-22 Key switch lamp circuit, control panel and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202222202663.4U CN218772487U (en) 2022-08-22 2022-08-22 Key switch lamp circuit, control panel and equipment

Publications (1)

Publication Number Publication Date
CN218772487U true CN218772487U (en) 2023-03-28

Family

ID=85691964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202222202663.4U Active CN218772487U (en) 2022-08-22 2022-08-22 Key switch lamp circuit, control panel and equipment

Country Status (1)

Country Link
CN (1) CN218772487U (en)

Similar Documents

Publication Publication Date Title
CN107221293B (en) Duty ratio regulating circuit and LED backlight brightness regulating circuit
US10080266B2 (en) Plug-in multifunctional LED power system
CN208539785U (en) A negative pressure regulating circuit
CN218772487U (en) Key switch lamp circuit, control panel and equipment
CN109714868A (en) A kind of LED control circuit that dial-up pressure regulation is combined with knob light modulation
CN207802459U (en) LED light adjusting circuits and LED device
CN211321244U (en) Circuit for changing vibration intensity of motor
CN2757279Y (en) Once programmable operation device for liquid crystal display module driving chip
CN104252831A (en) Backlight current adjusting device and method
CN207678051U (en) A kind of constant-current dimming protection circuit, constant current driving device and television set
CN210667136U (en) Automatic identification myopia-preventing alarm circuit
CN215513435U (en) Vehicle light control circuit
CN214412709U (en) Digital-to-analog conversion circuit, digital-to-analog conversion device and lamp
CN102573223A (en) Indicating lamp control circuit for electric facilities, and mobile phone
CN207737194U (en) Vehicle-mounted light adjusting controller
CN213934561U (en) Tea making timer
CN208175054U (en) A switch logic control LED driver
CN209462681U (en) A kind of light synchronization system
CN206790732U (en) A kind of new light adjusting circuit of adjustable dim light electric current
CN209982462U (en) Network access switch circuit
CN111526628B (en) Circuit for changing light state through flashlight of mobile phone and implementation method thereof
CN218851015U (en) Lamp area drive circuit
CN211982193U (en) Triode switching constant current circuit controlled by 512 signals for outputting short-circuit protection
CN222638742U (en) Light control device and lamp
CN218768720U (en) Pedal for controlling mobile phone and tablet software through Bluetooth

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant