开云体育


Re: Pease tuneable MFB band-pass filter

 

Be careful naming a file "opamp.sub" and a .subckt of the same name. There is already an "opamp" and an "opamp.sub" in the LTspice installation.

--
Regards,
Tony


On Fri, 16 May 2025, 19:00 Tim Hutcheson via , <thutcheson=[email protected]> wrote:
@John Woodgate
?
John does your OpAmp.sub look like this?
?
.SUBCKT OpAmp 0 N003 V+ V- OUT
X1 0 N003 V+ V- OUT level1 Avol=1Meg GBW=10Meg Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg
.lib UniversalOpAmp1.lib
.ENDS
?
It runs fine here.
?
Tim


Re: Pease tuneable MFB band-pass filter

 

Those 0 and N003 node names could be IN- and IN+, but I don't think that matters - they just transfer the connections


Re: Pease tuneable MFB band-pass filter

 

@John Woodgate
?
John does your OpAmp.sub look like this?
?
.SUBCKT OpAmp 0 N003 V+ V- OUT
X1 0 N003 V+ V- OUT level1 Avol=1Meg GBW=10Meg Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg
.lib UniversalOpAmp1.lib
.ENDS
?
It runs fine here.
?
Tim


Pease tuneable MFB band-pass filter

 

开云体育

It won't run. ERROR: C:\Users\User\Downloads\Pease MFB BP filter (2)\Pease MFB BP filter (2)\OpAmp.sub(7): This sub-circuit name is not defined.
X1 3 2 8 4 1 UniversalOpAmp
??????????? ^^^^^^^^^^^^^^^

I find I have to download my uploads to Downloads and run from there , to check that the upload does work.

On 2025-05-16 17:30, Group Notification wrote:

The following items have been added to the Files area of the [email protected] group.

By: Tim Hutcheson <thutcheson@...>

Description:
Pease Filter with an OpAmp.sub that wraps the UniversalOpAmp device for easy substitution by name for any pincompatible opamp (I think). :-)

--
Best wishes John Woodgate RAYLEIGH Essex 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

Virus-free.


Re: Simulating a testofon

 

开云体育

It's 'Solder pads for test leads'. It buzzes if R10 is low enough, so it's a continuity tester. I suppose the PTC in the picture is protection against the test leads being connected to a significant voltage.

On 2025-05-16 16:15, Andy I via groups.io wrote:
On Fri, May 16, 2025 at 11:01 AM, Klaus W?rner wrote:
I try to simulate a testofon, but it doesn't work. Has anyone an idea, why?
I don't know what a testofon (or testafon) is, but I think it is a buzzer?? Does it make an audible buzzing sound when the leads connect?
?
From the looks of the schematic, it seems like there should be a voltage source connected at the far left end.? Otherwise, why would the diodes be there?? I do not know how to speak German so I don't know what the picture says.
?
If the rest of the circuit is supposed to be an oscillator, then maybe it needs more time to start oscillating.? Or, maybe it needs a smaller timestep.? If I change the simulation command from this:
.tran 1s
to this:
.tran 0 1s 0 1u
then the output signal shows a strong oscillation.
?
The problem is that SPICE/LTspice is a discrete time simulator.? It does not simulate in continuous time.? It chooses timesteps based on what is already happening in the circuit.? If it is not oscillating yet, then the timesteps might be too far apart, to get it oscillating.? And then it never knows to make the timesteps smaller, which might be needed in order for it to oscillate.
?
Andy
?
--
Best wishes John Woodgate RAYLEIGH Essex 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

Virus-free.


Re: Simulating a testofon

 

开云体育

On 16/05/2025 17:01, Klaus W?rner via groups.io wrote:
I try to simulate a testofon, but it doesn't work. Has anyone an idea, why?
Add "startup" to the .TRAN directive.

--
Regards,
Tony


Re: Pease tuneable MFB band-pass filter

 

开云体育

The circuit does require quite a high GBW. With the 4562, it begins to lose gain above 50 kHz peak frequency.

