JotaEfe13
Well-known member
I was working in an audio project in Teensy 3.6 with the Audio Board and I decided to migrate it to Teensy 4.1 and the rev. D Audio Board.
I don't know if it may be relevant, but I soldered a PSRAM chip and a Winbond 25Q256JVEIQ flash chip on the Teensy 4.1, and another 25Q256JVEIQ in the Audio Board.
After remapping my connections and updating my code, I am having some issues with the audio.
The first problem is noise when listening from the line inputs, but I have had no time to properly debug this one, so I it may be related to a ground loop of bad connections.
The second one is a high pitch noise when playing audio from the flash chip. I have detected that this problem was related with the ILI9341 display I have in my setup, as the noise disappears then I disconnect the ILI9341 from Teensy's pin 13(SCK). Is there any way to get rid of this noise, other than disconnecting the display, of course.
The last issue is the one that looks more intriguing to me. When I change de volume in the SGTL5000 I hear pops in the right channel, and this wasn't happening in the Teensy 3.6. I ended up removing my Teensy 4.1 from the breadboard (with the audio shield sandwitched) to discard any issue provoked by bad connections and reduced the code to the minimum and the issue persists. Every time I change the volume I hear a pop, louder as I increase the volume. I tried with different headphones and same result.
Here it is my sample code:
Only when I remove the AudioOutputI2S object the pops disappear. Is there any known issue related to this, or may it be a problem with this specific Audio Board?
Thanks in advance.
I don't know if it may be relevant, but I soldered a PSRAM chip and a Winbond 25Q256JVEIQ flash chip on the Teensy 4.1, and another 25Q256JVEIQ in the Audio Board.
After remapping my connections and updating my code, I am having some issues with the audio.
The first problem is noise when listening from the line inputs, but I have had no time to properly debug this one, so I it may be related to a ground loop of bad connections.
The second one is a high pitch noise when playing audio from the flash chip. I have detected that this problem was related with the ILI9341 display I have in my setup, as the noise disappears then I disconnect the ILI9341 from Teensy's pin 13(SCK). Is there any way to get rid of this noise, other than disconnecting the display, of course.
The last issue is the one that looks more intriguing to me. When I change de volume in the SGTL5000 I hear pops in the right channel, and this wasn't happening in the Teensy 3.6. I ended up removing my Teensy 4.1 from the breadboard (with the audio shield sandwitched) to discard any issue provoked by bad connections and reduced the code to the minimum and the issue persists. Every time I change the volume I hear a pop, louder as I increase the volume. I tried with different headphones and same result.
Here it is my sample code:
Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
AudioOutputI2S i2s1;
AudioControlSGTL5000 sgtl5000_1;
void setup() {
sgtl5000_1.enable();
}
void loop() {
sgtl5000_1.volume(0.5);
delay(1000);
sgtl5000_1.volume(0.6);
delay(1000);
sgtl5000_1.volume(0.7);
delay(1000);
sgtl5000_1.volume(0.8);
delay(1000);
sgtl5000_1.volume(0.9);
delay(1000);
sgtl5000_1.volume(1.0);
delay(1000);
}
Only when I remove the AudioOutputI2S object the pops disappear. Is there any known issue related to this, or may it be a problem with this specific Audio Board?
Thanks in advance.