Sound activated RGB LED strip

Hi everyone, I'm very new to the Arduino community.

I have a university project at the moment which is to be introduced the Arduino platform and create something interactive.

I have decided to create a light which will turn on when sound has been detected....and will fade out gradually once sound has stopped being detected. Whenever the light is on I want to control the colours to be quite pale and pastel-like.

I have:

An Arduino Uno kit

1 "Sound Detection Sensor Module Sound Sensor Intelligent Vehicle"

1 1M strip of RGB LED lights.

Any help or guide in the right direction would be a lot of help and I will credit you in my design document for this project with any help you provide. Thanks a lot :slight_smile:

once sound is detected, switch on LED channel for a predetermined time, and then fade out.

Have a lok at the Arduino fade example for information on fading out

 This example shows how to fade an LED on pin 9
 using the analogWrite() function.
 This example code is in the public domain.

int led = 9;           // the pin that the LED is attached to
int brightness = 0;    // how bright the LED is
int fadeAmount = 5;    // how many points to fade the LED by

// the setup routine runs once when you press reset:
void setup()  { 
  // declare pin 9 to be an output:
  pinMode(led, OUTPUT);

// the loop routine runs over and over again forever:
void loop()  { 
  // set the brightness of pin 9:
  analogWrite(led, brightness);    

  // change the brightness for next time through the loop:
  brightness = brightness + fadeAmount;

  // reverse the direction of the fading at the ends of the fade: 
  if (brightness == 0 || brightness == 255) {
    fadeAmount = -fadeAmount ; 
  // wait for 30 milliseconds to see the dimming effect    

The rest should be easy for you, simply changing a variable once sound is detected which activates the subroutine above within the loop.

Care will need to be taken to ensure you do not exceed the current draw for the pin out to power the LED's