Not exactly.And in the end, @Papabravo, it seems that the solution to the problem was exactly that
My circuit only has the precision rectifier, not the peak detector.
Not exactly.And in the end, @Papabravo, it seems that the solution to the problem was exactly that
Part of the reason for that is you used a value of 33kΩ for R8 instead of the 10kΩ I used (why?).I noticed that the last values I used for U1's gain resistors were producing a highly asymmetrical rectified wave at the MID test point.
I 'd tell you why ... but I don't want to make disparaging remarks about myself ...you used a value of 33kΩ for R8 instead of the 10kΩ I used (why?).
I think I found the answer ... and it turned out to be a little trickier than I thought ...Dumb question: what should I do with the unused OpAmp of the LMC6484A? Ground the inputs and leave the output floating?
Then I'll stay mum on the subject also.I 'd tell you why ... but I don't want to make disparaging remarks about myself ......
![]()
That would be fine.what should I do with the unused OpAmp of the LMC6484A? Ground the inputs and leave the output floating?
That would be fine.
The circuit in post #26 is overkill.
SourceGrounding both inputs, or shorting them together at some other potential, also causes the output stage to saturate, since the offset voltage of an op-amp is never exactly zero
Thanks, crutschow. That small advice from you just saved me valuable PCB space ... and a few cents worth of SMT resistors. And, say ... I remember now why I'm using a 33k resistor for R8. After all the adjustments I made to all the other resistors to values I have available, I noticed that leaving R8 as 10K would shift the output scale in a way that at 50% input amplitude the output would be a few mV short of the 2.5V expected. Adjusting R8 to 33k fixed that."Grounding both inputs, or shorting them together at some other potential, also causes the output stage to saturate."
True, but I don't think that's a particular problem.
But alternately, connect the output to the (-) input and ground the (+) input.
The will put the output at ground potential without saturating and without any added parts.
Adjusting R1 (R2 in my schematic) would have been better since it minimizes the plus and minus asymmetry at U1's input (see below).I noticed that leaving R8 as 10K would shift the output scale in a way that at 50% input amplitude the output would be a few mV short of the 2.5V expected. Adjusting R8 to 33k fixed that.

What happens when you feed in an AC input? Do you see the expected DC output then? In other words, is the problem only when you're close to zero volts target output?Well, I'm back ... I've tested the thing, and it isn't working ... I've gone through all the wiring, checked grounds, voltages, and have made sure that the parts in the circuit are exactly the ones as the parts in the sim, and still no results.
The input of the circuit is a steady 2.5V, just the way I want it to. But the output seems to be left "floating" (when it should be a flat 0V) when I apply power to it. When I either measure it with a MM, or scope it, the output seems to peak at 5V, and then after a few seconds drifts down to 0.5V, where it begins to very slowly oscillate.
What am I missing?
Yes, there are decoupling caps sprinkled all over. But the circuit's performance should be such that it has a 0V output when it has a 0V input, and that's not the case here.X
What happens when you feed in an AC input? Do you see the expected DC output then? In other words, is the problem only when you're close to zero volts target output?
What's your power supply? Do you have decoupling caps at all ICs?
I don't have any specific ideas yet - just troubleshooting and brainstorming. Good luck!
Measure the voltages at all the circuit nodes and post a schematic with the voltages.he input of the circuit is a steady 2.5V, just the way I want it to. But the output seems to be left "floating"
Here are the real measurements when IN=0V, vs the theoretical values, according to the sim:Measure the voltages at all the circuit nodes and post a schematic with the voltages.
That should allow us to troubleshoot the problem.
node| Sim | Meas
-------------------
+V | 5.000 | 4.999
In | 2.500 | 2.500
01 | 0.000 | 0.001
02 | 0.020 | 0.010
Mid | 0.190 | 0.007
03 | 0.018 | 0.078
04 | 0.033 | 0.006
05 | 0.035 | 0.007
06 | 0.035 | 0.007
07 | 0.036 | 0.000
08 | 0.108 | 5.000
Out | 0.107 | 5 to 0.360V
