CN220673970U - Circuit for controlling indicator lamp according to output voltage and by using single port - Google Patents

Circuit for controlling indicator lamp according to output voltage and by using single port Download PDF

Info

Publication number
CN220673970U
CN220673970U CN202321868113.4U CN202321868113U CN220673970U CN 220673970 U CN220673970 U CN 220673970U CN 202321868113 U CN202321868113 U CN 202321868113U CN 220673970 U CN220673970 U CN 220673970U
Authority
CN
China
Prior art keywords
switching tube
resistor
circuit
output
voltage
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
CN202321868113.4U
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.)
Zhejiang Keboda Industrial Co ltd
Keboda Technology Co ltd
Original Assignee
Zhejiang Keboda Industrial Co ltd
Keboda Technology 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 Zhejiang Keboda Industrial Co ltd, Keboda Technology Co ltd filed Critical Zhejiang Keboda Industrial Co ltd
Priority to CN202321868113.4U priority Critical patent/CN220673970U/en
Application granted granted Critical
Publication of CN220673970U publication Critical patent/CN220673970U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The utility model provides a circuit for controlling an indicator lamp according to output voltage by utilizing a single port, which comprises a comparison circuit, a level conversion circuit, a logic circuit, an LED lamp D1, an LED lamp D2, an LED lamp D4, a switching tube Q1, a switching tube Q2, a switching tube Q3, a switching tube Q5, a switching tube Q6, a resistor R3 and a resistor R6. When the output voltage Vbus is smaller than the first voltage threshold Vth1, the LED lamp D1 is made to emit no light, the LED lamp D2 emits light, and the LED lamp D4 emits no light; when the output voltage Vbus is greater than or equal to the first voltage threshold Vth1 and less than or equal to the second voltage threshold Vth2, the LED lamp D1 does not emit light, the LED lamp D2 does not emit light, and the LED lamp D4 emits light; when the output voltage Vbus is greater than the second voltage threshold Vth2, the LED lamp D1 is caused to emit light, the LED lamp D2 is not caused to emit light, and the LED lamp D4 is not caused to emit light. Compared with the prior art, the LED display device can realize the lighting of different LED indicator lamps according to different output voltage values and by utilizing a single port, so that a user can know the state of the current output power consumption through the indicator lamps.

Description

