1
\$\begingroup\$

I am trying to build an circuit with an PCB to sample the main AC waveform in an ADC set to 0V to 3.3V range. I noticed that there are some ZMPT101B modules that is based on LM358. I made some modifications to replace the LM358 with AD8676.

I check the datasheet, and so far I haven't noticed any possible issues regarding this substitution. However, I am a little worried if the 3.3V on VCC will be enough.

In the image below, there is the proposed modified circuit.

Could someone please tell me if its design is OK to use?

Best regards, F.Borges

AC Voltage Meter

\$\endgroup\$

3 Answers 3

2
\$\begingroup\$

AD8676 isn’t specified below 5V - it may work but there are no guarantees it will behave well. LMV358 might be an option if the performance suits your needs.

As an aside, LM358 have awful crossover distortion as they are essentially class B. This circuit appears to work around that in U1A at least by loading the op amp output to GND so the amp is always sourcing current and never crosses over to sinking current. LMV358 doesn’t have this ‘feature’.

\$\endgroup\$
5
  • \$\begingroup\$ It's even worse: AD8676 isn't specified below ±5V, namely 10V. Which is not going to map well to just +3.3V without negative supply. \$\endgroup\$
    – user107063
    Commented Oct 15, 2023 at 1:13
  • \$\begingroup\$ I believe figure 10 is explicit about ‘total supply voltage’. \$\endgroup\$
    – Frog
    Commented Oct 15, 2023 at 1:18
  • \$\begingroup\$ Figure 10 is just about the relation between supply voltage and supply current. The point where this relation stabilizes (near 5V) will not yet support a useful input voltage range. \$\endgroup\$
    – user107063
    Commented Oct 15, 2023 at 2:15
  • \$\begingroup\$ I tested the original ZMPT101B modules with 3.3V power supply and I noticed that they work with LM358. I used this module: pt.aliexpress.com/item/… \$\endgroup\$
    – fborges22
    Commented Oct 15, 2023 at 3:19
  • \$\begingroup\$ The LMV358 seems to be a very good choice. I checked the Datasheet and I noticed that is within 2.7-V and 5-V range. \$\endgroup\$
    – fborges22
    Commented Oct 15, 2023 at 3:24
5
\$\begingroup\$

I am somewhat surprised at "I check the datasheet, and so far I haven't noticed any possible issues regarding this substitution." when working with 3.3V supply power and replacing an opamp specified to work with 3V minimum supply voltage with one specified to work with 10V minimum voltage. If that is not enough of a warning flag, the input voltage range for the minimum ±5V supply is specified to be ±3V, namely at least 2V away from each power rail. Even if you wanted to speculate that it will work at lower voltage than specified, it is impossible with 3.3V of supply power to stay at least 2V away from each power rail.

So checking the most basic specs, the obvious answer is "there is no way this will work". It's not just out of spec, it is out of spec in a manner where there isn't even a chance of hoping for it to work in a manner remotely approaching the spec sheet details.

For 3.3V of supply voltage, you need low-voltage opamps, and with the kind of headroom you have available, they will typically need to be rail-to-rail (or beyond) on both input and output.

\$\endgroup\$
1
  • 1
    \$\begingroup\$ I rechecked and I noticed that I incorrectly misinterpreted the operating voltage indeed. Thanks for the tip. \$\endgroup\$
    – fborges22
    Commented Oct 15, 2023 at 3:31
2
\$\begingroup\$

Putting aside the power supply issue for a moment, you have picked a low-noise opamp, but your schematic is sort of a noise fest.

The AD8676 has 2.8nV/√Hz input-referred voltage noise, and 0.3pA/√Hz current noise. Now you supply your virtual ground to the positive opamp inputs with voltage dividers and no smoothing at all. That means you get all the supply noise, and 5kohm worth of thermal noise which is about 10nV/√Hz.

Admittedly the input transformer (apart from capacitive coupling) turns this into common-mode noise on the first opamp, making it pass through to the output merely buffered instead of amplified.

What else? The negative input of the first opamp sees an additional 9k of impedance good for 17nv/Hz. If you put the volume wiper in the middle, the right opamp gets to see 35k on its negative input, good for about 26nV/√Hz voltage noise of its own, plus about 10nV/√Hz of noise from the opamp current noise, bumping this to 28nV/√Hz (uncorrelated noise power can be added, so for voltages you take the root of the added squares).

With the first input stage amplifying 5-fold (in middle position), this is an additional 6nV/√Hz when referred to the first input of your amp.

All that adds up. Your virtual grounds can just be given a capacitor for smoothing. You can share the same ground between both stages; that way the ground noise from the first stage is passed through the second stage unamplified (thus becoming irrelevant) iff your volume pot also takes this virtual ground rather than the real ground.

And it really should, or you have 1.65V DC across the volume pot which makes for very scratchy volume adjustments.

\$\endgroup\$
2
  • \$\begingroup\$ If I implement an virtual ground something like the last circuit cited by here (tangentsoft.com/elec/vgrounds.html) will it mitigate the cited noise issues? \$\endgroup\$
    – fborges22
    Commented Oct 15, 2023 at 20:16
  • 1
    \$\begingroup\$ Just using what you have and adding a capacitor to ground (say, 47uF) should do the trick: the capacitor takes out most ground-referenced noise, and the virtual ground does not have to provide more than the bias currents. Except for the volume pot... I've not analyzed its impact, particularly if you change the resistance to a lower value. If you are paranoid about oscillation, a buffer on the virtual ground will decouple it from the signal. \$\endgroup\$
    – user107063
    Commented Oct 15, 2023 at 21:42

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.