¿ªÔÆÌåÓý


Re: Simulation runs very slowly: test.asc

 
Edited

I don't know if this matters - but it looks like you run the ADA4084 with inputs BEYOND the power supplies.? Its datasheet claims RRIO, but not beyond-RRIO.? Can it work that way?
?
Its datasheet says otherwise.? Under Absolute Maximum ratings, Vin must never go below V-, not even by a millivolt, let alone 4 volts below V-.? It seems like that would be a problem and might cause some internal stress.
?
[NOTE:? I retract all of the above.? I misread the schematic.]
?
Andy


Re: Simulation runs very slowly: test.asc

 
Edited

Can you please include the missing LTspice symbols and SPICE models?? We can't help you without them.
?
LM317A_TRANS
ADA4084-2
?
(The latter might be in newer LTspice versions, but the computer I am using at this moment does not have them.? I'll have to go to the other.)
?
Also, 1N4007's SPICE model is missing.
?
You used "opamp" rather than "opamp2".? The "opamp" model is unbounded (has no power supplies, so voltages can be infinite) and this can cause conversion convergence problems.
?
Andy
?


Re: Good settings for RIAA square wave

 

I never pretend or intend for someone else to do the hard work. That
is for me to try, because that way I learn.

What I did need help on that thread was with adding a HP filter for a
specific very low frequency rumble some Thorens TTs had. And I was
trying to use a two stage passive RIAA filter, as shown on Walt Jung's
book and later, and another passive/active design, also two stage,
inspired on a discrete RIAA preamp by Erno Borbely in The Audio
Amateru magazine. One pal on the thread, Marcel, helped me with that.
Designing a RIAA filter is much beyond my knowledge.

I'm not sure someone here would like to see the .asc sims, with and
without filters, as that's not a matter for this "problem solving"
site (to describe it somehow). If someone is interested, do let me
know. Going to that DIYaudio thread would be much better, and
suggestions from those that ask and respond to questions here would be
very useful there.

When I ask for help on something, everywhere, I do not expect others
to do the hard work. That is what I want to do.

Carlos

On Sun, Mar 30, 2025 at 10:04?AM Andy I via groups.io
<AI.egrps+io@...> wrote:

On Sun, Mar 30, 2025 at 08:23 AM, Carlos E. Mart¨ªnez wrote:

According to one of my colleagues at DIYaaudio, "Laplace is the most
accurate but can only be used in the .AC mode.
For the .Tran mode you will have to use the RC model.

That is not quite true.

The Laplace version has the disadvantage that the Laplace transform from frequency domain to time domain sometimes does not produce the right result - but sometimes it does, and the reasons why it works or does not work are not well understood. It seems to be a problem with fine-tuning the Laplace settings in the simulator. Those settings are WINDOW, NFFT, and MTOL. This is described (tersely) in LTspice's Help. As it states there:

The time domain behavior is found from the sum of the instantaneous current(or voltage) with the convolution of the history of this current(or voltage) with the impulse response. Numerical inversion of a Laplace transfer function to the time domain impulse response is a potentially compute-bound process and a topic of current numerical research. ... This process is prone to the usual artifacts of FFT's such as spectral leakage and picket fencing that is common to discrete FFT's. ... LTspice must guess an appropriate frequency range and resolution. It is recommended that the LTspice first be allowed to make a guess at this. The length of the window and number of FFT data points used will be reported in the .log file. You can then adjust the algorithm's choices by explicitly setting nfft and window length. The reciprocal of the value of the window is the frequency resolution. The value of nfft times this resolution is the highest frequency considered. ...

In other words, it might work, but you may need to manually adjust the settings to get a good transform to the time domain. It is incorrect that "you will have to use the RC model", but it is probably better and easier if you do. An RC model with correctly calculated components has exactly the same response as the Laplace form anyway.

Your colleagues at DIYaudio are incorrect when they say that "Laplace is the most accurate." It is not more accurate than the RC version. It is just easier to calculate since you know in advance where the poles and zeros should be.


I did try some of the SW settings that you suggested, and for now
found different responses according to the opamp being used. Now I
need someone to translate those results into actual distortions or
limits, and if possible play with the variables.

Can you do that yourself? Since this is your project, you ought to be able to examine your preamps' distortions and other effects. Or, you could pay someone to do it for you. :-) Wouldn't it be better to work on it yourself? Getting assistance is good, but don't expect someone else to do all the work.

Andy


Re: Good settings for RIAA square wave

 

On Sun, Mar 30, 2025 at 08:23 AM, Carlos E. Mart¨ªnez wrote:
According to one of my colleagues at DIYaaudio, "Laplace is the most
accurate but can only be used in the .AC mode.
For the .Tran mode you will have to use the RC model.
That is not quite true.
?
The Laplace version has the disadvantage that the Laplace transform from frequency domain to time domain sometimes does not produce the right result - but sometimes it does, and the reasons why it works or does not work are not well understood.? It seems to be a problem with fine-tuning the Laplace settings in the simulator.? Those settings are WINDOW, NFFT, and MTOL.? This is described (tersely) in LTspice's Help.? As it states there:

The time domain behavior is found from the sum of the instantaneous current(or voltage) with the convolution of the history of this current(or voltage) with the impulse response. Numerical inversion of a Laplace transfer function to the time domain impulse response is a potentially compute-bound process and a topic of current numerical research. ... This process is prone to the usual artifacts of FFT's such as spectral leakage and picket fencing that is common to discrete FFT's. ... LTspice must guess an appropriate frequency range and resolution. It is recommended that the LTspice first be allowed to make a guess at this. The length of the window and number of FFT data points used will be reported in the .log file. You can then adjust the algorithm's choices by explicitly setting nfft and window length. The reciprocal of the value of the window is the frequency resolution. The value of nfft times this resolution is the highest frequency considered. ...

In other words, it might work, but you may need to manually adjust the settings to get a good transform to the time domain.? It is incorrect that "you will have to use the RC model", but it is probably better and easier if you do.? An RC model with correctly calculated components has exactly the same response as the Laplace form anyway.
?
Your colleagues at DIYaudio are incorrect when they say that "Laplace is the most accurate."? It is not more accurate than the RC version.? ?It is just easier to calculate since you know in advance where the poles and zeros should be.
?
I did try some of the SW settings that you suggested, and for now
found different responses according to the opamp being used. Now I
need someone to translate those results into actual distortions or
limits, and if possible play with the variables.
Can you do that yourself?? Since this is your project, you ought to be able to examine your preamps' distortions and other effects.? Or, you could pay someone to do it for you.? :-)? Wouldn't it be better to work on it yourself?? Getting assistance is good, but don't expect someone else to do all the work.
?
Andy
?


Re: Simulation runs very slowly: test.asc

 

¿ªÔÆÌåÓý

Apologize for the wrong email heading you just received. This is the corrected one.

?

From: [email protected] <[email protected]> On Behalf Of Christopher Paul via groups.io
Sent: Sunday, March 30, 2025 9:00 AM
To: [email protected]
Subject: Re: [LTspice] Model of BF970 ?

?

Hi All,

?

??????????????? In the uploaded file test.asc, I¡¯m having a problem with a simulation getting stuck. Would appreciate a look.

?

Thanks, Chris


Simulation runs very slowly: test.asc

 

¿ªÔÆÌåÓý

Hi All,

?

??????????????? In the uploaded file test.asc, I¡¯m having a problem with a simulation getting stuck. Would appreciate a look.

?

Thanks, Chris


Re: Good settings for RIAA square wave

 

I've learned there's two anti-RIAA filters you put at the input of
preamp to be simulated: the laplace on and and RC passive one.
All my sims with RIAA premps have the passive filter at the input,
where I feed the AC signal through.
According to one of my colleagues at DIYaaudio, "Laplace is the most
accurate but can only be used in the .AC mode.
For the .Tran mode you will have to use the RC model.

As you mentioned on the use of Square Waves: you can tell quite a lot
about even an audio circuit's performance, by looking at its square
wave response. Tilt in the flat tops or ringing on the edges tells
you that something is amiss with the low frequency or high frequency
response, respectively. It's a quick-and-dirty way to judge the
broadband response.
That's what ignited my curiosity, and the recent tests with square
waves and a scope in an actual built preamp on the thread by one of
our pals.

I did try some of the SW settings that you suggested, and for now
found different responses according to the opamp being used. Now I
need someone to translate those results into actual distortions or
limits, and if possible play with the variables.

On power amps, SW testing helped trim the parallel small caps on the
feedback, which later showed as distortion changes in THD sims.

This is the passive Jung filter I use on all my RIAA sims.

(Lipshitz_and_Jung_1980)_RUS.png

Carlos

On Sun, Mar 30, 2025 at 1:21?AM Andy I via groups.io
<AI.egrps+io@...> wrote:



RIAA is intended for audio applications. Why in the world would you even think of square wave input?

Actually, you can tell quite a lot about even an audio circuit's performance, by looking at its square wave response. Tilt in the flat tops or ringing on the edges tells you that something is amiss with the low frequency or high frequency response, respectively. It's a quick-and-dirty way to judge the broadband response.

That is, of course, assuming that you include an accurate inverse RIAA network. Without that, it would be meaningless and pointless.

Andy


Re: Conductance Negative

 

Hi,
?
i have been interested in bipolar NDR devices similar to the Lambda-Diode and did some basic simulations which i can share later, if there is interest.?
I can also recommend the publications by Chua, where he identifies dozens of these circuits:

Negative resistance devices

Negative resistance devices: Part II

Bipolar - JFET - MOSFET negative resistance devices

?

?
?
For now, try this link:
?
Best,
Nils
?
?
?


Re: Conductance Negative

 

¿ªÔÆÌåÓý

On 28/03/2025 19:44, sebastian.herrera via groups.io wrote:
I am trying to simulate a circuit with negative conductance using transistors and passive components. Does anyone have a circuit for this?
A constant power load is an example of a circuit with negative resistance. A common example of a constant power load is a switch-mode converter. Quite a few SMPS designers don't appreciate this.

Try this introduction:

--
Regards,
Tony


Re: Conductance Negative

 

The circuit referenced in this note does have the advantage of using only NPN transistors and no zener. ?However, the I/V curve is less well defined and you have less control over the peak/valley voltages and currents. Otherwise, part count is similar.
?
On "my" circuit, since zeners close to 5.5V are almost ideal and have very sharp knees, using one of those puts the peak voltage close to 5.5V; that may be a bit high for many applications. This circuit is very close to piecewise-linear so it is relatively easy to analyze with some precision. ?Some of the behavior DOES depend pretty strongly on the beta of Q1, however; for many transistors, beta can vary over a rather wide range.
?
Jim
?
On 03/29/2025 10:09 PM PDT alan victor via groups.io <avictor73@...> wrote:

?
?
Along a similar line, this circuit placed in LTspice, provides negative conductance.?
Generate a single DC source sweep on applied V and monitor source current.?
?
https://hackaday.com/2019/05/08/fun-with-negative-resistance-jellybean-transistors/#more-356020


Re: Conductance Negative

 

Along a similar line, this circuit placed in LTspice, provides negative conductance.?
Generate a single DC source sweep on applied V and monitor source current.?
?
https://hackaday.com/2019/05/08/fun-with-negative-resistance-jellybean-transistors/#more-356020


Re: Good settings for RIAA square wave

 

?
RIAA is intended for audio applications. ?Why in the world would you even think of square wave input?
Actually, you can tell quite a lot about even an audio circuit's performance, by looking at its square wave response.? Tilt in the flat tops or ringing on the edges tells you that something is amiss with the low frequency or high frequency response, respectively.? It's a quick-and-dirty way to judge the broadband response.
?
That is, of course, assuming that you include an accurate inverse RIAA network.? Without that, it would be meaningless and pointless.
?
Andy
?


Re: Conductance Negative

 

A negative resistance circuit with brief description has been uploaded to: /g/LTspice/album?id=301539
?
Have fun
Jim


Re: Beginner's Question re LT Spice and RF Filter Design

 

Andy,
I saw that.? Am going through advisories and FAQ? - currently the basic beginner's tutorial- and come up to speed with any and all of relevance.
Appreciate the leg up!
--
William, k6whp
--------------------
"Cheer up, things could get worse. So I cheered up and things got worse."


Re: Good settings for RIAA square wave

 

RIAA is intended for audio applications. ?Why in the world would you even think of square wave input? OK, transient over-load behavior might be one reason, but I think that the OP is a long ways from that, yet.
?
Jim Wagner
Oregon Research Electronics
?
?
?
On 03/28/2025 9:32 AM PDT Carlos E. Mart¨ªnez via groups.io <carlo.mar.ll@...> wrote:

?
?
Hi,
?
This should be the first time I will be using a SW to test a RIAA preamp response.
?
I was thinking of copying the settings I use for testing power amps, but I am not sure it's correct.
?
They are: PULSE(-.4 .4 0 10n 10n 25u 50u 10)
?
Would they be fine for this new test?
?
Thanks!
?
Carlos


Re: Conductance Negative

 

I think I have the circuit you need. It is circa-1965 and uses 3-4 bipolar transistors, a zener diode, and a handful of resistors. All components are "garden variety" with nothing special. It works to a few MHz. It IS a 2-terminal device and can be used much like a tunnel diode. Voltages are a lot higher than a tunnel diode: peak voltage is around 2V, valley voltage is around 5V and peak current is a few 10s of mA; all of these values are settable as part of the circuit design. ?I have it ONLY as a PDF but it is simple enough to create in LTspice. I will put it, appropriately named, in the group image/picture directory and post a message with a link. This should be done within a few hours of this message time.
?
Jim Wagner
Oregon Research Electronics
?
On 03/28/2025 11:44 AM PDT sebastian.herrera via groups.io <sebastian.herrera@...> wrote:

?
?
Dear all, I am trying to simulate a circuit with negative conductance using transistors and passive components. Does anyone have a circuit for this?
Best regards.
Sebastian?


Re: Beginner's Question re LT Spice and RF Filter Design

 

Andy,
?
Thank you. I was to have uploaded the .asc file into temp per the group protocol but your answer will suffice. Appreciate the advisory and support.
--
William, k6whp
--------------------
"Cheer up, things could get worse. So I cheered up and things got worse."


Re: Beginner's Question re LT Spice and RF Filter Design

 

I uploaded your schematic file.? It is "RF_Filter_Chebyshev.asc" and it is currently in the Temp folder, in the group's Files section.
?
Andy
?
?


Re: Beginner's Question re LT Spice and RF Filter Design

 

Andy,
?
I did so instinctively and THEN read the group webpage. My apologies for the oversight.
?
--
William, k6whp
--------------------
"Cheer up, things could get worse. So I cheered up and things got worse."


Re: Beginner's Question re LT Spice and RF Filter Design

 

On Sat, Mar 29, 2025 at 08:48 PM, k6whp wrote:
I note that the display shows this model to initially be -6dB and wonder why.
It's a pretty simple reason, which looks obvious after you realize it.
?
Your signal source has a 1 (volt) amplitude and 50 ohm source impedance.? It is a Thevenin source, so you've got 1 volt behind the 50 ohm source resistance.? When that is terminated (into a 50 ohm load), it is a voltage divider that cuts the voltage in half, so that the terminal voltage across V1 is 0.5 volt, resulting in a nominal 6 dB loss.
?
When using AC sources like this, set their amplitude to 2 (volts), so that they make 1 (volt) when terminated.
?
Andy
?