Any free simulation programs for transistors, FET and diode circuits?

In summary, Alan has been busy designing circuits and needs a free simulation program that can handle non-linear behavior of discrete components. VK6KRO suggests using LT Spice and provides instructions on how to download and use it. Alan struggles with setting up a sine wave voltage source, but VK6KRO helps him and Alan is able to successfully simulate waveforms. Alan is impressed with the program and its capabilities and thanks VK6KRO for their help.
  • #1
yungman
5,718
240
Hi,

I've been busy in designing some circuits and I want to simulate some non linear behavior of transistors and diode circuits. I want to find a free simulation program. Does LT Spice work on these discrete components?

Thanks

Alan
 
Engineering news on Phys.org
  • #2
yungman said:
Hi,

I've been busy in designing some circuits and I want to simulate some non linear behavior of transistors and diode circuits. I want to find a free simulation program. Does LT Spice work on these discrete components?

Thanks

Alan

Yes, of course, but I don't know if the models are accurate enough for what you want to do.

Download a copy and install it. I can get you started off-Forum if you like, although it is pretty easy to use.

There is a Yahoo group for LTSpice, too. They operate the program at a much higher level and also collect models for components that are not in the standard package and adapt them if necessary for LTSpice.
 
  • #3
Thanks, I'll look on line tonight and see whether I can get start on that. I don't need any particular transistor or diode as long as I can get a diode, a FET and a BJT. I just want to see the trend of the output signal.

Alan
 
  • #4
OK.

Go to www.linear.com
and look in the box at the right.
There is the program, a heap of examples and some instructions.

The examples are mainly promoting their own products, so you might like to do your own schematic.
 
  • #5
I down loaded already. I managed to read the instruction and draw the schematic. Problem is I don't know how to put is a sine wave voltage source to do the simulation.

I use the voltage source and set to 1KHz and 0.1V and hit the "run" button. But I did not get any signal.

I cannot find any battery, so I just use the voltage source and set to DC 9V. Is this ok?

I am still trying to get the feel of the program, I likely be able to find the answer, this is just where I am at.

The simulation seems to want to sweep frequency but yet I did not see any generator that I can set the frequency.
 
Last edited:
  • #6
yungman said:
I down loaded already. I managed to read the instruction and draw the schematic. Problem is I don't know how to put is a sine wave voltage source to do the simulation.

I use the voltage source and set to 1KHz and 0.1V and hit the "run" button. But I did not get any signal.

I cannot find any battery, so I just use the voltage source and set to DC 9V. Is this ok?

I am still trying to get the feel of the program, I likely be able to find the answer, this is just where I am at.

The simulation seems to want to sweep frequency but yet I did not see any generator that I can set the frequency.

You have found the components section. Choose a "voltage". This is a voltage generator which can be a 9 V battery or a power station or a pulse generator.

To do a sine wave, choose "advanced" then "sinewave" then set the DC offset to zero, the amplitude to 0.1 V, the frequency to 1000 Hz then all the others to zero except the number of cycles to 5000. (for no good reason except it gives you a fair burst of signal even on RF signals)
ALSO, over on the right set the "AC amplitude" to 0.1 volt. This is used for sweep simulations.
Bit odd, but just do it.

Use "edit simulation" cmd to choose TRANSIENT".
Here you set how long you want to do a simulation. Choose about 3 periods of the sinewave, so 3 mS.
When you finish, there will be a box attached to your cursor. Stamp this on the screen with your schematic on it. This is where the program gets its information about what you are doing.
Bit odd, but just do it.

Don't forget to add a ground symbol somewhere on the diagram

Click "RUN" and you should get a black window. Click a point on the schematic and you should get a trace for that point.
There are different symbols for voltage and current, so you just move the mouse until you get the right one.

If you want to do a square wave, set all the rise and fall times to 1 uS. It doesn't like zero rise times.
 
  • #7
