I'm getting a really loud click out of the headphone jack after I load a new sketch into the Teensy 4.1 with Audio Shield board (circuitry).
I have duplicated the circuitry of the TEENSY4_AUDIO (revD) on my custom board. Unfortunately I don't have an actual TEENSY4_AUDIO shield to try.
I only get the loud click after loading the sketch from the Teensy loader. Once the board is programmed, the normal power-up sequence doesn't create this click.
Anyway, is this a common problem?
If so, perhaps there is some known mitigation for such a problem?
I'm enabling the sgtl5000 in setup() like this...
I have duplicated the circuitry of the TEENSY4_AUDIO (revD) on my custom board. Unfortunately I don't have an actual TEENSY4_AUDIO shield to try.
I only get the loud click after loading the sketch from the Teensy loader. Once the board is programmed, the normal power-up sequence doesn't create this click.
Anyway, is this a common problem?
If so, perhaps there is some known mitigation for such a problem?
I'm enabling the sgtl5000 in setup() like this...
C++:
void setup() {
(setup pins and serial port here)
delay(10000); //10s delay to make sure the click noise is coming enable()
sgtl5000_1.enable(); // loud click happening here, only after loading code from teensy loader.
delay(10000);
sgtl5000_1.inputSelect(AUDIO_INPUT_LINEIN);
sgtl5000_1.dacVolumeRamp();
sgtl5000_1.lineOutLevel(13); //3.16V p-p
sgtl5000_1.lineInLevel(0); // 3.12V p-p
sgtl5000_1.volume(0.80);
(rest of setup here)
}