• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Circuit Ideas for You

Get free circuit ideas online.

  • Home
  • Privacy Policy
  • About
Home » Whistle Controlled Light Circuit using Arduino

Whistle Controlled Light Circuit using Arduino

Last updated on 24 June 2026 by Admin-Lavi Leave a Comment

This Whistle Controlled Light Circuit using Arduino is small and fun project, also bulb lights when we whistle.

In this article we have used sound sensor, relay and Arduino Uno and this project is easy and cheap, also the circuit is good for fun, study and small automation.

Arduino Code:

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:

  • We have define pins for sensor and relay.
  • Setup function sets input and output.
  • Relay starts in OFF state.
  • Loop reads sound sensor.
  • If whistle detected then sensor gives HIGH.
  • Relay turns ON for 2 seconds.
  • After 2 seconds relay goes OFF.
  • This turns bulb ON and OFF.

Circuit Working:

Whistle Controlled Light Circuit Diagram using Arduino

Parts List:

ComponentsQuantity
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 and then sound sensor detects loud sound like whistle or clap; it sends HIGH signal to Arduino pin 8.

Then Arduino receives signal and activates pin 7 and pin 7 drives relay module and relay connects AC supply to bulb and finally, 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:

  • First, assemble all the parts as per circuit diagram
  • Next, sound sensor VCC(+5V) pin connect to Arduino 5V, sound sensor GND pin connect to Arduino GND and sound sensor OUT pin connect to Arduino digital pin 8.
  • After that, connect the relay module VCC pin to Arduino 5V, the relay module GND pin to Arduino GND, and the relay IN pin to Arduino digital pin 7.
  • Also, connect the relay COM pin to the phase wire of the AC supply and connect the relay NO pin to one terminal of the 230V bulb.
  • Finally, neutral wire connected to other terminal of bulb 230V.

Safety Measures:

  • This project uses 230V AC and can cause electric shock or fire.
  • Handle with extreme care, only attempt if have experience with high voltage circuits.
  • Keep children away.

Conclusion:

Overall, Whistle Controlled Light Circuit using Arduino is whistle control light circuit; Arduino with sound sensor and relay control AC bulb and they work with whistle or clap.

Furthermore, easy to build and is good for beginners and it teaches sensor input, relay use and automation basics.

Filed Under: Arduino Projects, Automation Circuits, Sensors and Detectors

About Admin-Lavi

Lavi is a B.Tech electronics engineer with a passion for designing new electronic circuits. Do you have questions regarding the circuit diagrams presented on this blog? Feel free to comment and solve your queries with quick replies

Previous Post: « Tilt Switch Interfacing Circuit with Arduino Uno
Next Post: Sound Activated LED Circuit with Arduino »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar




Categories

  • 555 Timer Projects (123)
  • Alarm Circuits (75)
  • Amplifier Circuits (92)
  • Arduino Projects (103)
  • Audio Circuits (189)
  • Automation Circuits (113)
  • Automobile Circuits (38)
  • Battery Charger Circuits (86)
  • DIY Projects (368)
  • Free Energy (12)
  • Heater and Temperature Controllers (32)
  • High Voltage (23)
  • Hobby Circuits (198)
  • Indicator Circuits (62)
  • Inverter Circuits (18)
  • IoT projects (10)
  • LDR Circuits (45)
  • LED and Lamps (196)
  • Meters and Testers (43)
  • Mini Projects (299)
  • Motor Controllers (25)
  • Oscillator Circuits (63)
  • Power Supply Circuits (228)
  • Radio Frequency (7)
  • Remote Control Circuits (11)
  • Renewable energy (13)
  • Security and Protection (108)
  • Sensors and Detectors (224)
  • Solar Circuits (31)
  • Timer Circuits (62)
  • Transistor Circuits (176)
  • Transmitter Circuit (19)
  • Tutorials (29)
  • Voltage Regulator (38)
  • Water Level Controller (10)

Recent Posts

  • Low Current Controlled Battery Charger Circuit using LM723 IC
  • 741 Op-Amp Treble Booster Circuit
  • Simple Diode and Transistor Based Audio Limiter Circuit
  • Simple 500mW Speaker Driver Circuit
  • Easy DIY LM386 Audio Amplifier Circuit

Recent Comments

  1. Tony Gallegos on NTC Thermistor Based Temperature to Voltage Converter Circuit
  2. colin on Simple Single Transistor Audio Amplifier Circuit
  3. How to Make a Bird Chirping Noise Easily on Chirping Bird Sound Generator Circuit
  4. Transistor Based Medium Impedance Preamplifier Circuit - Circuit Ideas for You on Low Impedance Input Transistor Preamplifier Circuit
  5. Admin-Lavi on Alternate Red Green LED Flasher Circuit

Copyright © 2026 | New Circuit Ideas