Dual color control LED circuit
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- GANZHOU XUANYI TECH CO LTD
- Filing Date
- 2024-09-27
- Publication Date
- 2026-08-07
AI Technical Summary
[0002]LED由于环保、寿命长、光电效率高等众多优点,近年来在需要照明控制的各行业中得以快速发展,在进行照明警示中,现有技术中的LED电路一般采用双色闪烁的报警方式,一般由555集成芯片进行闪烁控制,但是由于555集成芯片的控制手段有限,导致双色LED灯仅进行闪烁警示工作,双色LED警示模式较少,导致LED电路的智能度较低,因此有待改进
[0022]与现有技术相比,本实用新型的有益效果是:本实用新型双色控制LED电路由LED驱动模块通过第一模式控制模块配合第一模式控制模块在需要第一LED模块和第二LED模块单独进行闪烁工作时,控制第一LED模块和第二LED模块单独进行闪烁照明,在需要第一LED模块和第二LED模块共同进行闪烁工作时,改变第一模式控制模块的信号传输通路,实现第一LED模块和第二LED模块共同闪烁工作,在第一LED模块和第二LED模块进行单独闪烁状态下,由第二模式控制模块可控制第一LED模块和第二LED模块共同进行常量工作,提高双色控制LED电路的警示功能效果,提高双色控制LED电路的智能度。
Smart Images

