I'm trying to design a dimmable LED circuit board. It's controlled by Arduino with its PWM signals. I'm new to electronics so I have some question regarding my design and knowledge on it. I've attached two diagrams I've made to help with the visualization. Vcc is 24 VDC and the 5V is the PWM pin from the Arduino.
The idea is to control the RGB LEDs (1W per channel) using a TIP122 Darlington transistor. From what I know, there is about a 1.4V drop from the base to the emitter in the TIP122 (Vb-Ve = 1.4V). The voltage at the collector and base should be the same (Vc=Vb). The base voltage is the voltage out of the voltage divider (R1 & R2). If R1 is equal to R2 (R1=R2), then Vb should be half of 5V or 2.5V (Vb = 2.5V). From that, the emitter voltage is 1.1V (Ve = Vb - 1.4V = 1.1V).
The emitter current is the summation of the base current and collector current. However, the base current is super small compared to the collector so we can assume the emitter current is the same as the collector current (Ie = Ic). By changing the value of resistor (R_Q) after the TIP122, we can control the current flowing through the circuit (Ie = Ve/R_Q = 1.1V/R_Q). This is assuming that current gain is not bigger than 1000.
From beginner LED circuits, I’m suppose to put a resistor (R_L) in series with the LED(s) to limit the current flowing through the LED and prevent the LED from being destroyed. But if the resistor after the TIP122 will limit the current, do I still need the R_L resistor?
As an example, let’s use the circuit in the second diagram. The usable voltage that can power the LED would be the difference between the supply voltage and the voltage at the TIP122 collector (Vcc-Vc = 24V-2.5V = 21.5V). Let’s assume the 3 LED in series each has a forward voltage of 6V (Vf = 6V) and a forward current of 750mA (If = 750 mA). Thus there is 18V of total forward voltage and 3.5V leftover (21.5V – 3*6V = 3.5V). Now normally, we’d put a 4.67 ohm resistor (R_L = 3.5V/750mA = 4.67 ohm) to keep the current flowing through the LEDs 750 mA. But with the TIP122 and R_Q, is the R_L still necessary? If R_L is NOT needed, is it still true even if the leftover voltage is a lot larger? So say 2 LED is in series instead of 3 thus giving a leftover 9.5V instead.
If anything I said is false, please let me know. I’m just explain my thought process in my design and would appreciate any feedbacks on it. Thanks.