I'm trying to design a constant current LED driver and am totally confused!
This is the schematic i end up with:
simulate this circuit – Schematic created using CircuitLab
- What's the formula for calculating R1?
- What's the formula to calculate the required low-pass filter
capacitor? - Is this how we calculate the current:
output current = Vref / R2
? - How reference voltage affects the circuit (decreasing Vref to 2.5V)?
Best Answer
simulate this circuit – Schematic created using CircuitLab
Figure 1. The redrawn schematic. This shows the feedback arrangement more clearly.
R1 and C1 are creating a low-pass filter between the base and emitter to help prevent oscillations.
$$ f_{cut-off} = \frac {1}{2 \pi RC} $$
Yes. The voltage will rise on the output until V- = V+. This will occur when \$ I = \frac {V_{ref}}{R_2} \$.
The current will be affected. You need to reduce it anyway. See below.
simulate this circuit
Figure 2. An adjustable current source. Any pot in the 1k to 100k range should work fine.
Drop the reference voltage to 1 V (for easy maths) and you should get it to work.