CN201138879Y - LED Control circuit - Google Patents
LED Control circuit Download PDFInfo
- 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
- control circuit
- led
- 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
Links
Landscapes
- Control Of El Displays (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
- Led Devices (AREA)
Abstract
The utility model relates to an LED control circuit that comprises an LED1 to be controlled and an LED2 to be controlled. The anode of one bypass diode D1 is connected with the anode of the LED1; the cathode of the diode D1 is connected with the cathode of the LED2; the anode of the LED1 is connected with a VDD; the cathode of the LED2 is connected with an earthing end; the cathode of the LED1 and the anode of the LED2 are both connected with one I/O port P1 of a single chip; a resistance R1 is connected between the LED1 and the VDD; and a resistance R2 is connected between the LED2 and the earthing end. The control circuit has a simple structure, and effectively adopts the three different states of the I/O port of the single chip: high level, low level and high resistance state; thus one I/O port can be used for controlling four states of two LED diodes; and the costs of the system design are reduced.
Description
Technical field
The utility model relates to a kind of LED control technology, is meant a kind of LED control circuit especially.
Background technology
LED (light-emitting diode) light-emitting diode is a kind of display device that is in daily use in control system, as the indication of each function and beautify outward appearance.
The control regular meeting of LED utilizes microprocessors such as single-chip microcomputer, thus by single-chip microcomputer output high level, low level can control corresponding LED bright entirely, all do not work.In traditional control mode, each LED that the same I/O mouth of single-chip microcomputer is controlled is bright simultaneously or does not work simultaneously that though can make the LED flicker by the level that the output height replaces, the may command state is few, too inflexible, be difficult to the effect that realizes that part is bright, part does not work.
The utility model content
Technical problem to be solved in the utility model is: a kind of LED control circuit is provided, and its circuit is simple, and can control more state, thereby simplified system reduces the system design cost.
For solving the problems of the technologies described above, the utility model adopts following technical scheme: a kind of LED control circuit, comprise LED1 to be controlled, LED2, and the positive pole of a bypass diode D1 connects the anode of LED1, and the negative pole of diode D1 connects the negative electrode of LED2; The anode of LED1 is connected to VDD; The negative electrode of LED2 connects earth terminal, and the anode of the negative electrode of LED1 and LED2 is connected in an I/O mouth P1 of single-chip microcomputer jointly.
Preferably, be connected a resistance R 1 between described LED1 and the described VDD, be connected a resistance R 2 between described LED2 and the earth terminal.
The beneficial effects of the utility model are: this control circuit is simple in structure, and effectively utilized the I/O mouth that has in the single-chip microcomputer can be set to three kinds of different states: high level, low level and high-impedance state, thereby showed control to four kinds of states of two LED with an I/O cause for gossip, that is: LED1 is lighted, and LED2 does not work; LED2 is lighted, and LED1 does not work; LED1 and LED2 all do not work; Alternately light LED1, LED2 with certain frequency, utilize people's visual persistence effect, making human eye perceives LED1 and LED2 all is bright state.Adopt this control circuit can reduce the system design cost.
Below in conjunction with accompanying drawing the utility model is described in further detail.
Description of drawings
Fig. 1 is the utility model LED control circuit schematic diagram.
Embodiment
See also Fig. 1, the utility model provides a kind of LED control circuit, and it can utilize the existing control to two LED of an I/O cause for gossip of single-chip microcomputer/microprocessor.
Its particular circuit configurations is as follows: the LED1 that need control, LED2 connect, and the positive pole of a bypass diode D1 are connect the anode of LED1; The negative pole of diode D1 connects the negative electrode of LED2; The anode of described LED1 is connected to VDD, and also can be connected a resistance R 1 between LED1 and the VDD; The negative electrode of described LED2 connects earth terminal, and also can be connected a resistance R 2 between LED2 and the earth terminal; And the anode of the negative electrode of LED1 and LED2 is connected in an I/O mouth P1 of single-chip microcomputer jointly.Resistance R 1, R2 are as current-limiting resistance, and its concrete parameter can be selected according to circuit and actual the requirement.
When concrete control, can realize four kinds of state of a controls altogether:
1) when I/O mouth P1 was low level, LED1 was lighted, and this moment, the LED2 no current flow through, can be not bright;
2) when I/O mouth P1 was high level, LED2 was lighted, and this moment, the LED1 no current flow through, can be not bright;
3) when I/O mouth P1 is high-impedance state, this moment, LED1 and LED2 were by diode connected in parallel D1 bypass, and LED1, LED2 all can be not bright;
4) when I/O mouth P1 under a certain fixed frequency, when the duty ratio with 50% is carried out not stall of high-low level and changed, then utilize people's visual persistence effect, making human eye perceives LED1 and LED2 all is bright state.
This control circuit is simple in structure, and effectively utilized the I/O mouth that has in the single-chip microcomputer can be set to three kinds of different states: high level, low level and high-impedance state, thereby showed control with an I/O cause for gossip, and can reduce the system design cost four kinds of states of two LED.
Claims (2)
1, a kind of LED control circuit comprises LED1 to be controlled, LED2, it is characterized in that: the positive pole of a bypass diode D1 connects the anode of LED1, and the negative pole of diode D1 connects the negative electrode of LED2; The anode of LED1 is connected to VDD, and the negative electrode of LED2 connects earth terminal, and the anode of the negative electrode of LED1 and LED2 is connected in an I/O mouth P1 of single-chip microcomputer jointly.
2, a kind of LED control circuit as claimed in claim 1 is characterized in that: be connected a resistance R 1 between described LED1 and the described VDD, be connected a resistance R 2 between described LED2 and the earth terminal.
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)
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 |
-
2007
- 2007-07-31 CN CNU2007201218841U patent/CN201138879Y/en not_active Expired - Lifetime
Cited By (2)
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 |
---|---|---|
CN101150903A (en) | A LED drive circuit and its control method | |
CN101835306B (en) | Led lamp control circuit and led lamp | |
CN203340343U (en) | Double-color LED drive circuit | |
CN201138879Y (en) | LED Control circuit | |
CN102869157A (en) | Method for setting color of LED (light-emitting diode) lamp by on-off encoding of power supply switch | |
CN102083262A (en) | Negative electrode-driven LED constant current source | |
CN203399370U (en) | Light-adjustable LED lamp capable of naturally changing color temperature | |
CN201708999U (en) | Touch led controller | |
CN201081111Y (en) | Energy conservation desk lamp for sight protection | |
CN202841088U (en) | Light-operated electronic switch circuit | |
CN208609234U (en) | A kind of LED constant-current control circuit and LED lamp | |
CN202101074U (en) | Composite LED (light emitting diode) voice-controlled lighting lamp | |
CN106714376B (en) | The adjustable discoloration LED multi-path indicating circuit of brightness on a kind of automobile center console | |
CN201267029Y (en) | LED street lamp and drive device thereof | |
CN201845047U (en) | Indicator for respectively displaying two different voltage classes on DC (direct current) circuit | |
CN201170944Y (en) | LED display control device | |
CN200990708Y (en) | Adaptive LED back timing signal lamp intelligent electric source control switch | |
CN201114883Y (en) | Peach tree lamp controller | |
CN203912247U (en) | LED light effect circuit with star-studded sky | |
CN202077237U (en) | LED lamp and control circuit of lamp string | |
CN204791542U (en) | Traffic signal lamp's energy -saving control circuit | |
CN201898651U (en) | LED lamp with sectional color temperature control function | |
CN204291529U (en) | A kind of based on monolithic processor controlled LED circulation lighting circuit | |
CN208874749U (en) | A kind of light emitting diode multiplexing driving circuit | |
CN202303027U (en) | Automatic illuminating lamp for book cabinet |
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 |