Circuit for controlling indicator lamp according to output voltage and by using single port
[ field of technology ]
The utility model relates to the technical field of circuit design, in particular to a circuit for controlling an indicator lamp by using a single port according to output voltage.
[ background Art ]
The output voltage values of the fast-charging products of the USB (Universal serial bus, i.e., universal serial bus) connector PD (Power release, a fast charging technology in the USB connector) are 5V, 9V, 12V, 15V, and 20V, and can be classified according to the output voltage values. 5V is one type, 9V, 12V and 15V are one type, and 20V is one type (voltage division can be carried out according to actual needs).
According to different PD fast charge output voltage values, a single GPIO (General-purpose input/output) port can be utilized to realize the color development control of the indicator lamp, so that three different LEDs (light-emitting diodes) can be used for emitting light. The prior art scheme is not available for realizing the functions.
Therefore, it is necessary to provide a circuit for controlling the indicator lamp according to the output voltage and using a single port.
[ utility model ]
One of the purposes of the utility model is to provide a circuit for controlling an indicator lamp according to output voltage by using a single port, which can realize different LED indicator lamps to emit light according to different output voltage values by using a single port, so that a user can know the state of the current output power consumption by the indicator lamp.
According to one aspect of the present utility model, a circuit for controlling an indicator lamp according to an output voltage by using a single port is provided, which comprises a comparison circuit, a level conversion circuit, a logic circuit, an LED lamp D1, an LED lamp D2, an LED lamp D4, a switching tube Q1, a switching tube Q2, a switching tube Q3, a switching tube Q5, a switching tube Q6, a resistor R3 and a resistor R6, wherein an input end of the comparison circuit is connected with an output voltage Vbus, and an output end of the comparison circuit is connected with a first input end E of the logic circuit; the input end of the level conversion circuit is connected with a single port, the output end of the level conversion circuit is connected with the second input end G of the logic circuit, and the single port is used for receiving a control signal; the LED lamp D4 and the switch tube Q6 are connected in series between the output voltage Vbus and the grounding end, and the control end of the switch tube Q6 is connected with the output end F of the logic circuit; the first connecting end of the switching tube Q5 is connected with the connecting node B, the control end of the switching tube Q5 is connected with the output end of the level conversion circuit, and the second connecting end of the switching tube Q5 is grounded; the first connecting end of the switching tube Q1 is connected with the output voltage Vbus, the control end of the switching tube Q1 is connected with the connecting node A, and the second connecting end of the switching tube Q1 is connected with the first connecting end of the switching tube Q2; the first connecting end and the control end of the switching tube Q2 are connected with the connecting node B, the second connecting end of the switching tube Q2 is connected with the positive electrode of the LED lamp D2, and the negative electrode of the LED lamp D2 is grounded; the resistor R3 is connected between the first connection end of the switch tube Q1 and the connection node A; one end of the resistor R6 is connected with the connection node A, and the other end of the resistor R6 is connected with the output end F of the logic circuit; the LED lamp D1 and the switching tube Q3 are connected in series between the output voltage Vbus and the grounding end, and the control end of the switching tube Q3 is connected with the connecting node B.
Compared with the prior art, the LED display device can realize the lighting of different LED indicator lamps according to different output voltage values and by utilizing a single port, so that a user can know the state of the current output power consumption through the indicator lamps.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present utility model, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present utility model, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. Wherein:
fig. 1 is a schematic diagram of a circuit for controlling an indicator light according to an output voltage and using a single port in one embodiment of the utility model.
[ detailed description ] of the utility model
In order that the above-recited objects, features and advantages of the present utility model will become more readily apparent, a more particular description of the utility model will be rendered by reference to the appended drawings and appended detailed description.
Reference herein to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic may be included in at least one implementation of the utility model. The appearances of the phrase "in one embodiment" in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Unless specifically stated otherwise, the terms coupled, connected, or connected, as used herein, mean either direct or indirect connection, such as a and B, and include both direct electrical connection of a and B, and connection of a to B through electrical components or circuitry. In the present utility model, "equal to or greater than" means equal to or greater than and "equal to or less than" means equal to or less than.
In the description of the present utility model, it should be understood that the terms "upper", "lower", "front", "rear", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, are merely for convenience in describing the present utility model and simplifying the description, and do not indicate or imply that the device or element in question must have a specific orientation, be configured and operated in a specific orientation, and therefore should not be construed as limiting the present utility model.
Referring to fig. 1, a schematic diagram of a circuit for controlling an indicator lamp according to an output voltage and using a single port according to an embodiment of the utility model is shown. The circuit for controlling the indication lamp according to the output voltage and using a single port shown in fig. 1 includes a comparison circuit 110, a level shift circuit 120, a logic circuit 130, an LED lamp D1, an LED lamp D2, an LED lamp D4, a switching transistor Q1, a switching transistor Q2, a switching transistor Q3, a switching transistor Q5, a switching transistor Q6, a resistor R3, and a resistor R6.
The input of the comparison circuit 110 is connected to the output voltage Vbus and the output is connected to the first input E of the logic circuit 130. The input of the level shifter circuit 120 is connected to a single port (e.g., a GPIO port) whose output is connected to the second input G of the logic circuit 130, the single port (e.g., a GPIO port) being configured to receive the control signal.
The LED lamp D4 and the switching tube Q6 are connected in series between the output voltage Vbus and the ground, and the control terminal of the switching tube Q6 is connected to the output terminal F of the logic circuit 130. A first connection end of the switching tube Q5 is connected with the connection node B, a control end of the switching tube Q5 is connected with an output end of the level conversion circuit 120, and a second connection end of the switching tube Q5 is grounded; the first connecting end of the switching tube Q1 is connected with the output voltage Vbus, the control end of the switching tube Q1 is connected with the connecting node A, and the second connecting end of the switching tube Q1 is connected with the first connecting end of the switching tube Q2; the first connecting end and the control end of the switching tube Q2 are connected with the connecting node B, the second connecting end of the switching tube Q2 is connected with the positive electrode of the LED lamp D2, and the negative electrode of the LED lamp D2 is grounded; the resistor R3 is connected between the first connection end of the switching tube Q1 and the connection node A; one end of the resistor R6 is connected to the connection node a, and the other end thereof is connected to the output terminal F of the logic circuit 130. The LED lamp D1 and the switching tube Q3 are connected in series between the output voltage Vbus and the grounding end, and the control end of the switching tube Q3 is connected with the connecting node B. In the specific embodiment shown in fig. 1, the anode of the LED lamp D4 is connected to the output voltage Vbus, the cathode thereof is connected to the first connection terminal of the switching tube Q6, and the second connection terminal of the switching tube Q6 is grounded; the positive pole of LED lamp D1 links to each other with output voltage Vbus, and its negative pole links to each other with the first link of switch tube Q3, and the second link ground of switch tube Q3.
The comparison circuit 110 is configured to compare the magnitude of the output voltage Vbus with the magnitude of the first voltage threshold Vth1, and output a comparison result through an output terminal thereof. When the output voltage Vbus is smaller than the first voltage threshold Vth1, the output terminal of the comparison circuit 110 outputs a first logic level (e.g., a low level); when the output voltage Vbus is equal to or greater than the first voltage threshold Vth1, the output terminal of the comparison circuit 110 outputs a second logic level (e.g., a high level).
The level conversion circuit 120 is configured to level-convert a control signal received by a single port (for example, a GPIO port), and output the level-converted control signal through an output terminal thereof. When the output voltage Vbus is less than or equal to the second voltage threshold Vth2, the control signal received by the single port (for example, GPIO port) is at a second logic level (for example, high level), and the output terminal of the level conversion circuit 120 outputs the second logic level (for example, high level); when the output voltage Vbus is greater than the second voltage threshold Vth2, the control signal received by the single port (for example, GPIO port) is at a first logic level (for example, low level), and the output terminal of the level conversion circuit 120 outputs the first logic level (for example, low level).
The logic circuit 130 is configured to perform a logic operation on the comparison result output by the comparison circuit 110 and the level-converted control signal output by the level conversion circuit 120, and output a logic operation result through an output terminal F thereof. When the output terminal of the comparison circuit 110 outputs the second logic level (e.g., high level) and the output terminal of the level shift circuit 120 outputs the second logic level (e.g., high level), the output terminal F of the logic circuit 130 outputs the second logic level (e.g., high level); in other cases, the output F of the logic circuit 130 outputs a first logic level (e.g., a low level). Wherein the first voltage threshold Vth1 is smaller than the second voltage threshold Vth2.
When the output voltage Vbus is smaller than the first voltage threshold Vth1, the output end of the comparison circuit 110 outputs a first logic level, the control signal received by the single port (for example, the GPIO port) is a second logic level, the output end of the level conversion circuit 120 outputs the second logic level, and the output end F of the logic circuit 130 outputs the first logic level, at this time, the switching tube Q1 is turned on, the switching tube Q2 is turned on, the switching tube Q3 is turned off, the switching tube Q6 is turned off, and the switching tube Q5 is turned on, so that the LED lamp D1 does not emit light, the LED lamp D2 emits light, and the LED lamp D4 does not emit light.
When the output voltage Vbus is greater than or equal to the first voltage threshold Vth1 and less than or equal to the second voltage threshold Vth2, the output end of the comparison circuit 110 outputs a second logic level, the control signal received by the single port (for example, the GPIO port) is the second logic level, the output end of the level conversion circuit 120 outputs the second logic level, the output end F of the logic circuit 130 outputs the second logic level, and at this time, the switching tube Q1 is turned off, the switching tube Q2 is turned off, the switching tube Q3 is turned off, the switching tube Q6 is turned on, and the switching tube Q5 is turned on, so that the LED lamp D1 does not emit light, the LED lamp D2 does not emit light, and the LED lamp D4 emits light.
When the output voltage Vbus is greater than the second voltage threshold Vth2, the output end of the comparison circuit 110 outputs a second logic level, the control signal received by the single port (for example, the GPIO port) is the first logic level, the output end of the level conversion circuit 120 outputs the first logic level, and the output end F of the logic circuit 130 outputs the first logic level, at this time, the switching tube Q1 is turned on, the switching tube Q2 is turned off, the switching tube Q3 is turned on, the switching tube Q6 is turned off, and the switching tube Q5 is turned off, so that the LED lamp D1 emits light, the LED lamp D2 does not emit light, and the LED lamp D4 does not emit light.
In summary, according to the utility model, different LED indicator lamps (such as the LED lamp D1, the LED lamp D2 and the LED lamp D4) emit light according to different output voltage values and by using a single port, so that a user can know the state of the current output power consumption through the indicator lamps.
In the specific embodiment shown in fig. 1, the output voltage value Vbus is the output voltage of the fast-charging product of the USB connector PD; the single port is a GPIO port; the LED lamp D1 is an LED_green (green light), the LED lamp D2 is an LED_red (red light), the LED lamp D4 is an LED_blue (blue light), and the LED lamps D1, D2 and D4 are LED lamps with different colors.
In the specific embodiment shown in fig. 1, the comparison circuit 110 includes a resistor R11, a resistor R14, a regulator D6, and a voltage comparator U1, where one end of the resistor R11 is connected to the output voltage Vbus, and the other end is connected to the connection node C; resistor R14 is connected between connection node C and ground; the negative electrode of the voltage stabilizing tube D6 is connected with the connecting node D, and the positive electrode of the voltage stabilizing tube D is grounded; the connection node D is connected to the output voltage Vbus, the first input terminal of the voltage comparator U1 is connected to the connection node C, the second input terminal thereof is connected to the connection node D, the output terminal thereof is used as the output terminal of the comparison circuit 110, and the power supply terminal thereof is connected to the power supply voltage VDD 1; the operating voltage of the regulator D6 is smaller than the first voltage threshold Vth1. The level shift circuit 120 includes a switching tube Q4, a first connection terminal of the switching tube Q4 is connected to the power voltage VDD1, a control terminal thereof is used as an input terminal of the level shift circuit 120, and a second connection terminal thereof is used as an output terminal of the level shift circuit 120.
In the embodiment shown in fig. 1, the comparison circuit 110 further includes a resistor R13 and a capacitor C1, where the resistor R13 is connected between the output voltage Vbus and the connection node D; the capacitor C1 is connected between the connection node C and the grounding end; the level shift circuit 120 further includes a resistor R5 and a resistor R7, where the resistor R5 is connected between the power supply voltage VDD1 and the first connection terminal of the switching tube Q4; resistor R7 is connected between a single port (e.g., GPIO port) and the control terminal of switch Q4.
The resistor R13, the resistor R5 and the resistor R7 are current limiting resistors, play a role in limiting current, and prevent the voltage comparator U1 and the triode from being burnt out due to overlarge circuit current; the capacitor C1 is a filter capacitor, and plays a role in filtering.
In the embodiment shown in fig. 1, the switching tube Q1 is a PNP type triode, and the first connection end, the second connection end and the control end of the switching tube Q1 are respectively an emitter, a collector and a base of the PNP type triode; the switching tube Q2 is a PNP triode, and the first connecting end, the second connecting end and the control end of the switching tube Q2 are respectively an emitter, a collector and a base of the PNP triode; the switching tube Q3 is an NPN triode, and the first connecting end, the second connecting end and the control end of the switching tube Q3 are respectively a collector electrode, an emitter electrode and a base electrode of the NPN triode; the switching tube Q4 is an NPN triode, and the first connecting end, the second connecting end and the control end of the switching tube Q4 are respectively a collector electrode, an emitter electrode and a base electrode of the NPN triode; the switching tube Q5 is an NPN triode, and the first connecting end, the second connecting end and the control end of the switching tube Q5 are respectively a collector electrode, an emitter electrode and a base electrode of the NPN triode; the switching tube Q6 is an NPN triode, and the first connecting end, the second connecting end and the control end of the switching tube Q6 are respectively a collector electrode, an emitter electrode and a base electrode of the NPN triode.
In the embodiment shown in fig. 1, the first input terminal and the second input terminal of the voltage comparator U1 are respectively a non-inverting input terminal and an inverting input terminal thereof; a first logic level of a control signal received by a single port (for example, a GPIO port) is a low level, and a second logic level thereof is a high level; the first logic level output from the output terminal of the level shift circuit 120 is a low level, and the second logic level output is a high level.
When the output voltage Vbus is smaller than the first voltage threshold Vth1, the voltage stabilizing tube D6 may or may not work, and the resistance values of the resistors R11 and R14 need to be matched, so that when the output voltage Vbus is smaller than the first voltage threshold Vth1, the voltage of the connection node D is higher than the voltage of the connection node C, and the output end of the voltage comparator U1 outputs a low level; when the output voltage Vbus is greater than or equal to the first voltage threshold Vth1, the voltage regulator D6 operates, the voltage of the connection node D is lower than the voltage of the connection node C, and the output terminal of the voltage comparator U1 outputs a high level. When the output voltage Vbus is less than or equal to the second voltage threshold Vth2, the control signal received by the single port (for example, GPIO port) is at a high level, and the output terminal of the level conversion circuit 120 outputs a high level; when the output voltage Vbus is greater than the second voltage threshold Vth2, the control signal received by the single port (for example, GPIO port) is at a low level, and the output terminal of the level conversion circuit 120 outputs a low level.
In the embodiment shown in fig. 1, the logic circuit 130 is an and circuit, which includes a diode D3 and a diode D5, wherein the cathode of the diode D5 is used as the first input terminal E of the logic circuit 130, and the anode thereof is connected to the output terminal F of the logic circuit 130; the cathode of the diode D3 is used as the second input terminal G of the logic circuit 130, and the anode thereof is connected to the output terminal F of the logic circuit 130; the output F of the logic circuit 130 is connected to the power supply voltage VDD 2. Wherein, the power voltage VDD2 is greater than the power voltage VDD1, and the power voltage VDD1 is greater than the second voltage threshold Vth2.
In the specific embodiment shown in fig. 1, the circuit for controlling the indicator lamp according to the output voltage and using a single port further includes a resistor R1, a resistor R2, a resistor R4, a resistor R8, a resistor R9, a resistor R10, a resistor R12, and a resistor R15. The resistor R1, the LED lamp D1 and the switching tube Q3 are connected in series between the output voltage Vbus and the grounding end; the resistor R2 and the LED lamp D2 are connected in series between the second connecting end of the switch tube Q2 and the grounding end; the resistor R4 is connected between the first connection end of the switching tube Q2 and the connection node B; the resistor R8 is connected between the output end of the level conversion circuit 120 and the control end of the switching tube Q5; resistor R9 is connected between supply voltage VDD2 and output terminal F of logic circuit 130; the resistor R10 is connected in series with the LED lamp D4 and the switch tube Q6 between the output voltage Vbus and the ground terminal; the resistor R12 is connected between the output end F of the logic circuit 130 and the control end of the switching tube Q6; resistor R15 is connected between connection node B and the control terminal of switching tube Q3. In the particular embodiment shown in FIG. 1, resistor R1 is connected between the output voltage Vbus and the anode of LED lamp D1; the resistor R2 is connected between the second connecting end of the switch tube Q2 and the anode of the LED lamp D2; resistor R10 is connected between output voltage Vbus and the anode of LED lamp D4. The resistors R1, R2 and R10 control three branch currents of the LED lamps D1, D2 and D4, so that the brightness control and protection effects on the LED display lamp are achieved; the resistors R4, R8, R9, R12 and R15 are current limiting resistors, play a role in limiting current, and prevent the transistor from being burnt out due to overlarge circuit current.
The operation principle of the circuit for automatically adjusting the indication lamp according to the output voltage shown in fig. 1 will be described in detail.
When the PD fast charge output voltage Vbus is smaller than the first voltage threshold Vth1, red light emission and green and blue light non-emission can be achieved. When the PD fast charge output voltage Vbus is smaller than the first voltage threshold Vth1, the control signal received by the single port (for example, the GPIO port) is at a high level, the output end of the level conversion circuit 120 outputs a high level (so to speak, the output end of the level conversion circuit 120 outputs a second logic level), so that the triode Q5 is turned on, so that the voltage of the connection node B is at a low level, so that the triode Q3 is turned off, the LED lamp D1 does not emit light, i.e., the green light branch is turned off, and green light is not turned on. When the PD fast charge output voltage Vbus is smaller than the first voltage threshold Vth1, since the voltage regulator D6 may or may not operate, the resistance value of the resistors R11 and R14 needs to be matched, so that when the output voltage Vbus is smaller than the first voltage threshold Vth1, the voltage of the connection node D is higher than the voltage of the connection node C, so that the output end of the voltage comparator U1 outputs a low level (also referred to as the output end of the comparison circuit 110 outputs a first logic level), so that the output end F of the logic circuit 130 is a low level (also referred to as the output end of the logic circuit 130 outputs a first logic level), the triode Q4 is turned off, the LED lamp D4 does not emit light, that is, the blue lamp branch is turned off, and the blue lamp is not turned on. Because the output end F of the logic circuit 130 is at a low level, the voltage of the connection node a is obtained by dividing the voltage by the resistors R3 and R6, so that the voltage of the connection node a is smaller than the PD fast charging output voltage Vbus, the triode Q1 is turned on, the collector voltage of the triode Q1 is at a high level, that is, the emitter voltage of the triode Q2 is at a high level, and because the voltage of the connection node B is at a low level at this time, the emitter voltage of the triode Q2 is higher than the base voltage, the triode Q2 is turned on, the collector electrode of the triode Q2 is at a high level, the LED lamp D2 emits light, that is, the red light branch is turned on, thereby realizing red light emission. That is, when the PD fast charge output voltage Vbus is smaller than the first voltage threshold Vth1, the control signal received by the single port (for example, the GPIO port) is at a high level, the output end of the level conversion circuit 120 outputs a high level, the voltage stabilizing tube D6 may or may not be operated, the output end of the voltage comparator U1 outputs a low level, the output end F of the logic circuit 130 is at a low level, the voltage of the connection node a is smaller than the PD fast charge output voltage Vbus, at this time, the switching tube Q1 is turned on, the switching tube Q2 is turned on, the switching tube Q3 is turned off, the switching tube Q6 is turned off, and the switching tube Q5 is turned on, so that the LED lamp D1 does not emit light, the LED lamp D2 emits light, and the LED lamp D4 does not emit light.
When the PD fast charge output voltage Vbus is greater than or equal to the first voltage threshold Vth1 and less than or equal to the second voltage threshold Vth2, blue light emission and green light and red light non-emission can be realized. When the PD fast charge output voltage Vbus is greater than or equal to the first voltage threshold Vth1 and less than or equal to the second voltage threshold Vth2, the control signal received by the single port (for example, GPIO port) is at a high level, and the output terminal of the level conversion circuit 120 outputs a high level (also referred to as the output terminal of the level conversion circuit 120 outputs a second logic level). Meanwhile, when the PD fast charge output voltage Vbus is greater than or equal to the first voltage threshold Vth1 and less than or equal to the second voltage threshold Vth2, the voltage regulator D6 works, and the voltage of the connection node D is lower than the voltage of the connection node C, so that the output end of the voltage comparator U1 outputs a high level (also can be said that the output end of the comparison circuit 110 outputs a second logic level), so that the output end F of the logic circuit 130 is a high level (also can be said that the output end of the logic circuit 130 outputs a second logic level), the triode Q6 is turned on, the LED lamp D4 emits light, that is, the blue lamp branch is turned on, and thus blue lamp emission is realized; when the PD fast charge output voltage Vbus is greater than or equal to the first voltage threshold Vth1 and less than or equal to the second voltage threshold Vth2, since the power supply voltage VDD2 is greater than the power supply voltage VDD1 and the power supply voltage VDD1 is greater than the second voltage threshold Vth2, the voltage of the connection node a is greater than the PD fast charge output voltage Vbus, so that the triode Q1 is turned off, the collector voltage of the triode Q1 is low, that is, the emitter voltage of the triode Q2 is low, the triode Q2 is turned off, the LED lamp D2 does not emit light, that is, the red light branch is turned off, and therefore the red light is not lighted; since the output end of the level conversion circuit 120 outputs a high level, the triode Q5 is turned on, the voltage of the connection node B is a low level, the triode Q3 is turned off, the LED lamp D1 is not turned on, i.e., the green light branch is turned off, so that green light is not turned on. That is, when the PD fast charge output voltage Vbus is greater than or equal to the first voltage threshold Vth1 and less than or equal to the second voltage threshold Vth2, the control signal received by the single port (for example, the GPIO port) is at a high level, the output end of the level conversion circuit 120 outputs a high level, the voltage regulator D6 works, the output end of the voltage comparator U1 outputs a high level, the output end F of the logic circuit 130 is at a high level, the voltage of the connection node a is greater than the PD fast charge output voltage Vbus, at this time, the switching tube Q1 is turned off, the switching tube Q2 is turned off, the switching tube Q3 is turned on, the switching tube Q6 is turned on, and the switching tube Q5 is turned on, so that the LED lamp D1 does not emit light, the LED lamp D2 does not emit light, and the LED lamp D4 emits light.
When the PD fast charge output voltage Vbus is greater than the second voltage threshold Vth2, green light emission and red and blue light non-emission can be achieved. When the PD fast charge output voltage Vbus is greater than the second voltage threshold Vth2, the control signal received by the single port (for example, the GPIO port) is at a low level, and the output terminal of the level shift circuit 120 outputs a low level (also referred to as the output terminal of the level shift circuit 120 outputs a first logic level). Meanwhile, when the PD fast charge output voltage Vbus is greater than the second voltage threshold Vth2, the voltage regulator D6 operates, and the voltage of the connection node D is lower than the voltage of the connection node C, so that the output terminal of the voltage comparator U1 outputs a high level (also referred to as the output terminal of the comparison circuit 110 outputs a second logic level), and the output terminal F of the logic circuit 130 outputs a low level (also referred to as the output terminal of the logic circuit 130 outputs a first logic level). Since the output terminal F of the logic circuit 130 is at a low level, the transistor Q6 is turned off, and the LED lamp D4 does not emit light, i.e., the blue lamp branch is turned off, so that the blue lamp does not emit light. Since the output terminal F of the logic circuit 130 is at a low level, the voltage of the connection node a is divided by the resistors R3 and R6, so that the voltage of the connection node a is smaller than the output voltage Vbus, the transistor Q1 is turned on, and the collector voltage of the transistor Q1 is at a high level, i.e., the emitter voltage of the transistor Q2 is at a high level. Since the output end of the level conversion circuit 120 outputs a low level, the triode Q5 is turned off, and since the emitter voltage of the triode Q2 is a high level, the voltage of the connection node B is a high level and is approximately equal to the emitter voltage of the triode Q2, so that the triode Q2 is turned off, the LED lamp D2 does not emit light, that is, the red light branch is turned off, and the red light is not turned on. Because the voltage of the connection node B is high level, the triode Q3 is conducted, the LED lamp D1 emits light, namely, the green light branch is conducted, and therefore green light emission is achieved. That is, when the PD fast charge output voltage Vbus is greater than the second voltage threshold Vth2, the control signal received by the single port (for example, GPIO port) is at a low level, the output terminal of the level conversion circuit 120 outputs a low level, the voltage stabilizing tube D6 operates, the output terminal of the voltage comparator U1 outputs a high level, the output terminal F of the logic circuit 130 is at a low level, the voltage of the connection node a is less than the PD fast charge output voltage Vbus, at this time, the switching tube Q1 is turned on, the switching tube Q2 is turned off, the switching tube Q3 is turned on, the switching tube Q6 is turned off, the switching tube Q5 is turned off, the LED lamp D1 emits light, the LED lamp D2 does not emit light, and the LED lamp D4 does not emit light.
In summary, according to the utility model, different LED (e.g. LED lamp D1, LED lamp D2 and LED lamp D4) indicator lamps can emit light (e.g. develop color) according to different output voltage values and by utilizing a single port, so that a user can know the state of the current PD fast charge output power consumption through the color development of the indicator lamps.
It should be noted that any modifications to the specific embodiments of the utility model may be made by those skilled in the art without departing from the scope of the utility model as defined in the appended claims. Accordingly, the scope of the claims of the present utility model is not limited to the foregoing detailed description.

