Double-color lamp driving circuit and equipment
By combining the reverse push-pull circuit composed of NMOS and PMOS tubes with the control circuit, the two-color lamp is controlled with only one signal line, which solves the problem of large resource occupation and high development difficulty of dual-color lamps, and achieves the effect of saving resources and reducing costs.
Patent Information
- Application Number
- CN202411258627.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2024-12-13
AI Technical Summary
In the prior art, the indication status control of the two-color lamp requires occupancy of multiple signal transmission lines and IO resources, resulting in waste of hardware resources and increased development costs, making it difficult to meet the needs of complex application scenarios.
Using a reverse push-pull circuit composed of NMOS tube and PMOS tube, combined with the signal output from the control circuit, the two-color lights connected with positive and negative are fully turned off, single color always on, flicker and alternate flickering. Only one signal is used. Line control of two-color lights.
All indicator status requirements of the two-color light are realized, hardware resources are saved, circuit board development difficulty and connector cost are reduced, and hardware usage is improved.
Smart Images

Figure CN119136362A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic circuit technology, and in particular to a dual-color lamp driving circuit and device. Background Art
[0002] Bicolor lamps, usually composed of two light emitting diodes (LEDs) of different colors, such as red and green, are a common type of indicator light and are widely used in various electronic devices, such as computers, communication equipment, household appliances, and industrial control systems. Bicolor lamps can display different colors through different current directions or current magnitudes, provide multiple status indication functions, and play an important role in various complex application scenarios.
[0003] The existing method of realizing all the indication states of the two-color lamp is to control the high and low levels of the two signal transmission lines through the field programmable gate array (FPGA) to realize the indication states of the two-color lamp: all off, single color always on, flashing (single color flashing and double color flashing alternately). Since each signal transmission line requires an independent input / output (IO) port control, the lighting signal of a two-color lamp, such as the power indicator or the system health lamp, needs to occupy 4 signals, which not only occupies more IO resources of the complex programmable logic device (CPLD), increases the development cost, and reduces the competitive advantage of the product; and under the premise of equipment structure limitations, because more pins are required to transmit signals, it increases the difficulty of selecting the connector from the panel to the motherboard.
[0004] Therefore, how to meet all the indication status requirements of the two-color light with very few hardware resources has become an urgent problem to be solved. Summary of the invention
[0005] The present application provides a dual-color lamp driving circuit and device, which are used to meet all indication status requirements of the dual-color lamp with very few hardware resources.
[0006] In a first aspect, the present application provides a dual-color lamp driving circuit, comprising:
[0007] A reverse push-pull circuit composed of an NMOS tube and a PMOS tube;
[0008] The input end of the reverse push-pull circuit is used to connect to the output signal end of the control circuit;
[0009] The output end of the reverse push-pull circuit is used to connect to a bicolor lamp, and the two light emitting diodes in the bicolor lamp are connected in a positive-negative connection manner;
[0010] The reverse push-pull circuit controls the state of the dual-color lamp in combination with the control signal output by the control circuit.
[0011] In a specific implementation, in the reverse push-pull circuit, the gate of the NMOS tube is connected to the gate of the PMOS tube to form an input end of the reverse push-pull circuit;
[0012] The source of the PMOS tube is connected to a power supply, and the source of the NMOS tube is grounded;
[0013] The drain of the PMOS tube is connected to the drain of the NMOS tube to form the output end of the reverse push-pull circuit.
[0014] In a specific implementation, the drain of the PMOS tube is connected to one end of a first current limiting resistor, the drain of the NMOS tube is connected to one end of a second current limiting resistor, and the other end of the first current limiting resistor is connected to the other end of the second current limiting resistor to form the output end of the reverse push-pull circuit.
[0015] In a specific implementation manner, the first current limiting resistor and the second current limiting resistor have the same resistance value.
[0016] In a specific implementation, the input end of the reverse push-pull circuit is grounded via a first grounding capacitor;
[0017] The output end of the reverse push-pull circuit is connected to the source of the NMOS tube through a second grounding capacitor.
[0018] In a specific implementation, the bicolor lamp driving circuit further includes the bicolor lamp;
[0019] The anode of the first light emitting diode of green light in the two-color lamp is connected to the cathode of the second light emitting diode of red light, and then connected to the output signal terminal of the control circuit;
[0020] After the cathode of the first light emitting diode is connected to the anode of the second light emitting diode, it is connected to the output end of the reverse push-pull circuit.
[0021] In a specific implementation manner, the control circuit configures tri-state gates at the input and output ends of the transmission line of the control signal, respectively.
[0022] In a specific implementation, when the control signal output by the control circuit is 0, the red light of the two-color light is controlled to be on and the green light is off;
[0023] When the control signal output by the control circuit is 1, the red light in the two-color light is controlled to be off and the green light is on;
[0024] When the control signal output by the control circuit is in a high impedance state Z, the red light in the two-color light is controlled to be off, and the green light is controlled to be off;
[0025] When the control signal output by the control circuit switches between 0 and 1, the red light and the green light in the two-color light are controlled to flash alternately;
[0026] When the control signal output by the control circuit switches between 0 and Z, the red light in the dual-color light is controlled to flash;
[0027] When the control signal output by the control circuit switches between 1 and Z, the green light in the dual-color light is controlled to flash.
[0028] In a specific implementation, when the control signal output by the control circuit is in a high impedance state Z, the red light in the dual-color light is controlled to be off and the green light is controlled to be off.
[0029] In a second aspect, the present application provides an electronic device, including:
[0030] Processor, memory and communication interface;
[0031] The memory stores computer-executable instructions;
[0032] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the dual-color lamp driving circuit as described in the first aspect.
[0033] The present application provides a two-color lamp driving circuit and device. In this solution, a reverse push-pull circuit composed of an NMOS tube and a PMOS tube is combined with a control signal output by a control circuit to control the state of a two-color lamp with two positive and negative light-emitting diodes connected. The input end of the reverse push-pull circuit is connected to the output signal end of the control circuit, and the output end is connected to the two-color lamp. Through the two-color lamp driving circuit, it is realized that only one signal line is used to control the two-color lamp, which meets all the indication state requirements of the two-color lamp and saves hardware resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0035] Figure 1 A schematic diagram of the structure of a first embodiment of a dual-color lamp driving circuit provided in an embodiment of the present application;
[0036] Figure 2 A schematic diagram of the structure of a second embodiment of a dual-color lamp driving circuit provided in an embodiment of the present application;
[0037] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0038] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0039] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices consistent with some aspects of the present application as detailed in the appended claims.
[0040] Before introducing the embodiments of the present application, the technical keywords involved in the embodiments of the present application are first explained:
[0041] FPGA is used to implement highly customized digital logic circuits. It directly implements algorithms or functions in hardware through programming and is widely used in fields that require high performance, flexibility and parallel processing capabilities.
[0042] LED_FP_SYS_ERR_N indicates that when the system detects an error or abnormality, it controls the corresponding LED indicator (such as a red LED) to light up to warn the user or system maintenance personnel. SYS stands for "System", indicating that the signal is related to the status or operation of the entire system; ERR stands for "Error", indicating that when the system detects an error or abnormality, the LED lights up, usually red; N usually means that the signal is low-level valid, that is, when the signal is low, the ERR state is activated.
[0043] LED_FP_SYS_OK_N indicates that when the system is in normal working state, it provides visual feedback to the user or system maintenance personnel by controlling the corresponding LED indicator (such as a green LED) to light up. Among them, OK means that when the system is operating normally, the light is on, usually green.
[0044] The IO control port, also known as the input and output port, is the channel for data exchange between the computer and external devices, and is responsible for data input and output.
[0045] Z, high impedance state, is a special state of circuit output, which means that the output is neither high level nor low level, but presents a high impedance state. In this state, the output has almost no effect on the lower circuit, similar to the open circuit state.
[0046] M-ohm treatment of ground impedance refers to adjusting the impedance between a certain part and the ground to the megohm (MΩ) level in a circuit or system.
[0047] N-channel Metal-Oxide-Semiconductor (NMOS) is a key component in the two-color lamp control circuit. It uses the electric field effect to control the on and off of the current, thereby achieving precise control of the two-color lamp. The D-pole of NMOS refers to the drain, which is one of the three main terminals of the NMOS tube. The other two terminals are the source and the gate. The D-pole of NMOS is the output terminal of the current, which affects the working area of the tube and is used for signal amplification and switching operations.
[0048] P-channel Metal-Oxide-Semiconductor (PMOS) is opposite to NMOS and cooperates with NMOS to realize complex control logic and efficient circuit design, and realizes precise control of the two-color lamp by controlling the gate voltage. The S pole of PMOS, as the input end of the current, provides a voltage reference point, and realizes the conduction and cutoff of the PMOS tube by controlling the difference between the gate voltage and the source voltage.
[0049] In the dual-color lamp control circuit, PMOS and NMOS can be combined into a complementary MOS (CMOS) circuit to drive the dual-color LED lamp. The microcontroller outputs appropriate control signals to the gates of PMOS and NMOS to achieve precise control of the color and brightness of the dual-color LED lamp.
[0050] The application background of the embodiment of the present application is explained as follows:
[0051] A two-color lamp is a lamp that can emit two different colors of light. It is based on LEDs and integrates two different colors of LED chips in the same package, so that the lamp can emit two colors of light simultaneously or alternately as needed. It is widely used in various electronic devices, such as computers, communication equipment, household appliances, and industrial control systems. Two-color lamps can display different colors through different current directions or current magnitudes, provide multiple status indication functions, and play an important role in various complex application scenarios.
[0052] In many electronic devices, indicator lights are used to display the working status, fault status or other important information of the equipment. Traditional single-color LEDs can only display one status, while two-color lights can display more information by combining different colors. For example, by combining red and green, multiple states such as red on, green on, yellow on (red and green on at the same time) and off can be achieved. This makes two-color lights have obvious advantages in occasions where multi-state indication is required. In home lighting, two-color lights can create a variety of atmospheres by adjusting different colors of light; in commercial environments, two-color lights are often used in display cabinets, windows and billboards to highlight product features and attract consumers' attention by switching light colors; in the medical field, the visual comfort and work efficiency of medical staff can be improved by adjusting the light color of two-color lights in operating rooms or treatment rooms; in addition, two-color lights also have important applications in automotive lighting, especially in interior atmosphere lights and exterior signal lights, which transmit information through different colors of light to improve driving safety. Based on LED technology, two-color lamps have the advantages of high efficiency, energy saving, long life, and low maintenance cost. In addition, their design is usually compact, easy to install and integrate into various equipment and environments, and have high flexibility and adjustability. Therefore, two-color lamps are widely used in various fields and have high practical value and market potential.
[0053] The existing method for realizing all indication states of a two-color lamp is to control the high and low levels of two signal transmission lines through FPGA to realize the indication states of the two-color lamp: all off, single color always on, flashing (single color flashing and two-color alternating flashing). The all off state is realized by setting both signal transmission lines to low level (0), and the two-color lamp does not emit light at this time. The single color always on state is realized by setting one of the signal transmission lines to high level (1) and the other to low level. For example, when the first line is at high level and the second line is at low level, the two-color lamp emits the first color of light (such as red); conversely, when the first line is at low level and the second line is at high level, the two-color lamp emits the second color of light (such as green). The single color flashing state is realized by periodically switching the level of a certain signal transmission line between high level and low level, that is, the FPGA needs to control (LED_FP_SYS_ERR_N, LED_FP_SYS_OK_N) to switch between (1,1) and (0,1) or (1,0). For example, when the first signal transmission line periodically switches between high and low levels, and the second line remains at a low level, the bicolor lamp will periodically emit the first color of light (such as red flashing). The bicolor alternating flashing state is achieved by switching the two signal transmission lines alternately between high and low levels, that is, the FPGA needs to control the signal (LED_FP_SYS_ERR_N, LED_FP_SYS_OK_N) to switch between (0,1) and (1,0). For example, when the first line is at a high level and the second line is at a low level, the bicolor lamp emits the first color of light (such as red); when the first line is at a low level and the second line is at a high level, the bicolor lamp emits the second color of light (such as green). By quickly switching, the bicolor alternating flashing is achieved.
[0054] However, since each signal transmission line requires an independent IO port control, a dual-color light, such as a power indicator light or a system health light, requires four signals. More IO ports mean that a higher-configuration control chip is required, which not only occupies more CPLD IO resources, increases development costs, and reduces the product's competitive advantage; but also, under the premise of equipment structure limitations, more pins are required to transmit signals, which increases the difficulty of selecting connectors from the panel to the motherboard.
[0055] In summary, how to meet all the indication status requirements of the two-color light with very few hardware resources, improve hardware utilization, reduce the difficulty of circuit board development, and save cable and connector costs has become an urgent problem to be solved.
[0056] Based on the above technical problems, the inventors found that in the process of studying the driving technology of the two-color lamp, the reverse push-pull circuit composed of the NMOS tube and the PMOS tube is combined with the control signal output by the control circuit to control the state of the two-color lamp connected in cascade by two light-emitting diodes, meet all the indication state requirements of the two-color lamp, save hardware resources, reduce the difficulty of circuit board development, and save the cost of cables and connectors. Based on this, the present application provides a two-color lamp driving circuit and device.
[0057] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0058] Figure 1 This is a structural diagram of a first embodiment of a dual-color lamp driving circuit provided in an embodiment of the present application, such as Figure 1 As shown in the figure, the core component of the drive circuit is a reverse push-pull circuit composed of NMOS tube and PMOS tube. Secondly, in order to fully demonstrate the working environment and function expansion of the drive circuit in practical applications, Figure 1 It also contains other key components connected to the reverse push-pull circuit: control circuit and bicolor lamp.
[0059] In the present application, the driving circuit of the bicolor lamp specifically includes: a reverse push-pull circuit composed of an NMOS tube and a PMOS tube; the input end of the reverse push-pull circuit is used to connect to the output signal end of the control circuit; the output end of the reverse push-pull circuit is used to connect to the bicolor lamp, and the two light-emitting diodes in the bicolor lamp are connected in a positive and negative connection manner; the reverse push-pull circuit controls the state of the bicolor lamp in combination with the control signal output by the control circuit.
[0060] MOS transistors are divided into P-type MOS tubes and N-type MOS tubes. NMOS refers to N-type metal oxide semiconductor, and transistors with this structure are called NMOS transistors; PMOS refers to P-type metal oxide semiconductor, and transistors with this structure are called PMOS transistors. NMOS tubes are composed of a P-type substrate and two N-type doped regions (source S and drain D), and the gate G is located between the source S and drain D, and is isolated from the substrate by a thin oxide insulating layer; PMOS tubes are composed of a P-type substrate and two N-type doped regions (source S and drain D), and the gate G is isolated from the substrate by a thin oxide insulating layer. The circuit composed of NMOS is called an NMOS integrated circuit, the circuit composed of PMOS is called a PMOS integrated circuit, and the complementary MOS circuit composed of NMOS and PMOS transistors is called a CMOS circuit.
[0061] The reverse push-pull circuit is a symmetrical circuit design that uses two transistors or field effect transistors connected together in an anti-phase manner. Based on the switching characteristics of the bipolar transistor, the two transistors are alternately turned on and off to achieve signal amplification or conversion, that is, when one transistor is turned on, the other transistor is turned off, thereby generating a clear polarity at the output end, avoiding circuit short circuit and power loss.
[0062] In the specific implementation of this solution, the D pole of NMOS and the D pole of PMOS are connected to build a reverse push-pull circuit. In this reverse push-pull circuit, the NMOS tube is used as a lower tube, the S pole is grounded, and the PMOS tube is used as an upper tube, the S pole is connected to the power supply; the G pole of the NMOS tube is connected to the G pole of the PMOS tube to form the input end of the reverse push-pull circuit; the D pole of the NMOS tube is connected to the D pole of the PMOS tube to form the output end of the reverse push-pull circuit to connect to the load.
[0063] The input end of the reverse push-pull circuit is used to connect the output signal end of the control circuit. Specifically, the control circuit, as a main control unit, generates a control signal to ensure the alternating conduction and cutoff of the two transistors NMOS and PMOS to output the logical inverse signal of the control signal. Optionally, the main control unit control circuit can be an FPGA, which generates a control signal HEALTH_LED, and the HEALTH_LED_NOT signal is the logical inverse signal of the HEALTH_LED control signal. The logic level of the HEALTH_LED_NOT signal is always opposite to that of the control signal HEALTH_LED.
[0064] In addition, the output end of the reverse push-pull circuit is used to connect the bicolor lamp, and the two light emitting diodes in the bicolor lamp are connected in a positive and negative connection manner.
[0065] As a common indicator light type, a two-color lamp is usually made of two light-emitting diodes of different colors, such as red and green, which are packaged together. By controlling the direction or size of the current, the two-color lamp can emit different colors. The connection modes of the light-emitting diodes in the two-color lamp include common anode, common cathode and positive and negative connection. In the common anode connection mode, the anodes (positive poles) of the two light-emitting diodes are connected together to form a common anode, and the cathode (negative pole) of each light-emitting diode is independently led out, and the two-color lamp is controlled by controlling the cathode; in the common cathode connection mode, the cathodes (negative poles) of the two light-emitting diodes are connected together to form a common cathode, and the anode (positive pole) of each light-emitting diode is independently led out, and the two-color lamp is controlled by controlling the anode; in the positive and negative connection mode, the anode (positive pole) of one light-emitting diode is connected to the cathode (negative pole) of the other light-emitting diode, and the cathode (negative pole) of one light-emitting diode is connected to the anode (positive pole) of the other light-emitting diode.
[0066] Specifically, the D pole of the NMOS tube of the reverse push-pull circuit is connected to the D pole of the PMOS tube to form the output end of the reverse push-pull circuit, and the output end is connected to the bicolor lamp. The anode of the first green light emitting diode in the bicolor lamp is connected to the cathode of the second red light emitting diode, and the cathode of the first light emitting diode is connected to the anode of the second light emitting diode.
[0067] The reverse push-pull circuit controls the state of the two-color lamp in combination with the control signal output by the control circuit. Specifically, the control circuit generates a control signal HEALTH_LED to control the alternating conduction and cutoff of the two transistors NMOS and PMOS to output a logical inverse signal HEALTH_LED_NOT of the control signal HEALTH_LED. The control circuit realizes all states of the two-color lamp by controlling the control signal HEALTH_LED.
[0068] The embodiment of the present application provides a dual-color lamp driving circuit, which combines a reverse push-pull circuit constructed by connecting the D pole of an NMOS tube and the D pole of a PMOS tube, with a control signal HEALTH_LED output by a control circuit, to control the state of a dual-color lamp with two positive and negative light-emitting diodes connected. The input end of the reverse push-pull circuit is connected to the output signal end of the control circuit, and the output end is connected to the dual-color lamp. Through the above method, it is realized that only one signal line is used to control the dual-color lamp, which meets all the indication state requirements of the dual-color lamp and saves hardware resources.
[0069] The physical devices involved in the above descriptions are exemplary in the figures and do not represent the only ones. This application does not specifically limit the specific forms and types of the specific devices involved.
[0070] Figure 2 This is a structural diagram of a second embodiment of a dual-color lamp driving circuit provided in the present application, such as Figure 2 As shown, the driving circuit also includes: a first current limiting resistor, a second current limiting resistor, a first grounding capacitor, a second grounding capacitor, a two-color lamp and a control circuit.
[0071] Among them, the drain of the PMOS tube is connected to one end of the first current limiting resistor, the drain of the NMOS tube is connected to one end of the second current limiting resistor, and the other end of the first current limiting resistor is connected to the other end of the second current limiting resistor to form the output end of the reverse push-pull circuit.
[0072] The current limiting resistor controls the current by increasing the total resistance of the circuit. Its main function is to limit the current passing through the circuit and protect transistors and other components from overcurrent damage.
[0073] Specifically, the first current limiting resistor and the second current limiting resistor in the driving circuit have the same resistance value. The two current limiting resistors can not only adjust the brightness of the two-color lamp by controlling the current, but also prevent the current of the NMOS tube and the PMOS tube from being too large during the raising process of the control signal HEALTH_LED, thereby causing damage to the MOS tube.
[0074] In the specific implementation of this solution, the resistance values of the first current limiting resistor and the second current limiting resistor need to be determined according to factors such as the rated current and voltage of the two-color lamp, the power supply voltage, and the safe operating range of the MOS tube. The resistance values of the first current limiting resistor and the second current limiting resistor can be the same or different, but in order to simplify the design and ensure current balance, the resistance values of the two current limiting resistors are usually selected to be the same. Optionally, the first current limiting resistor and the second current limiting resistor can both be selected to be a resistor with a resistance value of 150 ohms.
[0075] The input end of the reverse push-pull circuit is grounded through a first grounding capacitor; the output end of the reverse push-pull circuit is connected to the source of the NMOS tube through a second grounding capacitor.
[0076] Specifically, one end of the first grounding capacitor is connected to the input end of the reverse push-pull circuit of the circuit, and the other end is connected to the ground; one end of the second grounding capacitor is connected to the output end of the reverse push-pull circuit, and the other end is connected to the source of the NMOS tube and connected to the ground, which is used to filter out high-frequency noise in the circuit, stabilize the voltage and provide a low-impedance path for the AC signal, provide a stable signal environment for the circuit and ensure the effective transmission of the AC signal.
[0077] Among them, the anode of the first green light-emitting diode in the two-color lamp is connected to the cathode of the second red light-emitting diode, and then connected to the output signal end of the control circuit; the cathode of the first light-emitting diode is connected to the anode of the second light-emitting diode, and then connected to the output end of the reverse push-pull circuit.
[0078] The control circuit configures three-state gates at the input and output ends of the transmission line of the control signal.
[0079] A three-state gate refers to a gate circuit in which the output of a logic gate has a third state, a high-impedance state, in addition to the two states of high and low levels. It is used to indicate that when the control signal output by the control circuit is at a low level, the red light in the control bicolor light is on and the green light is off; when the control signal output by the control circuit is at a high level, the red light in the control bicolor light is off and the green light is on; when the control signal output by the control circuit is at a high-impedance state, the red light in the control bicolor light is off and the green light is off. The third high-impedance state is equivalent to the isolation state. Although the state of signal suspension should be avoided as much as possible in circuit design, the high-impedance state can actually be treated as M ohms of impedance to ground. As long as it is controlled, the bicolor can be controlled to achieve all states.
[0080] The following table is a mapping table of the control signal output by the control circuit and the state of the control bicolor light, as shown in the following table, specifically including:
[0081] Control signal HEALTH_LED Two-color light status 0 Red light on, green light off 1 Red light off, green light on Z Red light off and green light off
[0082] When the control signal output by the control circuit is 0, the red light in the dual-color light is turned on and the green light is turned off.
[0083] In the reverse push-pull circuit, the NMOS tube is used as the lower tube, the S pole is grounded, the voltage is a fixed value of 0V, and the G pole is used as the control pole. When the voltage V between the G pole and the S pole is GS Above a certain threshold V TH When the voltage V between the G and S poles is 1, the NMOS tube is turned on; the PMOS tube is used as the upper tube, the S pole is connected to the power supply, the voltage value is fixed, and the G pole is used as the control pole. GS Below a certain threshold V TH When the G pole of the MOS tube receives a high-level signal, the NMOS tube is turned on; when the G pole receives a low-level signal, the PMOS tube is turned on. After the control signal HEALTH_LED passes through the reverse push-pull circuit, it outputs its logical inversion signal HEALTH_LED_NOT. The logic level of the HEALTH_LED_NOT signal is always opposite to that of the control signal HEALTH_LED.
[0084] Specifically, when the control signal output by the control circuit is 0, the G pole of the MOS tube receives a low-level signal, the S pole of the NMOS tube is grounded, the voltage is 0V, and the voltage V between the G pole and the S pole is GS Not higher than a certain threshold V TH ; The S pole of the PMOS tube is connected to the power supply, and the voltage V between the G pole and the S pole GS Below a certain threshold V TH Therefore, when the control signal HEALTH_LED output by the control circuit is 0, the NMOS tube is turned off and the PMOS tube is turned on, controlling the red light of the dual-color lamp to be on and the green light to be off.
[0085] When the control signal output by the control circuit is 1, the red light in the dual-color light is turned off and the green light is turned on.
[0086] Specifically, when the control signal output by the control circuit is 1, the G pole of the MOS tube receives a high-level signal, the S pole of the NMOS tube is grounded, the voltage is 0V, and the voltage V between the G pole and the S pole is GS Above a certain threshold V THThe S pole of the PMOS tube is connected to the power supply, and the G pole voltage is close to the power supply voltage, which is equal to or higher than the S pole voltage. There is not enough voltage difference to form a conductive channel, and the current cannot be conducted between the S pole and the D pole. Therefore, when the control signal HEALTH_LED output by the control circuit is 1, the NMOS tube is turned on and the PMOS tube is turned off, and the red light in the control bicolor lamp is turned off and the green light is on.
[0087] When the control signal output by the control circuit is in the high impedance state Z, the red light in the dual-color light is controlled to be off and the green light is also off.
[0088] Specifically, when the control signal output by the control circuit is in the high impedance state Z, the conduction state of the MOS tube cannot be determined. Since the high impedance state is treated as M ohms of impedance to ground, the impedance to ground is infinite, and the current passing through the circuit is infinitely small. Therefore, when the control signal HEALTH_LED output by the control circuit is Z, the red light in the dual-color light is turned off, and the green light is turned off.
[0089] When the control signal output by the control circuit switches between 0 and 1, the red light and the green light in the dual-color light are controlled to flash alternately.
[0090] Specifically, when the control signal HEALTH_LED output by the control circuit is 0, the red light of the dual-color lamp is turned on and the green light is turned off; when the control signal HEALTH_LED output by the control circuit is 1, the red light of the dual-color lamp is turned off and the green light is turned on. Therefore, when the control signal output by the control circuit switches between 0 and 1, the red and green lights of the dual-color lamp are controlled to flash alternately.
[0091] When the control signal output by the control circuit switches between 0 and Z, the red light in the dual-color light is controlled to flash.
[0092] Specifically, when the control signal HEALTH_LED output by the control circuit is 0, the red light of the dual-color lamp is controlled to be on and the green light is off; when the control signal HEALTH_LED output by the control circuit is Z, the red light of the dual-color lamp is controlled to be off and the green light is off. Therefore, when the control signal output by the control circuit switches between 0 and Z, the red light of the dual-color lamp is controlled to flash.
[0093] When the control signal output by the control circuit switches between 1 and Z, the green light in the control bicolor light flashes.
[0094] Specifically, when the control signal HEALTH_LED output by the control circuit is 1, the red light in the dual-color light is turned off and the green light is turned on; when the control signal HEALTH_LED output by the control circuit is Z, the red light in the dual-color light is turned off and the green light is turned off. Therefore, when the control signal output by the control circuit switches between 1 and Z, the green light in the dual-color light is controlled to flash.
[0095] An embodiment of the present application provides a two-color lamp driving circuit, which also includes two current limiting resistors, two grounding capacitors, a two-color lamp and a control circuit. The current limiting resistors control the current by increasing the total resistance of the circuit, thereby adjusting the brightness of the two-color lamp while protecting the circuit from overcurrent damage; the grounding capacitors are used to filter out high-frequency noise in the circuit, stabilize the voltage, and provide a low-impedance path for AC signals, thereby providing a stable signal environment for the circuit and ensuring effective transmission of AC signals. In addition, the control circuit configures three-state gates at the input and output ends of the control signal transmission line respectively. When the control signal output by the control circuit is 0, the red light in the two-color light is controlled to be on and the green light is off; when the control signal output by the control circuit is 1, the red light in the two-color light is controlled to be off and the green light is on; when the control signal output by the control circuit is in the high-impedance state Z, the red light in the two-color light is controlled to be off and the green light is off; when the control signal output by the control circuit switches between 0 and 1, the red light and the green light in the two-color light are controlled to flash alternately; when the control signal output by the control circuit switches between 0 and Z, the red light in the two-color light flashes; when the control signal output by the control circuit switches between 1 and Z, the green light in the two-color light flashes. Through the above method, only one signal transmission line is used, all indication state requirements of the two-color light are met, and hardware resources are saved.
[0096] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, it includes: a processor, a memory and a communication interface;
[0097] Memory stores computer-executable instructions;
[0098] The processor executes the computer execution instructions stored in the memory, so that the processor executes the dual-color lamp driving circuit provided in the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0099] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0100] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A two-color lamp driving circuit, characterized in that: include: A reverse push-pull circuit composed of an NMOS tube and a PMOS tube; The input end of the reverse push-pull circuit is used to connect to the output signal end of the control circuit; The output end of the reverse push-pull circuit is used to connect to a bicolor lamp, and the two light emitting diodes in the bicolor lamp are connected in a positive-negative connection manner; The reverse push-pull circuit controls the state of the dual-color lamp in combination with the control signal output by the control circuit.
2. The circuit according to claim 1, characterized in that In the reverse push-pull circuit, the gate of the NMOS tube is connected to the gate of the PMOS tube to form an input end of the reverse push-pull circuit; The source of the PMOS tube is connected to a power supply, and the source of the NMOS tube is grounded; The drain of the PMOS tube is connected to the drain of the NMOS tube to form the output end of the reverse push-pull circuit.
3. The circuit according to claim 2, characterized in that The drain of the PMOS tube is connected to one end of the first current limiting resistor, the drain of the NMOS tube is connected to one end of the second current limiting resistor, and the other end of the first current limiting resistor is connected to the other end of the second current limiting resistor to form the output end of the reverse push-pull circuit.
4. The circuit according to claim 3, characterized in that The first current limiting resistor and the second current limiting resistor have the same resistance value.
5. The circuit according to claim 2, characterized in that The input end of the reverse push-pull circuit is grounded via a first grounding capacitor; The output end of the reverse push-pull circuit is connected to the source of the NMOS tube through a second grounding capacitor.
6. The circuit according to any one of claims 1 to 5, characterized in that: The bicolor lamp driving circuit also includes the bicolor lamp; The anode of the first light emitting diode of green light in the two-color lamp is connected to the cathode of the second light emitting diode of red light, and then connected to the output signal terminal of the control circuit; After the cathode of the first light emitting diode is connected to the anode of the second light emitting diode, it is connected to the output end of the reverse push-pull circuit.
7. The circuit according to any one of claims 1 to 5, characterized in that: The dual-color lamp driving circuit also includes the control circuit; the control circuit configures three-state gates at the input and output ends of the transmission line of the control signal.
8. The circuit according to claim 7, characterized in that When the control signal output by the control circuit is 0, the red light in the two-color light is controlled to be on and the green light is off; When the control signal output by the control circuit is 1, the red light in the two-color light is controlled to be off and the green light is on; When the control signal output by the control circuit is in a high impedance state Z, the red light in the two-color light is controlled to be off, and the green light is controlled to be off; When the control signal output by the control circuit switches between 0 and 1, the red light and the green light in the two-color light are controlled to flash alternately; When the control signal output by the control circuit switches between 0 and Z, the red light in the dual-color light is controlled to flash; When the control signal output by the control circuit switches between 1 and Z, the green light in the dual-color light is controlled to flash.
9. The circuit according to claim 8, characterized in that When the control signal output by the control circuit is in the high impedance state Z, the red light in the dual-color light is controlled to be off, and the green light is also controlled to be off.
10. An electronic device, characterized in that: include: Processor, memory and communication interface; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor executes the dual-color lamp driving circuit according to any one of claims 1 to 9.
Citation Information
Cited By
Control method, device and equipment of Ethernet double-color lamp
CN121645615A
Method, device and equipment for controlling ethernet double-color lamp
CN121645615B
