lakshyajhalani56
Published

Sound Sensor Arduino Project | Sound Sensor Module | Arduino

Here, we can learn How to make a "Clap Control Light" using an Arduino Uno, Sound Sensor, etc. We can control light using a Sound.

IntermediateFull instructions provided6,443
Sound Sensor Arduino Project | Sound Sensor Module | Arduino

Things used in this project

Story

Read more

Schematics

Final Look

Code

Code for Sound Sensor

C Header File
//Welcome to Electronics University
//Subscribe us for learning something new.

int soundSensor=2;
int LED=4;
boolean LEDStatus=false;

void setup() {
 pinMode(soundSensor,INPUT);
 pinMode(LED,OUTPUT);

}

void loop() {

  int SensorData=digitalRead(soundSensor); 
  if(SensorData==1){

    if(LEDStatus==false){
        LEDStatus=true;
        digitalWrite(LED,HIGH);
    }
    else{
        LEDStatus=false;
        digitalWrite(LED,LOW);
    }
  }
 } 

Credits

lakshyajhalani56

lakshyajhalani56

9 projects • 13 followers

Comments