Pages: [1]   Go Down
Author Topic: Bass beat detect  (Read 1047 times)
0 Members and 1 Guest are viewing this topic.
Finland
Offline Offline
Newbie
*
Karma: 0
Posts: 42
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm making sound to light with arduino. It's work now with volume, but I want to make it work with frequency. I used normal sound wire from PC to arduino for sound detection. Can anybody help me to make arduino detect frequency?
Logged

Elias Ojala

Norfolk UK
Offline Offline
Edison Member
*
Karma: 52
Posts: 2207
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Probably the easy answer would be to use something like the MSGEQ7 chip that splits the signal into 7 frequency bands. A tutorial here and youtube example here
Logged

Handle every stressful situation like a dog. If you can't eat it or hump it. Piss on it and walk away.

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

Hi,

I am also trying to do something similar.
Basically you have three options:

1) analog filtering with something like the MSGEQ7
2) FFT analysis (there are plenty of them on the net)
3) some digital filtering, like a FIR

I am trying to follow the third option, but I want something simple and rough, like it is done here: http://www.instructables.com/id/The-LED-Matrix-Panel-or-LMP-for-the-Arduino-micr/
This guy basically implements three simple filters, but the code is poorly documented and I can't understand it very well.
As far as I have understood he sums the samples in a group of 2, 20 and 100. The more samples you add the lower the frequency, but then some magic happens that I can't understand smiley-sad

Does anyone have some suggestion?


Logged

Montreal
Offline Offline
Edison Member
*
Karma: 23
Posts: 2485
Per aspera ad astra.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
but then some magic happens that I can't understand
Me neither. FIR filter is only possible with regularly - precise spaced samples, if that part is omitted, than everything else is just a non-sense.
Logged

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

Hi,

in the end I made it!

http://bochovj.wordpress.com/2013/07/07/bass-detection-with-arduino/

the FIR isn't perfect but it's still a viable solution.
Logged

Pages: [1]   Go Up
Jump to: