Viewing waveform output in LTSpice?

Thread Starter

Teknolog

Joined Sep 1, 2013
31
I have created a circuit using LTspice. It's a circuit that contains a NE555 chip and a 9V DC voltage source. I have built a circuit where the 555 is supposed give an output AC voltage.

My question is for LTspice. What kind of Simulation should I do in order to view the output waveform, in a similar way as an oscilloscope?
 

MikeML

Joined Oct 2, 2009
5,444
Have you run a simulation of the circuit?
If so, just point to a wire node, and LTSpice will display the voltage waveform at that node. Move the cursor over a component or a pin, and it will show the current that flows into/out-of that pin.

Here is an example...
 

Attachments

Last edited:

adam555

Joined Aug 17, 2013
858
I have created a circuit using LTspice. It's a circuit that contains a NE555 chip and a 9V DC voltage source. I have built a circuit where the 555 is supposed give an output AC voltage.

My question is for LTspice. What kind of Simulation should I do in order to view the output waveform, in a similar way as an oscilloscope?
I would do a transient for the time fraction you want to see: for example:

.tran 1s
.tran 1m
etc

or with LTSpice just click "run" and then type "1s" or whatever in the first textbox ("stop time") of the transient tab.
 
Last edited:

Thread Starter

Teknolog

Joined Sep 1, 2013
31
Thanks. I tried the transient analysis, and I saw the output waveform as I wanted. :)

I have two more questions:

1. How do I view what frequency the waveform has?

2. Is it possible to do "live" simulations? Like for example if I have a potentiometer in the circuit which I change the value of, if it's possible to see how the voltage waveform is changing simultaneously with the changing of the potentiometer? (Like an oscilloscope)
 

Alec_t

Joined Sep 17, 2013
14,313
How do I view what frequency the waveform has?
Click and drag the cursor between two points on the waveform 1 cycle apart. The status bar at the foot of the screen displays the interval and corresponding frequency.
Is it possible to do "live" simulations?
Yes, using a voltage-controlled resistor model, or a behavioral voltage source, for example.
 

Thread Starter

Teknolog

Joined Sep 1, 2013
31
Click and drag the cursor between two points on the waveform 1 cycle apart. The status bar at the foot of the screen displays the interval and corresponding frequency.
Isn't there some way to show the frequency automatically? So that I can also immidietly view how the frequency is changing - live - when for example adjusting a voltage-controlled resistor model like you suggested.
 
Last edited:

Alec_t

Joined Sep 17, 2013
14,313
I expect there's some clever way using a behavioral voltage source, but I've never tried. Someone else may know the answer.
 

MikeML

Joined Oct 2, 2009
5,444
Isn't there some way to show the frequency automatically? So that I can also immidietly view how the frequency is changing - live - when for example adjusting a voltage-controlled resistor model like you suggested.
No Spice-derived simulator that I am aware of can do that, because you end up doing a new .tran sim for each new value of whatever you are changing.
The problem is that the independent variable is the value of something you want to tweak, and the frequency is not apparent until after a waveform is generated.

You can, however, automate stepping of the value of a resistor or capacitor to see what effect it has on the frequency of an oscillator, for example.

Suppose you want to know what value of resistor would set the frequency of a 555 oscillator to 100Hz. Here I have made the value of R2 to {T}, where T is just a variable, like in an equation. The statement
.step param T 90K 110K 5K will step through five different simulations, where T=90K, 95K, 100K, 105K and 110K to see which value of R2 would make the oscillator run nearest 100Hz. Putting T in {curly braces} on the schematic means that a new value of T is used for each sim run.

Each susequent sim run is plotted using a new color (waveform display setup item). Using the two cursors on the Plot Pane, it is easy to see that the blue waveform (where R2 is 100K) is the one that produces the frequency closest to 100Hz.
 

Attachments

Top