Claims (10)

1. A circuit for controlling an indicator lamp by using a single port according to an output voltage is characterized by comprising a comparison circuit, a level conversion circuit, a logic circuit, an LED lamp D1, an LED lamp D2, an LED lamp D4, a switching tube Q1, a switching tube Q2, a switching tube Q3, a switching tube Q5, a switching tube Q6, a resistor R3 and a resistor R6,
the input end of the comparison circuit is connected with the output voltage Vbus, and the output end of the comparison circuit is connected with the first input end E of the logic circuit;
the input end of the level conversion circuit is connected with a single port, the output end of the level conversion circuit is connected with the second input end G of the logic circuit, and the single port is used for receiving a control signal;
the LED lamp D4 and the switch tube Q6 are connected in series between the output voltage Vbus and the grounding end, and the control end of the switch tube Q6 is connected with the output end F of the logic circuit; the first connecting end of the switching tube Q5 is connected with the connecting node B, the control end of the switching tube Q5 is connected with the output end of the level conversion circuit, and the second connecting end of the switching tube Q5 is grounded; the first connecting end of the switching tube Q1 is connected with the output voltage Vbus, the control end of the switching tube Q1 is connected with the connecting node A, and the second connecting end of the switching tube Q1 is connected with the first connecting end of the switching tube Q2; the first connecting end and the control end of the switching tube Q2 are connected with the connecting node B, the second connecting end of the switching tube Q2 is connected with the positive electrode of the LED lamp D2, and the negative electrode of the LED lamp D2 is grounded; the resistor R3 is connected between the first connection end of the switch tube Q1 and the connection node A; one end of the resistor R6 is connected with the connection node A, and the other end of the resistor R6 is connected with the output end F of the logic circuit; the LED lamp D1 and the switching tube Q3 are connected in series between the output voltage Vbus and the grounding end, and the control end of the switching tube Q3 is connected with the connecting node B.
2. The circuit for controlling an indicator light according to an output voltage and using a single port as claimed in claim 1,
the comparison circuit is used for comparing the output voltage Vbus with a first voltage threshold Vth1 and outputting a comparison result through an output end of the comparison circuit;
the level conversion circuit is used for carrying out level conversion on the control signal received by the single port and outputting the control signal after the level conversion through the output end of the level conversion circuit;
the logic circuit is used for carrying out logic operation on the comparison result output by the comparison circuit and the control signal after level conversion output by the level conversion circuit, and outputting a logic operation result through the output end F thereof,
wherein the first voltage threshold Vth1 is smaller than the second voltage threshold Vth2.
3. The circuit for controlling an indicator light according to the output voltage and using a single port as claimed in claim 2, wherein,
the positive electrode of the LED lamp D4 is connected with the output voltage Vbus, the negative electrode of the LED lamp D is connected with the first connecting end of the switching tube Q6, and the second connecting end of the switching tube Q6 is grounded;
the positive pole of the LED lamp D1 is connected with the output voltage Vbus, the negative pole of the LED lamp D is connected with the first connecting end of the switching tube Q3, and the second connecting end of the switching tube Q3 is grounded.
4. The circuit for controlling an indicator light according to the output voltage and using a single port as claimed in claim 2, wherein,
the comparison circuit comprises a resistor R11, a resistor R14, a voltage stabilizing tube D6 and a voltage comparator U1, wherein one end of the resistor R11 is connected with the output voltage Vbus, and the other end of the resistor R11 is connected with a connection node C; the resistor R14 is connected between the connection node C and the ground terminal; the negative electrode of the voltage stabilizing tube D6 is connected with the connecting node D, and the positive electrode of the voltage stabilizing tube D is grounded; the connection node D is connected with the output voltage Vbus, a first input end of the voltage comparator U1 is connected with the connection node C, a second input end of the voltage comparator U1 is connected with the connection node D, an output end of the voltage comparator U is used as an output end of the comparison circuit, and a power supply end of the voltage comparator U1 is connected with a power supply voltage VDD 1; the working voltage of the voltage stabilizing tube D6 is smaller than the first voltage threshold Vth1;
the level conversion circuit comprises a switching tube Q4, a first connecting end of the switching tube Q4 is connected with the power supply voltage VDD1, a control end of the switching tube Q is used as an input end of the level conversion circuit, and a second connecting end of the switching tube Q is used as an output end of the level conversion circuit.
5. The circuit for controlling an indicator light according to the output voltage and using a single port as claimed in claim 4, wherein,
the comparison circuit further comprises a resistor R13 and a capacitor C1, wherein the resistor R13 is connected between the output voltage Vbus and the connection node D; the capacitor C1 is connected between the connection node C and the ground terminal;
the level conversion circuit further comprises a resistor R5 and a resistor R7, wherein the resistor R5 is connected between the power supply voltage VDD1 and the first connection end of the switching tube Q4; the resistor R7 is connected between the single port and the control terminal of the switching tube Q4.
6. The circuit for controlling an indicator light according to the output voltage and using a single port as claimed in claim 4, wherein,
the switching tube Q1 is a PNP type triode, and the first connecting end, the second connecting end and the control end of the switching tube Q1 are respectively an emitter, a collector and a base of the PNP type triode;
the switching tube Q2 is a PNP triode, and the first connecting end, the second connecting end and the control end of the switching tube Q2 are respectively an emitter, a collector and a base of the PNP triode;
the switching tube Q3 is an NPN triode, and the first connecting end, the second connecting end and the control end of the switching tube Q3 are respectively a collector electrode, an emitter electrode and a base electrode of the NPN triode;
the switching tube Q4 is an NPN triode, and the first connecting end, the second connecting end and the control end of the switching tube Q4 are respectively a collector electrode, an emitter electrode and a base electrode of the NPN triode;
the switching tube Q5 is an NPN triode, and the first connecting end, the second connecting end and the control end of the switching tube Q5 are respectively a collector electrode, an emitter electrode and a base electrode of the NPN triode;
the switching tube Q6 is an NPN triode, and the first connecting end, the second connecting end and the control end of the switching tube Q6 are respectively a collector electrode, an emitter electrode and a base electrode of the NPN triode.
7. The circuit for controlling an indicator light according to the output voltage and using a single port as claimed in claim 6, wherein,
the first input end and the second input end of the voltage comparator U1 are respectively a non-inverting input end and an inverting input end of the voltage comparator U1;
the first logic level of the control signal received by the single port is low level, and the second logic level is high level;
the first logic level output by the output end of the level conversion circuit is a low level, and the second logic level output by the level conversion circuit is a high level;
the logic circuit is an AND gate circuit.
8. The circuit for controlling an indicator light according to the output voltage and using a single port as claimed in claim 7,
the logic circuit comprises a diode D3 and a diode D5, wherein the cathode of the diode D5 is used as a first input end E of the logic circuit, and the anode of the diode D5 is connected with an output end F of the logic circuit; the cathode of the diode D3 is used as a second input end G of the logic circuit, and the anode of the diode D3 is connected with an output end F of the logic circuit; the output F of the logic circuit is connected to the supply voltage VDD2,
wherein the power supply voltage VDD2 is greater than the power supply voltage VDD1, and the power supply voltage VDD1 is greater than the second voltage threshold Vth2.
9. The circuit for controlling an indicator light according to an output voltage and using a single port as claimed in claim 8, further comprising a resistor R1, a resistor R2, a resistor R4, a resistor R8, a resistor R9, a resistor R10, a resistor R12, and a resistor R15,
wherein, the resistor R1, the LED lamp D1 and the switch tube Q3 are connected in series between the output voltage Vbus and the grounding terminal; the resistor R2 and the LED lamp D2 are connected in series between the second connecting end of the switch tube Q2 and the grounding end; the resistor R4 is connected between the first connection end of the switch tube Q2 and the connection node B; the resistor R8 is connected between the output end of the level conversion circuit and the control end of the switching tube Q5; the resistor R9 is connected between the power supply voltage VDD2 and the output end F of the logic circuit; the resistor R10 is connected in series with the LED lamp D4 and the switch tube Q6 between the output voltage Vbus and the ground terminal; the resistor R12 is connected between the output end F of the logic circuit and the control end of the switching tube Q6; the resistor R15 is connected between the connection node B and the control terminal of the switching tube Q3.
10. The circuit for controlling an indicator light according to an output voltage and using a single port as claimed in claim 1,
the single port is a GPIO port;
the output voltage Vbus is the output voltage of a fast-charging product of the USB connector PD;
the LED lamps D1, D2 and D4 are LED lamps with different colors.
CN202321868113.4U 2023-07-14 2023-07-14 Circuit for controlling indicator lamp according to output voltage and by using single port Active CN220673970U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202321868113.4U CN220673970U (en) 2023-07-14 2023-07-14 Circuit for controlling indicator lamp according to output voltage and by using single port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202321868113.4U CN220673970U (en) 2023-07-14 2023-07-14 Circuit for controlling indicator lamp according to output voltage and by using single port

