billhowl:
The circuit function like this
Right transistor is used as a variable resistor. right transistor starts out turned on by 3.3k.
left transistor is used as an over-current sensing switch, and R is the "sense resistor" or "set resistor" that triggers left transistor when too much current is flowing.
The main current flow is through the LED's, through right transistor, and through R. When too much current flows through R, left transistor will start to turn on, which starts turning off right transistor. Turning off right transistor reduces the current through the LED's and R. So we've created a "feedback loop", which continuously tracks the current and keeps it exactly at the set point at all times.
Resistor 3.3k can change to any value base on the gain of the transistor.
you can keep it 330 ohms.
The transistor can be the one you used now, or you can try 2N2222 or BD139
Thanks for explaining. How do you determine the gain of the transistor?
I mean, I know you are saying the resistor rating depends on the gain of the transistor. But on the other hand, it seems quite important because the current in the above diagram seems to be limited by exactly the openning and closing of the two transistors. So, the gain must be important. How exactly, do you choose the right transistor? I'm talking about the left transistor.
Additionally, I was told that transistors don't open gradually. The guy at electronics shop said, at any given time they are either open or closed? Obviously, that can't be true because otherwise, the circuit which is shown above could not monitor and limit led current. is that right?
Anyway, how do you choose the right resistor for the base of the transistor? What is the purpose of selecting a resistor value for the transistor base? to keep the transistor base from failing or to get it to open fully or what? can anybody please explain how to pick the right resistor?
Cheers.