I am unable to simulate the followingg PUT-based relaxation oscillator in the most recent LTspice (with BC547B and BC557B):
formatting link
Nothing wants to oscillate.
Looking for a bug I have also tried the simplest possible neon lamp oscillator (with Vstrike=100V, Vhold=50V, R=220k, C=1u), but there are no scillations either: the voltage on the capacitor saturates at 50.25V.
What magic should I apply to make such circuits work as expected?
(1) Model parameter BF of transistors may be so high that current thru
220K exceeds holding current.
Try increasing 220K OR add a resistor, NPN base to ground, to raise holding current above what 220K can support.
(2) Oscillators, in any form of Spice, _often_ will not start on their own.
Try .IC of capacitor as zero volts. ...Jim Thompson
--
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| San Tan Valley, AZ 85142 Skype: skypeanalog | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
SYMBOL res 128 32 R90 WINDOW 0 -7 54 VBottom 2 WINDOW 3 41 58 VTop 2 SYMATTR InstName R1 SYMATTR Value 1E6 SYMBOL voltage -32 112 R0 WINDOW 0 -87 31 Left 2 WINDOW 3 -94 68 Left 2 SYMATTR InstName V1 SYMATTR Value 200 TEXT 312 64 Left 2 !.tran 4 uic
--
John Larkin Highland Technology, Inc
picosecond timing laser drivers and controllers
jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com
Try checking "skip initial operating point" in the sim/edit/trans menu.
--
John Larkin Highland Technology, Inc
picosecond timing laser drivers and controllers
jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com
You need to put real part numbers on the transistors and the NPN needs to have a pull down R at the base to common/grd so that it'll discharged the cap in the base of the NPN etc.. A 220K should work or something in that ball park.
Only going by your schematic, using an LED. I suppose a Neon maybe behave differently.
Thank you all very much, in both cases the non-oscillation seems to be caused by too low resistor value. In the case of the PUT-based circuit I have not enough experience to judge whether Spice is right or wrong, but I remember well my experiments performed over a decade ago with a *real* neon oscillator. It used to work with pretty any reasonable resistor. The simulation provided by John does not oscillate with 470k and with 560k it oscillates *exactly twice*. With 680k it works well. I must confess that my excitement about Spice has just entered a colder period... :-/
This _should_ be settable in the capacitor part attributes, if Spice conventions are followed by LTspice (likely).
If not, add this "Spice directive"...
.IC V(Node_Name_At_Top_Of_Cap)=0
Some forms of oscillators (LC is one) require a "kickstart", a current pulse into the tank.
(This is because, unlike in the real world, transient Spice simulations have no noise to start the oscillation.) ...Jim Thompson
--
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| San Tan Valley, AZ 85142 Skype: skypeanalog | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
Spice is often very, very wrong. Oscillators, especially high-Q resonator oscillators, can be very tricky. I'm currently playing with a coaxial ceramic resonator oscillator, and can make LT Spice do all sorts of goofy stuff by playing with the time step. The default (automatic) time step results are absurd. 1 picosecond begins to behave maybe-sensibly, and anything smaller explodes run times.
--
John Larkin Highland Technology, Inc
picosecond timing laser drivers and controllers
jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com
Do the math first and you won't get cold >:-} ...Jim Thompson
--
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| San Tan Valley, AZ 85142 Skype: skypeanalog | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
In LT Spice, just check "skip initial operating point solution" in the transient analysis setup window. I do that a lot, for power supplies and such where powerup matters.
The other thing to do is use a pulse generator for the power supply, and bring it up after some small time delay, optionally with some realistic rise time.
--
John Larkin Highland Technology, Inc
picosecond timing laser drivers and controllers
jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com
--
John Larkin Highland Technology, Inc
picosecond timing laser drivers and controllers
jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com
[cut -- thanks Jim, I have never used additonal directives except of the coupling factor for coils]
Yes, the differential equation which describes many oscillators has the valid solution V(t)=constant. But IMHO in the case of a simulator it is a bug, not a feature. Why don't they set the initial voltage at the nodes (esp. capacitors) to some small, random values instead of 0?
****************************************************************** .SUBCKT NE-2H A1 A2 PARAMS: Vs=130 Ii=50u Ti=1m Vh=80 Rh=1k Ia=4m Varc A1 arc 0 ; current sense Garc arc A2 VALUE = {sgn(V(arc,A2))*LIMIT((abs(V(arc,A2))-V(ref))/(Rh*V(abn)),0,1)} Carc arc A2 5p ; stray terminal capacitance Gref 0 ref VALUE = {Vh+(Vs-Vh)/(1+V(ion)**2)} ; Rpar=1 ; voltage transition Rparref 0 ref 1 ; Cref ref 0 1n ; tiny capacitance here aids convergence Gion 0 ion VALUE = {abs(I(Varc))} ; Rpar={1/Ii} ; measure of free ions Rpar 0 ion {1/Ii} Cion ion 0 {Ti*Ii} ; gas ionization time constant Gabn 0 abn VALUE = {Ia**2}+I(Varc)**2 ; Rpar={1/Ia**2} ; abnormal glow Rparabn 0 abn {1/Ia**2} Cabn abn 0 1p ; tiny capacitance here aids convergence .ENDS NE-2H
******************************************************************
This was originally posted on the LTspice list by snipped-for-privacy@ieee.org and I then modified some of the behavioral expressions to improve convergence. ...Jim Thompson
--
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| San Tan Valley, AZ 85142 Skype: skypeanalog | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
Actually, I don't design much with neon bulb oscillators lately.
--
John Larkin Highland Technology, Inc
picosecond timing laser drivers and controllers
jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com
Then it would be nondeterministic. It's a simulator, not reality -- it just churns numbers. It's your duty to build a model that's representative of reality.
If reality means adding noise voltage/current sources for important components (or all of them), that's what you have to do!
Also keep in mind, .MODELs (diodes, BJTs, and bad MOSFET models) are an idealized approximation of the internal chip only. You must add package parasitics yourself. .SUBCKTs usually include this, but inspect the source to be sure it's reasonable.
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.