Several problems with simulating bridge rectifier

Ah, that makes sense. So when the resistor was 100mohm, the 250uH inductor impedance would swamp out the resistor. Now with 32ohm it swamps out the inductor. OK, so I guess adding the measured ESR without the measured inductance to match it was a poor idea. My bad. I suppose if one wants to make decent models of their inductive components they ought to invest in an LCR meter.

Ok makes sense – I tried one simulation with the resistors explicitly defined and one with them defined in the subcircuit following your instructions. Running with the resistors defined in the subcircuit results in a voltage output, but having them defined explicitly doesn’t. Is that what @holger is talking about?

Is there a way to measure or approximate the inductances of the transformer just using a multimeter?

I think that the I-V characteristic of a mains frequency transformer will generally be very non-linear. It is defined by the B-H loop. Therefore discussing it in terms of simple inductance is likely to be inaccurate, and it will be difficult to find such a specification.

Have a look at this waveform


or see

BTW one could make the magnetizing current waveform much more linear by introducing a gap in the transformer core. But that would greatly increase the magnetizing current, would increase losses, and would generally gain no other benefits.

1 Like

No, that’s not what he’s talking about. It sounds like you have two separate issues being conflated. First is introducing the resistors into the subcircuit correctly. You haven’t shown that in your screenshot, so it’s possible you haven’t done it correctly. Second is that your measured values of 32ohm and 2ohm don’t mesh well with the very low values of inductance which you specified in the micro-henry range. High wire resistance will correlate with higher inductances, simply because a longer piece of wire (more resistance) results in more turns around the core (higher inductance). When you increased the primary resistance from 100milliohm to 32ohm, it completely overshadows the puny little 250uH as if it’s no longer there anymore.

Not that I know of. But I don’t think you need the exact values unless you want to calculate the actual K of the transformer. Holger’s suggestion is to increase the primary into the 10 to 100 Henry range. That puts you into the ballpark of an actual AC mains transformer’s typical primary inductance. So to keep your same turn ratio, you can do something like 25H in the primary and 1H in the secondary. You can also see his LM317 power supply example in this post as another reference:

1 Like

Is the inaccuracy caused by ignoring this a huge deal? I don’t really know much about electrical engineering and want to make as many simplifying assumptions as I can make, at least in this first attempt to build the rectifier.

It depends upon what you are analyzing. If you have a typical transformer that is heavily loaded, then this current waveform might be a small percentage of the total. But if the transformer core is being heavily driven (maybe it is designed for 220 VAC 60 Hz and it is being used with 250 VAC 50 Hz) and the output loading is light, then this current component is likely to be significant.

My guess is that there are some SPICE models which better account for this. But component modeling is not an area of my expertise.

EDIT: If the transformer is powered by the mains, and you are generally concerned with output characteristics, then IMHO it is not so likely to be an issue.

1 Like

Ok, sorry forgot to include that-- now it looks to be the same

1 Like

Also, this might not be the right place to ask this question, but basically my process from here is assembling the components onto a breadboard prototype and testing with a function generator. The function generator I have access to has voltage that’s way too low (I’d need the amplitude to be 170VAC) – do you have any recommendations for inexpensive function generators that would do the job?

I doubt that there is such a thing. Understand that what you are doing is potentially dangerous if you do not know what you are doing. I have done a significant amount of work with AC mains voltage.

I think you want a variable autotransformer and an isolation transformer. But those two together would probably be a few hundred dollars.

1 Like

Ok, sounds good, thanks for the heads-up

I still don’t know what you are connecting after the 1Kohm resistor, but as your simulation stands right now you’re only drawing around 15mA RMS from the AC line. You might able to provide yourself some safety by getting one of these receptacles and install a fuse (I listed a few) which gives you enough headroom for your project but still cuts off quite low. Buy a handful extra in case you blow them.

1 Like

How to calculate the transformer boost ratio and coil setting, why I set the inductance according to the square root ratio, does not get the corresponding boost ratio or step-down ratio?

Ok thanks-- yeah the circuit is ending at the 1k resistor

Probably need to see your complete simulation circuit definition. There are a few possibilities.