CN210780722U - Switching circuit - Google Patents

Switching circuit Download PDF

Info

Publication number
CN210780722U
CN210780722U CN201922245192.3U CN201922245192U CN210780722U CN 210780722 U CN210780722 U CN 210780722U CN 201922245192 U CN201922245192 U CN 201922245192U CN 210780722 U CN210780722 U CN 210780722U
Authority
CN
China
Prior art keywords
switch
chip
light emitting
emitting elements
trigger
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
CN201922245192.3U
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.)
Fujian Yibao Photoelectric Technology Co ltd
Anta China Co Ltd
Original Assignee
Fujian Yibao Photoelectric Technology Co ltd
Anta China 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 Fujian Yibao Photoelectric Technology Co ltd, Anta China Co Ltd filed Critical Fujian Yibao Photoelectric Technology Co ltd
Priority to CN201922245192.3U priority Critical patent/CN210780722U/en
Application granted granted Critical
Publication of CN210780722U publication Critical patent/CN210780722U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Switch Cases, Indication, And Locking (AREA)

Abstract

The utility model relates to a switching circuit, include: IC chip, key switch, pull-up resistance; the IC chip is provided with an IO port, a power supply anode and a ground end, one end of the pull-up resistor is connected with the power supply anode of the IC chip, the other end of the pull-up resistor is respectively connected with the IO port of the IC chip and one end of the key switch, and the other end of the key switch is connected with the ground end of the IC chip. The embodiment of the utility model provides a switching circuit is when key switch is located the aquatic, and the IC chip still can normally work.

Description

