SOUND REACTIVE LED



 VIDEO:


  VIDEO LINK:                            https://youtu.be/ngv5kF2EpzQ


CODE:

//CREATIVE PRADEEP THE HOME OF ELECTRONICS//
int soundSensor = 2;

int LED = 3;


void setup()

{


  pinMode (soundSensor, INPUT);

  pinMode (LED, OUTPUT);

}


void loop()

{

  int statusSensor = digitalRead (soundSensor);

 

  if (statusSensor == 1)

  {

    digitalWrite(LED, HIGH);

  }

 

  else

  {

    digitalWrite(LED, LOW);

  }

 

}

CIRCUIT DIAGRAM:


 

                  CHANNEL LINK:            https://youtube.com/c/CreativePradeep


Comments

Popular posts from this blog

SMART WIFI CONTROLLED DOOR LOCK SYSTEM USING ESP32

ARDUINO PULSEOXIMETER