2
$\begingroup$

I'm trying to make a robot dance on several songs using Arduino.
I need to understand how to get the rhythm from the songs, something like detecting the beats, calculating the bpm..
I'm not expert but I read that probably I'll have to use some filters, is that right? or I can use a simple mic and opamp? do I have to analayze some frequencies?
I hope someone has some ideas and can explaing me how to do such a thing, thanks!! :)

$\endgroup$
1
  • $\begingroup$ To compute the BPM of audio reliably would probably be quite computationally intensive and thus a bit tricky to compute on a microprocessor. $\endgroup$
    – KillaKem
    Commented Dec 22, 2014 at 15:19

1 Answer 1

1
$\begingroup$

You could use Sparkfun's spectrum analyzer shield. It will give seven bands measurements of the sound at the input jack. For BPM approximation you could select the band that suits you best for the music style you will be analyzing.

$\endgroup$
1
  • $\begingroup$ Thanks for your answer, for now I've ordered a Mic and I'll try to do something like this, do you think it could work?? Otherwise, depending on the results I'll consider your suggestion and try with a spectrum analyzer :) $\endgroup$
    – pok12
    Commented Dec 21, 2014 at 20:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.