开云体育

Date

Re: Using Q=expr syntax in capacitor

 

I realized it pretty quickly and remedied the problem.
?


Re: Transformer models WAS: New Simulator Written by Mike Engelhardt #Transformer

 

开云体育

This is a suspended thread, but I am now able to look at the proposed tutorial The first question is, what sort(s) of transformer? While the basic theory is the same for all, the practical design methods vary considerably. There is no point in writing a tutorial that no-one is interested in.

I see the occasional query about a power supply having a mains transformer with inductances in the mH or less range, so there may be some interest in mains transformers.? I also see the occasional query about audio output transformers for tubes/valves.? I don't think anyone would try to wind their own toroidal, so we are talking 'E's and I's', maybe with the occasional 'T's and U's.

I'm not going to deal with transformers for SMPS, because they need a totally different approach, as do RF transformers with ferrite cores or no core.

======================================================================================
Best wishes John Woodgate OOO-Own Opinions Only

Rayleigh, Essex UK

I hear, and I forget. I see, and I remember. I do, and I understand. Xunzi (340 - 245 BC)


On 2023-04-29 19:50, Jim Wagner wrote:

BUT, what are those “easily measured or calculated parameters”? I am a circuit designer and have no idea what they are (or how to do the measurements)!. I strongly suspect that I am not alone. How about a tutorial for the wiki?

Jim

On Apr 29, 2023, at 11:06 AM, John Woodgate <jmw@...> wrote:

Many types of transformer do not need complicated models like Gummel-Poon for transistors, but of course complicated models like Chan can give more accurate results (often more accurate than is necessary, but that also apples to transistor models, which do not account for variations between samples). Simple models can use easily measured or calculated parameters, so it is easy to relate the model to the hardware.

Please note the new Subject line.

======================================================================================
Best wishes John Woodgate OOO-Own Opinions Only

Rayleigh, Essex UK

I hear, and I forget. I see, and I remember. I do, and I understand. Xunzi (340 - 245 BC)


On 2023-04-29 18:02, Jim Wagner wrote:
For me. the real transformer challenge is associating the physical parameters (dimensions, numbers of turns, core material, and such) into model parameters. One might reasonably assert that this is no different than, say, transistors. There is a big difference, though; I can build a transformer but I am not likely to build a transistor. I do not have the capability to measure transistors sufficiently to create models, so must rely on third-parties to do that. What third party do I use for that ferrite toroid transformer that i just built?

Perhaps the solution to this is a transformer model generator (like VDMOS tool). I can handle program writing but I do not know enough about magnetics to even think about something like that. To be useful, such a model generator should rely on measurements the most of us could do in a modestly equipped lab (say, with a signal generator and an oscilloscope).?

Jim Wagner
Oregon Research Electronics

On Apr 29, 2023, at 9:38 AM, Andy I <AI.egrps+io@...> wrote:

Susan wrote, "My big issue/stumbling-block when using 'spice simulators is transformer models; they all seem to be described in intractable terms making it difficult to translate something I have in my hand to an accurate simulation model."

That sounds like a topic for a separate subject (not this one).? The simplest transformer models are very simple.? It's the more complicated ones that can be challenging.

Andy



Re: Using Q=expr syntax in capacitor

 

开云体育

Wrong thread, I think, Bruce.
--
Regards,
Tony

On 18/07/2023 15:19, BRUCE108 wrote:

  1. Define the primary inductance as a parameter Lp
  2. Change the value of the primary inductor to {Lp}. the curly braces will pick up the value of parameter Lp
  3. Define parameter n to be the turns ratio.
  4. Set the secondary inductance to be {n*n*Lp}



Re: Flyback Transformer #Transformer

 


The inductance ratio is the squared of the winding ratio. If you need a 4:1 ratio for the windings. The Inductance shall have a 1:16 ratio. Ie. A 1 uH and a 16 uH inductor.?


Cheers!
Bernie


tir. 18. jul. 2023 kl. 13:15 skrev <usmanagani89@...>:

hello sir, how can i set the total winding in trafo simulation? (flyback transformer)


Re: Flyback Transformer #Transformer

 

  1. Define the primary inductance as a parameter Lp
  2. Change the value of the primary inductor to {Lp}. the curly braces will pick up the value of parameter Lp
  3. Define parameter n to be the turns ratio.
  4. Set the secondary inductance to be {n*n*Lp}


Re: Using Q=expr syntax in capacitor

 

开云体育

Well, we can't tell for sure from the limited information you supplied, but the Q function for a capacitor can only be an explicit function of "x". "x" is the special variable for the voltage between the "plates".

Help > LTspice XVII > LTspice? > Circuit Elements > C. Capacitor:
Syntax: Cnnn n1 n2 Q=<expression> [ic=<value>] [m=<value>]
There is a special variable, x, that means the voltage across the device. Therefore, a 100pF constant capacitance can be written as
Cnnn n1 n2 Q=100p*x
You might want to refer to the group's files section where there a number of examples of non-linear capacitors.

