Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
- LTspice
- Messages
Search
Re: inverting opamp simulation: rapid component variation
Hello All,
toggle quoted message
Show quoted text
@ Andy& Jim:Thanks for your input on tmax in .tran analysis. It was really useful and I plan to have a different thread on this soon. Now coming to the issue in thread, I have this feeling that frequency is just a frequency for an opamp, Whether it is that of input source or that of any component variation. This motivates me to put this hypothesis that i can plot the Bode due to rapid variation of R2 by just assuming R2 to be constant at its maximum value and sweeping the frequency of input vi (Vi should be changed to AC source). Here is setup files to show this: In inv_opm_freq_respns.asc I have setup to plot frequency sweep. I select three frequncies: 10KHz, 200KHz, 750KHz. I noticed that at the first two frequencies output is constant and at around 750KHz it rolls down by 3dB. Now in setup inv_opm_tran.asc, I do a transient analysis. I stepped R2 with above three frequencies and found that as suspected, output have same amplitude at 10KHz and 200KHz,and lower at 750KHz. As always, I especially seek views of people like Helmut, Andy, Jim, John , analogspiceman,chris to see if there is any fallacy in my understanding. Conference date has been extended to I have ample time to go deep down the problem. Thanks. --- In LTspice@..., Jim Wagner <wagnejam99@...> wrote:
|
Re: THD of a sine with a small dent at crossover
Hello John,
You are getting these results because of your very shortThis was indeed the trick to get a "useful" result for THD in the .FOUR report. I have had used 10us rise and fall time in my example which I uploaded yesterday. Best regards, Helmut --- In LTspice@..., John Woodgate <jmw@...> wrote:
|
Re: THD of a sine with a small dent at crossover
John Woodgate
In message <kkfbb8+osfi@...>, dated Sun, 14 Apr 2013, Echidna <mchambin@...> writes:
Indeed, I was tricked by the .FOUR function default calculation on 9 harmonics only. I tried with 99 harmonics and got a much different result.You are getting these results because of your very short rise and fall times and short 'crossover' pulses. If you do an FFT from 'View' you can see that the harmonic spectrum goes to well over 30 MHz. This isn't realistic for an audio amplifier, if that is what you are working on. But calculating THD by 'adding' (r.s.s.-wise) the harmonic amplitudes is seriously error-prone in my experience. It's much better to notch out the fundamental with a filter (simulated notch filters always work well, unlike real ones) and measure the r.m.s. value of what is left. -- OOO - Own Opinions Only. See www.jmwa.demon.co.uk They took me to a specialist burns unit - and made me learn 'To a haggis'. John Woodgate, J M Woodgate and Associates, Rayleigh, Essex UK |
Re: High-power Infrared LED model desired
John Woodgate
In message <kkf8qp+pa6i@...>, dated Sun, 14 Apr 2013, sawreyrw <sawreyrw@...> writes:
Get over it.It's well-known to be incurable. -- OOO - Own Opinions Only. See www.jmwa.demon.co.uk They took me to a specialist burns unit - and made me learn 'To a haggis'. John Woodgate, J M Woodgate and Associates, Rayleigh, Essex UK |
Re: All_Files.Htm
John Woodgate
In message <CALBs-TgwdGnyE+6k-DsnYM_d3xZ2OrmE-xvRep2TEYTBQCGQuQ@...>, dated Sun, 14 Apr 2013, Andy <Andrew.Ingraham@...> writes:
It is a pain in the neck having to download it every time (or to fine the copy I downloaded last week), but it does work.Can you save it to your desktop, to make it easier to find? I didn't do anything. That and my experience suggest that it's not a Yahoo thing but something on individual computers, probably a Microsoft 'improvement'. I have found IE8 going unstable twice in the last few months, showing strange and unpredictable behaviour. I have had to use the Tools => Advanced => Reset option, but that wasn't to fix the 'all_files' problem. Some web sites think I am using an earlier version, perhaps IE6, and complain about it, but I am definitely not. -- OOO - Own Opinions Only. See www.jmwa.demon.co.uk They took me to a specialist burns unit - and made me learn 'To a haggis'. John Woodgate, J M Woodgate and Associates, Rayleigh, Essex UK |
Re: Germanium transistor
Hi Jim.
toggle quoted message
Show quoted text
Thanks for your comment on the type of material the transistor. I removed a tag MFG=Germanium-type. Use the my Standard.zip file. Bordodynov. 12.04.2013, 20:10, "gr8wi9" <boothjg@...>: --- In LTspice@..., ¨¢???????? ?????????¡Á <BordodunovAlex@...> wrote:I don't see either of these in the standard library. I placed a pnp in a new schematic then right-click Pick New Transistor. I just did a sync release too. Decades ago 2N2955 was a silicon part (complementary to 2N3055). |
Re: Tutorial version of Joule-Thief
On Sat, 13 Apr 2013 15:47:49 -0000, Tim wrote:
I just uploaded a another copy of the JT, because I wnat toI just posted up an example I wrote some time back. I added a comment or two to it before posting, though. It's in the Temp directory and called Joule_Thief_jk1.asc. It uses the basic energy equation to develop the expected peak current required. It's ability to calculate the exact frequency and the exact peak current given a specific transistor is only approximate, though. The base resistance calculation is only very approximate. Some tweaks are included to allow closer approximations. Note, the inductor coupling constant is given as 1 -- in reality it never will be. Feel free to adjust the equations to take a more realistic value into account. Also, I have an additional paper I wrote on the Joule Thief that includes details the above considerations plus others, such as Bmax, in those cases where an air core isn't used. The Bmax value places additional constraints on the choice of inductance value vs frequency, to avoid saturation effects due to volt-seconds (which the Joule thief doesn't not require and works perfectly well avoiding.) If interested in the paper, feel free to write and I will send it along in an email (PDF form.) Jon |
Re: inverting opamp simulation: rapid component variation
Jim Wagner <wagnejam99@...> wrote:
You would expect one peak to be quite a different from the other, because it isIndeed they were; VERY different. But that was not what stood out. I expected all of the positive peaks (at a given frequency, and perhaps after the first couple of cycles) to look about the same as each other and to reach the same value as one another. Instead, what I saw was that the positive peaks never "leveled off" to the same value. Some were only 0.38V while others reached 0.55V. Zooming in showed that some peaks were very narrow and others were broader, and had a distinctly "sampled" appearance. Turning on "Mark Data Points" (right-click on the waveform plot window) showed that it had something to do with how closely spaced the data points were: not enough to reveal the true detail of the peaks. The negative peaks, by contrast, were smooth and round. But I wasn't looking at those. If this doesn't make sense, run the simulation and see what I mean. I doubt there is much loop gain at all at 1 MHz. Andy |
Re: Step a resistor over time
But I can't seem to see what differentiates the step version from the slope version.The difference is the shape of the curves. They are both PWL (piecewise linear). The step one changes in steps, abruptly, followed by periods where the resistance stays fixed. The slope one changes like a triangular wave. Plot out the values to see for yourself. Andy |
Re: I need 74ls193 for LTSpice
The similation file of 74HC193 is bellow site.... As you probably know already, the 74HC193 and 74LS193 are completely different technologies. The two chips might be interchangeable, and the 74HC part might be easier to obtain today, but note that the SPICE model for one would not be a good choice to use for the other part. Just beware. Andy |
Re: I need 74ls193 for LTSpice
Hi
The similation file of 74HC193 is bellow site. ---------------------------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------------------------- I think it is a excellent file and it works correctly in LTspice. Shiggy 2013/4/14 ltspice_ajax <ltspice_ajax@...> ** [Non-text portions of this message have been removed] |
Re: Step a resistor over time
Hi Ron,
toggle quoted message
Show quoted text
Thanks for sharing the inline table approach - very useful too! But I can't seem to see what differentiates the step version from the slope version. Can you elaborate please? Thanks, Mike --- In LTspice@..., Ron Liff <ron_liff@...> wrote:
|
Re: inverting opamp simulation: rapid component variation
You would expect one peak to be quite a different from the other, because it is basically nonlinear. Consider a step input going from low resistance to high; the loop gain will be high and the bandwidth low. Step change in the opposite direction is to a higher bandwidth regime with low feedback resistance and low loop gain. So, rise and fall times could be quite different (so long as neither test exceeds the op-amp slew rate).
toggle quoted message
Show quoted text
Thus, when driven with a sine, depending on the dR/dt, the waveform COULD be quite different at the positive and negative peaks. Jim Wagner Oregon Research Electronics On Apr 14, 2013, at 7:33 PM, Andy wrote:
MOHAMMAD A MAKTOOMI <amaktoomamu@...> wrote:Andy, how could you guess so quickly that waveform was missing some< ()? |
Re: inverting opamp simulation: rapid component variation
MOHAMMAD A MAKTOOMI <amaktoomamu@...> wrote:
Andy, how could you guess so quickly that waveform was missing some< ()? I ask this because this will help me start thinking the way an experiencedWhen I looked at the waveforms, I noticed that the positive peaks of the 1 MHz output were irregular, even when zoomed in. It looked to me as if it suffered from aliasing, being sampled but not with a high enough sampling rate. That led me to check for the plotwinsize=0 option, and then to add the max timestep parameter. Andy |
Re: All_Files.Htm
--- In LTspice@..., Andy <Andrew.Ingraham@...> wrote:
Andy,Yes, I did have the problem a few weeks ago, and at that time, I think,The problem never went away for me. I have the same problem. I have no idea what the problem is, but I can live with it, because I don't need to use the file very often. I agree it is a Yahoo problem. Rick |
Re: inverting opamp simulation: rapid component variation
MOHAMMAD A MAKTOOMI <amaktoomamu@...> wrote:
Thank you, Andy for your hints.Yes indeed, and I think that is why you must do this as a .TRAN analysis. .AC analysis just doesn't work for your case. Then .STEP the frequency. With your 741 op-amp model, you do have an interesting situation because of the severe distortion at higher frequencies (which by the way only a .TRAN analysis would show, if there was a way to do this as a .AC analysis). Given that, you need to consider what parameter of output amplitude you measure: peak-to-peak vs. RMS vs. fundamental amplitude? Andy |
Re: All_Files.Htm
Yes, I did have the problem a few weeks ago, and at that time, I think,The problem never went away for me. Until a month or so ago, when you clicked on it, it did open directly (at least in most web browsers). Then that suddenly stopped working, and hasn't worked since. All it lets me do is download it. This is true in either Chrome or IE. Once downloaded, I can open it in the same web browser with no problem. It is a pain in the neck having to download it every time (or to fine the copy I downloaded last week), but it does work. If the problem went away for you, I wonder what you did to make it work. And I wonder why Helmut never sees this problem. The last time around that this was discussed (a few weeks ago?), it seems everyone had the same problem, except for Helmut. Odd. Whatever this is, I think it is some sort of Yahoo!groups problem. Something about how they serve up the file to you, makes your web browser think it needs to save it instead of open it. Andy |
Re: inverting opamp simulation: rapid component variation
Helmut, is it possible to represent the information available from transient analysis of () in frequency domain? I mean, just as one can perform a transient of an RC circuit to see its charging-discharging profile and and AC analysis to see a first order low pass behavior, can the problem in thread have these two views?
toggle quoted message
Show quoted text
Andy, how could you guess so quickly that waveform was missing some peaks and the step-size be reduced in the setup ()? I ask this because this will help me start thinking the way an experienced user thinks. --- In LTspice@..., "Helmut" <helmutsennewald@...> wrote:
|
Re: Step a resistor over time
Hi Richard,
? Aside from the form Helmut gave you, you can set any resistor to as many changes as you need. The format, which is entered in the resistance window in place of a single value is : ??? ???? R=table(time,0,res1,time1a,res1,time1b,res2.....,last res) ? Example : R=table(time,0,10K,3m,10K,3.00001m,100K,6m,100K,6.00001m,1) ? This starts with the resistance value at 10K until 3mS after start, then steps to 100K until 6mS and then to 1 ohm for the rest of the run. The run duration sets the max time end point. Careful to place comma's between each entry, and no spaces. ? If you want a slope change instead of a step, for example a changing value of 100 ohms to 10 ohms over a 10mS time and back to 100 ohms over the next 10mS,?the form would be: ? ???? R=table(time,0,100,10m,10,20m,100) ? Lastly, always check your entries for pairs. There must be a time/value pair for each entry. This listing approach is invaluable for all sorts of applications which require either a slope or step change such as load testing etc. ? - Cordially - RC ? ________________________________ From: Richard Norman <rnorman3@...> To: "ltspice@..." <ltspice@...> Sent: Sunday, April 14, 2013 2:30 AM Subject: [LTspice] Step a resistor over time ? Hi All, is it possible to step a resistor over time? Right now if I use the step command like this: .step param R 100 1000 100 .tran 0 1ms 0 1 I end up with a bunch of parallel horizontal lines. What I want is a bunch of points (maybe even connected) over time. So in other words, over the 1ms, I want the resistance to step from 100 to 1000. Is it possible? Thanks! Richard [Non-text portions of this message have been removed] [Non-text portions of this message have been removed] |
Re: THD of a sine with a small dent at crossover
Hello Mark,
You could use my uploaded THD simulation. The results from .FOUR agree with my formula. Give it a try. Best regards,THD = 100%*2*pi*sqrt(1/3*(D/T)^3) Helmut --- In LTspice@..., "Echidna" <mchambin@...> wrote:
|
to navigate to use esc to dismiss