moomerator
Member
I'm trying to take a receiver's coaxial output (S/PDIF), convert it to I2S via a WM8804 (http://store.sure-electronics.com/product/AA-AB41133), input it to a Teensy 3.2, perform an FFT on it, and display it with LEDs. Here's my current code: https://github.com/moomerator/Audio-Visualizer/blob/master/6_Full_Audio_Analyzer_FromSpeaker.ino and circuit: https://github.com/moomerator/Audio-Visualizer/blob/master/v6 wiring.jpg
I'm sure that the issue is getting the Teensy to read the data. I believe it will need to be in I2S slave mode but it looks like it doesn't read in an MCLK and I'm not well versed enough with this stuff to fully understand why. My hope was that I could just plug the I2S clocks outputting from the WM8804 into the applicable Teensy pins and it would read them in but that didn't seem to work. Not sure if I could use the audio shield here to simplify things (I've thought about just connecting wires on the receiver that are typically for a speaker to the inputs on the shield but I'm thinking that would probably just let the magic smoke out of my Teensy).
I have working codes for the same project using USB input with:
- no audio output using no audio shield: https://github.com/moomerator/Audio-Visualizer/blob/master/4_Full_Audio_Analyzer_HSVGradient.ino
- audio output via the audio shield: https://github.com/moomerator/Audio-Visualizer/blob/master/5_Full_Audio_Analyzer_wSound.ino
but this project seems to be in a whole different league..
Frankly I think I may be over my head and wanted to get some advice because I'm not sure if I'm really close or completely off so even if the advice is "you're way off, just cut your losses and do something easier" that's fine but I don't want to quit if it's just a could lines of code.
I'm sure that the issue is getting the Teensy to read the data. I believe it will need to be in I2S slave mode but it looks like it doesn't read in an MCLK and I'm not well versed enough with this stuff to fully understand why. My hope was that I could just plug the I2S clocks outputting from the WM8804 into the applicable Teensy pins and it would read them in but that didn't seem to work. Not sure if I could use the audio shield here to simplify things (I've thought about just connecting wires on the receiver that are typically for a speaker to the inputs on the shield but I'm thinking that would probably just let the magic smoke out of my Teensy).
I have working codes for the same project using USB input with:
- no audio output using no audio shield: https://github.com/moomerator/Audio-Visualizer/blob/master/4_Full_Audio_Analyzer_HSVGradient.ino
- audio output via the audio shield: https://github.com/moomerator/Audio-Visualizer/blob/master/5_Full_Audio_Analyzer_wSound.ino
but this project seems to be in a whole different league..
Frankly I think I may be over my head and wanted to get some advice because I'm not sure if I'm really close or completely off so even if the advice is "you're way off, just cut your losses and do something easier" that's fine but I don't want to quit if it's just a could lines of code.