Pages: [1]   Go Down
Author Topic: Audio to react to ambient sound & local processing  (Read 2008 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,
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,
Acid
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 227
Posts: 14048
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


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

2 cents
Logged

Rob Tillaart

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

Montreal
Offline Offline
Faraday Member
**
Karma: 31
Posts: 2611
Per aspera ad astra.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Search for color organ.
http://arduino.cc/forum/index.php/topic,51828.0.html
Logged

Offline Offline
Edison Member
*
Karma: 8
Posts: 1341
If you're not living on the Edge, you're taking up too much space!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I used this:
http://www.sparkfun.com/products/10468

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.
Logged

If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 :]

acid
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 227
Posts: 14048
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hope to hear from you when all things work - or sooner if more questions arise smiley-wink
Logged

Rob Tillaart

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

Manchester, NH
Offline Offline
Full Member
***
Karma: 0
Posts: 116
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley
 

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 smiley
Logged

Pages: [1]   Go Up
Jump to: