CN220985896U - Common cathode double-color LED lamp state switching circuit based on single chip microcomputer control - Google Patents
Common cathode double-color LED lamp state switching circuit based on single chip microcomputer control Download PDFInfo
- Publication number
- CN220985896U CN220985896U CN202322650503.0U CN202322650503U CN220985896U CN 220985896 U CN220985896 U CN 220985896U CN 202322650503 U CN202322650503 U CN 202322650503U CN 220985896 U CN220985896 U CN 220985896U
- Authority
- CN
- China
- Prior art keywords
- led lamp
- triode
- photodiode
- double
- color 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.)
- Active
Links
- 238000006243 chemical reaction Methods 0.000 claims abstract description 16
- 239000003086 colorant Substances 0.000 claims abstract description 9
- 239000003381 stabilizer Substances 0.000 claims description 6
- 239000003990 capacitor Substances 0.000 claims description 3
- 230000007704 transition Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000000087 stabilizing effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The utility model discloses a double-color LED lamp state switching circuit, belongs to the technical field of switching power supplies, and particularly relates to a common-cathode double-color LED lamp state switching circuit based on single chip microcomputer control; the state conversion circuit of the double-color LED lamp is externally connected with an MCU; the double-color LED lamp state conversion circuit consists of a triode, a photodiode, a phototriode and two LED lamps with different colors; the utility model can realize two-state switching by controlling the bicolor common-cathode LED lamp through a single I/O port under the limitation of the I/O and the complex function of the MCU in some electronic development environments with complex functions.
Description
Technical Field
The utility model discloses a double-color LED lamp state switching circuit, belongs to the technical field of switching power supplies, and particularly relates to a common-cathode double-color LED lamp state switching circuit based on single-chip microcomputer control.
Background
A bi-color LED is a special type of LED that consists of two diodes connected in opposite directions within a package. A two-color LED is typically composed of three terminals, namely one common pin and two independent pins. The double-color LED is an LED lamp capable of displaying double colors and has three states of being off; color 1 is bright; color 2 is bright. Depending on the color combination, it is classified into red and blue, yellow Lan Shuang, red and green, and so on. Two-color LEDs are commonly used in switching power supplies to indicate status; the common pin may be grounded if it is a common cathode LED, and connected to a +5v power supply if it is a common anode. In the prior art, certain special conditions require a state detection and realistic lines, which are limited by the shortage of MCU resources and the I/O and complex function limitation of the MCU, and resources of an I/O port must be saved, so that the common-cathode double-color LED lamp cannot realize state switching.
Disclosure of utility model
The utility model aims to: the common-cathode double-color LED lamp state switching circuit based on single chip microcomputer control solves the above-mentioned problems.
The technical scheme is as follows: a common cathode double-color LED lamp state conversion circuit based on single chip microcomputer control, wherein the double-color LED lamp state conversion circuit is externally connected with an MCU;
The double-color LED lamp state conversion circuit consists of a triode, a photodiode, a phototriode and two LED lamps with different colors;
and controlling the conduction of the triode according to the high and low levels input by the MCU, and controlling the two LED lamps with different colors to realize state conversion according to the voltage value of the input level.
In a further embodiment, the bi-color LED lamp state transition circuit comprises: resistor R136, diode D35, capacitor C74, resistor R151, triode Q19, photodiode PC15A, phototriode PC15B, LED lamp LED2B, LED lamp LED2A, resistor R135, resistor R130, and voltage regulator DZ11;
The GD end of MCU is connected with one end of resistance R136 and the positive pole of diode D35 simultaneously, the other end of resistance R136 inputs 3.3V voltage, triode Q19's base is connected with one end of resistance R151, one end of electric capacity C74 and the negative pole of diode D35 simultaneously, the other end of electric capacity C74, the other end of resistance R151 and the projecting pole of triode Q18 ground, triode Q19's collecting electrode with photodiode PC 15A's negative pole is connected, photodiode PC 15A's positive pole is connected with one end of resistance R135 and the negative pole of stabiliser DZ11 simultaneously, the other end input voltage of resistance R135, the positive pole of stabiliser DZ11 is connected with the positive pole of LED lamp LED2B, the negative pole of LED lamp LED2B is connected with the negative pole of LED lamp LED2A and ground, the positive pole of LED lamp LED2A is connected with the negative pole of light diode PC15A, the other end of triode D15B is connected with the negative pole of MCU 150, the triode D11 is connected with the negative pole of MCU 150.
In a further embodiment, the GD end is an I/O interface of the MCU.
In a further embodiment, when GD is high, LED lamp LED2B is bypassed by photodiode PC15A and transistor Q19, LED lamp LED2B is not illuminated, and after photodiode PC15A is turned on, phototransistor PC15B is turned on, at which point LED lamp LED2A is illuminated;
In a further embodiment, if GD is low, the photodiode PC15A is not on, the phototransistor PC15B is on, and the LED lamp LED2A is not on.
The beneficial effects are that: the utility model discloses a double-color LED lamp state switching circuit, belongs to the technical field of switching power supplies, and particularly relates to a common-cathode double-color LED lamp state switching circuit based on single chip microcomputer control; the state conversion circuit of the double-color LED lamp is externally connected with an MCU; the double-color LED lamp state conversion circuit consists of a triode, a photodiode, a phototriode and two LED lamps with different colors; the utility model can realize two-state switching by controlling the bicolor common-cathode LED lamp through a single I/O port under the limitation of the I/O and the complex function of the MCU in some electronic development environments with complex functions.
Drawings
Fig. 1 is a schematic diagram of a state transition circuit of a dual-color LED lamp according to the present utility model.
Detailed Description
The following description of the embodiments of the present utility model will be made apparent and fully in view of the accompanying drawings, in which some, but not all embodiments of the utility model are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the utility model without making any inventive effort, are intended to be within the scope of the utility model.
In the description of the present utility model, it should be noted that the directions or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present utility model and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present utility model. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present utility model, it should be noted that, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present utility model will be understood in specific cases by those of ordinary skill in the art. In addition, the technical features of the different embodiments of the present utility model described below may be combined with each other as long as they do not collide with each other.
A common cathode double-color LED lamp state conversion circuit based on single chip microcomputer control, wherein the double-color LED lamp state conversion circuit is externally connected with an MCU;
The double-color LED lamp state conversion circuit consists of a triode, a photodiode, a phototriode and two LED lamps with different colors;
and controlling the conduction of the triode according to the high and low levels input by the MCU, and controlling the two LED lamps with different colors to realize state conversion according to the voltage value of the input level.
In one embodiment, as shown in fig. 1, the dual-color LED lamp state transition circuit includes: resistor R136, diode D35, capacitor C74, resistor R151, triode Q19, photodiode PC15A, phototriode PC15B, LED lamp LED2B, LED lamp LED2A, resistor R135, resistor R130, and voltage regulator DZ11;
The GD end of MCU is connected with one end of resistance R136 and the positive pole of diode D35 simultaneously, the other end of resistance R136 inputs 3.3V voltage, triode Q19's base is connected with one end of resistance R151, one end of electric capacity C74 and the negative pole of diode D35 simultaneously, the other end of electric capacity C74, the other end of resistance R151 and the projecting pole of triode Q18 ground, triode Q19's collecting electrode with photodiode PC 15A's negative pole is connected, photodiode PC 15A's positive pole is connected with one end of resistance R135 and the negative pole of stabiliser DZ11 simultaneously, the other end input voltage of resistance R135, the positive pole of stabiliser DZ11 is connected with the positive pole of LED lamp LED2B, the negative pole of LED lamp LED2B is connected with the negative pole of LED lamp LED2A and ground, the positive pole of LED lamp LED2A is connected with the negative pole of light diode PC15A, the other end of triode D15B is connected with the negative pole of MCU 150, the triode D11 is connected with the negative pole of MCU 150.
In one embodiment, as shown in fig. 1, the GD terminal is an I/O interface of the MCU.
In one embodiment, as shown in fig. 1, when GD is high, LED lamp LED2B is bypassed by photodiode PC15A and transistor Q19, LED lamp LED2B is not on, and after photodiode PC15A is on, phototransistor PC15B is on, at which time LED lamp LED2A is on;
In one embodiment, as shown in fig. 1, if GD is low, the photodiode PC15A is not turned on, the phototransistor PC15B is turned on, and the LED lamp LED2A is not turned on.
Working principle: when the utility model works, when the GD input is at a high level, the triode Q19 is conducted, the photodiode PC15A is conducted after the conduction, at the moment, the voltage at the K pin of the voltage stabilizing tube DZ11 is about 1.2V, the voltage of the voltage stabilizing tube DZ11 is 0.5W5.1V, if the LED2A of the LED lamp LED2B, LED can be conducted, the voltage at the K pin is about 8V, therefore, when the GD is at a high level, the LED2B is bypassed by the photodiode PC15A and the triode Q19, the green light is not on, but when the photodiode PC15A is conducted, the photodiode PC15B is conducted, the red light is on, if the GD is at a low level, the photodiode PC15A is not on, at the moment, the green light is on, the red light is not on, and in total, the state conversion of controlling the red and green-red common cathode LED by using one I/O can be realized.
It is apparent that the above examples are given by way of illustration only and are not limiting of the embodiments. Other variations or modifications of the above teachings will be apparent to those of ordinary skill in the art. It is not necessary here nor is it exhaustive of all embodiments. While still being apparent from variations or modifications that may be made by those skilled in the art are within the scope of the utility model.
Claims (5)
1. The common-cathode double-color LED lamp state switching circuit based on single chip microcomputer control is characterized in that the double-color LED lamp state switching circuit is externally connected with an MCU;
The double-color LED lamp state conversion circuit consists of a triode, a photodiode, a phototriode and two LED lamps with different colors;
and controlling the conduction of the triode according to the high and low levels input by the MCU, and controlling the two LED lamps with different colors to realize state conversion according to the voltage value of the input level.
2. The single-chip microcomputer control-based common-cathode double-color LED lamp state switching circuit as claimed in claim 1, wherein the double-color LED lamp state switching circuit comprises: resistor R136, diode D35, capacitor C74, resistor R151, triode Q19, photodiode PC15A, phototriode PC15B, LED lamp LED2B, LED lamp LED2A, resistor R135, resistor R130, and voltage regulator DZ11;
The GD end of MCU is connected with one end of resistance R136 and the positive pole of diode D35 simultaneously, the other end of resistance R136 inputs 3.3V voltage, triode Q19's base is connected with one end of resistance R151, one end of electric capacity C74 and the negative pole of diode D35 simultaneously, the other end of electric capacity C74, the other end of resistance R151 and the projecting pole of triode Q18 ground, triode Q19's collecting electrode with photodiode PC 15A's negative pole is connected, photodiode PC 15A's positive pole is connected with one end of resistance R135 and the negative pole of stabiliser DZ11 simultaneously, the other end input voltage of resistance R135, the positive pole of stabiliser DZ11 is connected with the positive pole of LED lamp LED2B, the negative pole of LED lamp LED2B is connected with the negative pole of LED lamp LED2A and ground, the positive pole of LED lamp LED2A is connected with the negative pole of light diode PC15A, the other end of triode D15B is connected with the negative pole of MCU 150, the triode D11 is connected with the negative pole of MCU 150.
3. The common-cathode double-color LED lamp state switching circuit based on single chip microcomputer control according to claim 2, wherein the GD end is an I/O interface of the MCU.
4. The single-chip microcomputer control-based common-cathode double-color LED lamp state switching circuit according to claim 2 is characterized in that when GD is in a high level, an LED lamp LED2B is bypassed by a photodiode PC15A and a triode Q19, the LED lamp LED2B is not lighted, and when the photodiode PC15A is conducted, the photodiode PC15B is conducted, and at the moment, the LED lamp LED2A is lighted.
5. The single-chip microcomputer control-based common-cathode double-color LED lamp state conversion circuit according to claim 2 is characterized in that if GD is in a low level, a photodiode PC15A is not on, a phototriode PC15B is on, at the moment, an LED lamp LED2B is on, and the LED lamp LED2A is not on.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202322650503.0U CN220985896U (en) | 2023-09-28 | 2023-09-28 | Common cathode double-color LED lamp state switching circuit based on single chip microcomputer control |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202322650503.0U CN220985896U (en) | 2023-09-28 | 2023-09-28 | Common cathode double-color LED lamp state switching circuit based on single chip microcomputer control |
Publications (1)
Publication Number | Publication Date |
---|---|
CN220985896U true CN220985896U (en) | 2024-05-17 |
Family
ID=91037682
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202322650503.0U Active CN220985896U (en) | 2023-09-28 | 2023-09-28 | Common cathode double-color LED lamp state switching circuit based on single chip microcomputer control |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN220985896U (en) |
-
2023
- 2023-09-28 CN CN202322650503.0U patent/CN220985896U/en active Active
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101835306A (en) | Led lamp control circuit and led lamp | |
CN220985896U (en) | Common cathode double-color LED lamp state switching circuit based on single chip microcomputer control | |
CN101742770A (en) | LED light dimming circuit | |
CN208589619U (en) | It can be with the intelligent conversion socket of voice control | |
CN106989297B (en) | Light-operated LED filament lamp driving system and light-operated LED filament lamp | |
CN207504754U (en) | Has the direct current of power saving function with exchanging output circuit | |
CN206092478U (en) | Bluetooth ceiling lamp fan | |
CN101409965A (en) | Circuit for controlling remote-control indicating lamp | |
CN209982785U (en) | LED indicator lamp on power socket | |
CN207266350U (en) | LED dimming driving circuits and LED drive device | |
CN207897195U (en) | LED light emission device and system | |
CN208317056U (en) | A kind of multifunctional integrated low-cost backlight circuit and display equipment | |
CN207039943U (en) | A kind of flowing water circuit for lamp | |
CN218546951U (en) | Push switch detection circuit and electronic equipment thereof | |
CN207039960U (en) | A kind of single battery boosting LED drive circuit | |
CN217936009U (en) | Control circuit for multifunctional charging port indicator lamp of new energy automobile | |
CN216057557U (en) | Moonlight gear control circuit for mobile illumination | |
CN112351548A (en) | LED drive circuit driven by direct current constant voltage | |
CN207733018U (en) | A kind of LED light controller | |
CN219042045U (en) | Control circuit for lighting device and lighting device thereof | |
CN214675765U (en) | Vibration switch circuit for portable lighting equipment | |
CN211456136U (en) | USB interface circuit and smart jack | |
CN216057568U (en) | LED driving circuit driven by direct current constant voltage | |
CN218301696U (en) | LED lamp driving circuit and charging state display device | |
CN219554091U (en) | Socket switch with metering function |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant |