Pages: [1]   Go Down
Author Topic: Splitting Audio by Frequency for LilyPad Arduino  (Read 1498 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi everyone!

I'm new to Arduino, but I have a fair amount of experience programming in C, so using an Arduino for my current school project seemed logical when my teacher suggested it. The teacher specifically recommended the LilyPad Arduino, as the project involves some textile aspects, so I purchased a LilyPad 328 Main Board from SparkFun.

The idea of the project is as follows:

- Get audio (music) input from a 3.5mm headphone jack (on a computer, MP3 player, etc.)
- Split the audio into 6+ frequency bands (the number of bands is flexible, but must be at least 6)
- When the amplitude of a particular frequency band is high enough (minimizing response to "noise"), activate one of 6+ LilyPad Vibe Boards (the project will include one Vibe Board for each frequency band)
- When the amplitude of a frequency band is below the threshold, deactivate the corresponding Vibe Board

In addition to processing the audio input as detailed above, I would like to allow users to plug in a pair of headphones and listen to the music being played.

I'd been investigating the possibility of building circuits to split the audio input into frequency bands, but just today I came across some Arduino shields which seem to accomplish what I need:

https://www.sparkfun.com/products/10306
http://www.bliptronics.com/item.aspx?ItemID=116

Both break audio input from a 3.5mm jack into seven frequency bands, and have a second jack for headphones.

The trouble is, I'm aware that these shields are designed for standard Arduinos, not the LilyPad. I'm wondering, is there a way to connect either one to the LilyPad Arduino, assuming I'm willing to do some extra wiring? Or, if not, is there an alternative option for LilyPad which accomplishes the same thing?

Any help on this would be much appreciated.
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 212
Posts: 8974
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Looks like the sparkfun shield only use four data pins: D4=strobe, D5=reset, A0=Left, A1=Right.  You can take out the pin headers, cut off the prototyping area, and wire those four pins plus Power and Ground.

Sparkfun also sells the 8-pin version of the MSGEQ7 chip (https://www.sparkfun.com/products/10468) for $4.95.  You could wire this on a small piece of protoboard.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the advice, johnwasser! I've successfully incorporated the shield into my project, and it's working nicely. Again, thanks for taking the time to answer my question.
Logged

Pages: [1]   Go Up
Jump to: