Arduino Forum

Topics => Interactive Art => Topic started by: nbuerkle on Mar 14, 2018, 08:04 pm

Title: Need help with coordinating lightshow with sound
Post by: nbuerkle on Mar 14, 2018, 08:04 pm
Hello,
I am creating a light show for an art exhibition at my school and have an arduino uno connected to a relay board controlling 5 led light tubes
I plan on coordinating the light show with sounds I have recorded and I am unsure how I could start the lightshow at the same time as I start the music. Is there any way the arduino could make my computer playback the file? Otherwise I would have to press play at the same time as I start the lightshow on the arduino which could easily lead to unsynchronized sound.

Thanks already beforehand
Title: Re: Need help with coordinating lightshow with sound
Post by: cedarlakeinstruments on Mar 16, 2018, 12:07 pm
I've found that it's easier to use a Raspberry pi for projects involving sounds because it has built in audio suppport.

For Arduino, you could purchase an MP3 player board, or have it listen for a command from the computer over the serial port. Computer would send it a command to activate the LED and then play the music itself. I can't think of example sketches that do this, but it's not that hard to figure out.