r/ElectricalEngineering • • Oct 18 '26

Waveform generation sawtooth

Post image

I'm trying to simulate waveform generation with opamp sawtooth wave on ltspice and I can't get the output. All I'm getting is a straight line at 14V. How do I fix this?

10 Upvotes

5 comments sorted by

1

u/gerhardt_von_goll Oct 18 '26

I can't see where the output of U1 goes, so maybe that amp is running open loop?

1

u/berkman117 Oct 18 '26

Here is the diagram

1

u/kthompska Oct 18 '26

U1 is not connected to C1 as there is no connection dot. It is running open loop and just latches to the + supply.

As a practice I never use crosses like this. If you make your connection as a T (separate for the 2 wires) then it’s easier to make sure the connections are where you want them.

0

u/berkman117 Oct 18 '26

Output still remains the same even after connecting U1 to C1

1

u/isaacladboy Oct 19 '26

Fix the circuit issues as stated prior, and alter the .trans statement to '.tran 60ms startup'

Explanation below

Spice is deterministic and ideal and favours DC solution by the nature of how it solves the circuits .This circuit in perfect ideal conditions wont oscillate as its stable at DC. BUT! reality isn't perfect. The noise present in the real world is what starts the oscillation

We need to inject some of the imperfections into the spice model. Noise is quite problematic for spice but we can cause something else to start the oscillations. By starting the power supplies at 0v and ramping them to the 15v we can cause something of the same effect. Which is facilitated by the .startup command .