thecomfychair
Active member
I'm trying to use the PCM5012, a cheap DAC from Aliexpress, for an audio project that's been in development for a while. The PCM5012 has been stable-ish in the past, but now I can't get any audio from the output jack. This is the same with two different modules.
In between times, the only thing I think has changed was updating from TD 1.54 to 1.55, but this may be unconnected.
My current setup is:
PCM5012 - Teensy 4.1
VIN - 3.3V
GND - GND
LCK - 20
DIN - 7
BCK - 21
SCK - 23 (although I have also tried tying SCK to GND)
For a sanity check, I'm running a stripped back version of the Hardware Test code from the Audio Library:
Does anyone know of any Audio Library bugs in 1.55 that might be causing this? Or whether support for certain DACs has been removed?
If not, then I'm presuming it's a hardware issue and I may need to buy a different DAC.
In between times, the only thing I think has changed was updating from TD 1.54 to 1.55, but this may be unconnected.
My current setup is:
PCM5012 - Teensy 4.1
VIN - 3.3V
GND - GND
LCK - 20
DIN - 7
BCK - 21
SCK - 23 (although I have also tried tying SCK to GND)
For a sanity check, I'm running a stripped back version of the Hardware Test code from the Audio Library:
Code:
#include <Audio.h>
#include <Wire.h>
#include <SD.h>
#include <SPI.h>
#include <SerialFlash.h>
#include <Bounce.h>
AudioSynthWaveform waveform1;
AudioOutputI2S i2s1;
AudioConnection patchCord1(waveform1, 0, i2s1, 0);
AudioConnection patchCord2(waveform1, 0, i2s1, 1);
AudioControlSGTL5000 sgtl5000_1;
int count=1;
void setup() {
AudioMemory(10);
Serial.begin(9600);
sgtl5000_1.enable();
sgtl5000_1.volume(0.3);
waveform1.begin(WAVEFORM_SINE);
delay(1000);
}
void loop() {
Serial.print("Beep #");
Serial.println(count);
count = count + 1;
waveform1.frequency(440);
waveform1.amplitude(0.9);
delay(250);
waveform1.amplitude(0);
delay(1750);
}
Does anyone know of any Audio Library bugs in 1.55 that might be causing this? Or whether support for certain DACs has been removed?
If not, then I'm presuming it's a hardware issue and I may need to buy a different DAC.