60Views2Replies

Author Options:

Arduino servos move to music Answered

Hi, so I'm new to arduino and I'm wanting to link arduino to processing. I then want to be able to make servos move to the beat of music that i have loaded on to processing using the computer as a network but I can't seem to find much info anywhere else and was hoping that someone could enlighten me on the process that i should be taking or able to help in anyway would be much appreciated. Thanks  

Discussions

0
caitlinsdad
caitlinsdad

3 years ago

You could look up "color organs". Essentially your sound input is sent to the arduino to be analyzed and converted into digital data. Your arduino gets the sound signal through direct input(may need some circuitry to get the right level or you blow out the arduino), a microphone amp module or it could be any other kind of sensor. The arduino translates and maps to a valid range the analog signal into digital data which passes it along USB to your computer running a Processing program where you can visualize the data. You can have the music analyzed by the varying volume/loudness levels or be more advanced and analyze it by the varying pitch/frequency/notes(need more math like Fast Fourier Transform methods). You can look at the Adafruit ampli-tie project for setup and code. It lights up LED strips but the logic can be substituted to drive servos. Look at Adafruits Amped Pulse Sensor tutorial to see the setup and code for an example of using Processing on the computer as a visualizer for the data using the arduino as a sensor interface. Good luck.

0
TianL4
TianL4

Reply 3 years ago

thanks for the help. cleared up a lot