need advise on project aux audio in

Status
Not open for further replies.

Jclin

New member
Hey I have a project for school, where I need to make a box that can let the lights react to music. It needs to be automated or "SMART". My plan was to have aux input via the teensy audioboard (to be honest I don't know what kind of data I'm looking for here but). Then have it connected to a raspberry pi and the raspberry pi sends the data via dmx to the spotlights. The code needs to be written in C. I am really getting stuck on what for data I'm getting. I don't have a teensy audio board yet (it has to go through the school to get one).

Any advise and help will be appreciated.

Thank you in advance,

J.C.
 
You can probably make the PI do this directly via a USB microphone but if this task is to write code for a Teensy then you look at
https://www.pjrc.com/teensy/td_libs_Audio.html
and the tutorial video or power point.
Then do the Teensyduino install
https://www.pjrc.com/teensy/td_download.html
And set board type to Teensy 3.2
Look in file->examples->audio->analysis, and specifically the FFT and the RMS examples.
RMS gives you a simple one dimension signal to process into smarts, FFT gives you two axis but more complication.
If those examples are making sense then you can look at getting a Teensy3.2+Audio board but if that is looking complicated, sort the complication out before you spend the money.

Depending on the actual task https://www.pjrc.com/teensy/td_libs_DmxSimple.html may be useful

The task as described as very broad, and if the task is just to make a sound responsive light there are many many ways, some without any software at all and some that are major projects to undertake. Suggest looking hard at the set task, and what you already know and make sure you are are starting something that you can both complete AND meets the scoring criteria.
 
Status
Not open for further replies.
Back
Top