[go: up one dir, main page]

CN201138879Y - LED control circuit - Google Patents

LED control circuit Download PDF

Info

Publication number
CN201138879Y
CN201138879Y CNU2007201218841U CN200720121884U CN201138879Y CN 201138879 Y CN201138879 Y CN 201138879Y CN U2007201218841 U CNU2007201218841 U CN U2007201218841U CN 200720121884 U CN200720121884 U CN 200720121884U CN 201138879 Y CN201138879 Y CN 201138879Y
Authority
CN
China
Prior art keywords
led2
led1
anode
cathode
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.)
Expired - Lifetime
Application number
CNU2007201218841U
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.)
Shenzhen H&T Intelligent Control Co Ltd
Original Assignee
Shenzhen H&T Intelligent Control 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 Shenzhen H&T Intelligent Control Co Ltd filed Critical Shenzhen H&T Intelligent Control Co Ltd
Priority to CNU2007201218841U priority Critical patent/CN201138879Y/en
Application granted granted Critical
Publication of CN201138879Y publication Critical patent/CN201138879Y/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Led Devices (AREA)
  • Control Of El Displays (AREA)

Abstract

本实用新型涉及一种LED控制电路,包括待控制的LED1、LED2,一个旁路二极管D1的正极接LED1的阳极,二极管D1的负极接LED2的阴极;LED1的阳极连接到VDD,LED2的阴极连接接地端,而LED1的阴极和LED2的阳极共同连接于单片机的一个I/O口P1。所述LED1与所述VDD之间连接一电阻R1,所述LED2与接地端之间连接一电阻R2。本控制电路结构简单,且有效利用了单片机中有的I/O口可设置为三种不同的状态:高电平、低电平和高阻态,从而用一个I/O口实现了对两个LED的四种状态的控制,并可降低系统设计成本。

Figure 200720121884

The utility model relates to an LED control circuit, comprising LED1 and LED2 to be controlled, the anode of a bypass diode D1 is connected to the anode of LED1, the cathode of diode D1 is connected to the cathode of LED2; the anode of LED1 is connected to VDD, and the cathode of LED2 is connected to The ground terminal, and the cathode of LED1 and the anode of LED2 are commonly connected to an I/O port P1 of the microcontroller. A resistor R1 is connected between the LED1 and the VDD, and a resistor R2 is connected between the LED2 and the ground. The structure of this control circuit is simple, and the I/O ports in the single-chip microcomputer are effectively used, which can be set to three different states: high level, low level and high-impedance state, so that one I/O port realizes two The control of four states of LED can reduce the system design cost.

Figure 200720121884

Description

LED控制电路 LED control circuit

技术领域 technical field

本实用新型涉及一种LED控制技术,特别是指一种LED控制电路。The utility model relates to an LED control technology, in particular to an LED control circuit.

背景技术 Background technique

LED(light-emitting diode)发光二极管在控制系统中是一种很常用的显示器件,作为各功能的指示及美化外观。LED (light-emitting diode) light-emitting diode is a very commonly used display device in the control system, as an indicator of various functions and beautify the appearance.

LED的控制常会利用单片机等微处理器,通过单片机输出高电平、低电平从而可以控制相应的LED全亮、全部不亮。传统的控制方式中,单片机的同一个I/O口所控制的各个LED是同时亮或同时不亮,虽然可通过输出高低交替的电平使LED闪烁,但可控制状态少,过于死板,难以实现部分亮、部分不亮的效果。The control of LED often uses microprocessors such as single-chip microcomputers to output high and low levels through the single-chip microcomputer to control the corresponding LEDs to be all bright and all off. In the traditional control method, each LED controlled by the same I/O port of the single-chip microcomputer is on or off at the same time. Although the LED can be blinked by outputting high and low alternating levels, there are few controllable states, which are too rigid and difficult to control. To achieve the effect of partly bright and partly not bright.

实用新型内容Utility model content

本实用新型所要解决的技术问题是:提供一种LED控制电路,其电路简单,且能控制较多的状态,从而简化系统,降低系统设计成本。The technical problem to be solved by the utility model is: to provide an LED control circuit, which is simple and can control more states, thereby simplifying the system and reducing the system design cost.

为解决上述技术问题,本实用新型采用如下技术方案:一种LED控制电路,包括待控制的LED1、LED2,一个旁路二极管D1的正极接LED1的阳极,二极管D1的负极接LED2的阴极;LED1的阳极连接到VDD;LED2的阴极连接接地端,而LED1的阴极和LED2的阳极共同连接于单片机的一个I/O口P1。In order to solve the above-mentioned technical problems, the utility model adopts the following technical scheme: a LED control circuit, including LED1 and LED2 to be controlled, the positive pole of a bypass diode D1 is connected to the anode of LED1, and the negative pole of diode D1 is connected to the cathode of LED2; LED1 The anode of LED2 is connected to VDD; the cathode of LED2 is connected to the ground terminal, and the cathode of LED1 and the anode of LED2 are connected to an I/O port P1 of the microcontroller.