Switching circuit
Technical Field
The utility model belongs to the technical field of the electronic circuit, concretely relates to switch circuit.
Background
In the existing switch circuit, the IO port of the IC chip is triggered by arranging a key between the IO port and a ground terminal GND, and if the key is not triggered, the IO port keeps high level; if the button is triggered, the IO port keeps low level, the trigger to the button is disconnected, and the IO port restores to keep high level again, so, switch at high-low level through the IO port and make the IC chip can normally work. If the key is located in water, the IO port is always kept at a low level due to conductivity of water, and switching between the high level and the low level cannot be performed, so that the IC chip cannot normally operate.
SUMMERY OF THE UTILITY MODEL
In order to solve the technical problem that the IC chip can not normally work when the above-mentioned button is located the aquatic, the embodiment of the utility model provides a switch circuit.
A switching circuit, comprising: IC chip, key switch, pull-up resistance; the IC chip is provided with an IO port, a power supply anode and a ground end, one end of the pull-up resistor is connected with the power supply anode of the IC chip, the other end of the pull-up resistor is respectively connected with the IO port of the IC chip and one end of the key switch, and the other end of the key switch is connected with the ground end of the IC chip.
In some embodiments, the switch circuit further includes a status indication module, which is connected to the IC chip and indicates the on-off status of the key switch under the control of the IC chip.
In some embodiments, the switch circuit further includes a trigger switch whose trigger is controlled by the switch state of the key switch, the IC chip further includes a trigger signal contact, one end of the trigger switch is connected to the trigger signal contact, the other end of the trigger switch is connected to the ground, and the IC chip controls the state indication module to emit light in response to the trigger of the trigger switch being valid.
In some embodiments, the trigger switch is a vibration switch, a voice-activated switch, or a light-activated switch.
In some embodiments, the status indication module includes a light emitting element group, the light emitting element group includes a plurality of light emitting elements, the IC chip further includes a plurality of contacts disposed corresponding to the plurality of light emitting elements, one end of the plurality of light emitting elements is connected to the plurality of contacts, and the other end of the plurality of light emitting elements is connected to the positive power supply terminal or the ground terminal.
In some embodiments, the plurality of light emitting elements includes three to nine light emitting elements, and correspondingly, the plurality of contacts includes at least three to nine contacts.
In some embodiments, the plurality of light-emitting elements includes six light-emitting elements, and accordingly, the plurality of contacts includes at least six contacts.
In some embodiments, the plurality of light emitting elements are a plurality of LED beads, and the anode of each LED bead is connected to the anode of the power supply, and the cathode of each LED bead is connected to one of the plurality of contacts.
In some embodiments, the pull-up resistor has a resistance of kilo-ohm or kilo-ohm.
The utility model has the advantages that:
1. the embodiment of the utility model provides a switch circuit sets up pull-up resistance through the link at IO mouth and key switch to when key switch is located the aquatic, the IC chip still can normally work.
2. The embodiment of the utility model provides a switch circuit through setting up the status indication module, can instruct key switch's on-off state directly perceivedly.
3. The embodiment of the utility model provides a switching circuit triggers trigger switch that is controlled by key switch's on-off state effectively or not through the setting, responds to trigger switch's triggering is effective, and IC chip control state instructs the module and gives out light, and consequently, the on-off state that key switch not only can be instructed directly perceivedly to the state indication module to can present the visual effect that can attract attention.
Drawings
Fig. 1 is a schematic structural diagram of an embodiment of a switch circuit according to the present invention;
fig. 2 is a schematic structural diagram of another embodiment of a switching circuit according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings. Those skilled in the art will appreciate that the present invention is not limited to the drawings and the following embodiments.
The embodiment of the utility model provides a switch circuit, as shown in fig. 1, including IC chip, key switch TG1 and pull-up resistance R, the IC chip has IO mouth, anodal VDD of power and ground end GND, and the anodal VDD of power of IC chip is connected to pull-up resistance R's one end, and the IO mouth and the one end of key switch TG1 of IC chip are connected respectively to pull-up resistance R's the other end, and the ground end GND of IC chip is connected to key switch TG 1's the other end.
When the key switch TG1 is immersed in water, if the key switch TG1 is not pressed, the conductive resistance of water is connected to the key switch TG1, and at this time, the positive electrode VDD of the power supply, the pull-up resistor, the conductive resistance of water and the ground GND form a loop, so that the IO port is kept at a high level through voltage division of the conductive resistance of water; if keyswitch TG1 is pressed, keyswitch TG1 is shorted out, which grounds IO port GND, so that it remains low. The embodiment of the utility model provides a set up pull-up resistance through the link at IO mouth and key switch to when key switch is located the aquatic, the IC chip still can normally work.
In this embodiment, the resistance of the pull-up resistor is selected according to the IC chip, and is generally between several kilo ohms and several ten kilo ohms.
Further, in an embodiment, the switch circuit further includes a status indication module, referring to fig. 2, the status indication module is connected to the IC chip, and indicates the switch status of the key switch TG1 under the control of the IC chip. Specifically, assuming that the key switch TG1 is currently in the on state, when the key switch TG1 is pressed, the IC chip control state indicating module sends out a first indication signal once, which indicates that the key switch TG1 is in the off state; when the key switch TG1 is pressed again, the IC chip controls the state indicating module to send out a second indicating signal once, which indicates that the key switch TG1 is in an on state, wherein the second indicating signal and the first indicating signal visually present different effects. It can be understood that, assuming that the key switch TG1 is currently in the off state, when the key switch TG1 is pressed, the IC chip control state indicating module sends a second indication signal once, which indicates that the key switch TG1 is in the on state; when the key switch TG1 is pressed again, the IC chip controls the state indication module to send out a first indication signal once, which indicates that the key switch TG1 is in an off state. In the embodiment, the on-off state of the key switch can be intuitively indicated through the state indicating module.
Referring to fig. 2 again, in an embodiment, the switch circuit further includes a trigger switch TG2 whose trigger is controlled by the switch state of the key switch, the IC chip further includes a trigger signal contact, one end of the trigger switch TG2 is connected to the trigger signal contact, and the other end of the trigger switch TG2 is connected to the ground GND. The trigger switch TG2 is activated when the key switch TG1 is in an on state, and the trigger switch TG2 is deactivated when the key switch TG1 is in an off state, or of course, the trigger switch TG2 may be deactivated when the key switch TG1 is in an on state, and the trigger switch TG2 is activated when the key switch TG1 is in an off state. Specifically, taking the case that the trigger switch TG2 is activated when the key switch TG1 is in an on state, and the trigger switch TG2 is deactivated when the key switch TG1 is in an off state as an example, assuming that the key switch TG1 is currently in the on state, when the key switch TG1 is pressed, the IC chip control state indication module sends a first indication signal once to indicate that the key switch TG1 is in the off state, and after the first indication signal once is over, the state indication module does not work; if the trigger switch TG2 is triggered, the status indication module emits light every time the trigger switch TG2 is triggered, the light emitting mode can be set by itself, and in some applications, the light emitting mode is to emit a first indication signal once; when the key switch TG1 is pressed again, the IC chip controls the state indicating module to send out a primary second indicating signal, the key switch TG1 is in an on state, and after the primary second indicating signal is finished, the state indicating module does not work; subsequently, if the trigger switch TG2 is triggered, the status indication module remains inactive. In this embodiment, by setting the trigger switch controlled by the on-off state of the key switch and by means of the state indicating module, when the trigger of the trigger switch is effective, the state indicating module exhibits a noticeable visual effect under the control of the IC chip. In one embodiment, the trigger switch TG2 may be a shock switch. In another embodiment, the trigger switch TG2 may be a voice operated switch or a light operated switch.
Referring back to fig. 2, in an embodiment, the status indication module includes a light emitting element group, the light emitting element group includes a plurality of light emitting elements, the IC chip further includes a plurality of contacts disposed corresponding to the plurality of light emitting elements, one ends of the plurality of light emitting elements are correspondingly connected to the plurality of contacts, and the other ends of the plurality of light emitting elements are connected to the power supply positive electrode VDD or the ground of the IC chip. The present embodiment achieves a noticeable light emitting effect by a plurality of light emitting elements. The number of the plurality of light emitting elements may be selected according to the place where they are disposed or the scene of the application, and may be, for example, three to fifteen, or three to nine. An example of six of the plurality of light emitting elements is given in fig. 2. The number of the plurality of contacts may be provided to be paired with the plurality of light emitting elements, or may be larger than the number of the plurality of light emitting elements, as shown in L1 to Ln in fig. 2, where n is equal to or larger than the number of the plurality of light emitting elements. The light emitting elements may have the same or different emission colors, or may be partially the same. In an embodiment, the first indication signal is that the plurality of light emitting elements flash two turns in sequence, and the second indication signal is that the plurality of light emitting elements flash one turn in sequence, and it can be understood that the flashing mode or the light emitting mode of the plurality of light emitting elements can be selected according to an application scenario, as long as it is ensured that the first indication signal and the second indication signal can visually present different effects. Specifically, assuming that the key switch TG1 is currently in the on state, when the key switch TG1 is pressed, the IC chip controls the plurality of light emitting elements to flash for two turns and then stop, indicating that the key switch TG1 is in the off state; then if the trigger switch TG2 is triggered, the IC chip may control the plurality of light emitting elements to emit light according to the set light emitting mode (e.g., stop after two flashing circles) every time the trigger switch TG2 is triggered; when the key switch TG1 is pressed again, the IC chip controls the light-emitting elements to flash one turn and stop, indicating that the key switch TG1 is in an on state; subsequently, if the trigger switch TG2 is triggered, the plurality of light emitting elements do not operate.
In one embodiment, the IC chip determines that the key switch TG1 and/or the trigger switch TG2 is not valid before the plurality of light emitting elements complete two or one flash.
With continued reference to fig. 2, in an embodiment, the light emitting element is an LED lamp bead, an anode of the LED lamp bead is connected to the positive electrode VDD of the power supply, and a cathode of the LED lamp bead is connected to one of the plurality of contacts. The light emitting colors of the LED lamp beads can be the same or different, and can also be partially the same.
In one embodiment, the power supply voltage provided by the IC chip is 2.2V-5V. The flicker frequency is 2.8Hz and the duty cycle is 1/12.
The embodiments of the present invention have been described above. However, the present invention is not limited to the above embodiment. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. A switching circuit, comprising: the device comprises an IC chip, a key switch and a pull-up resistor; the IC chip is provided with an IO port, a power supply anode and a ground end, one end of the pull-up resistor is connected with the power supply anode of the IC chip, the other end of the pull-up resistor is respectively connected with the IO port of the IC chip and one end of the key switch, and the other end of the key switch is connected with the ground end of the IC chip.
2. The switch circuit of claim 1, further comprising a status indication module, wherein the status indication module is connected to the IC chip and indicates a switch status of the key switch under control of the IC chip.
3. The switch circuit according to claim 2, wherein the switch circuit further comprises a trigger switch, the trigger of which is controlled by the switch state of the key switch, the IC chip further comprises a trigger signal contact, one end of the trigger switch is connected to the trigger signal contact, the other end of the trigger switch is connected to the ground terminal, and in response to the trigger of the trigger switch being valid, the IC chip controls the state indicating module to emit light.
4. The switch circuit of claim 3, wherein the trigger switch is a vibration switch, a voice-activated switch, or a light-activated switch.
5. The switch circuit according to claim 2, wherein the status indication module comprises a light emitting element group, the light emitting element group comprises a plurality of light emitting elements, the IC chip further comprises a plurality of contacts corresponding to the plurality of light emitting elements, one ends of the plurality of light emitting elements are correspondingly connected to the plurality of contacts, and the other ends of the plurality of light emitting elements are connected to the positive power supply terminal or the ground terminal.
6. The switch circuit of claim 5, wherein the plurality of light emitting elements comprises three to nine light emitting elements, and wherein the plurality of contacts comprises at least three to nine contacts, respectively.
7. The switching circuit of claim 5, wherein the plurality of light emitting elements comprises six light emitting elements, and wherein the plurality of contacts comprises at least six contacts, respectively.
8. The switch circuit of claim 5, wherein the plurality of light emitting elements are a plurality of LED beads, and wherein the positive electrode of the LED bead is connected to the positive electrode of the power supply, and the negative electrode of the LED bead is connected to one of the plurality of contacts.
9. The switch circuit according to claim 1, wherein the pull-up resistor has a resistance of kilo-ohm or kilo-ohm.
CN201922245192.3U 2019-12-13 2019-12-13 Switching circuit Active CN210780722U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201922245192.3U CN210780722U (en) 2019-12-13 2019-12-13 Switching circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201922245192.3U CN210780722U (en) 2019-12-13 2019-12-13 Switching circuit

