LED lamp control device for multiplexing signal output pin and electric appliance

By designing the LED lamp control device for multiplexed signal output pins, the diode and transistor components in the control circuit are used to solve the problems of microcontroller resource waste and cost increase, and flexible control and resource saving of two LEDs are achieved.

CN221948383UActive Publication Date: 2024-11-01VATTI CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202323601266.5
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2023-12-27
Publication Date
2024-11-01
Estimated Expiration
2033-12-27

AI Technical Summary

Technical Problem

In the prior art, multiple I/O port resources are required when controlling LED lights by microcontrollers, resulting in problems of waste of resources and increased costs.

Method used

A LED lamp control device with multiplexed signal output pin is designed. The control circuit uses one signal output pin to realize the on-off control of two LEDs, including diodes, NPN transistors and PNP transistors and other components to realize the signal. Multiplexing of outputs.

Benefits of technology

It effectively reduces the structural complexity and cost of the control device, saves microcontroller resources, and realizes flexible control of two LEDs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221948383U_ABST
    Figure CN221948383U_ABST
Patent Text Reader

Abstract

The utility model relates to a signal output pin multiplexing LED lamp control device and an electric appliance, and belongs to the technical field of electric appliance equipment, the control device comprises a control circuit, and a main control chip, a direct current power supply, a first LED and a second LED which are respectively and electrically connected with the control circuit; the direct-current power supply is electrically connected with the main control chip; the control circuit is electrically connected with the first LED and the second LED respectively; one signal output pin of the main control chip is electrically connected with the control circuit, so that the main control chip sends an electric signal to the control circuit; according to the control device, one signal output pin of the main control chip can be reused to control the on-off of the first LED and the second LED, the signal output pin of the main control chip does not need to be additionally occupied, and a circuit does not need to be additionally arranged for the signal output pin, so that the structural complexity of the control device is effectively reduced; meanwhile, a single-chip microcomputer with fewer signal output pins can be selected as a main control chip, so that the cost is effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model belongs to the technical field of electrical equipment, and in particular relates to an LED lamp control device with multiplexed signal output pins and an electrical appliance. Background Art

[0002] In the prior art, if a single-chip microcomputer (main control chip MCU) wants to control the breathing of an LED light, it needs to use an I / O port (signal output pin TX) to output a PWM drive signal for control. If it wants to control another LED light to be always on at the same time, it needs to use another I / O port to output a high or low level for control. When the I / O port resources of the single-chip microcomputer are tight, it is necessary to face the problem of selecting a single-chip microcomputer with more pins for an extra I / O port (generally, the more I / O ports a single-chip microcomputer has, the higher the price of the single-chip microcomputer), which results in the problem of excessive resources of the selected single-chip microcomputer, resulting in waste of resources and increased costs. Utility Model Content

[0003] To this end, the utility model provides an LED lamp control device and an appliance with multiplexed signal output pins to solve the problem that the prior art requires two I / O ports of a microcontroller when controlling two LEDs, resulting in excess resources of the selected microcontroller, leading to resource waste and increased costs.

[0004] In order to achieve the above purpose, the utility model adopts the following technical solutions:

[0005] In a first aspect, the utility model provides an LED lamp control device with multiplexed signal output pins, the control device comprising:

[0006] A control circuit and a main control chip, a DC power supply, a first LED and a second LED respectively electrically connected to the control circuit;

[0007] The DC power supply is electrically connected to the main control chip;

[0008] The control circuit is electrically connected to the first LED and the second LED respectively; a signal output pin of the main control chip is electrically connected to the control circuit, so that the main control chip sends an electrical signal to the control circuit.

[0009] Furthermore, the control circuit comprises:

[0010] A diode, a third resistor, a sixth resistor, a first capacitor, an NPN transistor and a PNP transistor;

[0011] The signal output pin of the main control chip is electrically connected to the cathode of the diode, the base of the NPN transistor and the first end of the third resistor respectively;

[0012] The emitter of the NPN transistor is electrically connected to the second end of the third resistor and the ground end respectively;

