Author Topic: LTSpice two transistor circuit simulation  (Read 4358 times)

0 Members and 1 Guest are viewing this topic.

Offline chipwitchTopic starter

  • Frequent Contributor
  • **
  • Posts: 316
  • Country: us
  • I barely know you!
LTSpice two transistor circuit simulation
« on: April 14, 2013, 06:33:25 pm »
For the past week, I've been trying to grasp how a "two transistor" circuit is used to limit current in a circuit, such as in a PSU to limit current.  I've had just enough training in electronics to have a firm understanding of Ohm's and Kirchoff's Laws. 

When I first learned of the existence of a "current limiting" circuit a couple weeks ago, my brain short circuited.  I was intrigued, but confused.  What little I understood of electronics was enough to tell me that current is a function of voltage and resistance and that limiting current was not possible in a DC circuit.  Of course, I was assuming that voltage and resistance were both remaining constant.  Experimenting in my lab, I came to realize that the VO was being adjusted by the circuit to maintain the constant current.  Ah, that made sense! 

So, this morning I thought it might be a good idea to simulate my circuit in LTSpice where I could easily play with various values and manipulating the circuit in order to get a better understanding of the two transistor circuit.  I've been working on it all morning with no success.  Needless to say, I'm new at Spice too.

Is it possible to simulate a two transistor circuit such that the circuit Vin varies with respect to the Rload?  I got as far as the "H source" and thinking it could be used in conjunction with a fixed current source in series with the load.  I still think it may be the key, but I can't see how to apply it.  I tried various arrangements with no success. 

Am I trying to get LTSpice to do something it wasn't designed to do?  Would some other simulator serve the purpose?
hello?.... <screech>.... is this thing on?
 

Offline armandas

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: jp
    • My projects
Re: LTSpice two transistor circuit simulation
« Reply #1 on: April 14, 2013, 08:42:10 pm »
Not sure if we're talking about the same circuit, but see the attached LTspice schematic (rename it to asc). It contains two versions of "two transistor" current limiter: one for sourcing and one for sinking current. Hope this helps.
 

Offline chipwitchTopic starter

  • Frequent Contributor
  • **
  • Posts: 316
  • Country: us
  • I barely know you!
Re: LTSpice two transistor circuit simulation
« Reply #2 on: April 14, 2013, 09:50:17 pm »
Hi Armandas,

Thanks for the suggestion.  That's basically the right circuit, I think.  But the key point I'm after is that the Voltage source is not a fixed value.  In the second circuit, if you had a constant current of say, 15mA, the voltage would update to whatever voltage would be required to deliver the current.

That being said, I didn't understand the whole derivative thing... Your example cleared some of it up for me.  I may be able to hobble something together thanks to you.  Not sure though. 

Thanks, in either case
hello?.... <screech>.... is this thing on?
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: LTSpice two transistor circuit simulation
« Reply #3 on: April 14, 2013, 10:27:51 pm »
Thanks for the suggestion.  That's basically the right circuit, I think.  But the key point I'm after is that the Voltage source is not a fixed value.  In the second circuit, if you had a constant current of say, 15mA, the voltage would update to whatever voltage would be required to deliver the current.

That's the whole point of the circuit... Unless I'm misunderstanding what you're saying, I think you are still misunderstanding what a CC circuit does.

Here's a slightly modified version, updated to your example of 15mA into a relay, but also changed so that it plots the current through the relay vs. the voltage source. Poke around with it a bit.

(Again, rename to CC.asc)
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline chipwitchTopic starter

  • Frequent Contributor
  • **
  • Posts: 316
  • Country: us
  • I barely know you!
Re: LTSpice two transistor circuit simulation
« Reply #4 on: April 15, 2013, 03:23:15 am »
Your stepped voltages paint a clearer picture. 

Thanks
hello?.... <screech>.... is this thing on?
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: LTSpice two transistor circuit simulation
« Reply #5 on: April 15, 2013, 03:29:57 am »
The first one did the same thing, just differently. Instead of plotting vs. voltage like I did, it plotted vs. time, but had the voltage itself change over time.
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline chipwitchTopic starter

  • Frequent Contributor
  • **
  • Posts: 316
  • Country: us
  • I barely know you!
Re: LTSpice two transistor circuit simulation
« Reply #6 on: April 15, 2013, 04:52:52 pm »
You'd have to have been inside my head to know why the first circuit didn't look right... and believe me... I wouldn't wish THAT on anyone!!! Yours didn't show me what I was asking for either, but it did allow me to identify at least one flaw in my thinking.
hello?.... <screech>.... is this thing on?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf