Constant current source calculations - Page 1
Forum section: electronics / beginners

author: aheid
author_rank: Regular Contributor
timestamp: August 30, 2018, 09:49:51 pm
content: I found a circuit for a stabilized constant current source here:https://wiki.analog.com/university/courses/electronics/text/chapter-11#stabilized_current_sourceSince it's ages since I did my basic electronics classes I'm having a hard time figuring out how to calculate the resistor values based on target Iout and Vin values. Say I want the peak Iout to be 100uA at Vin=12V and T=300K.I see that in section 11.9 above, they mention that Vc1 is kept at a voltage V_T less than Vb1, and that this equals Ic*RL. I don't know why this voltage has to be V_T, nor how it would help me estimate suitable RL and R1 values.I assume I'll have to use some transistor parameters as well. Feel free to pick a suitable transistor, otherwise I was thinking of going with 2N3904 for no good reason other than that I have them.Any pointers would be very welcome.

author: P_Doped
author_rank: Contributor
timestamp: August 30, 2018, 11:50:16 pm
content: The 2N3904 should work fine.Assuming your 2 2N3904's match well (you can measure a number and select the 2 that match the best...):At the output current peak, the output current should be related to the input current by: Iout = Iin/eSo, for Iout = 1mA, Iin = 1mA*e ~ 2.72mAFor Vin=12V, T=300K, estimate Vbe ~ .65V, R1 = (12V-0.65V)/2.72mA = 4.17k, so try 3.9kAt 300K, the thermal voltage is ~25.85mV, so RL = 25.85mV/2.72mA = 9.5, so try 10I tried this for kicks with LTspice and got .96mA for Iout.If the explanation in the link didn't work for you, I can try a slightly different approach.For this approach, you need to feel comfortable with the Ebers-Moll model relating emitter current to Vbe and the differentiated version of that to create a relationship for gm. See Wikipedia (https://en.wikipedia.org/wiki/Bipolar_junction_transistor#Ebers%E2%80%93Moll_model), if needed.What it boils down to is that you don't want the output current to change as the input current changes. Ideally, Vbe2 doesn't change at all, but that's not possible with such a simple circuit. But what can we do?Look at the equation for Vbe2:Vbe2 = Vbe1 - Ic1*RLHow does Vbe2 change as Ic1 changes from a bias point, say due to a change in Vin?For a bipolar transistor, there is a relationship between a change in Vbe and a change in Ic. This comes from the differentiation of the Ebers-Moll model:gm = (change in Ic)/(change in Vbe) = Ic/VT (Ic == collector current; VT == thermal voltage)gm, the transconductance, is a small signal parameter, so as the instantaneous Ic (total current) changes, gm will change, too; ignore that for now...We'll use this gm relationship to help us fing RL:What we want is to achieve a change in Vbe2, delta_Vbe2 = 0. Let's look at each component in the Vbe2 equation and see how it changes:The change in Vbe1, delta_Vbe1 = delta_Ic/gm = delta_Ic * VT / Ic1The change in Ic1*RL = delta_Ic * RLTo get delta_Vbe2 = 0 --> delta_IC * VT/ Ic1 = delta_IC * RL OR VT / Ic1 = RLThat's how you choose RL. Figure out your desired Ic1 & room temperature and that's it. You can also see how the voltage drop across RL ends up being VT like the linked page says. This would work perfectly if gm was constant over the full operating range, but alas, Ic1 changes and thus gm changes. To keep Ic2 constant, you'd need to change RL for every Ic1. So, in practice with a fixed RL, you get a "peaking" current source instead of a constant current source.By choosing RL to satisfy delta_Vbe2 = 0, this will place you at the peak of the "peaking" graph.Just picking out 2 random 2N3904's will mess up the accuracy. I don't really know by how much. The relationship of Ic1 and Ic2 at the peak being different by a factor of e can be calculated using the Ebers-Moll model. If you decide to try to figure this out, you can throw away the -1 factor in the Ebers-Moll equation since Vbe >> VT for this circuit's operating point.

author: HackedFridgeMagnet
author_rank: Super Contributor
timestamp: August 31, 2018, 12:18:49 am
content: Nice explanation P_Dopedattached is an LTSpice sim you can play with.

author: aheid
author_rank: Regular Contributor
timestamp: August 31, 2018, 08:29:09 am
content: Thank you very much P_Doped for the excellent explanation!Your second part was very clear. I'll play around with the Eber-Moll equation to see if I can reproduce your first part.