Publications (1)

Publication Number Publication Date
CN220673970U true CN220673970U (en) 2024-03-26

Family

ID=90327374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202321868113.4U Active CN220673970U (en) 2023-07-14 2023-07-14 Circuit for controlling indicator lamp according to output voltage and by using single port

Country Status (1)

Country Link
CN (1) CN220673970U (en)

Similar Documents

Publication Publication Date Title
CN111556604A (en) Lamp area display circuit, lamp area display device and robot
CN202903330U (en) Ambient light detection circuit for camera
CN220673970U (en) Circuit for controlling indicator lamp according to output voltage and by using single port
CN116981124B (en) Dimming and color temperature adjusting circuit, PCB and lighting device
US8115396B2 (en) Light emitting diode lamp protecting circuit
CN220673969U (en) Circuit for automatically adjusting indicator lamp according to output voltage
CN116685019A (en) Circuit for controlling indicator lamp according to output voltage and by using single port
CN116723601A (en) Circuit for automatically adjusting indicator lamp according to output voltage
CN214757022U (en) LED power output multi-path short-circuit protection circuit
CN212013114U (en) Lamp area display circuit, lamp area display device and robot
CN212910120U (en) LED power supply dimming circuit
CN103298184B (en) A kind of single channel current limliting drives dual-colored LED circuit and LED lamp
US10455673B1 (en) Light string with a non-extinguishing function and an independent LED blinking function
CN210518923U (en) Solar control circuit for controlling color changing or fixing of four colors RGBW by two lines
CN214338164U (en) LED brightness adjusting circuit and electronic equipment
CN207947928U (en) A kind of control system of color lamp
CN218634345U (en) Constant current drive circuit in LED lamp area
CN210840133U (en) Two-wire type afterglow-free LED drive circuit and lamp using same
CN202095159U (en) Constant current driving circuit
CN216852430U (en) Multifunctional LED lamp control circuit
CN216820151U (en) Color temperature switching circuit and driving power supply based on discrete component
CN213959734U (en) Short-circuit protection circuit of LED illuminating lamp and LED illuminating lamp
CN216820160U (en) Lamp strip drive circuit
CN216721625U (en) Color temperature switching circuit with short-circuit protection function and LED driving power supply
CN211792124U (en) Running water lamp area

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant