Help with ltspice, total newbie

bvbellomo

Member
2013-03-08 2:31 pm
So I wanted to play around with various crossover simulations in LTSpice. I tried to do a 1st order crossover at 2kHz - not to actually build one, just trying to learn LTSpice.

I used the calculator at 'http://www.diyaudioandvideo.com/Calculator/XOver/' to find I need a 19.88 uF cap and .32 mH coil. Adding these, the wires was easy and grounds was easy. It took me longer to find I needed to add 'voltage' under components and run a "AC Analysis". This gives me a some output, but I messed up somewhere, as I am crossing over closer to 200Hz if I am reading the output correctly (solid lines are response).

I used resistors for my drivers. Is that correct?

How do I get the "Edit Simulation Command" window back after running this the first time, if I want to change my starting or stopping frequencies or points per octave?

This is a pretty cool program if I can get my mind around it.
 

Rundmaus

Member
2005-08-21 10:46 pm
If you want to model a speaker, it will probably help reading about modeling a speaker, won't it?

The third link starts with the following:

"Hi,
Could you guys please explain to me how to create a spice model for a speaker driver? "

That is exactly what you were asking. Where is the use in trying to repeat everything that has been written in another thread?

Even a 'total newbie' will gain more from reading about the basics and trying to understand them than just playing around without an idea of what is happening. If questions arise, and they probably will, there will surely be someone here willing to help.

Rundmaus
 

bvbellomo

Member
2013-03-08 2:31 pm
I was asking if there was a simple way to play around with simple low pass and high pass filters without creating a detailed spice model of a speaker driver, but I guess the answer was "No".

These links all point to .asc and .inc files.

I am not sure what an .inc file is exactly, but saw a tutorial on how to include one that tells me to add speaker.inc by using 'S' on my keyboard. This gives me a large block of text that says ".inc speaker.inc" but it doesn't appear to do anything.

I understand .asc is a schematic, and there might be a way to make it into a modular component. Trying to include spice-tsp.asc with the .inc command (as above) gives me an error about multiple 'Flag' objects.

I am trying to find a modular way of including a component or something similar as a driver. Is that the correct way to go about this? Will it be easier with .inc files or .asc files or does this matter?

spice-tsp.asc gives me something that runs and lets me plug in Thiele/small parameters. I can probably simulate a 3-way speaker just by duplicating it 3 times. This seems more like a hack to build a speaker for someone who doesn't understand spice than a good solution.
 

Elvee

Member
2006-09-08 2:04 pm

Rundmaus

Member
2005-08-21 10:46 pm
To understand about .asc and .inc files, you need some LTSpice basics...

Found them out myself by trial-and-error, but there are good tutorials out there...

The .inc file contains information about the behaviour of a sub-circuit. A sub-circuit is almost anything you want to use in your schematics besides simple stuff like resistors, capacitors and inductances. Any transistor, IC, tube or whatever is a subcircuit and usually comes with an .inc file.

Including the .inc file creates just a text block telling Spice what to do. For the schematic, the .asc file is needed, it creates the 'face' for the subcircuit: Usually a symbol with connectors you can use in your circuit.

LTSpice has quite a number of symbols in its gallery, but most of them have no model provided with them, you have to find your own.

Rundmaus