Take the 2-minute tour ×
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It's 100% free, no registration required.

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!! :)

share|improve this question
    
This is one of those things that is easy for humans to do but very difficult for computers. This article might help, but everything will be made more difficult (if not impossible) by the extremely limited processing power of the arduino. archive.gamedev.net/archive/reference/programming/features/… –  BrettAM Dec 18 '14 at 18:27
    
Thank you, I don't know how much I will understand from the article because it seems a bit complex and plus being Italian I have some difficulties.. But it is possible to turn on a Led in time with Music, right? Because basically I just need to understand when I have to send an impulse in rhythm with the song I'm analayzin, and instead of turning on a led, I have to move a servo.. Is it possible to figure out when I have to move the servo? Do I have to know the bpm? –  pok12 Dec 18 '14 at 18:50
    
What sensor or mic are you going to use? You should start looking for its output through logic analyzers or oscilloscope. They'll give you an idea about the response. Then, you should see some theory about digital filters and find one that works for your case scenario. –  bpinhosilva May 12 at 19:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.