优选地,所述LED1与所述VDD之间连接一电阻R1,所述LED2与接地端之间连接一电阻R2。Preferably, a resistor R1 is connected between the LED1 and the VDD, and a resistor R2 is connected between the LED2 and the ground.

本实用新型的有益效果是:本控制电路结构简单,且有效利用了单片机中有的I/O口可设置为三种不同的状态:高电平、低电平和高阻态,从而用一个I/O口实现了对两个LED的四种状态的控制,即:LED1被点亮,LED2不亮;LED2被点亮,LED1不亮;LED1和LED2均不亮;以一定的频率交替点亮LED1、LED2,利用人的视觉暂留效应,使人眼感觉LED1和LED2都为亮的状态。采用本控制电路可降低系统设计成本。The beneficial effects of the utility model are: the control circuit is simple in structure, and effectively utilizes the I/O ports in the single-chip microcomputer to be set to three different states: high level, low level and high resistance state, thereby using an I The /O port realizes the control of the four states of the two LEDs, namely: LED1 is lit, LED2 is not lit; LED2 is lit, LED1 is not lit; both LED1 and LED2 are off; alternately lit at a certain frequency LED1 and LED2 make use of the persistence effect of human vision to make human eyes feel that both LED1 and LED2 are in a bright state. The system design cost can be reduced by adopting the control circuit.

下面结合附图对本实用新型作进一步的详细描述。Below in conjunction with accompanying drawing, the utility model is described in further detail.

附图说明 Description of drawings

图1是本实用新型LED控制电路示意图。Fig. 1 is a schematic diagram of the LED control circuit of the present invention.

具体实施方式 Detailed ways

请参阅图1,本实用新型提供一种LED控制电路,其可利用单片机/微处理器的一个I/O口实现对两个LED的控制。Please refer to FIG. 1 , the utility model provides an LED control circuit, which can use one I/O port of a single-chip microcomputer/microprocessor to realize the control of two LEDs.

其具体电路结构如下:需进行控制的LED1、LED2串联,并将一个旁路二极管D1的正极接LED1的阳极;二极管D1的负极接LED2的阴极;所述LED1的阳极连接到VDD,且LED1与VDD之间还可连接一电阻R1;所述LED2的阴极连接接地端,且LED2与接地端之间还可连接一电阻R2;而LED1的阴极和LED2的阳极共同连接于单片机的一个I/O口P1。电阻R1、R2作为限流电阻,其具体参数可根据电路和实际要求选定。The specific circuit structure is as follows: LED1 and LED2 to be controlled are connected in series, and the anode of a bypass diode D1 is connected to the anode of LED1; the cathode of diode D1 is connected to the cathode of LED2; the anode of LED1 is connected to VDD, and LED1 and A resistor R1 can also be connected between VDD; the cathode of the LED2 is connected to the ground terminal, and a resistor R2 can also be connected between the LED2 and the ground terminal; and the cathode of the LED1 and the anode of the LED2 are commonly connected to an I/O of the microcontroller Port P1. Resistors R1 and R2 are used as current-limiting resistors, and their specific parameters can be selected according to the circuit and actual requirements.

在具体控制时,一共可实现四种控制状态:In the specific control, a total of four control states can be realized:

1)当I/O口P1为低电平时,LED1被点亮,而此时LED2无电流流过,不会亮;1) When the I/O port P1 is at low level, LED1 is lit, and at this time LED2 has no current flowing and will not light up;

2)当I/O口P1为高电平时,LED2被点亮,而此时LED1无电流流过,不会亮;2) When the I/O port P1 is at a high level, LED2 is lit, but at this time LED1 has no current flowing and will not light up;

3)当I/O口P1为高阻态时,此时LED1和LED2被并联的二极管D1旁路,LED1、LED2均不会亮;3) When the I/O port P1 is in a high-impedance state, LED1 and LED2 are bypassed by the parallel diode D1 at this time, and neither LED1 nor LED2 will light up;

4)当I/O口P1在某一固定频率下,以50%的占空比进行高低电平不停转换时,则利用人的视觉暂留效应,使人眼感觉LED1和LED2都为亮的状态。4) When the I/O port P1 performs continuous switching between high and low levels with a duty cycle of 50% at a certain fixed frequency, the human visual persistence effect is used to make the human eyes feel that both LED1 and LED2 are bright status.

本控制电路结构简单,且有效利用了单片机中有的I/O口可设置为三种不同的状态:高电平、低电平和高阻态,从而用一个I/O口实现了对两个LED的四种状态的控制,并可降低系统设计成本。The structure of this control circuit is simple, and the I/O ports in the single-chip microcomputer are effectively used, which can be set to three different states: high level, low level and high-impedance state, so that one I/O port realizes two The control of four states of LED can reduce the system design cost.

Claims (2)

1、一种LED控制电路,包括待控制的LED1、LED2,其特征在于:一个旁路二极管D1的正极接LED1的阳极,二极管D1的负极接LED2的阴极;LED1的阳极连接到VDD,LED2的阴极连接接地端,而LED1的阴极和LED2的阳极共同连接于单片机的一个I/O口P1。1. A LED control circuit, comprising LED1 and LED2 to be controlled, characterized in that: the anode of a bypass diode D1 is connected to the anode of LED1, the cathode of diode D1 is connected to the cathode of LED2; the anode of LED1 is connected to VDD, and the anode of LED2 The cathode is connected to the ground terminal, and the cathode of LED1 and the anode of LED2 are jointly connected to an I/O port P1 of the microcontroller. 2、如权利要求1所述的一种LED控制电路,其特征在于:所述LED1与所述VDD之间连接一电阻R1,所述LED2与接地端之间连接一电阻R2。2. The LED control circuit according to claim 1, wherein a resistor R1 is connected between the LED1 and the VDD, and a resistor R2 is connected between the LED2 and the ground.
CNU2007201218841U 2007-07-31 2007-07-31 LED control circuit Expired - Lifetime CN201138879Y (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNU2007201218841U CN201138879Y (en) 2007-07-31 2007-07-31 LED control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNU2007201218841U CN201138879Y (en) 2007-07-31 2007-07-31 LED control circuit

Publications (1)

Publication Number Publication Date
CN201138879Y true CN201138879Y (en) 2008-10-22

Family

ID=40039558

Family Applications (1)

Application Number Title Priority Date Filing Date
CNU2007201218841U Expired - Lifetime CN201138879Y (en) 2007-07-31 2007-07-31 LED control circuit

Country Status (1)

Country Link
CN (1) CN201138879Y (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241831A (en) * 2017-07-07 2017-10-10 厦门芯阳科技股份有限公司 The method and circuit of a kind of two kinds of lamps of single-chip I/O mouth driving
CN109121255A (en) * 2018-10-09 2019-01-01 深圳市亿联智能有限公司 A kind of control circuit controlling the operation of two LED light using single I/O port

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241831A (en) * 2017-07-07 2017-10-10 厦门芯阳科技股份有限公司 The method and circuit of a kind of two kinds of lamps of single-chip I/O mouth driving
CN109121255A (en) * 2018-10-09 2019-01-01 深圳市亿联智能有限公司 A kind of control circuit controlling the operation of two LED light using single I/O port

Similar Documents

Publication Publication Date Title
CN203340343U (en) Double-color LED drive circuit
CN201138879Y (en) LED control circuit
CN106686832B (en) A diode control circuit and switching power supply circuit
CN203399370U (en) Light-adjustable LED lamp capable of naturally changing color temperature
CN204521164U (en) A kind of amblyopia therapeutic equipment
CN201561397U (en) LED lamp circuit device
CN205946243U (en) A driving circuit for an LED lamp
CN204014176U (en) A kind of LED illumination touch control circuit
CN204348544U (en) A kind of novel can illuminated switch
CN204968162U (en) Heart -shaped lamp circuit of circulation scintillation
CN201845047U (en) Indicator for respectively displaying two different voltage classes on DC (direct current) circuit
CN203535931U (en) Drive circuit of LED or nixie tube
CN207733016U (en) Light-emitting diode driving circuit and user operation panel for food processor
CN201081111Y (en) Energy conservation desk lamp for sight protection
CN205232508U (en) LED lamp, LED unit and uses thereof with continuous function of going of breakpoint
CN221886761U (en) Diode voltage-regulating power high-low display circuit
CN202406351U (en) LED voltage stabilizing constant-current drive
CN207039938U (en) Breath light control circuit for instrument
CN205847664U (en) LED device
CN202759653U (en) LED lamp using power supply switch on-off encoding for setting color
CN202335018U (en) Energy-saving AC (Alternating Current) LED (Light Emitting Diode) indicator lamp
CN202329809U (en) Light ray brightness tester for protecting eyesight
CN201440389U (en) AC power supply on-line switch
CN204537578U (en) Self-inductive phenomenon demonstration instrument
CN203120248U (en) Circuit structure of LED backlight source

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term

Granted publication date: 20081022

CX01 Expiry of patent term