[0013] The collector of the NPN transistor is electrically connected to the cathode of the first LED; the anode of the first LED is electrically connected to the positive electrode of the DC power supply;

[0014] The anode of the diode is electrically connected to the base of the PNP transistor, the first end of the first capacitor and the first end of the sixth resistor respectively;

[0015] The emitter of the PNP transistor is electrically connected to the second end of the first capacitor, the second end of the sixth resistor and the positive electrode of the DC power supply respectively;

[0016] The collector of the PNP transistor is electrically connected to the anode of the second LED; the cathode of the second LED is electrically connected to the ground terminal.

[0017] Furthermore, the control circuit further includes: a first resistor, and the first resistor is arranged between the first LED and the positive electrode of the DC power supply.

[0018] Furthermore, the control circuit further includes: a second resistor, and the second resistor is arranged between the collector of the PNP transistor and the anode of the second LED.

[0019] Furthermore, the control circuit also includes: a fourth resistor, which is arranged between the cathode of the diode and the first end of the third resistor and the base of the NPN transistor; the first end of the fourth resistor is electrically connected to the cathode of the diode and the signal output pin of the main control chip respectively; the second end of the fourth resistor is electrically connected to the first end of the third resistor and the base of the NPN transistor respectively.

[0020] Furthermore, the control circuit also includes: a fifth resistor, which is arranged between the anode of the diode and the base of the PNP transistor, the first end of the first capacitor and the first end of the sixth resistor; the first end of the fifth resistor is electrically connected to the anode of the diode; the second end of the fifth resistor is electrically connected to the base of the PNP transistor, the first end of the first capacitor and the first end of the sixth resistor.

[0021] Furthermore, the NPN transistor is NMOS.

[0022] Furthermore, the PNP transistor is a PMOS.

[0023] Furthermore, the diode is a third LED.

[0024] In a second aspect, the utility model provides an electrical appliance, comprising:

[0025] Any of the above LED lamp control devices.

[0026] The utility model adopts the above technical solution, which has at least the following beneficial effects:

[0027] The present application provides an LED lamp control device and an electrical appliance with multiplexed signal output pins, which are provided with a control circuit and a main control chip, a DC power supply, a first LED and a second LED respectively electrically connected to the control circuit; the DC power supply is electrically connected to the main control chip; the control circuit is electrically connected to the first LED and the second LED respectively; a signal output pin of the main control chip is electrically connected to the control circuit, so that the main control chip sends an electrical signal to the control circuit, and a signal output pin of the main control chip can be reused to control the on and off of the first LED and the second LED, without occupying additional signal output pins of the main control chip and setting additional circuits for the signal output pins, thereby effectively reducing the structural complexity of the control device, and at the same time, a single-chip microcomputer with fewer signal output pins can be selected as the main control chip, effectively reducing the cost.

[0028] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the embodiments of the utility model or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the utility model. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0030] Figure 1 It is a schematic block diagram of an LED lamp control device with multiplexed signal output pins shown in an exemplary embodiment of the utility model;

[0031] Figure 2 is a circuit diagram of a control circuit shown in an exemplary embodiment of the utility model;

[0032] Figure 3 is a circuit diagram of a control circuit shown in another exemplary embodiment of the present utility model;

[0033] Figure 4 is a circuit diagram of a control circuit shown in another exemplary embodiment of the present utility model;

[0034] Figure 5 is a circuit diagram of a control circuit shown in another exemplary embodiment of the present utility model;

[0035] Figure 6 is a circuit diagram of a control circuit shown in another exemplary embodiment of the present utility model;

[0036] The utility model is further described below in conjunction with the accompanying drawings and specific implementation methods. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solution and advantages of the utility model clearer, the technical solution of the utility model will be described in detail below. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other implementation methods obtained by ordinary technicians in this field without creative work belong to the scope of protection of the utility model.

