Nate_Fritz
New member
Hi all,
I am pretty good at working with hardware but when it comes to coding I am like a lost puppy in the woods. I am doing a project for school where I have to create a music reactive lighting system that analyzes frequency content from LINE IN (not microphone), performs an FFT, and makes the lights respond in different ways depending on frequency and magnitude(volume) content of a song.
Anyways, I'm trying to break it down into small stages. I have soldered together my Teensy 4.0 and my Rev D audio shield, alond with a female TRS jack onto the LINE IN terminals of the shield. Currently, all I am trying to do is come up with some code that will allow me to plug in my phone to the jack, play a song, route the analog data (from the phone) through the shield's ADC, and send it to the Teensy in the form of an i2s signal. Then, I would like to display that data if possible. From there, I will be performing my FFT algorithm to separate the frequency into bins and then define the bands and so on, but thats a whole nother story. One stipulation for this project, however, is that I am not allowed to use the PJRC audio design tool, which makes things quite a bit more difficult.
I am very confused on how exactly to tell the shield to send the data through the ADC and then to the Teensy, and I have no idea what I am doing when it comes to the code. Please let me know if you have any suggestions.
Thanks,
Nate
I am pretty good at working with hardware but when it comes to coding I am like a lost puppy in the woods. I am doing a project for school where I have to create a music reactive lighting system that analyzes frequency content from LINE IN (not microphone), performs an FFT, and makes the lights respond in different ways depending on frequency and magnitude(volume) content of a song.
Anyways, I'm trying to break it down into small stages. I have soldered together my Teensy 4.0 and my Rev D audio shield, alond with a female TRS jack onto the LINE IN terminals of the shield. Currently, all I am trying to do is come up with some code that will allow me to plug in my phone to the jack, play a song, route the analog data (from the phone) through the shield's ADC, and send it to the Teensy in the form of an i2s signal. Then, I would like to display that data if possible. From there, I will be performing my FFT algorithm to separate the frequency into bins and then define the bands and so on, but thats a whole nother story. One stipulation for this project, however, is that I am not allowed to use the PJRC audio design tool, which makes things quite a bit more difficult.
I am very confused on how exactly to tell the shield to send the data through the ADC and then to the Teensy, and I have no idea what I am doing when it comes to the code. Please let me know if you have any suggestions.
Thanks,
Nate