Audiovisual effect. How to get good sounds into arduino

I'd like to generate a light show with audio. Currently I have arrays of WS2812B LEDs for which I programed some effects, but I would like to accompany them with music. I was trying to generate music effects directly from the arduino, but so far they don't sound good. For instance, I'd like to replicate the sound of a laser (as portrayed in the movies), or a piano, etc. Then my other idea is to get an SD card with a shield to hook up to the arduino, where I save some fundamental notes/sounds as a .wav file, that I combine in different ways (adding linear combinations of them). The final goal is for the light and sound effects to match/have some joint "rhythm".

I would like to hear people's opinions on the viability of this project. If they think of other (better) ways to do it. Again, currently I don't like any of the sounds I have generated with the arduino using the tone() function or some other custom sounds. So, the problem is how to get cool sounds to play in conjunction with light effects.

For better sound, use DFplayer mini.

1 Like

Nothing more to say, that's the answer done and dusted! :grin: An Arduino itself is pretty useless for audio.

(OK, there is an "Audio" forum here. I don't think I have ever looked at it. :thinking:)

Try this link, I believe it will answer your question. They drive the pins but you can change the code to drive your leds without a lot of work.

I agree... There are various audio boards/shields that have a slot for an SD card to store the files and a DAC and everything else that's required to play sound. The Arduino just acts as a "controller" that determines what file is played, when it's played, and the volume, etc.

The basic Arduino doesn't have a DAC and most of the processing power is used-up driving your LEDs.

You can also make it react to the sound. For example, usually dance lighting is sound-activated whereas lighting for a musical stage performance is usually hard-programmed.

I've made a few sound-activated lighting effects and I posted The World's Simplest Lighting Effect.

What link?

The one in the æther!

:rofl:

So, you are basically saying this is not achievable (at least nice sounds and effects) with an arduino?

No, it is just a complex project for a beginner. The DFplayer is your answer.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.