Relaxation oscillators and SPICE

That was our standard solution to convergence and startup problems forty years ago. I still regularly use the trick, without even trying without.

Reply to
krw
Loading thread data ...

In article , snipped-for-privacy@neverland.mil says...

Here is your example with an LED, I added a R to the base of the NPN and a R in series with the LED to not over do it. You will also notice the Trans set point, it shows "Startup".

Version 4 SHEET 1 880 680 WIRE 304 -32 176 -32 WIRE 448 -32 304 -32 WIRE 176 -16 176 -32 WIRE 448 0 448 -32 WIRE 304 32 304 -32 WIRE 176 80 176 64 WIRE 176 80 16 80 WIRE 448 96 448 80 WIRE 304 128 304 112 WIRE 304 128 240 128 WIRE 304 144 304 128 WIRE 16 160 16 80 WIRE 240 192 240 128 WIRE 176 240 176 176 WIRE 336 288 304 288 WIRE 176 304 176 240 WIRE 240 304 240 288 WIRE 304 304 304 288 WIRE 304 304 240 304 WIRE 208 384 176 384 WIRE 240 384 208 384 WIRE 336 384 336 368 WIRE 336 384 304 384 WIRE 208 416 208 384 FLAG 448 96 0 FLAG 304 224 0 FLAG 208 416 0 FLAG 16 224 0 SYMBOL pnp 240 176 R180 SYMATTR InstName Q1 SYMATTR Value 2N3906 SYMBOL npn 176 192 R0 SYMATTR InstName Q2 SYMATTR Value 2N3904 SYMBOL res 288 128 R0 SYMATTR InstName R1 SYMATTR Value 3.9k SYMBOL res 288 16 R0 SYMATTR InstName R2 SYMATTR Value 3.9k SYMBOL res 160 -32 R0 SYMATTR InstName R3 SYMATTR Value 220k SYMBOL voltage 448 -16 R0 WINDOW 123 0 0 Left 2 WINDOW 39 0 0 Left 2 SYMATTR InstName V1 SYMATTR Value 9 SYMBOL res 160 288 R0 WINDOW 0 -39 22 Left 2 WINDOW 3 -54 50 Left 2 SYMATTR InstName R4 SYMATTR Value 220k SYMBOL LED 304 368 R90 WINDOW 0 0 32 VBottom 2 WINDOW 3 72 32 VTop 2 SYMATTR InstName D1 SYMATTR Value NSPW500BS SYMATTR Description Diode SYMATTR Type diode SYMBOL cap 0 160 R0 SYMATTR InstName C1 SYMATTR Value 150n SYMBOL res 320 272 R0 SYMATTR InstName R5 SYMATTR Value 50 TEXT -112 -24 Left 2 !.tran 1 startup TEXT 352 288 Left 2 ;Prevent detonation

Reply to
Maynard A. Philbrook Jr.

You forgot to correct the time constant. The oscillation frequency was spoiled to 12 ms/cycle, due to changed trip voltages. The frequency cannot be sensed as blinking.

--

-TV
Reply to
Tauno Voipio

As Jim T. said, I sometimes have to "jump start" oscillators in LTspice. Hit them with a little pulse.

George H.

Reply to
George Herold

Sorry!

Jamie

Reply to
Maynard A. Philbrook Jr.

One trick to remember while simulating oscillators with SPICE is to provide initial asymmetry conditions. That is use the ".IC" directive in SPICE to set the initial voltages on the nodes to some perturbed vales e.g., V(1)=0.0 V(2)=5.0 ... etc., etc., Hope that helps.

Reply to
dakupoto

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.