WO2018099182A1 - 基于io口的单向元件控制电路 - Google Patents
基于io口的单向元件控制电路 Download PDFInfo
- Publication number
- WO2018099182A1 WO2018099182A1 PCT/CN2017/104858 CN2017104858W WO2018099182A1 WO 2018099182 A1 WO2018099182 A1 WO 2018099182A1 CN 2017104858 W CN2017104858 W CN 2017104858W WO 2018099182 A1 WO2018099182 A1 WO 2018099182A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- unidirectional element
- port
- unidirectional
- switch tube
- control 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Program-control systems
- G05B19/02—Program-control systems electric
- G05B19/04—Program control other than numerical control, i.e. in sequence controllers or logic controllers
Definitions
- the utility model relates to the technical field of IO port circuits, in particular to a unidirectional component control circuit based on an IO port.
- the IO port is a general-purpose input/output port. Since an IO port can only output one control signal, the IO port is usually directly connected to the controlled object, and directly controls the connected object by controlling the output of the high and low levels of the IO port.
- FIG. 1 which is a control circuit of an IO port to two unidirectional elements (such as light emitting diodes), wherein an input end of the first unidirectional element is connected to the first IO port connection end through a first resistor.
- the output end of the first unidirectional element is grounded; the input end of the second unidirectional element is connected to the second IO port connection end through a second resistor, and the output end of the second unidirectional element is grounded; the circuit requires two independent The IO port controls two unidirectional components separately.
- the purpose of the utility model is to provide a unidirectional component control circuit based on an IO port, which can effectively solve the problem that the existing scheme has insufficient IO port when the controlled unidirectional component is large or the IO port resource is tight, and realizes an IO.
- the port controls a plurality of unidirectional elements.
- an embodiment of the present invention provides a unidirectional element control circuit based on an IO port, including a first unidirectional element, a second unidirectional element, a first resistor, a second resistor, and a switch tube; a control end of the switch tube is connected to the IO port connection end through the first resistor; a common end of the switch tube is grounded; an output end of the switch tube is connected to the power input end through the second resistor, the power input The terminal is connected to the DC voltage; the output end of the switch tube is further connected to the output end of the first unidirectional element and the input end of the second unidirectional element, the input end of the first unidirectional element and the The output ends of the second unidirectional elements are all connected to the IO port connection ends.
- an IO port-based unidirectional component control circuit controls the turn-on and turn-off of the switch transistor through a control signal outputted by the IO port, thereby controlling the direction of the current in the circuit.
- the first unidirectional element and the second unidirectional element are respectively turned on according to the parallel connection of the first unidirectional element and the second unidirectional element, respectively, when the IO port outputs a high level and a low level. Therefore, an IO port is controlled to control a plurality of unidirectional components, which effectively solves the problem that the IO port resources are tight and the IO port is insufficient in the circuit design, and the circuit structure is simple and low in cost.
- the first unidirectional element is a first light emitting diode, and an input end and an output end of the first unidirectional element respectively correspond to a positive electrode and a negative electrode of the first light emitting diode.
- the second unidirectional element is a second light emitting diode, and an input end and an output end of the second unidirectional element respectively correspond to a positive electrode and a negative electrode of the second light emitting diode.
- the unidirectional component in the IO port-based unidirectional component control circuit provided by the embodiment is a light-emitting diode, and directly controls the brightness of the LED by controlling the output of the high-low level of the IO port.
- the unidirectional component in the IO port-based unidirectional component control circuit provided by the embodiment is a light-emitting diode, and directly controls the brightness of the LED by controlling the output of the high-low level of the IO port.
- the first unidirectional element is mainly composed of a plurality of codirectional unidirectional elements connected in parallel/series.
- the second unidirectional element is mainly composed of a plurality of codirectional unidirectional elements connected in parallel/series.
- the IO port-based unidirectional element control circuit provided by the embodiment provides the two sets of unidirectional elements by anti-parallel connection of two sets of unidirectional elements connected in parallel/series in the same direction.
- the high and low level control signals output according to the IO port are respectively turned on, and the unidirectional elements of the same group are turned on at the same time, thereby realizing one IO port to control more unidirectional elements.
- the switch tube is an NPN type triode, and the control end, the common end and the output end of the switch tube respectively correspond to a base, an emitter and a collector of the NPN type triode.
- the switch tube is a PNP type triode, and the control end, the common end and the output end of the switch tube respectively correspond to a base, a collector and an emitter of the PNP type triode; and a collector of the PNP type triode Grounded through a third resistor.
- the switch tube is an NMOS transistor, and the control terminal, the common terminal and the output terminal of the switch transistor respectively correspond to a gate, a source and a drain of the NMOS transistor.
- the switch transistor is a PMOS transistor, and the control terminal, the common terminal and the output terminal of the switch transistor respectively correspond to a gate, a drain and a source of the PMOS transistor; and a drain of the PMOS transistor passes a fourth The resistor is grounded.
- FIG. 1 is a schematic diagram of a control circuit of an IO port to two unidirectional elements in a normal case
- FIG. 2 is a schematic diagram of a unidirectional element control circuit based on an IO port according to Embodiment 1 of the present invention
- FIG. 3 is a schematic diagram of a unidirectional element control circuit based on an IO port according to Embodiment 2 of the present invention.
- FIG. 4 is a schematic diagram of a unidirectional element control circuit based on an IO port according to Embodiment 3 of the present invention.
- FIG. 5 is a schematic diagram of a unidirectional element control circuit based on an IO port according to Embodiment 4 of the present invention.
- FIG. 6 is a schematic diagram of a unidirectional element control circuit based on an IO port according to Embodiment 5 of the present invention.
- FIG. 2 it is an IO port-based unidirectional component control provided by Embodiment 1 of the present invention.
- the IO port-based unidirectional element control circuit shown in FIG. 2 includes a first unidirectional element D1, a second unidirectional element D2, a first resistor R1, a second resistor R2, and a switch tube Q1; wherein the switch tube
- the control terminal of Q1 is connected to the IO port connection terminal GPIO through the first resistor R1; the common terminal of the switch transistor Q1 is grounded; the output terminal of the switch transistor Q1 is connected to the power input terminal VCC through the second resistor R2.
- the power input terminal VCC is connected to the DC voltage; the output end of the switch tube Q1 is further connected to the output end of the first unidirectional element D1 and the input end of the second unidirectional element D2, the first one-way The input terminal of the component D1 and the output terminal of the second unidirectional component D2 are connected to the IO port connection terminal GPIO.
- the power input terminal VCC is always connected to a DC voltage; when the IO port outputs a high level, the control terminal of the switch tube Q1 is at a high level, and the switch tube Q1 is turned on or off according to different types. State, at this time, current flows from the terminal 1 to the terminal 2, the first unidirectional element D1 is turned on, and the second unidirectional element D2 is turned off; conversely, when the IO port outputs a low level, the control end of the switching transistor Q1 is at Low level, the switch tube Q1 is in an off or on state according to different types.
- the first resistor R1 is configured to prevent no current flowing through the first unidirectional element D1 when the IO port outputs a high level and the switch Q1 is turned on; and the second resistor R2 is used to prevent the switch tube Q1 from being turned on.
- the DC power supply is directly grounded and short-circuited via the power input terminal VCC.
- an IO port-based unidirectional component control circuit provided by Embodiment 1 of the present invention controls the turn-on and turn-off of the switch transistor Q1 through a control signal outputted by the IO port, thereby controlling the current in the circuit.
- the direction of the first unidirectional element D1 and the second unidirectional element D2 are reversely connected in parallel, so that the first unidirectional element D1 and the second unidirectional element D2 respectively output a high level corresponding to the IO port.
- an IO port is controlled to control a plurality of unidirectional components, which effectively solves the problem that the IO port resources are tight and the IO port is insufficient in the circuit design, and the circuit structure is simple and low in cost.
- FIG. 3 it is a schematic diagram of a unidirectional element control circuit based on an IO port according to Embodiment 2 of the present invention.
- the IO port-based unidirectional element control circuit shown in FIG. 3 includes a first light emitting diode a LED, a second LED, a first resistor R1, a second resistor R2, and a switch Q1; wherein the control terminal of the switch Q1 is connected to the IO port GPIO through the first resistor R1; The common end of the switch Q1 is grounded; the output end of the switch Q1 is connected to the power input terminal VCC through the second resistor R2, and the power input terminal VCC is connected to the DC voltage; the output end of the switch Q1 is also connected to the switch The anode of the first light-emitting diode LED1 and the anode of the second light-emitting diode LED2, the anode of the first light-emitting diode LED1 and the cathode of the second light-emitting di
- the power input terminal VCC is always connected to a DC voltage; when the IO port outputs a high level, the control terminal of the switch tube Q1 is at a high level, and the switch tube Q1 is turned on or off according to different types. State, at this time, current flows from the terminal 1 to the terminal 2, the first light emitting diode LED1 emits light, and the second light emitting diode LED2 is turned off; conversely, when the IO port outputs a low level, the control end of the switching transistor Q1 is at a low level The switch tube Q1 is in a turn-off or turn-on state according to different types.
- the first resistor R1 is configured to prevent no current from flowing through the first light emitting diode LED1 when the IO port outputs a high level and the switch Q1 is turned on; and the second resistor R2 is used to prevent the switch tube Q1 from being turned on.
- the DC power supply is directly shorted to ground through the power input terminal VCC.
- the unidirectional component in the IO port-based unidirectional component control circuit provided in the second embodiment is a light emitting diode, and the LED is directly controlled by controlling the output of the high and low levels of the IO port. Bright and off, can be widely used in various fields (such as control indicators, etc.).
- FIG. 4 it is a schematic diagram of a unidirectional element control circuit based on an IO port according to Embodiment 3 of the present invention.
- the IO port-based unidirectional element control circuit shown in FIG. 4 includes a first light emitting diode LED1, a third light emitting diode LED3, a fifth light emitting diode LED5, a second light emitting diode LED2, a fourth light emitting diode LED4, and a sixth light emitting diode.
- LED6 first resistor R1, second resistor R2 and switch tube Q1; wherein the control end of the switch tube Q1 is connected to the IO port connection terminal GPIO through the first resistor R1; the common end of the switch tube Q1 is grounded; The output end of the switch tube Q1 passes the
- the second resistor R2 is connected to the power input terminal VCC, and the power input terminal VCC is connected to the DC voltage; the first LED, the third LED 3, and the fifth LED 5 are connected in series in the same direction and connected to the switch.
- the fourth light emitting diode LED4, and the sixth light emitting diode LED6 are connected in series in the same direction and connected in reverse to the output of the switch tube Q1.
- the terminal and the IO port are connected between the GPIOs.
- the power input terminal VCC is always connected to a DC voltage; when the IO port outputs a high level, the control terminal of the switch tube Q1 is at a high level, and the switch tube Q1 is turned on or off according to different types.
- the second light emitting diode LED2, the fourth light emitting diode LED4, and the sixth light emitting diode LED6 emit light at the same time, and the first light emitting diode LED1, the third light emitting diode LED3, and the fifth light emitting diode LED5 are turned off, thereby implementing an IO port control first.
- the first resistor R1 is configured to prevent no current flowing through the first LED, the third LED, and the fifth LED 5 when the IO port outputs a high level and the switch Q1 is turned on;
- the two resistors R2 are used to prevent the DC power supply from being directly short-circuited to the ground through the power input terminal VCC when the switch Q1 is turned on.
- first unidirectional element and the second unidirectional element of the third embodiment respectively comprise three light emitting diodes connected in series in the same direction, but the first unidirectional element and the second unidirectional element are not limited to three
- the LEDs connected in series may also include two, four or more light emitting diodes or unidirectional elements in the same direction, and the specific number is set according to the actual circuit structure.
- the first LEDs 1, the third LEDs 3, and the fifth LEDs 5 can be connected in parallel and connected to the output of the switch Q1 and the IO port.
- the fourth LED The tube LED4 and the sixth LED diode 6 are connected in parallel in the same direction and are connected in reverse between the output end of the switching transistor Q1 and the IO port connection terminal GPIO.
- the technical solution is described by taking a plurality of unidirectional elements connected in series in the same direction as an example.
- the first unidirectional element and the second unidirectional element in the IO port-based unidirectional element control circuit provided by the present invention are provided. Also included are a plurality of unidirectional elements that are connected in parallel in the same direction.
- the IO port-based unidirectional element control circuit provided in the third embodiment provides the two groups of singles by anti-parallel connecting two sets of unidirectional elements connected in parallel/series in the same direction.
- the high-low level control signals outputted by the components according to the IO port are respectively turned on, and the unidirectional elements of the same group are turned on at the same time, thereby realizing one IO port to control more unidirectional elements.
- FIG. 5 it is a schematic diagram of a unidirectional element control circuit based on an IO port according to Embodiment 4 of the present invention.
- the IO port-based unidirectional element control circuit shown in FIG. 5 includes a first light emitting diode LED1, a second light emitting diode LED2, a first resistor R1, a second resistor R2, and an NPN type three-stage tube Q1; wherein the NPN The base of the type three-stage tube Q1 is connected to the IO port connection terminal GPIO through the first resistor R1; the emitter of the NPN-type three-stage tube Q1 is grounded; the collector of the NPN-type three-stage tube Q1 passes the The second resistor R2 is connected to the power input terminal VCC, and the power input terminal VCC is connected to the DC voltage; the collector of the NPN-type tertiary tube Q1 is further connected to the negative pole of the first light-emitting diode LED1 and the second light-emitting diode LED2
- the power input terminal VCC is always connected to a DC voltage; when the IO port outputs a high level, the NPN-type three-stage tube Q1 is turned on when the control signal is at a high level, and the current flows from the terminal 1 to the terminal. 2.
- the first light emitting diode LED1 emits light, and the second light emitting diode LED2 is turned off; conversely, when the IO port outputs a low level, the NPN type three-stage tube Q1 is turned off when the control signal is low level, and the current is from the terminal.
- the first resistor R1 is used to prevent the first light-emitting diode LED1 from flowing without current when the NPN-type tertiary tube Q1 is turned on; and the second resistor R2 is used to prevent the NPN-type three-stage tube Q1 from being turned on when the NPN is turned on. Directly grounded through the power supply input terminal VCC, causing a short circuit and burning the NPN type three-stage tube Q1.
- the fourth embodiment is that the switch tube is turned on when the IO port output control signal is at a high level, and is turned off when the IO port output control signal is at a low level, so that the first unidirectional element and the second unidirectional element are respectively It is turned on when the IO port outputs a high level and a low level. Therefore, as a modification of the fourth embodiment, the switch tube in this embodiment may also be a three-terminal control device such as an NMOS transistor, an IGBT, a thyristor or a derivative device thereof.
- the control terminal, the common terminal and the output terminal of the switch tube respectively correspond to the gate, the source and the drain of the NMOS transistor, the gate, the emitter and the collector of the IGBT, the gate and the cathode of the unidirectional thyristor, and Anode, gate of the triac, port 1 and port 2.
- the technical solution is described by taking the NPN type triode as an example.
- the switching tube in the IO port-based unidirectional element control circuit provided by the present invention is not limited to the NPN type triode.
- FIG. 6 is a schematic diagram of a unidirectional element control circuit based on an IO port according to Embodiment 5 of the present invention.
- the IO port-based unidirectional element control circuit shown in FIG. 6 includes a first light emitting diode LED1, a second light emitting diode LED2, a first resistor R1, a second resistor R2, a third resistor R3, and a PNP type three-stage tube Q1;
- the base of the PNP-type three-stage tube Q1 is connected to the IO port connection terminal GPIO through the first resistor R1; the collector of the PNP-type three-stage tube Q1 is grounded through the third resistor R3; the PNP
- the emitter of the type three-stage tube Q1 is connected to the power input terminal VCC through the second resistor R2, and the power input terminal VCC is connected to a DC voltage; the emitter of the PNP-type tertiary tube Q1 is also connected to the first light-emitting unit.
- the power input terminal VCC is always connected to a DC voltage; when the IO port outputs a high level, the PNP-type three-stage tube Q1 is turned off when the control signal is at a high level, and the current flows from the terminal 1 to the terminal 2 at this time.
- the first light emitting diode LED1 emits light, and the second light emitting diode LED2 is turned off; conversely, when the IO port outputs a low level, the PNP type three-stage tube Q1 is turned on when the control signal is low level, and the current is from the terminal.
- the second resistor R2 is used to prevent the DC power source from being powered when the PNP type three-stage tube Q1 is turned on.
- the source input terminal VCC is directly grounded to cause a short circuit, and the PNP type three-stage tube Q1 is burned out.
- the third resistor R3 is used to prevent the second light emitting diode LED2 from flowing without current when the PNP type three-stage tube Q1 is turned on.
- the fifth embodiment is that the switch tube is turned on when the output control signal of the IO port is low level, and is turned off when the output signal of the IO port is high level, so that the first unidirectional element and the second unidirectional element are respectively It is turned on when the IO port outputs a high level and a low level. Therefore, as a modification of the fifth embodiment, the switch tube in this embodiment may also be a three-terminal control device such as a PMOS transistor, an IGBT, a thyristor or a derivative device thereof.
- control terminal, the common terminal and the output terminal of the switch tube respectively correspond to the gate, the drain and the source of the PMOS transistor, the gate, the collector and the emitter of the IGBT, the gate and the anode of the unidirectional thyristor, and Cathode, gate of bidirectional thyristor, port 2 and port 1.
- the technical solution is described by taking the PNP type triode as an example.
- the switch tube in the IO port-based unidirectional element control circuit provided by the present invention is not limited to the PNP type triode.
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
- Led Devices (AREA)
Abstract
一种基于IO口的单向元件控制电路,包括第一单向元件(D1)、第二单向元件(D2)、第一电阻(R1)、第二电阻(R2)和开关管(Q1),开关管(Q1)的控制端通过第一电阻(R1)连接IO口连接端(GPIO);开关管(Q1)的公共端接地;开关管(Q1)的输出端通过第二电阻(R2)连接电源输入端(VCC),电源输入端(VCC)接入直流电压;开关管(Q1)的输出端还连接第一单向元件(D1)的输出端和第二单向元件(D2)的输入端,第一单向元件(D1)的输入端和第二单向元件(D2)的输出端均连接IO口连接端(GPIO)。采用该控制电路,可实现一个IO口控制多个单向元件,有效解决了电路设计中IO口资源紧张、IO口不够用的问题,且电路结构简单成本低廉。
Description
本实用新型涉及IO口电路技术领域,具体是一种基于IO口的单向元件控制电路。
IO口即通用输入输出口,由于一个IO口只能够输出一路控制信号,因此IO口通常直接与被控对象连接,通过控制IO口高低电平的输出来直接控制连接的对象。例如,参见图1,其是通常情况下IO口对两个单向元件(如发光二极管)的控制电路,其中第一单向元件的输入端通过第一电阻连接第一IO口连接端,所述第一单向元件的输出端接地;第二单向元件的输入端通过第二电阻连接第二IO口连接端,所述第二单向元件的输出端接地;该电路需要两个独立的IO口来分别控制两个单向元件。
但是,由于IO口的个数一般是固定的,在电路设计中,经常会出现IO口资源十分紧张的情况,若被控单向元件的数量超过可用IO口的个数时,就会遇到IO口不够用的问题。
发明内容
本实用新型的目的是提供一种基于IO口的单向元件控制电路,能有效解决现有方案在被控单向元件较多或IO口资源紧张时,IO口不够用的问题,实现一个IO口控制多个单向元件。
为了达到上述目的,本实用新型实施例提供了一种基于IO口的单向元件控制电路,包括第一单向元件、第二单向元件、第一电阻、第二电阻和开关管;所述开关管的控制端通过所述第一电阻连接IO口连接端;所述开关管的公共端接地;所述开关管的输出端通过所述第二电阻连接电源输入端,所述电源输入
端接入直流电压;所述开关管的输出端还连接所述第一单向元件的输出端和所述第二单向元件的输入端,所述第一单向元件的输入端和所述第二单向元件的输出端均连接所述IO口连接端。
与现有技术相比,本实用新型实施例提供的一种基于IO口的单向元件控制电路通过IO口输出的控制信号控制所述开关管的开通与关断,从而控制电路中电流的方向,并且通过反向并联所述第一单向元件和第二单向元件,使得所述第一单向元件、第二单向元件分别对应在IO口输出高电平、低电平时导通。从而实现一个IO口控制多个单向元件,有效解决了电路设计中IO口资源紧张、IO口不够用的问题,且电路结构简单成本低廉。
进一步地,所述第一单向元件为第一发光二极管,所述第一单向元件的输入端、输出端分别对应所述第一发光二极管的正极、负极。
进一步地,所述第二单向元件为第二发光二极管,所述第二单向元件的输入端、输出端分别对应所述第二发光二极管的正极、负极。
作为上述实施例的改进方案,本实施例提供的一种基于IO口的单向元件控制电路中的单向元件为发光二极管,通过控制IO口高低电平的输出来直接控制发光二极管的亮和灭,可以广泛应用于各个领域(如控制指示灯)。
进一步地,所述第一单向元件主要由多个同向的单向元件并联/串联构成。
进一步地,所述第二单向元件主要由多个同向的单向元件并联/串联构成。
作为上述实施例的改进方案,本实施例提供的一种基于IO口的单向元件控制电路通过将两组同向并联/串联后的单向元件反向并联,使得所述两组单向元件根据IO口输出的高低电平控制信号分别导通,且同组的单向元件同时导通,从而实现一个IO口控制更多的单向元件。
进一步地,所述开关管为NPN型三极管,所述开关管的控制端、公共端和输出端分别对应所述NPN型三极管的基极、发射极和集电极。
进一步地,所述开关管为PNP型三极管,所述开关管的控制端、公共端和输出端分别对应所述PNP型三极管的基极、集电极和发射极;所述PNP型三极管的集电极通过第三电阻接地。
进一步地,所述开关管为NMOS管,所述开关管的控制端、公共端和输出端分别对应所述NMOS管的栅极、源极和漏极。
进一步地,所述开关管为PMOS管,所述开关管的控制端、公共端和输出端分别对应所述PMOS管的栅极、漏极和源极;所述PMOS管的漏极通过第四电阻接地。
图1是通常情况下IO口对两个单向元件的控制电路的示意图;
图2是本实用新型实施例1提供的一种基于IO口的单向元件控制电路的示意图;
图3是本实用新型实施例2提供的一种基于IO口的单向元件控制电路的示意图;
图4是本实用新型实施例3提供的一种基于IO口的单向元件控制电路的示意图;
图5是本实用新型实施例4提供的一种基于IO口的单向元件控制电路的示意图;
图6是本实用新型实施例5提供的一种基于IO口的单向元件控制电路的示意图。
下面将结合本实用新型实施例中的附图,对本实用新型实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本实用新型一部分实施例,而不是全部的实施例。基于本实用新型中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本实用新型保护的范围。
实施例1
参见图2,其是本实用新型实施例1提供的一种基于IO口的单向元件控制
电路的示意图。如图2所示的基于IO口的单向元件控制电路包括第一单向元件D1、第二单向元件D2、第一电阻R1、第二电阻R2和开关管Q1;其中,所述开关管Q1的控制端通过所述第一电阻R1连接IO口连接端GPIO;所述开关管Q1的公共端接地;所述开关管Q1的输出端通过所述第二电阻R2连接电源输入端VCC,所述电源输入端VCC接入直流电压;所述开关管Q1的输出端还连接所述第一单向元件D1的输出端和所述第二单向元件D2的输入端,所述第一单向元件D1的输入端和所述第二单向元件D2的输出端均连接所述IO口连接端GPIO。
具体实施时,所述电源输入端VCC始终接入直流电压;当IO口输出高电平时,所述开关管Q1的控制端处于高电平,所述开关管Q1根据不同类型处于开通或关断状态,此时电流从端子1流向端子2,所述第一单向元件D1导通,第二单向元件D2截止;反之,当IO口输出低电平时,所述开关管Q1的控制端处于低电平,所述开关管Q1根据不同类型处于关断或开通状态,此时电流从端子2流向端子1,所述第二单向元件D2导通,第一单向元件D1截止,从而实现一个IO口控制第一单向元件D1和第二单向元件D2。所述第一电阻R1用于防止当IO口输出高电平且开关管Q1开通时,所述第一单向元件D1无电流流过;所述第二电阻R2用于防止开关管Q1开通时,直流电源经电源输入端VCC直接接地短路。
与现有技术相比,本实用新型实施例1提供的一种基于IO口的单向元件控制电路通过IO口输出的控制信号控制所述开关管Q1的开通与关断,从而控制电路中电流的方向,并且通过反向并联所述第一单向元件D1和第二单向元件D2,使得所述第一单向元件D1、第二单向元件D2分别对应在IO口输出高电平、低电平时导通,从而实现一个IO口控制多个单向元件,有效解决了电路设计中IO口资源紧张、IO口不够用的问题,且电路结构简单成本低廉。
实施例2
参见图3,其是本实用新型实施例2提供的一种基于IO口的单向元件控制电路的示意图。如图3所示的基于IO口的单向元件控制电路包括第一发光二极
管LED1、第二发光二极管LED2、第一电阻R1、第二电阻R2和开关管Q1;其中,所述开关管Q1的控制端通过所述第一电阻R1连接IO口连接端GPIO;所述开关管Q1的公共端接地;所述开关管Q1的输出端通过所述第二电阻R2连接电源输入端VCC,所述电源输入端VCC接入直流电压;所述开关管Q1的输出端还连接所述第一发光二极管LED1的负极和所述第二发光二极管LED2的正极,所述第一发光二极管LED1的正极和所述第二发光二极管LED2的负极均连接所述IO口连接端GPIO。
具体实施时,所述电源输入端VCC始终接入直流电压;当IO口输出高电平时,所述开关管Q1的控制端处于高电平,所述开关管Q1根据不同类型处于开通或关断状态,此时电流从端子1流向端子2,所述第一发光二极管LED1发光,第二发光二极管LED2截止;反之,当IO口输出低电平时,所述开关管Q1的控制端处于低电平,所述开关管Q1根据不同类型处于关断或开通状态,此时电流从端子2流向端子1,所述第二发光二极管LED2发光,第一发光二极管LED1截止,从而实现一个IO口控制第一发光二极管LED1和第二发光二极管LED2。所述第一电阻R1用于防止当IO口输出高电平且开关管Q1开通时,所述第一发光二极管LED1无电流流过;所述第二电阻R2用于防止开关管Q1开通时,直流电源经电源输入端VCC直接接地短路。
作为上述实施例1的改进方案,本实施例2提供的一种基于IO口的单向元件控制电路中的单向元件为发光二极管,通过控制IO口高低电平的输出来直接控制发光二极管的亮和灭,可以广泛应用于各个领域(如控制指示灯等)。
实施例3
参见图4,其是本实用新型实施例3提供的一种基于IO口的单向元件控制电路的示意图。如图4所示的基于IO口的单向元件控制电路包括第一发光二极管LED1、第三发光二极管LED3、第五发光二极管LED5、第二发光二极管LED2、第四发光二极管LED4、第六发光二极管LED6、第一电阻R1、第二电阻R2和开关管Q1;其中,所述开关管Q1的控制端通过所述第一电阻R1连接IO口连接端GPIO;所述开关管Q1的公共端接地;所述开关管Q1的输出端通过所述
第二电阻R2连接电源输入端VCC,所述电源输入端VCC接入直流电压;所述第一发光二极管LED1、第三发光二极管LED3、第五发光二极管LED5同向串联后连接在所述开关管Q1的输出端和所述IO口连接端GPIO之间,以及所述第二发光二极管LED2、第四发光二极管LED4、第六发光二极管LED6同向串联后反向连接在所述开关管Q1的输出端和所述IO口连接端GPIO之间。
具体实施时,所述电源输入端VCC始终接入直流电压;当IO口输出高电平时,所述开关管Q1的控制端处于高电平,所述开关管Q1根据不同类型处于开通或关断状态,此时电流从端子1流向端子2,所述第一发光二极管LED1、第三发光二极管LED3和第五发光二极管LED5同时发光,第二发光二极管LED2、第四发光二极管LED4和第六发光二极管LED6截止;反之,当IO口输出低电平时,所述开关管Q1的控制端处于低电平,所述开关管Q1根据不同类型处于关断或开通状态,此时电流从端子2流向端子1,所述第二发光二极管LED2、第四发光二极管LED4和第六发光二极管LED6同时发光,第一发光二极管LED1、第三发光二极管LED3和第五发光二极管LED5截止,从而实现一个IO口控制第一发光二极管LED1、第三发光二极管LED3、第五发光二极管LED5和第二发光二极管LED2、第四发光二极管LED4、第六发光二极管LED6。所述第一电阻R1用于防止当IO口输出高电平且开关管Q1开通时,所述第一发光二极管LED1、第三发光二极管LED3和第五发光二极管LED5无电流流过;所述第二电阻R2用于防止开关管Q1开通时,直流电源经电源输入端VCC直接接地短路。
可以理解的,本实施例3的第一单向元件和第二单向元件分别包括了3个同向串联的发光二极管,但第一单向元件和第二单向元件并不限于3个同向串联的发光二极管,也可以包括2个、4个或者更多个发光二极管或单向元件同向串联构成,具体数量根据实际电路结构而设置。
可以理解的,在另一实施例中,可以将第一发光二极管LED1、第三发光二极管LED3、第五发光二极管LED5同向并联后连接在所述开关管Q1的输出端和所述IO口连接端GPIO之间,以及将第二发光二极管LED2、第四发光二极
管LED4、第六发光二极管LED6同向并联后反向连接在所述开关管Q1的输出端和所述IO口连接端GPIO之间。本实施例3仅以多个同向串联的单向元件为例对技术方案进行描述,本实用新型提供的基于IO口的单向元件控制电路中的第一单向元件和第二单向元件还包括多个同向并联的单向元件。
作为上述实施例2的改进方案,本实施例3提供的一种基于IO口的单向元件控制电路通过将两组同向并联/串联后的单向元件反向并联,使得所述两组单向元件根据IO口输出的高低电平控制信号分别导通,且同组的单向元件同时导通,从而实现一个IO口控制更多的单向元件。
实施例4
参见图5,其是本实用新型实施例4提供的一种基于IO口的单向元件控制电路的示意图。如图5所示的基于IO口的单向元件控制电路包括第一发光二极管LED1、第二发光二极管LED2、第一电阻R1、第二电阻R2和NPN型三级管Q1;其中,所述NPN型三级管Q1的基极通过所述第一电阻R1连接IO口连接端GPIO;所述NPN型三级管Q1的发射极接地;所述NPN型三级管Q1的集电极通过所述第二电阻R2连接电源输入端VCC,所述电源输入端VCC接入直流电压;所述NPN型三级管Q1的集电极还连接所述第一发光二极管LED1的负极和所述第二发光二极管LED2的正极,所述第一发光二极管LED1的正极和所述第二发光二极管LED2的负极均连接所述IO口连接端GPIO。
具体实施时,所述电源输入端VCC始终接入直流电压;当IO口输出高电平时,所述NPN型三级管Q1在控制信号为高电平时导通,此时电流从端子1流向端子2,所述第一发光二极管LED1发光,第二发光二极管LED2截止;反之,当IO口输出低电平时,所述NPN型三级管Q1在控制信号为低电平时截止,此时电流从端子2流向端子1,所述第二发光二极管LED2发光,第一发光二极管LED1截止,从而实现一个IO口控制第一发光二极管LED1和第二发光二极管LED2。所述第一电阻R1用于防止NPN型三级管Q1开通时,所述第一发光二极管LED1无电流流过;所述第二电阻R2用于防止NPN型三级管Q1开通时,直流电源经电源输入端VCC直接接地导致短路,烧坏NPN型三级管Q1。
可以理解的,本实施例4是开关管在IO口输出控制信号为高电平时开通,在IO口输出控制信号为低电平时截止,使得所述第一单向元件、第二单向元件分别对应在IO口输出高电平、低电平时导通。因此,作为本实施例4的改进,本实施例中的开关管还可以是NMOS管、IGBT、晶闸管等三端控制器件或其派生器件。其中,开关管的控制端、公共端和输出端,可以分别对应于NMOS管的栅极、源极和漏极,IGBT的栅极、发射极和集电极,单向晶闸管的栅极、阴极和阳极,双向晶闸管的栅极、端口1和端口2。本实施例4仅以NPN型三极管为例对技术方案进行描述,本实用新型提供的基于IO口的单向元件控制电路中的开关管并不限于NPN型三极管。
实施例5
参见图6,其是本实用新型实施例5提供的一种基于IO口的单向元件控制电路的示意图。如图6所示的基于IO口的单向元件控制电路包括第一发光二极管LED1、第二发光二极管LED2、第一电阻R1、第二电阻R2、第三电阻R3和PNP型三级管Q1;其中,所述PNP型三级管Q1的基极通过所述第一电阻R1连接IO口连接端GPIO;所述PNP型三级管Q1的集电极通过所述第三电阻R3接地;所述PNP型三级管Q1的发射极通过所述第二电阻R2连接电源输入端VCC,所述电源输入端VCC接入直流电压;所述PNP型三级管Q1的发射极还连接所述第一发光二极管LED1的负极和所述第二发光二极管LED2的正极,所述第一发光二极管LED1的正极和所述第二发光二极管LED2的负极均连接所述IO口连接端GPIO。
具体实施时,所述电源输入端VCC始终接入直流电压;当IO口输出高电平时,所述PNP型三级管Q1在控制信号为高电平时截止,此时电流从端子1流向端子2,所述第一发光二极管LED1发光,第二发光二极管LED2截止;反之,当IO口输出低电平时,所述PNP型三级管Q1在控制信号为低电平时导通,此时电流从端子2流向端子1,所述第二发光二极管LED2发光,第一发光二极管LED1截止,从而实现一个IO口控制第一发光二极管LED1和第二发光二极管LED2。所述第二电阻R2用于防止PNP型三级管Q1开通时,直流电源经电
源输入端VCC直接接地导致短路,烧坏PNP型三级管Q1。所述第三电阻R3用于防止PNP型三级管Q1开通时,所述第二发光二极管LED2无电流流过。
可以理解的,本实施例5是开关管在IO口输出控制信号为低电平时开通,在IO口输出控制信号为高电平时截止,使得所述第一单向元件、第二单向元件分别对应在IO口输出高电平、低电平时导通。因此,作为本实施例5的改进,本实施例中的开关管还可以是PMOS管、IGBT、晶闸管等三端控制器件或其派生器件。其中,开关管的控制端、公共端和输出端,可以分别对应于PMOS管的栅极、漏极和源极,IGBT的栅极、集电极和发射极,单向晶闸管的栅极、阳极和阴极,双向晶闸管的栅极、端口2和端口1。本实施例5仅以PNP型三极管为例对技术方案进行描述,本实用新型提供的基于IO口的单向元件控制电路中的开关管并不限于PNP型三极管。
以上仅是本实用新型的优选实施方式,应当指出的是,上述优选实施方式不应视为对本实用新型的限制。本实用新型的保护范围应当以权利要求所限定的范围为准。对于本技术领域的普通技术人员来说,在不脱离本实用新型的精神和范围内,还可以做出若干改进和润饰,这些改进和润饰也应视为本实用新型的保护范围。
Claims (9)
- 一种基于IO口的单向元件控制电路,其特征在于:包括第一单向元件、第二单向元件、第一电阻、第二电阻和开关管;所述开关管的控制端通过所述第一电阻连接IO口连接端;所述开关管的公共端接地;所述开关管的输出端通过所述第二电阻连接电源输入端,所述电源输入端接入直流电压;所述开关管的输出端还连接所述第一单向元件的输出端和所述第二单向元件的输入端,所述第一单向元件的输入端和所述第二单向元件的输出端均连接所述IO口连接端。
- 如权利要求1所述的基于IO口的单向元件控制电路,其特征在于:所述第一单向元件为第一发光二极管,所述第一单向元件的输入端、输出端分别对应所述第一发光二极管的正极、负极。
- 如权利要求1所述的基于IO口的单向元件控制电路,其特征在于:所述第二单向元件为第二发光二极管,所述第二单向元件的输入端、输出端分别对应所述第二发光二极管的正极、负极。
- 如权利要求1或2所述的基于IO口的单向元件控制电路,其特征在于:所述第一单向元件主要由多个同向的单向元件并联/串联构成。
- 如权利要求1或3所述的基于IO口的单向元件控制电路,其特征在于:所述第二单向元件主要由多个同向的单向元件并联/串联构成。
- 如权利要求1所述的基于IO口的单向元件控制电路,其特征在于:所述开关管为NPN型三极管,所述开关管的控制端、公共端和输出端分别对应所述NPN型三极管的基极、发射极和集电极。
- 如权利要求1所述的基于IO口的单向元件控制电路,其特征在于:所 述开关管为PNP型三极管,所述开关管的控制端、公共端和输出端分别对应所述PNP型三极管的基极、集电极和发射极;所述PNP型三极管的集电极通过第三电阻接地。
- 如权利要求1所述的基于IO口的单向元件控制电路,其特征在于:所述开关管为NMOS管,所述开关管的控制端、公共端和输出端分别对应所述NMOS管的栅极、源极和漏极。
- 如权利要求1所述的基于IO口的单向元件控制电路,其特征在于:所述开关管为PMOS管,所述开关管的控制端、公共端和输出端分别对应所述PMOS管的栅极、漏极和源极;所述PMOS管的漏极通过第四电阻接地。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201621300007.6U CN206321956U (zh) | 2016-11-29 | 2016-11-29 | 基于io口的单向元件控制电路 |
| CN201621300007.6 | 2016-11-29 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018099182A1 true WO2018099182A1 (zh) | 2018-06-07 |
Family
ID=59265487
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/104858 Ceased WO2018099182A1 (zh) | 2016-11-29 | 2017-09-30 | 基于io口的单向元件控制电路 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN206321956U (zh) |
| WO (1) | WO2018099182A1 (zh) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN206321956U (zh) * | 2016-11-29 | 2017-07-11 | 广州视源电子科技股份有限公司 | 基于io口的单向元件控制电路 |
| CN109121255B (zh) * | 2018-10-09 | 2020-09-01 | 深圳市亿联智能有限公司 | 一种利用单io口控制两个led灯运行的控制电路 |
| CN114499495B (zh) * | 2022-01-28 | 2025-05-09 | 福建信息职业技术学院 | 一种通用湿接点输入输出电路 |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080034124A1 (en) * | 2006-08-07 | 2008-02-07 | Samsung Electronics Co., Ltd. | Apparatus and method for using expansion key in portable terminal |
| CN201698195U (zh) * | 2010-05-28 | 2011-01-05 | 宁波海诚电器有限公司 | 单片机io口的扩展电路 |
| CN201984308U (zh) * | 2011-02-28 | 2011-09-21 | 广州视源电子科技有限公司 | 微控制器的io接口电路 |
| CN202102275U (zh) * | 2011-03-07 | 2012-01-04 | 广州视源电子科技有限公司 | Io口扩展电路 |
| CN202854803U (zh) * | 2012-07-31 | 2013-04-03 | 深圳市创荣发电子有限公司 | 一种mcu的i/o口扩展电路 |
| CN203617218U (zh) * | 2013-12-30 | 2014-05-28 | 广东瑞德智能科技股份有限公司 | 一种单i/o端口驱动双继电器电路 |
| CN206321956U (zh) * | 2016-11-29 | 2017-07-11 | 广州视源电子科技股份有限公司 | 基于io口的单向元件控制电路 |
-
2016
- 2016-11-29 CN CN201621300007.6U patent/CN206321956U/zh active Active
-
2017
- 2017-09-30 WO PCT/CN2017/104858 patent/WO2018099182A1/zh not_active Ceased
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080034124A1 (en) * | 2006-08-07 | 2008-02-07 | Samsung Electronics Co., Ltd. | Apparatus and method for using expansion key in portable terminal |
| CN201698195U (zh) * | 2010-05-28 | 2011-01-05 | 宁波海诚电器有限公司 | 单片机io口的扩展电路 |
| CN201984308U (zh) * | 2011-02-28 | 2011-09-21 | 广州视源电子科技有限公司 | 微控制器的io接口电路 |
| CN202102275U (zh) * | 2011-03-07 | 2012-01-04 | 广州视源电子科技有限公司 | Io口扩展电路 |
| CN202854803U (zh) * | 2012-07-31 | 2013-04-03 | 深圳市创荣发电子有限公司 | 一种mcu的i/o口扩展电路 |
| CN203617218U (zh) * | 2013-12-30 | 2014-05-28 | 广东瑞德智能科技股份有限公司 | 一种单i/o端口驱动双继电器电路 |
| CN206321956U (zh) * | 2016-11-29 | 2017-07-11 | 广州视源电子科技股份有限公司 | 基于io口的单向元件控制电路 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN206321956U (zh) | 2017-07-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101778510B (zh) | 一种led信号指示灯及其多路led驱动电路 | |
| TWI433601B (zh) | Led照明驅動控制電路 | |
| CN103401209A (zh) | Led背光短路保护电路 | |
| CN102833917B (zh) | 一种led恒流控制电路及led液晶电视 | |
| WO2018076574A1 (zh) | 带标识负载的电源输出参数自调节系统 | |
| WO2018099182A1 (zh) | 基于io口的单向元件控制电路 | |
| WO2023124889A1 (zh) | 双向发光的电源线脉冲信号触发光源、灯串及其控制装置 | |
| CN114867150A (zh) | 串并联的电源线脉冲信号触发运算的双向彩灯 | |
| CN104219817A (zh) | 红外发光二极管驱动电路及遥控器 | |
| CN103312310A (zh) | 一种高速光电继电器 | |
| CN206851088U (zh) | 一种led线性高低压驱动电路及驱动电源 | |
| CN103490604B (zh) | 一种设备电源迟滞保护电路 | |
| CN103068127B (zh) | 一种led灯具及双色led调光电路 | |
| CN203151800U (zh) | 一种led灯具及双色led调光电路 | |
| CN204536972U (zh) | 一种可调节的恒流电路 | |
| CN107508584A (zh) | 一种用于直流风机取暖的控制电路 | |
| CN204362403U (zh) | 一种照明灯电路 | |
| US20140111100A1 (en) | Control circuit for light-emitting diodes | |
| CN222621236U (zh) | 基于单个控制信号端口的led分时电路 | |
| CN110648619A (zh) | 数码管显示电路 | |
| CN202111469U (zh) | 一种led串联开路保护电路及电视机 | |
| CN206374648U (zh) | 汽车信号灯开关电路 | |
| CN201904618U (zh) | 输入电源极性能正反接的电路结构 | |
| CN204741584U (zh) | Led均流驱动电路 | |
| CN205846714U (zh) | 一种输出短路保护电路和负载驱动系统 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17877224 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17877224 Country of ref document: EP Kind code of ref document: A1 |