--
Regards,
Tony


On 18/07/2023 14:07, George Yashin wrote:
My question is simple, and I think it is a bug:
When I use function that is defined by .func statement in capacitor equation Q=func(args), I got the error that there is no such function.
But it is perfectly works in behavioural sources. If I enter equation directly in capacitor, it works.
What is the reason for that?


Using Q=expr syntax in capacitor

 

Hello,
My question is simple, and I think it is a bug:
When I use function that is defined by .func statement in capacitor equation Q=func(args), I got the error that there is no such function.
But it is perfectly works in behavioural sources. If I enter equation directly in capacitor, it works.
What is the reason for that?
Thank you in advance


Re: Flyback Transformer #Transformer

 

开云体育

With that level of input data, the answer is 'make it about enough'.

======================================================================================
Best wishes John Woodgate OOO-Own Opinions Only

Rayleigh, Essex UK

I hear, and I forget. I see, and I remember. I do, and I understand. Xunzi (340 - 245 BC)


On 2023-07-18 12:15, usmanagani89@... wrote:

hello sir, how can i set the total winding in trafo simulation? (flyback transformer)


Flyback Transformer #Transformer

 

hello sir, how can i set the total winding in trafo simulation? (flyback transformer)


Re: Neon

 

开云体育

Most kinds of protection involve both a clamping (shunt) element and one (in series) that limits current. Inductors (which ferrite beads are) are just one particular type of series element.

Le 18/07/2023 à 10:59, Christoph a écrit?:

I didn’t follow the discussion, but allow me to throw in that input protection against HF-transients like electrostatic discharge ?sparks“ often can be achieved by ferrite beads put in serial into the input line.

Christoph



Am 18.07.2023 um 05:49 schrieb Tom via <tomhajjar@...>:

Neon bulbs can be used for receiver or audio amplifier input protection, modem input protection...etc. Neon bulbs?cannot handle the power a ceramic gas tube protector or varistor provides but they have similar capacitance to a ceramic gas tube. Varistors have very high capacitance and are not suitable for RF without say a series choke. The phone/DSL line to your house has a differential ceramic gas tube protector mounted in the NID box provided by the phone company.?

One has to define what surge event could be expected. For an RF receiver/audio amp, one could expect static buildup or discharge by the user or a surge induced into the feedline by a nearby lightning hit. In general a direct lightning hit will destroy almost anything. Goal should be to isolate the damage to a replaceable PCB/module or to an external surge protector.?


Re: Is there a way to make node numbers appear on LTSpice schematics?

 

开云体育

On 18/07/2023 03:33, Andy I wrote:
I don't understand what you said about naming curves on a plot.? I do not think you can do that (except by defining functions in the waveform viewer).? But whatever node names you used on the schematic will show in the plot window.
That's not quite true. As you say, you can define functions and save them in plot.defs.

So, for example:

.func hFE() {Ic(Q1)/Ib(Q1)}

..allows you to label a plot hFE() - useful in device testjigs.

Another useful one is:

.func NF(R,T) {10*log10(V(inoise)*V(inoise)/(4*k*(T+273.15)*R))}

..which allows the label NF(1k,25) to be used as the circuit's noise figure as a function of source resistance and temperature (in °颁).

Using:

.noise V(out) V1 list 1k

..and stepping a parameter Rsrc as the source resistance, you can plot the noise figure vs. source resistance at 1kHz:

NF({Rsrc},25)

--
Regards,
Tony


Re: Neon

 

开云体育

I didn’t follow the discussion, but allow me to throw in that input protection against HF-transients like electrostatic discharge ?sparks“ often can be achieved by ferrite beads put in serial into the input line.

Christoph



Am 18.07.2023 um 05:49 schrieb Tom via <tomhajjar@...>:

Neon bulbs can be used for receiver or audio amplifier input protection, modem input protection...etc. Neon bulbs?cannot handle the power a ceramic gas tube protector or varistor provides but they have similar capacitance to a ceramic gas tube. Varistors have very high capacitance and are not suitable for RF without say a series choke. The phone/DSL line to your house has a differential ceramic gas tube protector mounted in the NID box provided by the phone company.?

One has to define what surge event could be expected. For an RF receiver/audio amp, one could expect static buildup or discharge by the user or a surge induced into the feedline by a nearby lightning hit. In general a direct lightning hit will destroy almost anything. Goal should be to isolate the damage to a replaceable PCB/module or to an external surge protector.?


Re: Neon

 

Neon bulbs can be used for receiver or audio amplifier input protection, modem input protection...etc. Neon bulbs?cannot handle the power a ceramic gas tube protector or varistor provides but they have similar capacitance to a ceramic gas tube. Varistors have very high capacitance and are not suitable for RF without say a series choke. The phone/DSL line to your house has a differential ceramic gas tube protector mounted in the NID box provided by the phone company.?

One has to define what surge event could be expected. For an RF receiver/audio amp, one could expect static buildup or discharge by the user or a surge induced into the feedline by a nearby lightning hit. In general a direct lightning hit will destroy almost anything. Goal should be to isolate the damage to a replaceable PCB/module or to an external surge protector.?


Re: ISL70444SEH declaration issue?

 

mliccione89, I uploaded "TIA_Another-way-to-look-at-it.asc" to the Temp folder.? It might help understand what's happening to the output as the pulsewidth of the photodetector varies.

Andy


Re: Is there a way to make node numbers appear on LTSpice schematics?

 

Chris,

You can not display the automatically generated node names on the schematic.? But you can see what they are when viewing the schematic.? Hover your mouse over any node (net).? The node name is shown in the lower left corner.

And as everyone advises you, you really should add your own node names (or numbers) as much as possible, and then they are visible too.

I don't understand what you said about naming curves on a plot.? I do not think you can do that (except by defining functions in the waveform viewer).? But whatever node names you used on the schematic will show in the plot window.

Andy


Re: ISL70444SEH declaration issue?

 

开云体育

On 18/07/2023 01:44, Tony Casey wrote:
Even for a 1st order transfer function, that will give you a rise time of ?3.5/Fc => 45ns
Sorry, I meant 0.35/Fc => 4.5ns.

--
Regards,
Tony


Re: ISL70444SEH declaration issue?

 

开云体育

Exactly what do you mean by non-linear? You haven't plotted the response to varying input amplitude. All the information you have is the response to two different input pulse widths.

No opamp is going to give you a full amplitude output voltage for a 500ps wide input pulse.

Did you plot the AC response of your circuit? The -3dB response is about 77MHz. Even for a 1st order transfer function, that will give you a rise time of ?3.5/Fc => 45ns, which is why you get a fraction of the output voltage you might might expect from a 5mA peak source current. According to the AC analysis, a critically damped response is obtained with a feedback capacitance of 3.9pF, which will give you a bandwidth of 114MHz.

You should also bear in mind that the AD8038 has a maximum slew rate of 425V/μs, so the response to an input 5mA peak rectangular pulse of 3.5ns width is never going to be greater than? 1.488V instead of 2.495V, even with an infinite small signal bandwidth.

Your stated requirement of: "pulse widths can range between 0.7ns wide and ~4ns wide" needs to be refined. The narrower the pulse width, the larger the input needs to be to get detected due to limited bandwidth. So you need to consider the comparator too, in addition to the opamp. If you set the comparator detection threshold too low, you will get false positives; too high, and you will miss valid pulses - false negatives. I'm assuming your target wavelength is in the infra-red range, otherwise a photomultiplier tube might be a better solution.

--
Regards,
Tony



On 17/07/2023 18:26, mliccione89@... wrote:

Thank you Andy. I truly appreciate all of your help. I was able to find an opamp that meets my environmental requirements. However the response seems to be nonlinear.

Here is the circuit

I commented out the unnecessary simulation directives and adjusted the amplitude of the pulse to match the photodiode I selected so you will notice some changes there.


Re: Is there a way to make node numbers appear on LTSpice schematics?

 

开云体育

No, you can see what the node names before simulation are by:

View > SPICE Netlist

As you say, though, the net names are dynamic unless you explicitly name them. Only explicitly named nets are visible on the schematic.

--
Regards,
Tony


On 17/07/2023 22:01, Jim Wagner wrote:

Those run-time node and net numbers can vary from run to run, especially after adding a component. AFIK, they are not known until the sim runs.

Jim, Oregon Research Electronics

On Jul 17, 2023, at 12:33 PM, Chris - G0LOJ <chrisbudd606@...> wrote:

I believe that nodes (or nets) can be user-named, and that curves on an LTSpice plot can also be user-named, but sometimes it would be simplest to use the node numbers assigned by the software during the building of a schematic. Is there a way to cause those node numbers to be displayed on the schematic. Thanks, Chris.



Re: Is there a way to make node numbers appear on LTSpice schematics?

 

开云体育

You always should label nodes if they are being referenced in an equation or within a measure statement. Otherwise, they WILL change. leaving the reference invalid. Those labels are visible on the schematic until they are deleted.

But, the automatically assigned ones are not visible unless you do certain specific things (maybe probe with a voltmeter?)

Jim


On Jul 17, 2023, at 1:10 PM, Dan via <danniejackson@...> wrote:

You can lable the nets with numbers or letters.? As for them showing up as you mentioned I am not sure about that.


Re: Is there a way to make node numbers appear on LTSpice schematics?

 

You can lable the nets with numbers or letters.? As for them showing up as you mentioned I am not sure about that.