Go Down

Topic: Audio to react to ambient sound & local processing (Read 2662 times) previous topic - next topic


I am looking for some guidance. The end goal is to have a USB powered LEDs (rgb) react to ambient sound. However, I don't want the LEDs to be so "hard". More like a LED lava lamp reacting to sound, depending on the sound, activating the different rgb spectrum. IE: if you are having a conversation with someone near the device, it's reacting  -- the LED colors are slowly changing.

I want all the processing to be done locally, again. I am moding an old Nintendo Gamecube, and looking to add something fun and interactive. I plan on adding a USB hub inside, want wanted this new audio interaction to plug into one of the ports. The LEDs would light up the gamecube.

I have been searching for a while now, and maybe I am just not using the correct terminology.

Some videos for reference, but not exactly what I am trying to do:

Thanks for your help,


Consider controlling the LED with PWM  - http://arduino.cc/en/Tutorial/PWM - http://arduino.cc/it/Reference/AnalogWrite -

2 cents
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)


Search for color organ.


I used this:

To PWM EL-wire.  Very cool!
Except sometimes the frequency of the PWM interferes with the AC and causes it to flash badly.
I mean it looks bad.  So I skip some of the PWM values and choose which ones look the smoothest.
It looks like a Lava lamp, just as you want.
It is much easier to do this with LED's, because you wouldn't have this interference problem.


All -

Thank you very much for your input and responses. It has given me a much better defined search on what I am trying to achieve. Have a few things on order and the tinkering begins :]



Hope to hear from you when all things work - or sooner if more questions arise ;)
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)


Some interesting things can be done with the PWM driving LEDs, specifically in getting a smooth transition between LEDs. Using "analogWrite(pin, lvl)" where pin is the digital output pin and lvl is the desired level (0 to 256), rather than turn the LED on "hard", increase the brightness by ramping up the value of "lvl".

for (lvl= 0; lvl <= 256; lvl+=1){
     analogWrite(pin, lvl);

The basic loop might react too quickly so slow it down using an interval and delay...

for (lvl = 0; lvl <= 256; lvl+=5){  // ramp in step intervals of 5
     analogWrite(pin, lvl);
     delay(10);  // delay 10ms

Play with the step interval and delay until you get what you want.

You can do the opposite to slowly dim the LED.


Language English and in Sprache German

Hallo ich bin neu hier . Ich bin Choreograph und Tanzlehrer ich fördere die Jugend und Kinder die Probleme haben. Ich möchte eine Tanzshow machen mit Lichtern an den Kleidern und Musik. In den meisten Beispielen hier habe ich gesehen das die Lichter andauernd zu jedem Ton Leuten. Ich möchte aber dass es nur in einen bestimmten Moment leuchtet und wieder abstellt mal länger mal kürzer und dass speziell die ganze Show  drauf choreographiert.

Das heisst ich habe ein Lied und weis das bei  0:55sekunden das Licht brennen soll für 4 Sekunden  und dann wieder ausschaltet für 10sekunden und so weiter.

Jetzt meine Frage gibt es dafür ein spezielles Programm / Software wo ich gleichzeitig die Music schon einfügen kann und oben sehe.  Oder muss ich alles von Hand eingeben und ausrechnen,  was sehr mühsam wäre und viel Zeit braucht. Ich habe gesehen für Weihnachtsbeleuchtung  gibt es anscheinend auch solche Programme zusammen für die Musik?

Ich wäre sehr froh für eure Hilfe, und die Kinder würden sich auch riesig freuen wen ich ihnen einen speziellen tag schenken kann :)

Language ENGLISH

Hello I am new here. I am a choreographer and dance teacher, I encouraged the youth and children's problems. I would like to make a dance show with lights on the clothes and music. In most examples I've seen here that the lights permanently to each sound people. I would like but it shines only in a certain moment and then shuts off times shorter and longer times that specially choreographed the whole show on it.

That means that I will have a song and looking at the 0:55 seconds the light on for 4 seconds and then off again for 10 seconds and so on.

Now my question is there for a special program / ??software at the same place the music where I can already see and above. Or do I have to enter everything by hand and figure out what would be very difficult and takes time. I've seen for Christmas lights, there is apparently such programs together for the music?

I would be very glad for your help and the children would also be glad huge Who can I give them a special day :)

Go Up