Site icon Circuit Ideas for You

Whistle Controlled Light Circuit using Arduino

This Whistle Controlled Light Circuit using Arduino is small and fun project.

Bulb lights when we whistle.

In this article we have used sound sensor, relay and Arduino Uno.

This project is easy and cheap.

The circuit is good for fun, study and small automation.

Circuit Coding:

int soundSensor = 8;  
int relay = 7;  
int statusSensor = 0;  

void setup() {  
  pinMode(soundSensor, INPUT);  
  pinMode(relay, OUTPUT);  
  digitalWrite(relay, LOW);  
}  

void loop() {  
  statusSensor = digitalRead(soundSensor);  
  if (statusSensor == 1) {  
    digitalWrite(relay, HIGH);  
    delay(2000);  
    digitalWrite(relay, LOW);  
  }  
}  

Coding Explanation:

Circuit Working:

Parts List:

ComponentQuantity
Arduino UNO1
Sound Sensor Module1
Relay Module1
230V AC LED Bulb1

Through the above circuit diagram we will learn to detect whistle using Sound Sensor with Arduino.

Sound sensor and relay get 5V from Arduino.

Sound sensor detects loud sound like whistle or clap.

It sends HIGH signal to Arduino pin 8.

Arduino receives signal and activates pin 7.

Pin 7 drives relay module.

Relay connects AC supply to bulb.

Bulb glows for 2 seconds then turns OFF.

How to Build:

To build a Whistle Controlled Light Circuit using Arduino follow the below steps for connections:

Safety Measures:

Conclusion:

Whistle Controlled Light Circuit using Arduino is whistle control light circuit.

Arduino with sound sensor and relay control AC bulb.

Works with whistle or clap.

Easy to build and is good for beginners.

It teaches sensor input, relay use and automation basics.

References:

Arduino Project using Sound Sensor

Exit mobile version