¿ªÔÆÌåÓý

Date

Re: Is there any good 8 Ohm 0.5W loudspeaker model?

 

think of it this way - the loud speaker is like a or a with relatively poor ratio that is near input

google[] , []

SUM :: for adequate model you should include the physical membrane displacement tracking . . . which would make the model over exhaustive for processing power point of view -- that unless you succeed to define some simplified mathematical model that relates the electrical I/O to mechanical response (the analogy is the (about ) , etc. ...)


Re: radiated noise from a twisted set wire

 

flpierson wrote:

? ? "What I need to do is take the FFT of the average current of the three wires. How do I go about doing that?"

First, define what you mean by "the average current of the three wires."

I don't even know what "average current" means in the context of an FFT.? Usually an FFT operates on a waveform.? When you average that waveform, you no longer have the waveform; you have just a number.? You can't take an FFT of a number.? Does "average" mean "filtered" or "smoothed"?? Why bother doing that?? Can't you just take the FFT of the current as it is?

What do you mean by "the three wires"?? Do you want the FFT of the current through each wire -- hence, three FFT spectra?? Or do you want the FFT of something like the net current of all three wires combined?

In LTspice it's easy to get the FFT of any number of signals.? Plot the ones you want on a waveform plot, then right-click > View > FFT.? Here, you can choose how many data samples, the time range over which to evaluate the FFT, whether to do a wee bit of smoothing by averaging adjacent time points, and whether to apply a windowing filter.? The latter is unnecessary if you've chosen the time span to include an exact integer number of cycles.? The waveforms that were plotted are highlighted in the top, but you can change which one or ones you want.

Click OK.? Now, if you had two or more waveforms selected, you'll get another window that lets you choose again exactly which ones to plot.? If you want all three, just highlight them all.? Or you can enter an expression here (such as I(R1)+I(R2)+I(R3)).

Click OK.? Voila, there's your FFT spectrum or spectra.

Now, if the thing you want is the FFT of the combined current, figure out what that means to you.? Do you want the common-mode current?? Differential mode?? Make an expression for what you want.? Then implement it.? You could do that with a Bv source added to your schematic (so that it exists as a separate signal that can be probed), or you can enter the expression later in the FFT process.

If you are new to FFTs, make sure that you do all the things necessary to get a good FFT.? Choose an appropriately small Maximum Timestep.? Disable waveform compression by adding ".options plotwinsize=0" to your schematic (it's essential!).? Make sure to use an integral number of cycles in the time interval passed to the FFT.? If there are start-up transients, wait for those to die out before starting the FFT.? Choose the total time interval wisely, as it affects the FFT's appearance -- one cycle is probably too little, 1000 cycles is probably too much.? Finally, LTspice's FFT shows you tons of high-order harmonics that may have no meaning, so ignore them, unless you are sure that the waveforms have meaningful data up there at those frequencies.? I guess the philosophy is it's better to start with too much data and discard what you don't want, than to start with too little and not know that there was more.

Regards,
Andy



Re: radiated noise from a twisted set wire

 

¿ªÔÆÌåÓý

Add to your schematic a B type current source whose current is the sum of the three line currents. Connect a resistive load to it to prevent its voltage becoming infinite. Then take the FFT of the B source. You need not divide the sum by 3 because that will not affect the FFT.

John Woodgate OOO-Own Opinions Only
J M Woodgate and Associates 
Rayleigh, Essex UK
On 2018-11-21 17:15, flpierson@... [LTspice] wrote:

?

I have a 3 phase twisted set wire radiating noise. I've constructed what I believe if a sufficient filter to knock the noise down to acceptable levels. What I need to do is take the FFT of the average current of the three wires. How do I go about doing that?



radiated noise from a twisted set wire

 

I have a 3 phase twisted set wire radiating noise. I've constructed what I believe if a sufficient filter to knock the noise down to acceptable levels. What I need to do is take the FFT of the average current of the three wires. How do I go about doing that?



Re: LTSpice Model for Photo Triac - VOM160

 

Hi Andy,
Thank you very much for your very quick reply and taking your time to explain details. I will continue with this query after my personal errand.?
Best regards,
Eric

On Wed, Nov 21, 2018 at 12:41 AM Andy ai.egrps@... [LTspice] <LTspice@...> wrote:
?

Eric wrote:

? ? "I found the MOC308x phototriac circuit simulation (solved) from the htm files.? I tried to RUN it but it won't."

I downloaded it (it's the same file that was uploaded here around a month ago), extracted it, and it ran.? There were a bunch of "heightened def con" messages in the .log file, but those are not necessarily bad, and they don't indicate failure.

So, it always helps to tell us what didn't work.? Did your computer shut off, or burst into flames?? Was there an error message?? If there was, what was it?? Try to be specific.? Also tell us which version of LTspice you used: LTspice IV or LTspice XVII.

All I did was create a brand new folder, extract the contents of the ZIP file into that folder, open the .asc file in LTspice, and press RUN.? There was nothing else to do.? You didn't move any of the files anywhere else, did you?

Have you altered your LTspice settings?? You might have changed the settings in the Control Panel at some point.? If you think you might have done that, open the Control Panel (hammer icon), press "Reset to Default Values", and OK.? Then try running the simulation again.

? ? "How do I load this part into my library?"

I think you need only these two files:
? ? LED_TRIAC_ZCS..asy
? ? MOC308x.lib
You can either put them in the folder with the schematic(s) that will use them, or add them to LTspice's libraries.? I prefer the former, but you could do either.

To add them to LTspice's libraries, move or copy LED_TRIAC_ZCS.asy here:
? ? Documents\LTspiceXVII\lib\sym\
or to a subdirectory of it.? Move or copy MOC308x.lib here:
? ? Documents\LTspiceXVII\lib\sub\
(must be that folder, not a subdirectory of it).

If you leave both files in the folder with your schematic, you'll need to do one extra step when putting the symbol on a schematic.? Open the schematic file in LTspice (if it's new, make sure to save it so that its file is in the current folder).? Go to the Add Components menu.? At the top, there is a line for "Top Directory" with two choices.? One is LTspice's library; the other is the current directory.? Change it to the current directory.? Now the LED_TRIAC_ZCS symbol should be in the menu and can be selected.

Whichever method you used, follow these steps:

(1)? Add a LED_TRIAC_ZCS symbol to the schematic.
(2)? Right-click on the text LED_TRIAC_ZCS under the symbol, and change it to MOC3083.
(3)? Add this line as a SPICE Directive:

? ? .lib MOC308x.lib

I am not 100% certain that the above steps work, but I think they should be right.

Regards,
Andy



Re: Which folder to install new libraries ?

 

Thanks for taking the time to explain Andy.

Joe McCarron


Re: LTSpice Model for Photo Triac - VOM160

 

Eric wrote:

? ? "I found the MOC308x phototriac circuit simulation (solved) from the htm files.? I tried to RUN it but it won't."

I downloaded it (it's the same file that was uploaded here around a month ago), extracted it, and it ran.? There were a bunch of "heightened def con" messages in the .log file, but those are not necessarily bad, and they don't indicate failure.

So, it always helps to tell us what didn't work.? Did your computer shut off, or burst into flames?? Was there an error message?? If there was, what was it?? Try to be specific.? Also tell us which version of LTspice you used: LTspice IV or LTspice XVII.

All I did was create a brand new folder, extract the contents of the ZIP file into that folder, open the .asc file in LTspice, and press RUN.? There was nothing else to do.? You didn't move any of the files anywhere else, did you?

Have you altered your LTspice settings?? You might have changed the settings in the Control Panel at some point.? If you think you might have done that, open the Control Panel (hammer icon), press "Reset to Default Values", and OK.? Then try running the simulation again.

? ? "How do I load this part into my library?"

I think you need only these two files:
? ? LED_TRIAC_ZCS.asy
? ? MOC308x.lib
You can either put them in the folder with the schematic(s) that will use them, or add them to LTspice's libraries.? I prefer the former, but you could do either.

To add them to LTspice's libraries, move or copy LED_TRIAC_ZCS.asy here:
? ? Documents\LTspiceXVII\lib\sym\
or to a subdirectory of it.? Move or copy MOC308x.lib here:
? ? Documents\LTspiceXVII\lib\sub\
(must be that folder, not a subdirectory of it).

If you leave both files in the folder with your schematic, you'll need to do one extra step when putting the symbol on a schematic.? Open the schematic file in LTspice (if it's new, make sure to save it so that its file is in the current folder).? Go to the Add Components menu.? At the top, there is a line for "Top Directory" with two choices.? One is LTspice's library; the other is the current directory.? Change it to the current directory.? Now the LED_TRIAC_ZCS symbol should be in the menu and can be selected.

Whichever method you used, follow these steps:

(1)? Add a LED_TRIAC_ZCS symbol to the schematic.
(2)? Right-click on the text LED_TRIAC_ZCS under the symbol, and change it to MOC3083.
(3)? Add this line as a SPICE Directive:

? ? .lib MOC308x.lib

I am not 100% certain that the above steps work, but I think they should be right.

Regards,
Andy



Re: Problem with inserting components and drawing wires

 

I'm having this same issue. Reproduced on my Macbook Pro running Sierra (10.12.6), and my iMac running El Capitan (10.11.6). It is not a mouse issue - it's a graphics-layer issue. Whatever canvas routine is being used, it isn't erasing what it previously drew. It's a major bug and makes this program totally unusable. I was excited to upgrade, but now I'm relegated to using Wine for LTspice. Disappointing.


Re: LTSpice Model for Photo Triac - VOM160

 

Hello Andy,
I found a part MOC308x and uploaded into my library. I couldn't make it work. Maybe I have not done it correctly. But I also found a circuit containing the same part that has been "solved" already.
I tried to Run it but wouldn't. Not sure what is wrong. I have uploaded the file named MOC308xSimulation. I just saw your mail now so I had asked help from John already.
Yes sorry I was not aware to use the new topic button.
Thanks and best regards,
Eric


On Tue, Nov 20, 2018 at 10:20 PM Andy ai.egrps@... [LTspice] <LTspice@...> wrote:
?

I suggest also searching with these search terms:
? ? "opto-triac"
? ? "optotriac"
? ? "opto triac:
and even simply "opto" if you are willing to filter through the many results.

There are a few instances of "opto-triac", "optotriac", and "opto triac" already in the Table of Contents file (all_files.htm), but I don't know if your Vishay part might be one of them.

There is even one match for "photo triac" (with the space).

Obviously, no search is perfect because many combinations of words can be used for the same thing, so you have to think creatively.

By the way, Eric -- When starting a new question in this forum, please use the "New Topic" button, not the "Reply" button.? Even though you changed the Subject line, your message is linked to the question about the HV9110 PWM controller (which you replied to).? The Yahoo!Groups website is at least partly thread-aware, and it keeps your replies within that original conversation even though you changed the Subject line.? Therefore, use "New Topic" to start a new topic.? (This affects some people's email programs too.)? If you don't see the "New Topic" button, go back to the group's main webpage, by clicking on "LTspice" in bigger letters near the top of the page.

Regards,
Andy



Re: LTSpice Model for Photo Triac - VOM160

 

Hello John,
Pls kindly wish to consult. I found the MOC308x phototriac circuit simulation (solved) from the htm files.? I tried to RUN it but it won't. I uploaded the file named MOC308xSimulation for your reference.
Not sure what is wrong? Do I need to do something else?? How do I load this part into my library??
I have tried separately loading stand alone .lib model and symbol of the same part also found in the htm files but seems I can't make it work too.
Thanks and best regards,
Eric


On Tue, Nov 20, 2018 at 6:17 PM Eric Henares <eohenares@...> wrote:
Hello John,
Thank you very much. I will? try that..
Best regards,
Eric

On Tue, Nov 20, 2018 at 6:02 PM John Woodgate jmw@... [LTspice] <LTspice@...> wrote:
?

Have you downloaded and saved all_files.htm from the web site? Open it in your browser and search for phototriac.

John Woodgate OOO-Own Opinions Only
J M Woodgate and Associates 
Rayleigh, Essex UK
On 2018-11-20 22:46, Eric Henares eohenares@... [LTspice] wrote:
?
Hi,
I'm new to this group? and LTSpice simulation as well. So far it has been very helpful to the design of my circuit. Now i need to add a photo triac.
I tried looking at LTSpice available libraries but could not find a model for a photo triac. Would there be one for the part no. VOM160? Or similar one?
Thanks and best regards,
Eric





Re: Which folder to install new libraries ?

 

Joe asked, where to install a library of additional parts for LTspice.

? ? "Do I install in LTSpice in "program files" or my working directory
? ? ?users/me/LTSpice ?"

If you are using LTspice XVII, then the answer is, NOT in "Program Files".? That is not where LTspice XVII looks for its library of parts.? LTspice XVII's library is here:

? ? Documents\LTspiceXVII\lib\...

Depending on how you look, it might be one of these (which are all the same place):

? ? Libraries\Documents\LTspiceXVII\lib\...
? ? C:\Users\\My Documents\LTspiceXVII\lib\...

There is what looks like a copy of the library also under "Program Files", but don't use it!

Now, if you were using LTspice IV, you might need to look under "Program Files".? But there might be problems if you do that.? And anyway I'm guessing you are using LTspice XVII by now.

MY personal preference, is to NOT add anything to LTspice's libraries.? Instead, add your additional parts to the current working directory, wherever that is.? I like doing that for a few reasons, one of them being that you never have any question what parts came with LTspice and what ones you added later.? This becomes a regular problem when people upload their schematics here (or send them to their co-workers), and think that everyone has a copy of something that exists only on their computer (or on a handful of computers in the world).? And then it doesn't work.

However, there are some advantages to adding new parts to LTspice's libraries, especially if you are adding several new components in different directories.? The choice is up to you.

If you add parts to your current working directory, there is an additional step you need to do, to "see" them when you are creating your schematic.? With a schematic open (if it's a brand new schematic, save it first, even if it's empty), go to the Add Component menu, where you find all the parts.? At the top of the pop-up window, there is a line for "Top Directory" with two choices.? One is LTspice's library.? The other is the current working directory (the folder of the current schematic file).? Change the Top Directory to that.? Now you can see all the components that you've added to the current working directory.? To get back to LTspice's library, go to that "Top Directory" thing and flip it back.

Regards,
Andy



Which folder to install new libraries ?

 

Hello,


I want to download and use a digital library. Do I install in LTSpice in "program files" or my working directory

users/me/LTSpice ?


I followed the instructions and installed the library into LTSpice in the "Program Files" directory. When I open up a new schematic and enter a part it is just the default digital devices.?


Thanks

Joe McCarron



Re: LTSpice Model for Photo Triac - VOM160

 

I suggest also searching with these search terms:
? ? "opto-triac"
? ? "optotriac"
? ? "opto triac:
and even simply "opto" if you are willing to filter through the many results.

There are a few instances of "opto-triac", "optotriac", and "opto triac" already in the Table of Contents file (all_files.htm), but I don't know if your Vishay part might be one of them.

There is even one match for "photo triac" (with the space).

Obviously, no search is perfect because many combinations of words can be used for the same thing, so you have to think creatively.

By the way, Eric -- When starting a new question in this forum, please use the "New Topic" button, not the "Reply" button.? Even though you changed the Subject line, your message is linked to the question about the HV9110 PWM controller (which you replied to).? The Yahoo!Groups website is at least partly thread-aware, and it keeps your replies within that original conversation even though you changed the Subject line.? Therefore, use "New Topic" to start a new topic.? (This affects some people's email programs too.)? If you don't see the "New Topic" button, go back to the group's main webpage, by clicking on "LTspice" in bigger letters near the top of the page.

Regards,
Andy



Re: Multiple .NOISE simulations on a single plot

 

Conin wrote:

"I have 2 circuits in a single simulation file. I would like to compare the output noise between the circuits on a single plot. I'd like to do this without post processing .RAW files in the LTSputil tool. How can I step or parameterize the .NOISE simulation directive to have both results at the same time?"

If they are both in a single simulation file, then you really have one circuit. You just happen to think of the two halves as being separate, but LTspice doesn't know this. Therefore, you already have both circuits at the same time, don't you?

When you run the simulation, you can plot the noise from both halves on the same plot. I see no need to parameterize or step anything or to do any post-processing.

If this doesn't answer your question, maybe you need to be more specific, or upload your simulation file(s). Remember to include all symbols and models that didn't come with LTspice, and if there's more than one file, zip them into one .ZIP file (that's .ZIP, not another file type). Don't include .raw or .log files. Remember to read the instructions on the group's main webpage and in the email you received when you joined.

Regards,
Andy


Re: LTSpice Model for Photo Triac - VOM160

 

Hello John,
Thank you very much. I will? try that..
Best regards,
Eric


On Tue, Nov 20, 2018 at 6:02 PM John Woodgate jmw@... [LTspice] <LTspice@...> wrote:
?

Have you downloaded and saved all_files.htm from the web site? Open it in your browser and search for phototriac.

John Woodgate OOO-Own Opinions Only
J M Woodgate and Associates 
Rayleigh, Essex UK
On 2018-11-20 22:46, Eric Henares eohenares@... [LTspice] wrote:
?
Hi,
I'm new to this group? and LTSpice simulation as well. So far it has been very helpful to the design of my circuit. Now i need to add a photo triac.
I tried looking at LTSpice available libraries but could not find a model for a photo triac. Would there be one for the part no. VOM160? Or similar one?
Thanks and best regards,
Eric





Re: LTSpice Model for Photo Triac - VOM160

 

¿ªÔÆÌåÓý

Have you downloaded and saved all_files.htm from the web site? Open it in your browser and search for phototriac.

John Woodgate OOO-Own Opinions Only
J M Woodgate and Associates 
Rayleigh, Essex UK
On 2018-11-20 22:46, Eric Henares eohenares@... [LTspice] wrote:

?
Hi,
I'm new to this group? and LTSpice simulation as well. So far it has been very helpful to the design of my circuit. Now i need to add a photo triac.
I tried looking at LTSpice available libraries but could not find a model for a photo triac. Would there be one for the part no. VOM160? Or similar one?
Thanks and best regards,
Eric





LTSpice Model for Photo Triac - VOM160

 

Hi,
I'm new to this group? and LTSpice simulation as well. So far it has been very helpful to the design of my circuit. Now i need to add a photo triac.
I tried looking at LTSpice available libraries but could not find a model for a photo triac. Would there be one for the part no. VOM160? Or similar one?
Thanks and best regards,
Eric





Multiple .NOISE simulations on a single plot

 

Hello,


I have 2 circuits in a single simulation file.? I would like to compare the output noise between the circuits on a single plot.? I'd like to do this without post processing .RAW files in the LTSputil tool.? How can I step or parameterize the .NOISE simulation directive to have both results at the same time?


Thank you,


Colin


Re: Loudspeaker model

Bill Perkins
 

While the link below might be more than you are looking for, the author takes some pains to SPICE-model eddy current effects in a LS motor assy:



English isn't his first language so the text gets a bit convoluted in places.

Finally, if anyone has the time to re-do his SPICE work, properly labelling the curves and using a white background, I would be grateful as I plan a rather substantial edit of the document into more accessible form.

Bill @ PEARL, Inc.

Sanzha, in addition to what yoyu can find in the all_fils.htm, this link may give you some info on making your own model.

Regards, Steve
*From:* mailto:LTspice@...
*Sent:* Tuesday, November 20, 2018 4:08 AM
*To:* LTspice@... <mailto:LTspice@...>
*Subject:* [LTspice] Re: Loudspeaker model
sanzha.shabdarov asked if there are SPICE models for loudspeakers.
There are.
One of the things that you saw when you joined this group (but probably did not pay attention to), is the fact that the group has a sizable Files area with models that have been collected over more than 15 years. The "Table of Contents" file (all_files.htm) is your best index into those files, but it's not a perfect index.
Download that file. Then open it in your web browser. I suggest doing a search for "speaker", but be aware that some of them are different, such as piezoelectric and electrostatic speaker elements. Just check the files and see what you find. Some might be what you're looking for; others not.
Also be aware that loudspeakers come in all shapes and sizes and types. Any one model is good for only one speaker, and it's probably not the one you really wanted. Many models would be for complete loudspeakers with one or more drivers inside an enclosure. The enclosure makes a big difference to portions of the speaker's impedance.
Some good places to search for SPICE models are (a) our group's Files area, (b) a manufacturer's website (esp. for ICs and some transistors), and (c) Google -- e.g., the open Internet. Some judgment is always required, along with willingness to use a similar model when the one you're looking for doesn't exist.
Regards,
Andy
<> Virus-free. www.avast.com <> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


Re: Switch mode PWM Controller model

 

Hi,
i am also looking for the model of this part (HV9110). Do you have it already?

best regards!


---In LTspice@..., <clift_8_9@...> wrote :

Has anyone modeled any of the following parts

HV9110
HV9120
HV9123

Cheers