[0038] In the prior art, to control the breathing of LED lights with a single-chip microcomputer, an I / O port needs to be used to output a PWM drive signal for control. If another LED light needs to be constantly lit at the same time, another I / O port needs to be used to output a high or low level for control. When the I / O port resources of the single-chip microcomputer are limited, there is a problem of selecting a single-chip microcomputer with more pins for an extra I / O port (generally, the more I / O ports a single-chip microcomputer has, the higher the price of the single-chip microcomputer is). This results in the problem of excessive resources of the selected single-chip microcomputer, resulting in waste of resources and increased costs.

[0039] The utility model mainly introduces an LED lamp control circuit with a multiplexed I / O port. The circuit can realize breathing control of one LED lamp and constant light control of another LED lamp by using only one single-chip computer I / O port, thereby saving single-chip computer resources and realizing a streamlined design of the control circuit. Specifically, an LED lamp control device and an electrical appliance with a multiplexed signal output pin are provided, which are provided with a control circuit and a main control chip, a DC power supply, a first LED and a second LED respectively electrically connected to the control circuit; the DC power supply is electrically connected to the main control chip; the control circuit is respectively electrically connected to the first LED and the second LED; a signal output pin of the main control chip is electrically connected to the control circuit, so that the main control chip sends an electrical signal to the control circuit, thereby realizing the control of the first LED and the second LED by multiplexing a signal output pin of the main control chip, without additionally occupying the signal output pin of the main control chip and setting an additional circuit for the signal output pin, thereby effectively reducing the structural complexity of the control device and realizing a streamlined design of the control circuit. At the same time, a single-chip computer with fewer signal output pins can be selected as the main control chip, thereby effectively reducing the cost.

[0040] The control device of the present utility model is described below through specific embodiments.

[0041] See also Figure 1 , Figure 1is a schematic block diagram of an LED lamp control device with multiplexed signal output pins shown in an exemplary embodiment of the utility model, see Figure 1 , the control device comprises:

[0042] A control circuit 1 and a main control chip 2, a DC power supply 3, a first LED 4 (LED1) and a second LED 5 (LED2) electrically connected to the control circuit 1 respectively;

[0043] The DC power supply 3 is electrically connected to the main control chip 2;

[0044] The control circuit 1 is electrically connected to the first LED 4 (LED 1) and the second LED 5 (LED 2) respectively; a signal output pin of the main control chip 2 is electrically connected to the control circuit 1 so that the main control chip 2 sends an electrical signal to the control circuit 1.

[0045] It should be noted that the technical solution provided in this embodiment is often used in household electrical appliances in practice. Applicable scenarios include but are not limited to: range hoods, air conditioners, sweeping robots, televisions, microwave ovens, vacuum cleaners, washing machines, refrigerators, ovens, humidifiers, soybean milk machines, electric pressure cookers, induction cookers and other electrical appliances that need to reuse the main control chip pins to control dual-channel LED lights.

[0046] It can be understood that the control device provided in this embodiment is provided with a control circuit and a main control chip, a DC power supply, a first LED (LED1) and a second LED (LED2) which are electrically connected to the control circuit respectively; the DC power supply is electrically connected to the main control chip; the control circuit is electrically connected to the first LED (LED1) and the second LED (LED2) respectively; a signal output pin of the main control chip is electrically connected to the control circuit, so that the main control chip sends an electrical signal to the control circuit, and a signal output pin of the main control chip can be reused to control the on and off of the first LED (LED1) and the second LED (LED2), without occupying additional signal output pins of the main control chip and setting additional circuits for the signal output pins, which effectively reduces the structural complexity of the control device. At the same time, a single-chip microcomputer with fewer signal output pins can be selected as the main control chip, which effectively reduces the cost.

[0047] In one embodiment, see Figure 2 , Figure 2 is a circuit diagram of a control circuit shown in an exemplary embodiment of the utility model, see Figure 2 , the control circuit includes: a diode D1, a third resistor R3, a sixth resistor R6, a first capacitor C1, an NPN transistor Q1 and a PNP transistor Q2;