Figure CN224610957U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of LED control technology, specifically a dual-color control LED circuit. Background Technology
[0002] Due to its numerous advantages such as environmental friendliness, long lifespan, and high photoelectric efficiency, LEDs have seen rapid development in various industries requiring lighting control in recent years. In lighting warnings, existing LED circuits generally use a dual-color flashing alarm method, typically controlled by a 555 timer integrated chip. However, due to the limited control capabilities of the 555 timer, dual-color LEDs only perform flashing warnings, resulting in a limited number of dual-color LED warning modes and low intelligence in the LED circuits, thus requiring improvement. Summary of the Invention
[0003] This utility model provides a dual-color controlled LED circuit to solve the problems mentioned in the background art.
[0004] To achieve the above objectives, this utility model provides the following technical solution:
[0005] A dual-color controlled LED circuit includes: a power supply module, an LED driver module, a first mode control module, a second mode control module, a first LED module, and a second LED module.
[0006] The power module is used to receive DC power, perform voltage regulation and filtering on the DC power, and output the first power.
[0007] The LED driver module is connected to the power supply module and is used to receive the first electrical energy, output a first control signal and a second control signal at regular intervals, and output the first control signal and the second control signal cyclically.
[0008] The first mode control module is connected to the first mode control module, the power supply module, the first LED module, the second LED module, and the second mode control module. It is used to receive first electrical energy. When the first LED module and the second LED module need to blink independently, it transmits the received first control signal to the first LED module and the second mode control module, and transmits the received second control signal to the second LED module and the second mode control module. When the first LED module and the second LED module need to blink together, it transmits the first control signal to the first LED module and the second LED module.
[0009] The second mode control module is connected to the power module, the first LED module and the second LED module. It is used to receive the first electrical energy and, when the first LED module and the second LED module need to work together to perform lighting, transmit the received first control signal to the second LED module and transmit the received second control signal to the first LED module.
[0010] The first LED module is connected to the power module and is used to receive first electrical energy and perform lighting work when it receives a first control signal or a second control signal.
[0011] The second LED module is connected to the power module and is used to receive the first electrical energy and to perform lighting work when it receives the first control signal or the second control signal.
[0012] As a further embodiment of this utility model: the power supply module includes a power interface, a first capacitor, a first voltage regulator, and a second capacitor; the LED driving module includes a first resistor, a second resistor, a first potentiometer, a third capacitor, a fourth capacitor, and a first controller;
[0013] Preferably, the second terminal of the first voltage regulator is connected to the first terminal of the second capacitor, the fourth and eighth terminals of the first controller, and is connected to one end of the second resistor and the seventh terminal of the first controller through the first resistor. The first terminal of the power interface is connected to the third terminal of the first voltage regulator and is connected to the second terminal of the power interface, the first terminal of the first voltage regulator, the second terminal of the second capacitor, one end of the third capacitor, and the first terminal of the first controller through the first capacitor. The other terminal of the second resistor is connected to one end of the first potentiometer. The other terminal and the slider terminal of the first potentiometer are both connected to the other terminal of the third capacitor, the second terminal and the sixth terminal of the first controller. The fifth terminal of the first controller is grounded through the fourth capacitor. The third terminal of the first controller is connected to the first mode control module.
[0014] As a further embodiment of this utility model: the first mode control module includes a first analog switch, a third resistor, a first push-button switch, a first diode, a second diode, a third diode, and a fourth diode;
[0015] Preferably, the fifth terminal of the first analog switch is connected to the first stationary terminal of the first push-button switch, the sixth terminal of the first analog switch is connected to the second stationary terminal of the first push-button switch, the first moving terminal of the first push-button switch is connected to the second moving terminal of the first push-button switch and connected to the first terminal of the second capacitor through the third resistor, the third and eighth terminals of the first analog switch are both connected to the third terminal of the first controller, the fourth terminal of the first analog switch is connected to the anode of the first diode, the anode of the second diode and the second mode control module, the cathode of the first diode is connected to the cathode of the third diode and the first LED module, the cathodes of the second diode and the cathodes of the fourth diode are both connected to the second LED module, and the anode of the third diode is connected to the anode of the fourth diode and the ninth terminal of the first analog switch.
[0016] As a further embodiment of this utility model: the first LED module includes a fourth resistor, a first switching transistor, a fifth resistor, a first power transistor, and a first LED lamp;
[0017] Preferably, the emitter of the first switching transistor is connected to the first terminal of the first LED and the first terminal of the second capacitor through the fourth resistor, the collector of the first switching transistor is connected to the gate of the first power transistor and the cathode of the first diode and grounded through the fifth resistor, the base of the first switching transistor is connected to the second mode control module, the source of the first power transistor is grounded, and the drain of the first power transistor is connected to the second terminal of the first LED.
[0018] As a further embodiment of this utility model: the second LED module includes a sixth resistor, a second switching transistor, a second power transistor, and a seventh resistor;
[0019] Preferably, the emitter of the second switching transistor is connected to the first terminal of the second LED and the first terminal of the second capacitor through the sixth resistor, the collector of the second switching transistor is connected to the gate of the second power transistor, the cathode of the fourth diode and the second mode control module and grounded through the seventh resistor, the source of the second power transistor is grounded, the drain of the second power transistor is connected to the second terminal of the second LED, and the base of the second switching transistor is connected to the cathode of the second diode.
[0020] As a further embodiment of this utility model: the second mode control module includes a second analog switch, a second push-button switch, an eighth resistor, a sixth diode, and a seventh diode;
[0021] Preferably, the moving end of the second push-button switch is connected to the second end of the first voltage regulator through the eighth resistor, the stationary end of the second push-button switch is connected to the fifth and sixth ends of the second analog switch, the third and eighth ends of the second analog switch are both connected to the fourth end of the first analog switch, the fourth end of the second analog switch is connected to the anode of the sixth diode, the ninth end of the second analog switch is connected to the anode of the seventh diode, the cathode of the seventh diode is connected to the gate of the second power transistor, and the sixth diode is connected to the base of the first switching transistor.
[0022] Compared with the prior art, the beneficial effects of this utility model are as follows: The dual-color control LED circuit of this utility model uses an LED driving module in conjunction with a first mode control module. When the first LED module and the second LED module need to blink independently, the first mode control module controls the first LED module and the second LED module to blink independently. When the first LED module and the second LED module need to blink together, the signal transmission path of the first mode control module is changed to enable the first LED module and the second LED module to blink together. In the state where the first LED module and the second LED module blink independently, the second mode control module can control the first LED module and the second LED module to work together in a constant state, thereby improving the warning function effect of the dual-color control LED circuit and enhancing the intelligence of the dual-color control LED circuit. Attached Figure Description
[0023] To more clearly illustrate the technical solutions of the embodiments of this utility model, the drawings used in the description of the embodiments of this utility model will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this utility model. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 This is a schematic block diagram of a dual-color controlled LED circuit provided as an example of the present invention.
[0025] Figure 2 A circuit diagram of a dual-color controlled LED circuit provided for this utility model embodiment.
[0026] Figure 3 A connection circuit diagram of the second mode control module provided for this utility model embodiment. Detailed Implementation
[0027] The technical solutions of the present utility model will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of the present utility model, and not all embodiments. Based on the embodiments of the present utility model, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present utility model.
[0028] In one embodiment, see Figure 1 A dual-color controlled LED circuit includes: a power supply module 1, an LED driver module 2, a first mode control module 3, a second mode control module 4, a first LED module 5, and a second LED module 6.
[0029] Specifically, power module 1 is used to receive DC power, perform voltage regulation and filtering on the DC power, and output the first power.
[0030] LED driver module 2 is connected to power module 1 and is used to receive first electrical energy, output a first control signal and a second control signal at timed intervals, and output the first control signal and the second control signal cyclically.
[0031] The first mode control module 3 is connected to the first mode control module 3, the power module 1, the first LED module 5, the second LED module 6, and the second mode control module 4. It is used to receive the first electrical energy. When the first LED module 5 and the second LED module 6 need to blink independently, it transmits the received first control signal to the first LED module 5 and the second mode control module 4, and transmits the received second control signal to the second LED module 6 and the second mode control module 4. When the first LED module 5 and the second LED module 6 need to blink together, it transmits the first control signal to the first LED module 5 and the second LED module 6.
[0032] The second mode control module 4 is connected to the power module 1, the first LED module 5 and the second LED module 6. It is used to receive the first electrical energy and transmit the received first control signal to the second LED module 6 and the received second control signal to the first LED module 5 when the first LED module 5 and the second LED module 6 need to work together to perform lighting.
[0033] The first LED module 5 is connected to the power module 1 and is used to receive the first electrical energy and perform lighting work when it receives the first control signal or the second control signal.
[0034] The second LED module 6 is connected to the power module 1 and is used to receive the first electrical energy and to perform lighting work when it receives the first control signal or the second control signal.
[0035] In a specific embodiment, the power module 1 can be a power circuit composed of a power interface, capacitors, and a voltage regulator, capable of receiving DC power, which can be provided by a battery, and the DC power is regulated and regulated; the LED driver module 2 can be an LED driver circuit composed of a 555 integrated chip, resistors, capacitors, etc., capable of timed operation, and timed output of a first control signal and a second control signal, with the first and second control signals output cyclically, the first control signal being a high-level signal and the second control signal being a low-level signal; the first mode control module 3 can be a mode switch, The first mode control circuit, composed of push-button switches, diodes, etc., can control the signal transmission path; the second mode control module 4 can be a second mode control circuit composed of mode switches, diodes, push-button switches, etc., which can control the signal transmission path; the first LED module 5 can be a first LED circuit composed of transistors, field-effect transistors, LEDs, and resistors for signal reception and illumination; the second LED module 6 can be a second LED circuit composed of transistors, field-effect transistors, LEDs, and resistors for signal reception and illumination, and the illumination color is different from the illumination color of the first LED module 5.
[0036] In another embodiment, please refer to Figure 1 , Figure 2 and Figure 3 The power module 1 includes a power interface, a first capacitor C1, a first voltage regulator IC1, and a second capacitor C2; the LED driver module 2 includes a first resistor R1, a second resistor R2, a first potentiometer RP1, a third capacitor C3, a fourth capacitor C4, and a first controller IC2.
[0037] Specifically, the second terminal of the first voltage regulator IC1 is connected to the first terminal of the second capacitor C2, the fourth and eighth terminals of the first controller IC2, and is connected to one end of the second resistor R2 and the seventh terminal of the first controller IC2 through the first resistor R1. The first terminal of the power interface is connected to the third terminal of the first voltage regulator IC1, and is connected to the second terminal of the power interface, the first terminal of the first voltage regulator IC1, the second terminal of the second capacitor C2, one end of the third capacitor C3, and the first terminal of the first controller IC2 through the first capacitor C1. The other end of the second resistor R2 is connected to one end of the first potentiometer RP1. The other end of the first potentiometer RP1 and the slider end are both connected to the other end of the third capacitor C3, the second and sixth terminals of the first controller IC2. The fifth terminal of the first controller IC2 is grounded through the fourth capacitor C4. The third terminal of the first controller IC2 is connected to the first mode control module 3.
[0038] In a specific embodiment, the first voltage regulator IC1 can be an LM317 voltage regulator; the first controller IC2 can be an NE555 chip, which, together with the first resistor R1, the second resistor R2, the first potentiometer RP1, the third capacitor C3 and the fourth capacitor C4, can output a first control signal at a timed interval. After the timed interval ends, a second control signal is output at a timed interval, and the first control signal and the second control signal are output cyclically.
[0039] Furthermore, the first mode control module 3 includes a first analog switch IC3, a third resistor R3, a first push-button switch S1, a first diode D1, a second diode D2, a third diode D3, and a fourth diode D4;
[0040] Specifically, the fifth terminal of the first analog switch is connected to the first stationary terminal of the first push-button switch S1, the sixth terminal of the first analog switch IC3 is connected to the second stationary terminal of the first push-button switch S1, the first moving terminal of the first push-button switch S1 is connected to the second moving terminal of the first push-button switch S1 and connected to the first terminal of the second capacitor C2 through the third resistor R3, the third and eighth terminals of the first analog switch IC3 are both connected to the third terminal of the first controller IC2, the fourth terminal of the first analog switch IC3 is connected to the anode of the first diode D1, the anode of the second diode D2 and the second mode control module 4, the cathode of the first diode D1 is connected to the cathode of the third diode D3 and the first LED module 5, the cathodes of the second diode D2 and the cathodes of the fourth diode D4 are both connected to the second LED module 6, and the anode of the third diode D3 is connected to the anode of the fourth diode D4 and the ninth terminal of the first analog switch IC3.
[0041] In a specific embodiment, the first push button switch S1 can be a double-pole double-throw switch, and the first stationary end and the first moving end of the first push button switch S1 are normally open switches, and the second moving end and the second stationary end of the first push button switch S1 are normally closed switches, so that when the first moving end and the first stationary end of the first push button switch S1 are closed, the second stationary end and the second moving end are open; the first analog switch IC3 can be a CD40066 chip.
[0042] Furthermore, the first LED module 5 includes a fourth resistor R4, a first switching transistor V1, a fifth resistor R5, a first power transistor Q1, and a first LED lamp;
[0043] Specifically, the emitter of the first switch V1 is connected to the first terminal of the first LED and the first terminal of the second capacitor C2 through the fourth resistor R4. The collector of the first switch V1 is connected to the gate of the first power transistor Q1 and the cathode of the first diode D1 and is grounded through the fifth resistor R5. The base of the first switch V1 is connected to the second mode control module 4. The source of the first power transistor Q1 is grounded. The drain of the first power transistor Q1 is connected to the second terminal of the first LED.
[0044] In a specific embodiment, the first power transistor Q1 may be an N-channel MOSFET, which controls the first LED lighting when the input is high; the first switching transistor V1 may be a PNP transistor, which controls the first LED lighting when the input is low.
[0045] Furthermore, the second LED module 6 includes a sixth resistor R6, a second switch V2, a second power transistor Q2, and a seventh resistor R7;
[0046] Specifically, the emitter of the second switch V2 is connected to the first terminal of the second LED and the first terminal of the second capacitor C2 through the sixth resistor R6. The collector of the second switch V2 is connected to the gate of the second power transistor Q2, the cathode of the fourth diode D4, and the second mode control module 4 and grounded through the seventh resistor R7. The source of the second power transistor Q2 is grounded. The drain of the second power transistor Q2 is connected to the second terminal of the second LED. The base of the second switch V2 is connected to the cathode of the second diode D2.
[0047] In a specific embodiment, the second power transistor Q2 can be an N-channel MOSFET, and the second switching transistor V2 can be a PNP transistor.
[0048] Furthermore, the second mode control module 4 includes a second analog switch IC4, a second push-button switch S2, an eighth resistor R8, a sixth diode D6, and a seventh diode D7;
[0049] Specifically, the moving end of the second push-button switch S2 is connected to the second end of the first voltage regulator IC1 through the eighth resistor R8. The stationary end of the second push-button switch S2 is connected to the fifth and sixth ends of the second analog switch IC4. The third and eighth ends of the second analog switch IC4 are both connected to the fourth end of the first analog switch IC3. The fourth end of the second analog switch IC4 is connected to the anode of the sixth diode D6. The ninth end of the second analog switch IC4 is connected to the anode of the seventh diode D7. The cathode of the seventh diode D7 is connected to the gate of the second power transistor Q2. The sixth diode D6 is connected to the base of the first switching transistor V1.
[0050] In a specific embodiment, the second analog switch IC4 can be a CD4066 chip; the second push button switch S2 can be a normally open switch.
[0051] In this embodiment of a dual-color controlled LED circuit, DC power is connected through a power interface. A first voltage regulator IC1, along with a first capacitor C1 and a second capacitor C2, regulates the DC power. The first controller IC2, powered on, works in conjunction with a first resistor R1, a second resistor R2, a first potentiometer RP1, a third capacitor C3, and a fourth capacitor C4 to perform cyclic timing operations. Specifically, it outputs a first control signal at regular intervals (high level). After the timing ends, it outputs a second control signal at regular intervals (low level). At this time, because the second stationary and second moving terminals of the first push-button switch S1 are conducting, and the eighth and ninth terminals of the first analog switch IC3 are conducting, the first control signal triggers the first power transistor Q1 and the second power transistor Q2 to conduct, causing the first LED module 5 and the second LED module 6 to light up simultaneously and blink together. When it is necessary for the first LED module 5 and the second LED module 6 to blink individually... The first button switch S1 is closed, and the third and fourth terminals of the first analog switch IC3 are turned on. The first control signal turns on the first power transistor Q1, and the second control signal turns on the second switch V2, causing the second power transistor Q2 to turn on. This causes the first LED and the second LED to blink alternately. If it is necessary for the first LED and the second LED to maintain a constant value, the second button switch S2 is pressed, causing the third and fourth terminals of the second analog switch IC4 to turn on, and the eighth and ninth terminals of the second analog switch IC4 to turn on. This causes the first control signal output by the first controller IC2 to simultaneously trigger the first power transistor Q1 and the second power transistor Q2 to turn on, controlling the first LED and the second LED to illuminate. The second control signal output by the controller IC2 simultaneously triggers the first switch V1 and the second switch V2 to turn on, triggering the first power transistor Q1 and the second power transistor Q2 to turn on, controlling the first LED and the second LED to illuminate.
[0052] It will be apparent to those skilled in the art that this invention is not limited to the details of the exemplary embodiments described above, and that it can be implemented in other specific forms without departing from the spirit or essential characteristics of this invention. Therefore, the embodiments should be considered illustrative and non-limiting in all respects, and the scope of this invention is defined by the appended claims rather than the foregoing description. Thus, it is intended that all variations falling within the meaning and scope of equivalents of the claims be included within this invention. No reference numerals in the claims should be construed as limiting the scope of the claims.
[0053] Furthermore, it should be understood that although this specification describes embodiments, not every embodiment contains only one independent technical solution. This narrative style is merely for clarity. Those skilled in the art should consider the specification as a whole, and the technical solutions in each embodiment can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.
Claims
1. A dual-color controlled LED circuit, characterized in that, The dual-color controlled LED circuit includes: a power supply module, an LED driver module, a first mode control module, a second mode control module, a first LED module, and a second LED module; The power module is used to receive DC power, perform voltage regulation and filtering on the DC power, and output the first power. The LED driver module is connected to the power supply module and is used to receive first electrical energy, output a first control signal and a second control signal at regular intervals, and the first control signal and the second control signal are output cyclically. The first mode control module is connected to the first mode control module, the power supply module, the first LED module, the second LED module, and the second mode control module. It is used to receive first electrical energy. When the first LED module and the second LED module need to blink independently, it transmits the received first control signal to the first LED module and the second mode control module, and transmits the received second control signal to the second LED module and the second mode control module. When the first LED module and the second LED module need to blink together, it transmits the first control signal to the first LED module and the second LED module. The second mode control module is connected to the power module, the first LED module and the second LED module. It is used to receive the first electrical energy and, when the first LED module and the second LED module need to work together to perform lighting work, transmit the received first control signal to the second LED module and transmit the received second control signal to the first LED module. The first LED module is connected to the power module and is used to receive first electrical energy and perform lighting work when it receives a first control signal or a second control signal; The second LED module is connected to the power module and is used to receive the first electrical energy and to perform lighting work when it receives the first control signal or the second control signal.
2. The dual-color controlled LED circuit according to claim 1, characterized in that, The power module includes a power interface, a first capacitor, a first voltage regulator, and a second capacitor; the LED driver module includes a first resistor, a second resistor, a first potentiometer, a third capacitor, a fourth capacitor, and a first controller. The second terminal of the first voltage regulator is connected to the first terminal of the second capacitor, the fourth and eighth terminals of the first controller, and is connected to one end of the second resistor and the seventh terminal of the first controller through the first resistor. The first terminal of the power interface is connected to the third terminal of the first voltage regulator and is connected to the second terminal of the power interface, the first terminal of the first voltage regulator, the second terminal of the second capacitor, one end of the third capacitor, and the first terminal of the first controller through the first capacitor. The other end of the second resistor is connected to one end of the first potentiometer. The other end of the first potentiometer and the slider end are both connected to the other end of the third capacitor, the second and sixth terminals of the first controller. The fifth terminal of the first controller is grounded through the fourth capacitor. The third terminal of the first controller is connected to the first mode control module.
3. The dual-color control LED circuit according to claim 2, characterized in that, The first mode control module includes a first analog switch, a third resistor, a first push-button switch, a first diode, a second diode, a third diode, and a fourth diode; The fifth terminal of the first analog switch is connected to the first stationary terminal of the first push-button switch, the sixth terminal of the first analog switch is connected to the second stationary terminal of the first push-button switch, the first moving terminal of the first push-button switch is connected to the second moving terminal of the first push-button switch and connected to the first terminal of the second capacitor through the third resistor, the third and eighth terminals of the first analog switch are both connected to the third terminal of the first controller, the fourth terminal of the first analog switch is connected to the anode of the first diode, the anode of the second diode and the second mode control module, the cathode of the first diode is connected to the cathode of the third diode and the first LED module, the cathodes of the second diode and the cathodes of the fourth diode are both connected to the second LED module, and the anode of the third diode is connected to the anode of the fourth diode and the ninth terminal of the first analog switch.
4. The dual-color control LED circuit according to claim 3, characterized in that, The first LED module includes a fourth resistor, a first switching transistor, a fifth resistor, a first power transistor, and a first LED. The emitter of the first switching transistor is connected to the first terminal of the first LED and the first terminal of the second capacitor through the fourth resistor. The collector of the first switching transistor is connected to the gate of the first power transistor and the cathode of the first diode and is grounded through the fifth resistor. The base of the first switching transistor is connected to the second mode control module. The source of the first power transistor is grounded. The drain of the first power transistor is connected to the second terminal of the first LED.
5. A dual-color controlled LED circuit according to claim 4, characterized in that, The second LED module includes a sixth resistor, a second switching transistor, a second power transistor, and a seventh resistor; The emitter of the second switching transistor is connected to the first terminal of the second LED and the first terminal of the second capacitor through the sixth resistor. The collector of the second switching transistor is connected to the gate of the second power transistor, the cathode of the fourth diode and the second mode control module and grounded through the seventh resistor. The source of the second power transistor is grounded. The drain of the second power transistor is connected to the second terminal of the second LED. The base of the second switching transistor is connected to the cathode of the second diode.
6. A dual-color controlled LED circuit according to claim 5, characterized in that, The second mode control module includes a second analog switch, a second push-button switch, an eighth resistor, a sixth diode, and a seventh diode; The moving end of the second push-button switch is connected to the second end of the first voltage regulator through the eighth resistor. The stationary end of the second push-button switch is connected to the fifth and sixth ends of the second analog switch. The third and eighth ends of the second analog switch are both connected to the fourth end of the first analog switch. The fourth end of the second analog switch is connected to the anode of the sixth diode. The ninth end of the second analog switch is connected to the anode of the seventh diode. The cathode of the seventh diode is connected to the gate of the second power transistor. The sixth diode is connected to the base of the first switching transistor.