Are you a party guy ?? Always you may think of having a device which can synchronize with the music beat during your Party. Then this is the perfect project for you. So let's start building it.

Parts Required:

1. 3 X IRF 520 Mosfet.

2. Arduino Uno.

3. Mic Module

Procedure:

1. Connect all GND pins of the MOSFET as described in the below image.

2.  Now Connect all the VIN pins as described in the diagram below.

3. Now connect all the V+ pins and make them one +Ve pin for the LED Strip to connect.

4.  Now connect all the SIG pins of the MOSFETs to Pin 7,8,9 of the Arduino as described in the below diagram.

5.  Now connect VCC, GND of the MOSFETs to 5v, GND of the Arduino.

6. Now connect the OUTPUT pin of the MIC module to A0 of the Arduino module, similarly VCC and GND to VCC and GND of the Arduino module.

7. Now Connect the Mosfets V - pin to GND of the Arduino.

8. Now Connect V+ pin of the Mosfets to Vin pin of the Arduino.

9. Now Upload the Arduino Code Given below.

//Parameters
const int micPin  = A0;
const int r = 7;
const int g = 6;
const int b = 5;

//Variables
int micVal  = 0;

void setup() {
 //Init Serial USB
 Serial.begin(9600);
 Serial.println(F("Initialize System"));
 //Init Microphone
 pinMode(micPin, INPUT);
 pinMode(r,OUTPUT);
 pinMode(g,OUTPUT);
 pinMode(b,OUTPUT);
}
void loop() {
 readMicrophone();
}

void readMicrophone( ) { /* function readMicrophone */
 ////Test routine for Microphone
 micVal = analogRead(micPin);
 Serial.println(micVal);
 if(micVal > 300)
 {
   if(micVal%3 == 0)
   {
      analogWrite(r,micVal);
   }
   else if(micVal%2 == 0)
   {
      analogWrite(g,micVal);
   }
   else
   {
      analogWrite(b,micVal);
   }
 }
 else
 {
  offAll();
 }
}

void offAll()
{
 digitalWrite(r,LOW);
 digitalWrite(g,LOW);
 digitalWrite(b,LOW);
}

Now Connect the 12v power supply to the Mosfets Common power input and Enjoy the Beat Smasher.