Electronics-Related.com
Forums

LTSpice LED parameters

Started by John S February 14, 2018
On 02/16/2018 05:38 PM, Jasen Betts wrote:
> On 2018-02-16, whit3rd <whit3rd@gmail.com> wrote: >> On Thursday, February 15, 2018 at 5:55:04 PM UTC-8, John Larkin wrote: >> >>> Face it: LT Spice does everything right. >> >> Not on a MacBook, it doesn't. > > Is there something badly broken in the OSX version of wine? >
IIRC there's a native Mac version of LTspice. Cheers Phil Hobbs -- Dr Philip C D Hobbs Principal Consultant ElectroOptical Innovations LLC / Hobbs ElectroOptics Optics, Electro-optics, Photonics, Analog Electronics Briarcliff Manor NY 10510 http://electrooptical.net http://hobbs-eo.com
On 17/02/18 01:19, Jim Thompson wrote:
> On Fri, 16 Feb 2018 18:38:19 -0500, Phil Hobbs > <pcdhSpamMeSenseless@electrooptical.net> wrote: > >> On 02/16/2018 05:08 PM, Jim Thompson wrote: >>> On Fri, 16 Feb 2018 16:35:42 -0500, Phil Hobbs >>> <pcdhSpamMeSenseless@electrooptical.net> wrote: >>> >>> [snip] >>>> >>>> TI's TINA models are mostly horrible. The OPA140 model won't converge >>>> unless the supplies are *exactly* symmetrical, and not very often even >>>> if they are. >>> >>> Didn't I write-up an OPA140 model for you that worked (~2015)? >> >> Nope, as I recall you hacked with it a bit and then agreed that the TINA >> one was a mess. > > Sort of. A quick check of the E-mails back-and-forth between us shows > the problem to have been "LTspice can't cope with a noiseless resistor > as a DC path, PSpice can" (as well as any simulator > Berkeley-compliant)... it's simply a G-source... why LTspice can't > cope with that, who the hell knows ?:-)
I'm puzzled. I just tried that and it works fine. Example below. Jeroen Belleman Version 4 SHEET 1 880 680 WIRE 128 -96 -64 -96 WIRE 176 -96 128 -96 WIRE 176 -80 176 -96 WIRE -64 -64 -64 -96 WIRE 128 -64 128 -96 WIRE 128 16 128 -16 WIRE 176 16 176 0 WIRE 176 16 128 16 WIRE -64 48 -64 16 WIRE 176 64 176 16 WIRE 224 64 176 64 WIRE 288 64 224 64 WIRE 176 144 176 64 WIRE -80 192 -192 192 WIRE 112 192 -80 192 WIRE -192 208 -192 192 WIRE 176 272 176 240 WIRE 304 272 176 272 WIRE 304 288 304 272 WIRE -192 304 -192 288 WIRE -64 320 -64 272 WIRE 176 320 176 272 WIRE 304 384 304 352 WIRE -64 448 -64 400 WIRE 176 448 176 400 WIRE 176 448 -64 448 FLAG 304 384 0 FLAG -64 272 0 FLAG -64 48 0 FLAG -192 304 0 FLAG 224 64 out FLAG -80 192 in SYMBOL npn 112 144 R0 SYMATTR InstName Q1 SYMATTR Value 2N3904 SYMBOL res 160 304 R0 SYMATTR InstName R1 SYMATTR Value 1k SYMBOL cap 288 288 R0 SYMATTR InstName C1 SYMATTR Value 1u SYMBOL voltage -64 -80 R0 SYMATTR InstName V1 SYMATTR Value 10V SYMBOL voltage -64 304 R0 SYMATTR InstName V2 SYMATTR Value 5V SYMBOL voltage -192 192 R0 WINDOW 123 24 124 Left 2 WINDOW 39 0 0 Left 2 SYMATTR InstName V3 SYMATTR Value SINE(0 10m 1meg) SYMATTR Value2 AC 1 SYMBOL g2 176 -96 R0 SYMATTR InstName G1 SYMATTR Value 1m TEXT 152 -144 Left 2 !;tran 5u TEXT 288 -144 Left 2 !;ac dec 100 1k 100meg TEXT 288 -88 Left 2 !.noise v(out) v3 dec 100 1k 100meg TEXT 248 -32 Left 2 ;G1 behaves like a noiseless 1k resistor
On Sat, 17 Feb 2018 12:52:41 +0100, Jeroen Belleman
<jeroen@nospam.please> wrote:

>On 17/02/18 01:19, Jim Thompson wrote: >> On Fri, 16 Feb 2018 18:38:19 -0500, Phil Hobbs >> <pcdhSpamMeSenseless@electrooptical.net> wrote: >> >>> On 02/16/2018 05:08 PM, Jim Thompson wrote: >>>> On Fri, 16 Feb 2018 16:35:42 -0500, Phil Hobbs >>>> <pcdhSpamMeSenseless@electrooptical.net> wrote: >>>> >>>> [snip] >>>>> >>>>> TI's TINA models are mostly horrible. The OPA140 model won't converge >>>>> unless the supplies are *exactly* symmetrical, and not very often even >>>>> if they are. >>>> >>>> Didn't I write-up an OPA140 model for you that worked (~2015)? >>> >>> Nope, as I recall you hacked with it a bit and then agreed that the TINA >>> one was a mess. >> >> Sort of. A quick check of the E-mails back-and-forth between us shows >> the problem to have been "LTspice can't cope with a noiseless resistor >> as a DC path, PSpice can" (as well as any simulator >> Berkeley-compliant)... it's simply a G-source... why LTspice can't >> cope with that, who the hell knows ?:-) > >I'm puzzled. I just tried that and it works fine. >Example below. > >Jeroen Belleman > >Version 4 >SHEET 1 880 680 >WIRE 128 -96 -64 -96 >WIRE 176 -96 128 -96
]snip]
>TEXT 288 -144 Left 2 !;ac dec 100 1k 100meg >TEXT 288 -88 Left 2 !.noise v(out) v3 dec 100 1k 100meg >TEXT 248 -32 Left 2 ;G1 behaves like a noiseless 1k resistor
In _many_ instances where a G-source is used as a resistor in LTspice, LTspice can't find the operating point because Mikey turns off all current sources during the .OP calculation. I've taken to modeling noiseless resistors with an E-source to accommodate LTspice users... not as precise as a G-source :-( ...Jim Thompson -- | James E.Thompson | mens | | Analog Innovations | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | STV, Queen Creek, AZ 85142 Skype: skypeanalog | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | It's what you learn, after you know it all, that counts.
In message <m7eb8dld3o1jjm760jl5shjap114fj6mhf@4ax.com>, John Larkin 
<jjlarkin@highlandtechnology.com> writes

>It works perfectly for me, no hangs or crashes. I did manage to crash >it once some years back, by typing a very mal-formed illegal math >expression. Mike fixed that in one day.
Last time I reported a problem was with Windows NT. From the Change log 08/20/02 An NT crash mode was fixed. Version Brian -- Brian Howie
On Wed, 14 Feb 2018 15:07:42 -0600, John S <Sophi.2@invalid.org>
wrote:

>Here is what I have: > >.model LXHL-BW02 D(Is=4.5e-20 Rs=.85 N=2.6 Cjo=1.18n Xti=200 Iave=400mA >Vpk=5 mfg=Lumileds type=LED) > >How do I change the Vf at a specified current? I suspect that it is more >involved than just changing Rs. > >Thanks, Guys.
LED characteristics are quite depending on junction temperature, so you really have to include the thermal resistance from junction to ambient Rth(j-a) into any simulation. While this thermal resistance can be modeled with a constant in a limited temperature range, even this parameter varies with large temperature excursions. Unfortunately, some manufacturers give their (optical) characteristics at Tj=25 C. Fortunately, some reputable manufacturers give the characteristics at Tj=85 C, so a few iterations in a spreadsheet give more realistic values.
On 17/02/18 14:29, Phil Hobbs wrote:
> On 02/16/2018 05:38 PM, Jasen Betts wrote: >> On 2018-02-16, whit3rd <whit3rd@gmail.com> wrote: >>> On Thursday, February 15, 2018 at 5:55:04 PM UTC-8, John Larkin wrote: >>> >>>> Face it: LT Spice does everything right. >>> >>> Not on a MacBook, it doesn't. >> >> Is there something badly broken in the OSX version of wine? >> > > IIRC there's a native Mac version of LTspice.
I use it. It's awful, the worst "Mac" app I've ever used. It breaks every rule and standard, replacing them with terrible alternatives. I seriously think the Wine version is better, though I don't use it enough to have decided definitely.
On Friday, February 16, 2018 at 3:01:24 PM UTC-8, Jasen Betts wrote:
> On 2018-02-16, whit3rd <whit3rd@gmail.com> wrote: > > On Thursday, February 15, 2018 at 5:55:04 PM UTC-8, John Larkin wrote:
> >> Face it: LT Spice does everything right.
> > Not on a MacBook, it doesn't. > > Is there something badly broken in the OSX version of wine?
There's a native version for MacOS, but it doesn't have any provision for a trackpad, it requires a three-button mouse (no menu workaround, no shift/option/control key workaround). So, you have partial composition in the schematic editor, then the only way to get a working set of component values entered is to text-edit the intermediate file, and it doesn't 'save' as a part of the project when you do...
Am 17.02.2018 um 18:01 schrieb Jim Thompson:

>> Version 4 >> SHEET 1 880 680 >> WIRE 128 -96 -64 -96 >> WIRE 176 -96 128 -96 > ]snip] >> TEXT 288 -144 Left 2 !;ac dec 100 1k 100meg >> TEXT 288 -88 Left 2 !.noise v(out) v3 dec 100 1k 100meg >> TEXT 248 -32 Left 2 ;G1 behaves like a noiseless 1k resistor > > In _many_ instances where a G-source is used as a resistor in LTspice, > LTspice can't find the operating point because Mikey turns off all > current sources during the .OP calculation. > > I've taken to modeling noiseless resistors with an E-source to > accommodate LTspice users... not as precise as a G-source :-( > > ...Jim Thompson >
Is it really so hard to write the word "noiseless" after the resistance value? < https://www.flickr.com/photos/137684711@N07/38533153940/in/dateposted-public/ > Gerhard
On Sun, 18 Feb 2018 19:45:11 +0100, Gerhard Hoffmann
<gerhard@hoffmann-hochfrequenz.de> wrote:

>Am 17.02.2018 um 18:01 schrieb Jim Thompson: > >>> Version 4 >>> SHEET 1 880 680 >>> WIRE 128 -96 -64 -96 >>> WIRE 176 -96 128 -96 >> ]snip] >>> TEXT 288 -144 Left 2 !;ac dec 100 1k 100meg >>> TEXT 288 -88 Left 2 !.noise v(out) v3 dec 100 1k 100meg >>> TEXT 248 -32 Left 2 ;G1 behaves like a noiseless 1k resistor >> >> In _many_ instances where a G-source is used as a resistor in LTspice, >> LTspice can't find the operating point because Mikey turns off all >> current sources during the .OP calculation. >> >> I've taken to modeling noiseless resistors with an E-source to >> accommodate LTspice users... not as precise as a G-source :-( >> >> ...Jim Thompson >> >Is it really so hard to write the word "noiseless" after the resistance >value? > >< >https://www.flickr.com/photos/137684711@N07/38533153940/in/dateposted-public/ > > > > >Gerhard
Try that in any other Spice. That's my beef. LTspice doesn't follow convention. Thus its models won't play elsewhere. ...Jim Thompson -- | James E.Thompson | mens | | Analog Innovations | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | STV, Queen Creek, AZ 85142 Skype: skypeanalog | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | It's what you learn, after you know it all, that counts.
Am 18.02.2018 um 20:01 schrieb Jim Thompson:

>> Is it really so hard to write the word "noiseless" after the resistance >> value? >> >> < >> https://www.flickr.com/photos/137684711@N07/38533153940/in/dateposted-public/ >> > >> >> >> Gerhard > > Try that in any other Spice. That's my beef. LTspice doesn't follow > convention. Thus its models won't play elsewhere.
Using pspice and then complaining that LTspice does not conform to the "standards"! May I remind you that we had that problem with Pspice models that could not run on anything else for 20 years or so?