played around with it and the problem is that I wasn't using a large enough cap. 10uF seems to do the job, but that's awfully large =/
That and there's either an op-amp bandwidth problem or it's the diode. I don't think it's the diode.
video here
http://youtu.be/MzKXaQ6AHoM
100khz sine wave into adc
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: 100khz sine wave into adc
Double-check the datasheet for your op amp and make sure your IN+ and IN- connections are correct. Tying the output back to IN- turns an op amp into a voltage buffer, which eliminates most of the supply-polarity issues.
- gregn
- Posts: 2
- Joined: Sat Feb 16, 2013 5:24 am
Re: 100khz sine wave into adc
Based on my experiences earlier this week with a simple peak detector circuit (just a diode, cap, & resistor), I think it's the diode. We saw exactly the same behavior as in your video, and checked the diode and found it to be the culprit. To check the diode, just hook it up in series with a resistor (i.e., diode followed by resistor) and put your AC voltage across the pair, measuring the voltage across the resistor while turning up the frequency. You'll see the voltage go from a half-wave rectified version of the input voltage to a DC voltage that drops to zero as you increase the frequency.thefatmoop wrote:
That and there's either an op-amp bandwidth problem or it's the diode. I don't think it's the diode.
video here
http://youtu.be/MzKXaQ6AHoM
Please be positive and constructive with your questions and comments.