spoonman667
Member
Hi everyone,
I'm hoping someone can help me diagnose an issue with a Teensy 4.1 and a genuine PJRC Audio Adapter Rev D.
Hardware:
Teensy 4.1
Genuine PJRC Audio Adapter Rev D (DigiKey part 1568-15845-ND)
Arduino IDE 2.x
Teensy package 1.62
Audio shield connected via jumper wires (not stacked directly onto the Teensy)
Wiring:
Audio Shield → Teensy
3.3V (main header) → 3V
GND (main header) → GND
Additional GND (near pin 0) → Teensy GND
MCLK → 23
BCLK → 21
LRCLK → 20
DIN → 7
SDA → 18
SCL → 19
What works:
Teensy uploads sketches correctly (Blink works).
Teensy Audio library is installed correctly.
Audio examples compile.
USB Serial works.
Audio test sketch runs.
LED blink confirms the sketch is executing.
The problem
Using the standard SGTL5000 test code:
"if (audioShield.enable()) {
Serial.println("SGTL5000 enabled OK");
} else {
Serial.println("SGTL5000 enable FAILED");
}"
I always get:
"Starting audio test...
SGTL5000 enable FAILED
Tone should be playing now"
No audio is produced.
I have also run a standard I²C scanner.
Result:
=================================
I2C Scanner
=================================
No I2C devices found.
I also tried scanning Wire, Wire1 and Wire2 with the same result.
Other tests done:
3.3V measured at the Audio Shield with a multimeter.
Continuity confirmed from Teensy to Audio Shield for:
3.3V
GND
SDA
SCL
...SDA and SCL are not shorted together.
Tried swapping SDA/SCL (just to rule it out).
Added external 10k pull-up resistors from SDA and SCL to 3.3V.
Tried powering from both the auxiliary 3.3V/GND pads and the main header 3.3V/GND pads.
Added an additional ground connection between the shield GND near pin 0 and the Teensy GND.
Inspected solder joints and checked continuity after soldering.
Despite all of this, the scanner still reports no I²C devices....
At this point I'm unsure whether I've overlooked something fundamental with the wiring,
there's something specific about using the Rev D shield with jumper wires rather than stacking,
or whether the Audio Shield itself could be faulty.
I've attached photos of the wiring from and back.
Any suggestions would be greatly appreciated.
Thanks!
I'm hoping someone can help me diagnose an issue with a Teensy 4.1 and a genuine PJRC Audio Adapter Rev D.
Hardware:
Teensy 4.1
Genuine PJRC Audio Adapter Rev D (DigiKey part 1568-15845-ND)
Arduino IDE 2.x
Teensy package 1.62
Audio shield connected via jumper wires (not stacked directly onto the Teensy)
Wiring:
Audio Shield → Teensy
3.3V (main header) → 3V
GND (main header) → GND
Additional GND (near pin 0) → Teensy GND
MCLK → 23
BCLK → 21
LRCLK → 20
DIN → 7
SDA → 18
SCL → 19
What works:
Teensy uploads sketches correctly (Blink works).
Teensy Audio library is installed correctly.
Audio examples compile.
USB Serial works.
Audio test sketch runs.
LED blink confirms the sketch is executing.
The problem
Using the standard SGTL5000 test code:
"if (audioShield.enable()) {
Serial.println("SGTL5000 enabled OK");
} else {
Serial.println("SGTL5000 enable FAILED");
}"
I always get:
"Starting audio test...
SGTL5000 enable FAILED
Tone should be playing now"
No audio is produced.
I have also run a standard I²C scanner.
Result:
=================================
I2C Scanner
=================================
No I2C devices found.
I also tried scanning Wire, Wire1 and Wire2 with the same result.
Other tests done:
3.3V measured at the Audio Shield with a multimeter.
Continuity confirmed from Teensy to Audio Shield for:
3.3V
GND
SDA
SCL
...SDA and SCL are not shorted together.
Tried swapping SDA/SCL (just to rule it out).
Added external 10k pull-up resistors from SDA and SCL to 3.3V.
Tried powering from both the auxiliary 3.3V/GND pads and the main header 3.3V/GND pads.
Added an additional ground connection between the shield GND near pin 0 and the Teensy GND.
Inspected solder joints and checked continuity after soldering.
Despite all of this, the scanner still reports no I²C devices....
At this point I'm unsure whether I've overlooked something fundamental with the wiring,
there's something specific about using the Rev D shield with jumper wires rather than stacking,
or whether the Audio Shield itself could be faulty.
I've attached photos of the wiring from and back.
Any suggestions would be greatly appreciated.
Thanks!