On 2025-05-16 15:55, Andy I via groups.io wrote:
I forgot to mention -
?
I also uploaded "Pease MFB BP filter with UnivOpAmp2.zip" to the Temp folder.? It substitutes the UniversalOpAmp2 in place of the LM4562, and it moves the "OUT" node to the right place.
?
I see that John has also updated his file again, to move the "OUT" node to where it should be.
?
His schematic kept the LM4562, so you can compare it against the UniversalOpAmp2 in mine.
?
Andy
?
?
--
Best wishes John Woodgate RAYLEIGH Essex 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

Virus-free.


Re: Simulating a testofon

 

On Fri, May 16, 2025 at 11:01 AM, Klaus W?rner wrote:
I try to simulate a testofon, but it doesn't work. Has anyone an idea, why?
I don't know what a testofon (or testafon) is, but I think it is a buzzer?? Does it make an audible buzzing sound when the leads connect?
?
From the looks of the schematic, it seems like there should be a voltage source connected at the far left end.? Otherwise, why would the diodes be there?? I do not know how to speak German so I don't know what the picture says.
?
If the rest of the circuit is supposed to be an oscillator, then maybe it needs more time to start oscillating.? Or, maybe it needs a smaller timestep.? If I change the simulation command from this:
.tran 1s
to this:
.tran 0 1s 0 1u
then the output signal shows a strong oscillation.
?
The problem is that SPICE/LTspice is a discrete time simulator.? It does not simulate in continuous time.? It chooses timesteps based on what is already happening in the circuit.? If it is not oscillating yet, then the timesteps might be too far apart, to get it oscillating.? And then it never knows to make the timesteps smaller, which might be needed in order for it to oscillate.
?
Andy
?


Simulating a testofon

 

Hi,
?
I try to simulate a testofon, but it doesn't work. Has anyone an idea, why?
?
--
Klaus


Re: Pease tuneable MFB band-pass filter

 

I forgot to mention -
?
I also uploaded "Pease MFB BP filter with UnivOpAmp2.zip" to the Temp folder.? It substitutes the UniversalOpAmp2 in place of the LM4562, and it moves the "OUT" node to the right place.
?
I see that John has also updated his file again, to move the "OUT" node to where it should be.
?
His schematic kept the LM4562, so you can compare it against the UniversalOpAmp2 in mine.
?
Andy
?
?


Re: Pease tuneable MFB band-pass filter

 

On Fri, May 16, 2025 at 08:34 AM, Tim Hutcheson wrote:
Btw, it occurs to me because of this that a nice feature for LTspice would be to be able to simply change the opamp name on the schematic to UniversalOpAmp to avoid having to place it.
That actually does work too, except for these two things:
  1. You must remember to also add a ".lib" command to the schematic to load the necessary library file.
  2. The actual subcircuit names of the UniversalOpAmp* models are "level1", "level2", "level3a", "level3b", and "level4".
?
Therefore, it is actually easier (IMO) to just place the new symbol in place of the old one.? It takes care of everything automagically.
?
Andy
?


Re: Pease tuneable MFB band-pass filter

 

开云体育

That's what I have now done, but I had strange difficulty in getting rid of the .ASC with the wrong OUT flag.

On 2025-05-16 15:24, Andy I via groups.io wrote:
I agree, a fixed schematic is best.? It would be even better if John had moved the "OUT" node name to the right place.? Oh well.
?
But it really was trivial to delete the ".inc" command and the op-amp symbol, and place a new UniversalOpAmp2 symbol in its place.? That's three steps, and done.? For me, I did not find it harder (in fact it's easier) than editing the name next to the op-amp symbol, and it is much easier than also adding the parameters on the other three Attribute lines if they are needed for it to work right.? Still, some are unaware of the UniversalOpAmp* components and how they work.
?
Analog Devices did mess things up quite a bit by splitting the UniversalOpAmp component into seven distinct components, which now cause confusion when users try using them for the first time and discover that they might not behave like op-amps do.? They should have left it alone.
?
Andy
?
?
--
Best wishes John Woodgate RAYLEIGH Essex 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

Virus-free.


Re: Pease tuneable MFB band-pass filter

 

I agree, a fixed schematic is best.? It would be even better if John had moved the "OUT" node name to the right place.? Oh well.
?
But it really was trivial to delete the ".inc" command and the op-amp symbol, and place a new UniversalOpAmp2 symbol in its place.? That's three steps, and done.? For me, I did not find it harder (in fact it's easier) than editing the name next to the op-amp symbol, and it is much easier than also adding the parameters on the other three Attribute lines if they are needed for it to work right.? Still, some are unaware of the UniversalOpAmp* components and how they work.
?
Analog Devices did mess things up quite a bit by splitting the UniversalOpAmp component into seven distinct components, which now cause confusion when users try using them for the first time and discover that they might not behave like op-amps do.? They should have left it alone.
?
Andy
?
?


Re: Pease tuneable MFB band-pass filter

 

开云体育

I've updated to include the 4562 model file.

On 2025-05-16 14:36, Tim Hutcheson via groups.io wrote:
I was suggesting that,as in this case a device include is missing (happens often), if I could comment out the ".inc LM4562_NS.sub", and supposing I had many opamps that use that model, It would be nice not to have to cut and replace those with a new placement of? UniversalOpAmp2, just replacing the names could be made sufficient (ADI change required).
?
--
Best wishes John Woodgate RAYLEIGH Essex 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

Virus-free.


Re: Pease tuneable MFB band-pass filter

 

I was suggesting that,as in this case a device include is missing (happens often), if I could comment out the ".inc LM4562_NS.sub", and supposing I had many opamps that use that model, It would be nice not to have to cut and replace those with a new placement of? UniversalOpAmp2, just replacing the names could be made sufficient (ADI change required).
?


Re: Pease tuneable MFB band-pass filter

 

开云体育

On 16/05/2025 15:04, Tim Hutcheson via groups.io wrote:
LOL! Not the same as 'simply change the name'.?
Well, you would have already known that it was not possible to simply do that because you already had to point to the LM4562_NS.sub (or whatever) model file. The universalopamp is no different to any other opamp you might choose to use: LTspice needs to know which model file to use. In that respect, it is the same as any other opamp that happens to use the opamp2 symbol, which is presumably what you're using.

--
Regards,
Tony


Re: Pease tuneable MFB band-pass filter

 

Hi John,? I was really only intereseted in advising that your Pease zip was missing the LM4562_NS.sub ifile needed for simulation of the actual circuit you posted.
?
The UniversalOpAmp thing was just an aside comment.
?
Tikm


Re: Pease tuneable MFB band-pass filter

 

开云体育

I made a ZIP with UniversalOpamp, but Tony seems to have made it superfluous.? I will upload it, if it still has value.

On 2025-05-16 13:34, Tim Hutcheson via groups.io wrote:
Hi John, Could you update your zip of the circuit to .inc LM4562_NS.sub?Btw, it occurs to me because of this that a nice feature for LTspice would be to be able to simply change the opamp name on the schematic to UniversalOpAmp to avoid having to place it.
?
Tim
--
Best wishes John Woodgate RAYLEIGH Essex 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

Virus-free.


Re: Pease tuneable MFB band-pass filter

 

LOL! Not the same as 'simply change the name'.?
?
T


Re: Pease tuneable MFB band-pass filter

 

开云体育

On 16/05/2025 14:34, Tim Hutcheson via groups.io wrote:
Could you update your zip of the circuit to .inc LM4562_NS.sub?Btw, it occurs to me because of this that a nice feature for LTspice would be to be able to simply change the opamp name on the schematic to UniversalOpAmp to avoid having to place it.
Actually, you can already do exactly that.
  1. Place opamp2 symbol (if not already present)
  2. Change the Value to level2
  3. Add: .lib universalopamp2.lib as a SPICE directive
You're done!

Of course, if you want to change any of the parameters, that's a pain, because you'll have to look them up. But if the defaults (already defined in universalopamp.lib) are OK, then there's nothing left to do.

The Universalopamp symbols are exactly the same as the opamp2 symbol, but have the various parameters already defined for easy editing. It shouldn't be such a big deal.

IMHO, ADI screwed up the original UniversalOpamp concept when they split all the different versions into their own entities, each with their own separate symbol and the own model files.

--
Regards,
Tony