Keyboard Shortcuts
Likes
Search
Incandescent lamp model
Here is a corrected symbol subckt:
?
* block symbol definitions
.subckt lamp 1 2 .param lamp_voltage_rating = 120 .param lamp_power_rating = 20 .param start_temp = 20 .param Rstart ?= (lamp_voltage_rating*lamp_voltage_rating) / lamp_power_rating .param Tstart ?= start_temp .param T ?= temp .param alpha = 0.004403 BFilament 1 2 R=Rstart*(1+alpha*(T?Tstart)) Rpar=1G
.ends lamp ?
I added an equal sign to each param statement, and separated the user settable params from the internal params used for calculation,? so reading is clearer.
?
Three issues:
1. "alpha" param was defined twice
2. All of the lamp symbol attributes should be empty for a hierarchial block. "Value" was populated with "lamp".
3. I used a B device as a resistor so I could use Rpar to prevent "floating node" message.
?
I didn't check functionality or equations, just corrected problem so it would simulate.
?
eT |
||
开云体育The difficult bit is deriving the temperature
from the applied voltage, or? the filament current. However, I
think you can use a 'backwards'? trick, by defining the
temperature as the initial condition. It should be well above
room temperature, but not so high that the filament glows. Try
300 C. I posted some data about the tempco of tungsten a few
days ago, which gives you alpha.? Using the equation R=Rcold?(1+alpha?(T?Tcold)),
with R0 = room temperature resistance and To is room temperature
you can get R at T = 300 C. On 2025-03-17 23:26, Richard Andrews
via groups.io wrote:
--
OOO - Own Opinions only If something is true: * as far as we know - it's science *for certain - it's mathematics *unquestionably - it's religion |
||
开云体育Yes, the low Q of the Wien bridge is not good
for low distortion. I intend to try out that MFB circuit when I
get a chance. On 2025-03-17 21:45, Tony Casey wrote:
Perhaps you'd entertain a non-Wien Bridge oscillator: MFB_Oscillator. A working example sine wave oscillator schematic using an MFB (multiple feedback) topology. It uses no more parts than the usual Wien bridge and offers significantly better (distortion) performance. --
OOO - Own Opinions only If something is true: * as far as we know - it's science *for certain - it's mathematics *unquestionably - it's religion |
||
开云体育Perhaps you'd entertain a non-Wien Bridge oscillator: MFB_Oscillator. A working example sine wave oscillator schematic using an MFB (multiple feedback) topology. It uses no more parts than the usual Wien bridge and offers significantly better (distortion) performance.? --
Regards, Tony On 17/03/2025 20:33, Bell, Dave via
groups.io wrote:
|
||
开云体育That sort of error is likely to be flagged by
all versions of LTspice. I suggest you examine your .ASC
carefully to see if you? can see an error. I suppose you have
not added a model as text in the .ASC and also called it with an
',NC or .LIB directive? On 2025-03-17 20:11, Bell, Dave via
groups.io wrote:
--
OOO - Own Opinions only If something is true: * as far as we know - it's science *for certain - it's mathematics *unquestionably - it's religion |
||
开云体育Was this from the Lamp Test.asc in the zip file? I didn’t have any errors from that, with XVII ? From: [email protected] <[email protected]>
On Behalf Of Richard Andrews via groups.io
Sent: Monday, March 17, 2025 1:06 PM To: [email protected] Subject: EXTERNAL: Re: [LTspice] Incandescent lamp model ? DS1 is the name of the lamp you are testing as per the schematic.? ? When I try to get an expanded listing I get "Fatal Error: Multiple instances of "B:ds1:cf"". ? Mind you, I use LTspice 4. |
||
开云体育LOL!? 4X the hits with the wrong spelling ? From: [email protected] <[email protected]>
On Behalf Of Andy I via groups.io
Sent: Monday, March 17, 2025 12:31 PM To: [email protected] Subject: EXTERNAL: Re: [LTspice] Incandescent lamp model ? Might try searching for "Wien Bridge".? And the incorrect spelling with "Wein". |
||
开云体育I was trying for the “classical” hardware implementation (cf. HP201C, e.g.) ? I got a LTspice model working well, using a diode and filter feedback to adjust a behavioral resistor, but that’s cheating. ? From: [email protected] <[email protected]>
On Behalf Of John Woodgate
Sent: Monday, March 17, 2025 12:22 PM To: [email protected] Subject: EXTERNAL: Re: [LTspice] Incandescent lamp model ? That model is probably for a gas-filled lamp, but a pilot light is probably a vacuum lamp. That could make quite a difference. I'm surprised that a 6 V 10mA lamp is still made. Do you really need low distortion? Diode clipping can get down to about 1% with careful design. A JFET as a voltage-controlled resistor (VCR) can do better, but only for a one-off, because the FETs vary too much unless you use a very costly part designed and selected as a VCR. On 2025-03-17 18:39, Bell, Dave via groups.io wrote:
-- ?
|
||
开云体育Where did I have DS1 ? ? From: [email protected] <[email protected]>
On Behalf Of Richard Andrews via groups.io
Sent: Monday, March 17, 2025 12:24 PM To: [email protected] Subject: EXTERNAL: Re: [LTspice] Incandescent lamp model ? Is "DS1" an actual part number? I see it as a HID xenon lamp. |
||
开云体育I searched for “incandescent”… ? “lamp” returns 76 hits, such as clamp, differentialamp, CFL-lamp, Koren tubes, and my favorite: “Electrical Pulsing of a Laser Diode for Usage in Fluorescence Microscopy.pdf??? ??Report File Master of Science Thesis with LTspice simulation of step recovery diode and laser diode circuits” ? ? ? From: [email protected] <[email protected]>
On Behalf Of Andy I via groups.io
Sent: Monday, March 17, 2025 12:09 PM To: [email protected] Subject: EXTERNAL: Re: [LTspice] Incandescent lamp model ? Just FYI - ? There must be several more incandescent models here in this group.? Others have simulated with them in Wien Bridge oscillators.? But Analogspiceman's models are quite good quality so it's a good place - but not the only one - to start. ? Andy |
||
开云体育That model is probably for a gas-filled lamp,
but a pilot light is probably a vacuum lamp. That could make
quite a difference. I'm surprised that a 6 V 10mA lamp is still
made. Do you really need low distortion? Diode clipping can get
down to about 1% with careful design. A JFET as a
voltage-controlled resistor (VCR) can do better, but only for a
one-off, because the FETs vary too much unless you use a very
costly part designed and selected as a VCR. On 2025-03-17 18:39, Bell, Dave via
groups.io wrote:
--
OOO - Own Opinions only If something is true: * as far as we know - it's science *for certain - it's mathematics *unquestionably - it's religion |