Thanks a lot. I guess out the first part on setting the generator for 1KHz and 0.1V. It's the second part that run the simulation that really help. I got the waveform already. You save me a lot of time.

Thanks

Alan
 
  • #8
The program is nice. When designing linear circuits, I never have a need for simulation. But this is so useful in looking at nonlinear behavior that it is just hard to design just by theory and predict how it behave. Also I can look at the output waveform at different input level.

With this program, I can just input anything I want and "see" the output and tailor the design to get the waveform I want! And the program is very easy to learn also. I only spend a few hours and I manage to craw through it and get the waveform...by hope or by crook. I am sure there a lot more to this program, but I got my answer!

Nice

Thanks again Vk6kro. You are of big help.

Alan
 
  • #9
I'm sure I don't use it to its full capabilities either, but it is a really good program. I use it all the time.

What is annoying is how much time I have wasted working out AC bridge circuits with series and parallel LCR circuits when this thing just solves them instantly.

Notice on the schematic window, at the bottom left, there is a little window that tells you voltages and currents in text depending on where you put your mouse.

In the same position on the graph screen, there is a useful readout of the mouse position coordinates. Handy for taking accurate readings.

The DC sweep is a good trick too. You can pick one voltage or current source and change its value between limits. Then watch what this does to the operating conditions of the circuit.
 
  • #10
vk6kro said:
I'm sure I don't use it to its full capabilities either, but it is a really good program. I use it all the time.

What is annoying is how much time I have wasted working out AC bridge circuits with series and parallel LCR circuits when this thing just solves them instantly.

Notice on the schematic window, at the bottom left, there is a little window that tells you voltages and currents in text depending on where you put your mouse.
No I don't see it! There is nothing at the lower left corner.
In the same position on the graph screen, there is a useful readout of the mouse position coordinates. Handy for taking accurate readings.
Again, I don't see it. Actually I was trying to do this by putting more division last night.
The DC sweep is a good trick too. You can pick one voltage or current source and change its value between limits. Then watch what this does to the operating conditions of the circuit.
Yes, able to read the current and voltage at any point is very useful. So far, I can only see it when I put the current or voltage into the graph. Then I have to delete afterwards.
Thanks for helping.
 
Last edited:
  • #11
Actually, it is the same line just above the "start" button, not two windows.

You get to it by clicking on the top window (the graph one) or the bottom one (the schematic one) and then moving your mouse to where you want to do the measurement.

Try this:
hold down the ALT key and click on a component. This gives a temperature symbol and a graph of power dissipation in the component.
 
  • #12
There is nothing right above the "start" at the lower left corner either I have the schematic on full screen or the graph.
 
  • #13
There should be a white bar above the toolbar at the bottom of the screen.

The writing is put in the left of this bar.

Try taking LTSpice out of full screen mode. Maybe it is under the toolbar. Look for the "two squares" symbol at the top right of the screen.

This is using Windows XP.
 
  • #15
I have a funny encounter in the LTspice. I want to do simulation using opamp circuits. I don't need any particular opamp as I am not pushing the limits of the opamp at all. I just picked the first opamp in the list and did the simulation. The simulation seemed to get stuck and I had to halt the simulation. Upon tinkling a bit, I realize it simulated the opamp in oscillation! I can see the a smear of signal riding on the 2KHz I put in! The simulation was slow because it was trying to plot out the HF oscillation and it took a long time. Can't get away being lazy even on the simulation! I didn't realize the opamp I picked was a high speed opamp and it did not like the high value resistors at the input and feedback loop...Just like the real circuit! I was too lazy to read the data sheet and just picked pick one! Change an opamp and fixed everything.

I have been having a ball with the LTspice, it really help me in visualizing the wave form in different designs. Now the next challenge is to add the vacuum tube models in.
 
  • #16
opa4132?
 
  • #17
jim hardy said:
opa4132?

