Bob Larkin
Well-known member
I am observing the ADC output through the DAC, with no analog input (inputs grounded). I see the following:
I have added a gain of 200 to not see too much DAC noise. The noise on the square wave is probably normal ADC noise. The p-p square wave is 200 mV for a DAC full scale of about 2 V p-p. So when the x 200 is removed, it is a lot smaller, about 1/2000 of full scale. But that is still about 8 times bigger than the ADC noise. The frequency is about 1836 Hz for a period of about 545 microseconds. It does this even with 5V applied and the PC not running (but still supplying the 5V).
The test setup is
What is this? Does anybody else see this? Am I doing something I shouldn't?
I have added a gain of 200 to not see too much DAC noise. The noise on the square wave is probably normal ADC noise. The p-p square wave is 200 mV for a DAC full scale of about 2 V p-p. So when the x 200 is removed, it is a lot smaller, about 1/2000 of full scale. But that is still about 8 times bigger than the ADC noise. The frequency is about 1836 Hz for a period of about 545 microseconds. It does this even with 5V applied and the PC not running (but still supplying the 5V).
The test setup is
Code:
/* RSL_ADCTest2.ino
*/
#include <Audio.h>
//Audio objects
// GUItool: begin automatically generated code
AudioInputI2S i2s1; //xy=173,313
AudioMixer4 mixer1; //xy=404,164
AudioMixer4 mixer2; //xy=404,355
AudioOutputI2S i2s3; //xy=668,313
AudioConnection patchCord2(i2s1, 0, mixer1, 0);
AudioConnection patchCord4(i2s1, 1, mixer2, 0);
AudioConnection patchCord5(mixer1, 0, i2s3, 0);
AudioConnection patchCord6(mixer2, 0, i2s3, 1);
AudioControlSGTL5000 sgtl5000_1; //xy=177,525
// GUItool: end automatically generated code
void setup() {
AudioMemory(20);
sgtl5000_1.enable();
// 2 & 19 sets 2.2 v p-p range for in and out
sgtl5000_1.lineInLevel(2);
sgtl5000_1.lineOutLevel(19);
mixer1.gain(0,200.0); // To see ADC noise on scope
mixer2.gain(0,200.0);
}
void loop(){
}
What is this? Does anybody else see this? Am I doing something I shouldn't?