I purchased this DAC ...https://www.ebay.com/itm/275054014657?
it takes 6 lines
Vcc +5
DGND - Digital ground
AGND - Analog Ground
LRCK - left right clock
DATA - Stream to DAC
BCK - CLOCK
Connected grounds as common to teensy ground. ( See NOTE in vendors Ad about BCK and DATA being reversed)
LRCK Teensy pin 20 (LRCLK1)
DATA Teensy Pin 7 (OUT1A)
BCLK Teensy pin 21 (BCK)
and of course VCC and GND
So far so good ...
I'm running Arduino ide 1.8.16 and teensyduino 1.55
code is as follows
#include <Audio.h>
#include <Wire.h>
AudioInputUSB usb1; //xy=114,159
AudioAmplifier amp2; //xy=266,191
AudioAmplifier amp1; //xy=269,133
AudioOutputI2S i2s1; //xy=406,166
AudioConnection patchCord1(usb1, 0, amp1, 0);
AudioConnection patchCord2(usb1, 1, amp2, 0);
AudioConnection patchCord3(amp2, 0, i2s1, 1);
AudioConnection patchCord4(amp1, 0, i2s1, 0);
void setup()
{
AudioMemory(16);
}
void loop()
{
float vol =usb1.volume();
amp1.gain(vol);
amp2.gain(vol);
delay(100);
}
Teensy is picked up as an audio device in Windows fine , no issues ... no issues compiling , however no sound out . dead as a mouse. I tried sending it a sinewave as well (no happyness) ...
Did I miss something in my script ...
Note I did try the BCK/DATA reverse as indicated in the note (no happyness there either ) ...
There is a jumper on the board that selects from I2S or LJ ( Left Justified) ..I left it on I2S
I had a second teensy 4.0 .. tried it there in case it was a processor issue but same issue ..
Could use some schooling and some pointers ...
NOTE . I have the SGL5000 running fine with the Teensy no issues , but fail to understand what I'm missing when streaming out to an external D/A converter ...
Thanks a heap in advance .. cheers and Happy New Year to all !
Keith
it takes 6 lines
Vcc +5
DGND - Digital ground
AGND - Analog Ground
LRCK - left right clock
DATA - Stream to DAC
BCK - CLOCK
Connected grounds as common to teensy ground. ( See NOTE in vendors Ad about BCK and DATA being reversed)
LRCK Teensy pin 20 (LRCLK1)
DATA Teensy Pin 7 (OUT1A)
BCLK Teensy pin 21 (BCK)
and of course VCC and GND
So far so good ...
I'm running Arduino ide 1.8.16 and teensyduino 1.55
code is as follows
#include <Audio.h>
#include <Wire.h>
AudioInputUSB usb1; //xy=114,159
AudioAmplifier amp2; //xy=266,191
AudioAmplifier amp1; //xy=269,133
AudioOutputI2S i2s1; //xy=406,166
AudioConnection patchCord1(usb1, 0, amp1, 0);
AudioConnection patchCord2(usb1, 1, amp2, 0);
AudioConnection patchCord3(amp2, 0, i2s1, 1);
AudioConnection patchCord4(amp1, 0, i2s1, 0);
void setup()
{
AudioMemory(16);
}
void loop()
{
float vol =usb1.volume();
amp1.gain(vol);
amp2.gain(vol);
delay(100);
}
Teensy is picked up as an audio device in Windows fine , no issues ... no issues compiling , however no sound out . dead as a mouse. I tried sending it a sinewave as well (no happyness) ...
Did I miss something in my script ...
Note I did try the BCK/DATA reverse as indicated in the note (no happyness there either ) ...
There is a jumper on the board that selects from I2S or LJ ( Left Justified) ..I left it on I2S
I had a second teensy 4.0 .. tried it there in case it was a processor issue but same issue ..
Could use some schooling and some pointers ...
NOTE . I have the SGL5000 running fine with the Teensy no issues , but fail to understand what I'm missing when streaming out to an external D/A converter ...
Thanks a heap in advance .. cheers and Happy New Year to all !
Keith