I think it was LT1001. I never did read the data sheet, it just labelled high speed. My stuff don't involve any particular opamp. I just choose another that don't oscillate! I am working at audio frequency under 5KHz, so almost any cheap opamp will do.
 
  • #18
This software is better than a lot of commercial software that you have to pay for, yet it is free.

Best of all, though, is that it is actually fun to use. That schematic editor is brilliant.

I don't see why any 14 year old anywhere couldn't use it.


It can go into a microstep mode if you give it a weird circuit. It doesn't like square waves with zero rise and fall times.
It also doesn't like reverse biased diodes if the diode resistance is the only current path.

I imported a couple of common opamps into it. A LM741 and a LM324.

I also set up a couple of 2N2222's with different current gains. You just modify the BF= part of the parameters.

Occasionally, click the "sync release" option in the "tools" pulldown. This goes and gets the latest version, although if you leave it long enough, it will suggest this itself.
 
  • #19
I like this guy a lot for fast and fun simulations:

http://www.falstad.com/circuit/

It's very, very easy to use, and has most of the goodies. It even has tubes, transmission lines, spark plugs, memristors and other exotic stuff.
 
  • #20
That is a nice demo site, but LTSpice let's you put your own values in as the components.

It then calculates the currents and voltages in the circuit according to what you draw.

Try it. You might like it.
 
  • #21
vk6kro said:
That is a nice demo site, but LTSpice let's you put your own values in as the components.

It then calculates the currents and voltages in the circuit according to what you draw.

Try it. You might like it.

Yeah, I use LTSpice when I want to add the detailed model parameters. It's just a bit more work to draw, and I don't like that much it doesn't have 1-terminal voltage source, but is more detailed.

But falstad.com thing is not only for demo. You can draw the circuit, set the component's parameters (change beta, resistor values, capacitor values, etc...) and run the simulation. The difference is that it has way less parameters to update (can't set reverse beta in transistors, for example, only the forward beta).

So I think the falstad.com is more a teaching tool, while LTSpice is a bit more serious. But between using the two, I prefer the first as much as I can, as it's way faster to draw and run the circuit, and figure out what's happening. I particularly like how it paints the circuit in green/red per the voltage it currently has, and shows the current flowing through the circuit as dots - hell of an idea. I wish I had that when I was in engineering school - back then it was all paper, tons of equations, many load curves, smell the burnt transistor in the lab and so forth :)
 

1. What is a transistor, FET, and diode?

A transistor is a semiconductor device that is used to amplify or switch electronic signals and power. An FET (field-effect transistor) is a type of transistor that uses an electric field to control the flow of current. A diode is a semiconductor device that allows current to flow in only one direction.

2. Why do I need a simulation program for transistors, FET, and diode circuits?

Simulation programs allow you to design and test electronic circuits without physically building them. This saves time, resources, and allows for easier troubleshooting and fine-tuning of the circuit.

3. Are there any free simulation programs available for transistors, FET, and diode circuits?

Yes, there are several free simulation programs available such as LTspice, QUCS, and CircuitLab. These programs offer a wide range of features and support for various types of circuits.

4. Can I use these simulation programs for educational purposes?

Yes, most of the free simulation programs available can be used for educational purposes. Some programs may have specific licenses or restrictions, so it is best to check the terms and conditions before use.

5. Do I need to have prior knowledge or experience in electronics to use these simulation programs?

While having some knowledge of electronics can be helpful, most simulation programs have user-friendly interfaces and tutorials to guide beginners. With some practice, anyone can learn to use these programs to design and simulate electronic circuits.

Similar threads

Replies
4
Views
915
Replies
4
Views
609
  • Electrical Engineering
Replies
7
Views
1K
Replies
4
Views
1K
  • Electrical Engineering
Replies
10
Views
5K
Replies
1
Views
831
Replies
17
Views
10K
Replies
12
Views
1K
  • Electrical Engineering
Replies
33
Views
4K
  • Electrical Engineering
Replies
2
Views
961
Back
Top