100khz sine wave into adc

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
thefatmoop
 
Posts: 352
Joined: Tue Aug 19, 2008 4:36 pm

Re: 100khz sine wave into adc

Post by thefatmoop »

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

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: 100khz sine wave into adc

Post by adafruit_support_mike »

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.

User avatar
gregn
 
Posts: 2
Joined: Sat Feb 16, 2013 5:24 am

Re: 100khz sine wave into adc

Post by gregn »

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

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”