4
\$\begingroup\$

I have followed design guides online on how to create a low-side current sense circuit, for use with FOC to control a 3-phase BLDC. There is a differential input low-pass filter, common-mode filter, and an anti-aliasing output low-pass filter. These were designed to pass signals below 250 kHz, and attenuate higher frequencies. Yet when I conduct a small signal AC analysis, it peaks at around 1 MHz, and I am unsure why. The probe is between R8 and C4.

enter image description here

Asc File: https://limewire.com/d/oSEs7#F6S5kk8rF8

New contributor
Sung Hyun Eun is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
\$\endgroup\$
4
  • 1
    \$\begingroup\$ The op amp appears to be biased off, since -200dB is basically no gain. You likely need to add some DC bias so the op amp is in its active region. Post your .asc file. \$\endgroup\$ Commented yesterday
  • \$\begingroup\$ @CarlRutschow I've added the asc file \$\endgroup\$ Commented yesterday
  • \$\begingroup\$ What are yours specs ? \$\endgroup\$ Commented yesterday
  • \$\begingroup\$ or add negative bias volatge on the opamp instead of GND. \$\endgroup\$ Commented yesterday

3 Answers 3

4
\$\begingroup\$

This circuit is not well "biased" as already pointed.

You should add a resistor between +10 V and (+)input.

enter image description here

This resistance will make the "sensor" act in the positive and negative input.

enter image description here

I should add also the Stability Bode diagrams (Nyquist test).

enter image description here

With this resistor (and adjusting some others), this circuit should be ok (to be tested).
Don't forget the decoupling capacitor on power supply opamp.

\$\endgroup\$
1
\$\begingroup\$

With a very small amplitude as you have used (100uV), it is operated right at the bottom of the common mode input capabilities of the opamp. In this case that is given as 0V, so that should be OK.

I have just supplied the opamp with a dual supply and the result are as shown below. You could also add a DC offset to the output, so the opamp can output correctly. This DC offset can also be a voltage that together with the gain is in the middle of the opamp supply voltage. The DC offset will anyway be removed by the lowpass filter at the output.

enter image description here

Without adding any additional bias and making sure the input is always positive, the output is as given enter image description here

\$\endgroup\$
3
  • 1
    \$\begingroup\$ The AC analysis uses linear models for the active devices that aren't affected by the signal amplitude. 1V is typically used for the source since that gives the output gain directly in dB. The reason the AC simulation didn't work is because the op amp was biased off and not in its linear region. \$\endgroup\$ Commented 17 hours ago
  • \$\begingroup\$ @CarlRutschow It also seems that the AC analysis is giving different results if lets say a sinewave is also added at the same time the AC amplitude is also given? This is given the result as the OP is showing. \$\endgroup\$ Commented 15 hours ago
  • \$\begingroup\$ The AC analysis mode does not allow an added sinewave to the sim. \$\endgroup\$ Commented 8 hours ago
0
\$\begingroup\$

The two inputs (A and B below) of your differential amplifier are at 0V, their difference is zero, and so the output of the system should be 0V at DC. Since the negative supply for your op-amp is ground also, at DC this op-amp is saturated against its own negative supply. The situation resembles this:

schematic

simulate this circuit – Schematic created using CircuitLab

While saturated, this op-amp's open-loop gain drops to near zero, because its output cannot move from 0V, which is why you see negative hundreds of dB closed-loop gain.

While you may have intended to use 0V (ground) as the op-amp's negative supply, which might be a perfectly acceptable possible real-life condition, an AC analysis cannot be performed in this DC state, because the op-amp is no longer behaving as it would if it were not saturated.

You could adjust DC input levels to shift the output above ground, which would "release" the op-amp and yield a bode plot with expected and correct closed-loop gain, but the simplest solution seems to be to temporarily give the op-amp a proper negative supply:

schematic

simulate this circuit

That permits the 0V output state to lie well away from saturation, so these DC test conditions are no longer "exceptional". The AC analysis can then proceed using the op-amp's usual ridiculously large open-loop gain, and you would see the expected 29dB closed-loop gain near DC.

If you insist on testing frequency response using ground as the op-amp's negative supply, then you must bias the inputs in such a way as to raise the DC (quiescent) output well above ground (out of saturation), and simultaneously ensure that its inverting and non-inverting inputs also lie well within the op-amp's acceptable input voltage range. You might do something like this:

schematic

simulate this circuit

V2 will raise both input potentials, to set their common mode value well into a region where the op-amp is happy, while V1 applies a small difference between them to raise the op-amp's output out of saturation. You then use V1 as your modulated source for an AC analysis.

\$\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.