Starting a new thread for this. Since my experiments switching to a T4.0 went awry (posted elsewhere), while I wait for more parts to arrive I decided to experiment with connecting two Teensy 3.2 boards via I2S to transfer audio. This is with two bare boards, the sender would stream USB audio in, then send it via I2S to the receiver board, which takes in the I2S and flips it back to USB. Connections here:
Sender:
Receiver:
There isn't much actual code, just a declaration of audio memory (went with 12), and code to blink an LED. The mixer object is in there just in case I was hitting an update issue, it isn't connected to anything.
Here's a photo of the wiring (tried for reasonably short):
The good news is that this wasn't a complete failure. I was able to connect the receiver to either of the I2S outputs on the sender and it would receive. That's my ultimate goal.
The bad is that it sounds terrible. Like I've got a sample rate issue. I can make out that it isn't just noise, but it sounds fuzzy. I can post a clip if that would help. With or without MCLK connected it didn't seem to matter.
I'm not sure what to try next. I can't figure out if I've got an issue between the two Teensys, or if using i2sslave and USB together is a no no.
Any thoughts or guidance?
Thank you!
Sender:
Code:
AudioInputUSB usb1; //xy=175,225
AudioMixer4 mixer1; //xy=302,118
AudioOutputI2SQuad i2s_quad1; //xy=498,230
AudioConnection patchCord1(usb1, 0, i2s_quad1, 0);
AudioConnection patchCord2(usb1, 0, i2s_quad1, 2);
AudioConnection patchCord3(usb1, 1, i2s_quad1, 1);
AudioConnection patchCord4(usb1, 1, i2s_quad1, 3);
Receiver:
Code:
AudioInputI2Sslave i2sslave1; //xy=254,291
AudioMixer4 mixer1; //xy=302,118
AudioOutputUSB usb1; //xy=510,297
AudioConnection patchCord1(i2sslave1, 0, usb1, 0);
AudioConnection patchCord2(i2sslave1, 1, usb1, 1);
There isn't much actual code, just a declaration of audio memory (went with 12), and code to blink an LED. The mixer object is in there just in case I was hitting an update issue, it isn't connected to anything.
Here's a photo of the wiring (tried for reasonably short):
The good news is that this wasn't a complete failure. I was able to connect the receiver to either of the I2S outputs on the sender and it would receive. That's my ultimate goal.
The bad is that it sounds terrible. Like I've got a sample rate issue. I can make out that it isn't just noise, but it sounds fuzzy. I can post a clip if that would help. With or without MCLK connected it didn't seem to matter.
I'm not sure what to try next. I can't figure out if I've got an issue between the two Teensys, or if using i2sslave and USB together is a no no.
Any thoughts or guidance?
Thank you!