Publications (1)

Publication Number Publication Date
CN210780722U true CN210780722U (en) 2020-06-16

Family

ID=71040448

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201922245192.3U Active CN210780722U (en) 2019-12-13 2019-12-13 Switching circuit

Country Status (1)

Country Link
CN (1) CN210780722U (en)

Similar Documents

Publication Publication Date Title
CN101299287B (en) Danger warning system with LED
CN211267192U (en) Self-generating switch with light emitting module
CN210780722U (en) Switching circuit
CN102143268B (en) Mobile phone
CN102158577B (en) Mobile phone
CN202197098U (en) Overvoltage protection circuit, light-emitting diode (LED) driving power supply and LED lighting device
CN104869720A (en) Adjustable LED lamp and light adjusting method thereof
CN214959457U (en) Circuit with forward-open and reverse-open switches formed by operational amplifiers
CN212573040U (en) Intelligent light and color adjusting control system circuit structure
CN106332344B (en) Self-shooting bar light filling lamp control circuit and self-shooting bar
CN204258757U (en) A kind of reset circuit being applicable to fpga chip
CN205319676U (en) Prevent short circuit LED display screen
CN210274608U (en) LED lamp string control system
CN106788361B (en) MCU long-press reset circuit
CN211822100U (en) Single-flash LED lamp string and single-flash LED lamp string system
CN111787660B (en) Intelligent dimming and toning control system circuit structure
CN203537638U (en) Safe light-emitting circuit
CN210485330U (en) High-voltage-resistant non-polar pin type LED lamp bead
CN219198919U (en) Controllable type scintillation LED light source
CN211857667U (en) Undervoltage alarm circuit and power supply circuit with undervoltage alarm circuit
CN217789931U (en) LED switching circuit of automobile key switch
CN219678712U (en) LED lamp control circuit and lamp
CN211321578U (en) Lamp decoration power signal prevents connecing wrong protection circuit
CN218603685U (en) Magic color wall washing lamp belt capable of being cut randomly
CN214627430U (en) LED module drive circuit with reverse connection protection

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant