I'm trying to implement a half-wave rectifier using just a diode. I'm using a unity gain opamp for isolation from the mains. At the output of the opamp, I'm using a smoothing capacitor to get a DC voltage across 1K load resistor.
But for some reason, I can't get rid of the ripples. Any idea why?