Easily modifying BJT parameters in LTSpice?

Click For Summary

Discussion Overview

The discussion revolves around modifying BJT parameters in LTSpice, particularly focusing on how to use measured hfe (Beta) values for transistors in a multistage amplifier design. Participants explore methods for customizing transistor models and the implications of default parameter settings in LTSpice.

Discussion Character

  • Technical explanation
  • Exploratory
  • Homework-related

Main Points Raised

  • One participant expresses difficulty in modifying individual hfe values for transistors in LTSpice, contrasting it with their experience in B2Spice.
  • Another participant suggests locating the standard.BJT file to modify the BF parameter for specific transistors and explains how to implement these changes in LTSpice.
  • A later reply confirms that the suggested method worked successfully for the initial poster.
  • One participant inquires about the behavior of LTSpice regarding default values for other BJT parameters when creating a custom .model for a transistor.
  • Another participant speculates that LTSpice may fill in default values if certain parameters are omitted, suggesting that selecting a similar transistor and adjusting specific parameters might yield better results.
  • A participant mentions an alternative approach of directly inserting the model into the schematic, eliminating the need for additional files.

Areas of Agreement / Disagreement

Participants generally agree on the methods for modifying BJT parameters in LTSpice, but there is uncertainty regarding the behavior of default parameters when creating custom models. The discussion remains unresolved on the best practices for parameter selection.

Contextual Notes

Participants note the potential limitations of default parameters in LTSpice and the implications of omitting certain values when creating custom models, but do not resolve these issues.

Who May Find This Useful

This discussion may be useful for users of LTSpice looking to customize transistor models for circuit simulations, particularly those working on amplifier designs or seeking to understand parameter modifications in simulation software.

crono1009
Messages
14
Reaction score
0
I've created a multistage amplifier in LTSpice IV and want to use actual measured hfe (Beta) values for each of the transistors, though I can't find an easy way to modify them. I could modify their library values in notepad, but I am using the same transistor model for a few of the stages and that would make both of their hfe values the same (when I've measured them to be substantially different).

In the past I've used B2Spice and modifying each of my components parameters was as easy as double clicking on the component itself and plugging in values. Is this possible in LTSpice?

Any help would be greatly appreciated, Thanks!
 
Engineering news on Phys.org
You can do this, although it is a little messy.

Look for a file called standard.BJT in the following directory:
c:\Program Files\LTC\LTspiceIV\lib\cmp\

If your transistor is in there, you can copy it to another position in the list (probably at the top) and then modify the "BF=" figure to your measured value.
You can do this with each of your measured values and then give each transistor a modified name.
For example, you could give a 2N2222 the name 2N2222-100 if you had given it a Hfe of 100.
Then save the file.

To use it, select the generic NPN transistor. Put it on the schematic page. Right click and choose "pick another transistor". Then look for your modified version.
 
Thanks! That worked perfectly.
 
Actually vk6kro I have another question about LTspice if you don't mind. Let's say I created put a generic npn transistor in my circuit. Then I created a .model for that transistor for example, .model 2N3904-95 NPN(Bf=95). Will LTspice insert its own default values in for all of the other BJT parameters (junction capacitances and such)?

Also as a rule of thumb while creating .model BJTs are there any values (Bf, VAF, RX etc.) I should always input while leaving the rest of the values as LTspice defaults? I'm designing pretty simple multistage amplifiers at the moment and don't need super accurate results.

Thanks again!
 
I haven't really tried just leaving parameters out, but LTSpice does have default parameters so I expect it might fill in the gaps if you left something out.

You could probably get a better result by picking a similar transistor and just changing the parameters you wanted to change. That way, the other things like internal capacitances might be closer than the default values.

You can see an interesting article on this. Go to HELP on LTSpice. Search for "parameters" then select "Q", bipolar transistor.
 
Nice info

woww, this thread is very helpful
 

Similar threads

  • · Replies 17 ·
Replies
17
Views
3K
Replies
1
Views
3K
  • · Replies 14 ·
Replies
14
Views
4K
Replies
4
Views
2K
  • · Replies 22 ·
Replies
22
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
4
Views
20K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 13 ·
Replies
13
Views
7K
  • · Replies 12 ·
Replies
12
Views
3K