[0048] The signal output pin TX of the main control chip MCU is electrically connected to the cathode of the diode D1, the base of the NPN transistor Q1 and the first end of the third resistor R3 respectively; the emitter of the NPN transistor Q1 is electrically connected to the second end of the third resistor R3 and the ground terminal GND respectively; the collector of the NPN transistor Q1 is electrically connected to the cathode of the first LED (LED1); the anode of the first LED (LED1) is electrically connected to the positive electrode VCC of the DC power supply; the anode of the diode D1 is electrically connected to the base of the PNP transistor Q2, the first end of the first capacitor R1 and the first end of the sixth resistor R6 respectively; the emitter of the PNP transistor Q2 is electrically connected to the second end of the first capacitor C1, the second end of the sixth resistor R6 and the positive electrode VCC of the DC power supply respectively; the collector of the PNP transistor Q2 is electrically connected to the anode of the second LED (LED2); and the cathode of the second LED (LED2) is electrically connected to the ground terminal GND.

[0049] It should be noted that the control circuit can realize three lighting modes of LED1 and LED2.

[0050] Specifically, in lighting mode one, the microcontroller (main control chip MCU) controls the signal output pin TX to output a low level. At this time, the base of the Q1 transistor is at a low level, the B and E poles of the Q1 transistor are not conducting, and the Q1 transistor is in a cut-off state. At this time, no current passes through LED1, and the LED1 lamp is not lit; at the same time, because the output signal of the signal output pin TX is at a low level, the level at the base of the Q2 transistor is also pulled low, and the E and B poles of Q2 are conducting, then the Q2 transistor is turned on, and the VCC power supply current flows through the E and C poles of Q2 to the LED2 lamp, and finally flows into the GND system to form a loop, and the LED2 lamp is lit, realizing that the signal output pin TX of the microcontroller (main control chip MCU) outputs a low level to control the lighting of the LED2 lamp while also controlling the extinguishing of the LED1 lamp.

[0051] Specifically, lighting mode 2: the single-chip microcomputer (main control chip MCU) controls the signal output pin TX to output a PWM signal. At this time, the B and E poles of the Q1 transistor can be turned on and off at a fixed frequency following the PWM signal, and the C and E poles of the Q1 transistor are also turned on and off at a fixed frequency. When turned on, the current flows from VCC through the LED1 lamp, and then through the C and E poles of the Q1 transistor to the GND system to form a loop. The LED1 lamp can achieve a breathing lighting effect through this PWM drive signal; at the same time, because the output signal of the signal output pin TX is a PWM signal, that is, There is a high-frequency high and low level signal at the cathode of the D1 diode. This high-frequency high and low level signal can be absorbed and filtered out by the absorption circuit composed of the R6 resistor and the C1 capacitor, which can ensure that the level at the base of the Q2 transistor remains in a low state. Then Q2 is turned on, and the VCC power supply current flows through the E and C poles of Q2 to the LED2 red light, and finally flows into the GND system to form a loop, and the LED2 lamp lights up, realizing that the signal output pin TX of the microcontroller (main control chip MCU) outputs a PWM signal to simultaneously control the breathing of the LED1 lamp and the constant lighting of the LED2 lamp.

[0052] Specifically, lighting mode three: the single-chip microcomputer (main control chip MCU) controls the signal output pin TX to output a high level. At this time, the B and E poles of the Q1 transistor are turned on, and the C and E poles of the Q1 transistor are also turned on. The current flows from VCC to the LED1 lamp, and then forms a loop through the C and E poles of the Q1 transistor to the GND system ground, and the LED1 lamp is lit; at the same time, because the output signal of the signal output pin TX is a high level, that is, the high level at the cathode of the D1 diode, the E and B poles of the Q2 transistor cannot be turned on, the Q2 transistor is cut off, and the VCC power supply current cannot flow through the E and C poles of Q2 to the LED2 lamp, and the LED2 lamp does not light up, so that the single-chip microcomputer (main control chip MCU) signal output pin TX outputs a high level to control the LED1 lamp to be always on while also ensuring that the LED2 lamp is off.

[0053] It should be noted that R3 is the base pull-down resistor of Q1, R6 is the base pull-up resistor of Q2, C1 is the base absorption capacitor of Q2, and D1 is a unidirectional diode.

[0054] It can be understood that the technical solution provided in this embodiment controls two LED lights through one signal output pin of the main control chip to achieve three display states of the two LED lights.

[0055] In one embodiment, see Figure 3 , Figure 3 is a circuit diagram of a control circuit shown in another exemplary embodiment of the present invention, see Figure 3 The control circuit further includes: a first resistor R1, which is arranged between the first LED (LED1) and the positive electrode VCC of the DC power supply.

[0056] It should be noted that R1 is the current limiting resistor of LED1.

[0057] It can be understood that the control device provided in this embodiment sets a current limiting resistor for one LED lamp, which can provide a guarantee for the normal operation of the LED lamp.

[0058] In one embodiment, see Figure 4 , Figure 4 is a circuit diagram of a control circuit shown in another exemplary embodiment of the present invention, see Figure 4 The control circuit further includes: a second resistor R2, which is arranged between the collector of the PNP transistor Q2 and the anode of the second LED (LED2).

[0059] It should be noted that R2 is the current limiting resistor of LED2.

[0060] It can be understood that the control device provided in this embodiment sets a current limiting resistor for one LED lamp, which can provide a guarantee for the normal operation of the LED lamp.

[0061] In one embodiment, see Figure 5 , Figure 5 is a circuit diagram of a control circuit shown in another exemplary embodiment of the present invention, see Figure 5 The control circuit also includes: a fourth resistor R4, which is arranged between the cathode of the diode D1 and the first end of the third resistor R3 and the base of the NPN transistor Q1; the first end of the fourth resistor R4 is electrically connected to the cathode of the diode D1 and the signal output pin TX of the main control chip MCU respectively; the second end of the fourth resistor R4 is electrically connected to the first end of the third resistor R3 and the base of the NPN transistor Q1 respectively.

[0062] It should be noted that R4 is the base current limiting resistor of Q1.

[0063] It can be understood that the technical solution provided in this embodiment provides a current limiting resistor for the NPN transistor, which can provide a guarantee for the normal operation of the NPN transistor.

[0064] In one embodiment, see Figure 6 , Figure 6 is a circuit diagram of a control circuit shown in another exemplary embodiment of the present invention, see Figure 6 The control circuit also includes: a fifth resistor R5, which is arranged between the anode of the diode D1 and the base of the PNP transistor Q2, the first end of the first capacitor C1 and the first end of the sixth resistor R6; the first end of the fifth resistor R5 is electrically connected to the anode of the diode D1; the second end of the fifth resistor R5 is electrically connected to the base of the PNP transistor Q2, the first end of the first capacitor C1 and the first end of the sixth resistor R6.

[0065] It should be noted that R5 is the base current limiting resistor of Q2.

[0066] It can be understood that the technical solution provided in this embodiment provides a current limiting resistor for the PNP type transistor, which can provide a guarantee for the normal operation of the PNP type transistor.

[0067] In one embodiment, the NPN transistor is an NMOS, and the control logic implemented by the NMOS in the control circuit is the same as all the control logic implemented by the NPN transistor in the control circuit.

[0068] In one embodiment, the PNP transistor is a PMOS, and the control logic implemented by the PMOS in the control circuit is the same as all the control logic of the PNP transistor in the control circuit.

[0069] In one embodiment, the diode is the third LED, and the three lighting modes at this time all add the lighting state of the third LED; specifically: lighting mode one, the third LED is normally on; lighting mode two, the third LED flashes, which is a breathing light state; lighting mode three, the third LED is off.

[0070] In one embodiment, an electrical appliance is provided, comprising any one of the above-mentioned LED lamp control devices.

[0071] It should be noted that the LED light control device provides the appliance with multiple working status indications for the user to view.

[0072] It can be understood that the electrical appliance provided in this embodiment is provided with a control circuit and a main control chip, a DC power supply, a first LED and a second LED which are electrically connected to the control circuit respectively; the DC power supply is electrically connected to the main control chip; the control circuit is electrically connected to the first LED and the second LED respectively; a signal output pin of the main control chip is electrically connected to the control circuit, so that the main control chip sends an electrical signal to the control circuit, and a signal output pin of the main control chip can be reused to control the lighting of the first LED and the second LED, without occupying additional signal output pins of the main control chip and setting additional circuits for the signal output pins, which effectively reduces the structural complexity of the control device. At the same time, a single-chip microcomputer with fewer signal output pins can be selected as the main control chip, which effectively reduces the cost.

[0073] In the description of this specification, the description of reference terms such as "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the utility model. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. The above-mentioned embodiments only express several implementation methods of the present application, and the description thereof is relatively specific and detailed, but it cannot be understood as a limitation on the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, without departing from the concept of the present application, several variations and improvements can be made, which all belong to the scope of protection of the present application. Therefore, the scope of protection of the patent of this application shall be based on the attached claims.

[0074] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0075] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0076] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

[0077] Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations of the present invention. Ordinary technicians in the field can change, modify, replace and modify the above embodiments within the scope of the present invention.

Claims

1. An LED lamp control device with multiplexed signal output pins, characterized in that: The control device comprises: A control circuit and a main control chip, a DC power supply, a first LED and a second LED respectively electrically connected to the control circuit; The DC power supply is electrically connected to the main control chip; The control circuit is electrically connected to the first LED and the second LED respectively; a signal output pin of the main control chip is electrically connected to the control circuit, so that the main control chip sends an electrical signal to the control circuit.

2. The control device according to claim 1, characterized in that: The control circuit comprises: A diode, a third resistor, a sixth resistor, a first capacitor, an NPN transistor and a PNP transistor; The signal output pin of the main control chip is electrically connected to the cathode of the diode, the base of the NPN transistor and the first end of the third resistor respectively; The emitter of the NPN transistor is electrically connected to the second end of the third resistor and the ground end respectively; The collector of the NPN transistor is electrically connected to the cathode of the first LED; the anode of the first LED is electrically connected to the positive electrode of the DC power supply; The anode of the diode is electrically connected to the base of the PNP transistor, the first end of the first capacitor and the first end of the sixth resistor respectively; The emitter of the PNP transistor is electrically connected to the second end of the first capacitor, the second end of the sixth resistor and the positive electrode of the DC power supply respectively; The collector of the PNP transistor is electrically connected to the anode of the second LED; the cathode of the second LED is electrically connected to the ground terminal.

3. The control device according to claim 2, characterized in that: The control circuit further includes: a first resistor, which is arranged between the first LED and the positive electrode of the DC power supply.

4. The control device according to claim 3, characterized in that: The control circuit further includes: a second resistor, which is arranged between the collector of the PNP transistor and the anode of the second LED.

5. The control device according to claim 4, characterized in that: The control circuit also includes: a fourth resistor, which is arranged between the cathode of the diode and the first end of the third resistor and the base of the NPN transistor; the first end of the fourth resistor is electrically connected to the cathode of the diode and the signal output pin of the main control chip respectively; the second end of the fourth resistor is electrically connected to the first end of the third resistor and the base of the NPN transistor respectively.

6. The control device according to claim 5, characterized in that: The control circuit also includes: a fifth resistor, which is arranged between the anode of the diode and the base of the PNP transistor, the first end of the first capacitor and the first end of the sixth resistor; the first end of the fifth resistor is electrically connected to the anode of the diode; the second end of the fifth resistor is electrically connected to the base of the PNP transistor, the first end of the first capacitor and the first end of the sixth resistor.

7. The control device according to claim 2, characterized in that: The NPN transistor is NMOS.

8. The control device according to claim 2, characterized in that: The PNP transistor is a PMOS.

9. The control device according to claim 2, characterized in that: The diode is a third LED.

10. An electrical appliance, characterized in that: include: The LED lamp control device as claimed in any one of claims 1 to 9.