0
\$\begingroup\$

enter image description here

I have designed a circuit that we use in practice, and it works correctly in real life. we connect J2 to microcontroller to monitor the current in primary side. it is working so good in practice. I wanted to simulate this to just optimize it but it is not working in simulation actually.

The current range I need is from 0 to 3 A, so I varied R6 from 100 Ω to 3000 Ω and noted both the current through R6 and the voltage across R1. For resistances between 100 Ω and 1000 Ω the results were approximately correct, but immediately after 1000 Ω (even at 1001 Ω) the voltage waveform across R1 became very noisy. The reason seems to be that the voltage dropped to extremely small values, in the order of picovolts.

The issue is that in reality this circuit works fine, and when measured with a voltmeter the voltage across R1 is much higher than what LTSpice shows. So the simulation results differ significantly from the real measurements.

Do you think this problem comes from LTSpice itself, or is it possible that we missed something in the schematic and did not include it in the simulation?

For reference:

  • The number of turns for L1 is about 1.5–1.7, and for L2 it is 200.
  • The applied voltage is mains AC.
  • The second schematic is the same as our real circuit, except that in LTSpice we replaced the input/output terminals with a sinusoidal voltage source and a very large resistor connected to ground.
  • The Zener diode was removed in the simulation because its only role is to block voltages above 3 Av.
  • We also varied the Stop time from 1 s to 50 s to check whether it changes the results, but it did not.
\$\endgroup\$
1
  • \$\begingroup\$ post the .asc file of your spice simulation - 1) makes it easier for us to reproduce 2) let's us see if there are any oddities in it not apparent from the diagram. Use a code block - select and then ctrl-K \$\endgroup\$ Commented Nov 13 at 10:51

2 Answers 2

3
\$\begingroup\$

The current range I need is from 0 to 3 A, so I varied R6 from 100 Ω to 3000 Ω and noted both the current through R6 and the voltage across R1.

It appears that you are trying to simulate a current transformer (CT) that uses a circuit on the secondary that is somewhat problematic when the primary current falls below a certain value. It's problematic because of the secondary-side bridge rectifier.

So, at some low value of primary current, the induced secondary voltage becomes insufficient to properly forward-bias the bridge rectifier diodes and, this results in what you observe; a falling-away of rectified and smoothed voltage on the output.

Just consider what happens...

The bridge rectifier will start struggling to produce an output voltage when the secondary winding voltage falls to a level of two forward diode drops (call it 1.2 volts p-p). So, with 1.2 volts p-p on the secondary winding, we can calculate the primary voltage as 1.2 volts p-p divided by 125 (the turns ratio).

This equals 9.6 mV p-p.

I've calculated turns-ratio based on what you say (although I have no idea what 1.5 to 1.7 turns is because turns need to be whole numbers and not fractional). Nevertheless it approximately matches the turns ratio implied from the inductance values in your spice circuit.

So, with only the primary inductance in play (secondary rectification almost neutralized), the inductive reactance of 30 μH at 50 Hz is 9.42 mΩ (that's milli ohms). With 9.6 mV p-p across it that's a primary current of about 1.02 amps p-p.

And, that's approximately/ball-park where you appear to be seeing the discrepancy in your numbers. As current falls below this value the discrepancy gets worse!!

Hence, my conclusion is that it is doing what it's expected to do. Of course if you modelled different diodes (in the bridge) you might get a smaller forward volt drop and the onset of the discrepancy will be at lower primary currents. A larger forward volt-drop diode and, the discrepancy will be at higher primary currents.

\$\endgroup\$
0
\$\begingroup\$

Look like issues related to numerical precisions. The fact that you observe a clear jump once a parameter crosses some threshold without any physical reason behind makes me think about the solver precision.

Several things to check:

  • Make sure you don't have nets with no DC path to GND. Here the primary of your transformer is floating. Adds a 1GOhm resistor to GND somewhere to help the solver. Sometimes theses are added automatically by some component or directives. Check the documentation. But adding it manually is safe anyway. Numerically speaking, you don't need that primary to be floating at all to study your circuit. You could just tie the negative of V1 to GND. Because there is no loop, no current will ever flow through that GND tie. But the voltage of the primary will be fixed and not wandering around. Easier for the solver.
  • Solver parameters. The numerical solver can be tuned for high accuracy (but slower speed). There are a lot of ways to do this. Search for "ltspice increase accuracy" and try some of them.
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.