Author Topic: Constant current source calculations  (Read 1034 times)

0 Members and 1 Guest are viewing this topic.

Offline aheidTopic starter

  • Regular Contributor
  • *
  • Posts: 245
  • Country: no
Constant current source calculations
« on: August 30, 2018, 09:49:51 pm »
I found a circuit for a stabilized constant current source here: https://wiki.analog.com/university/courses/electronics/text/chapter-11#stabilized_current_source

Since 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.
 

Offline P_Doped

  • Contributor
  • Posts: 34
Re: Constant current source calculations
« Reply #1 on: August 30, 2018, 11:50:16 pm »
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/e

So, for Iout = 1mA, Iin = 1mA*e ~ 2.72mA

For Vin=12V, T=300K, estimate Vbe ~ .65V, R1 = (12V-0.65V)/2.72mA = 4.17k, so try 3.9k

At 300K, the thermal voltage is ~25.85mV, so RL = 25.85mV/2.72mA = 9.5, so try 10

I 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*RL

How 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 / Ic1
The change in Ic1*RL = delta_Ic * RL
To get delta_Vbe2 = 0 --> delta_IC * VT/ Ic1 = delta_IC * RL     OR   VT / Ic1 = RL

That'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.


 
The following users thanked this post: HackedFridgeMagnet, aheid

Offline HackedFridgeMagnet

  • Super Contributor
  • ***
  • Posts: 2028
  • Country: au
Re: Constant current source calculations
« Reply #2 on: August 31, 2018, 12:18:49 am »
Nice explanation P_Doped

attached is an LTSpice sim you can play with.


 
The following users thanked this post: aheid

Offline aheidTopic starter

  • Regular Contributor
  • *
  • Posts: 245
  • Country: no
Re: Constant current source calculations
« Reply #3 on: August 31, 2018, 08:29:09 am »
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.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf