Site icon Circuit Ideas for You

Sound Activated LED Circuit with Arduino

Make our Lights Dance with Sound!

This Sound Activated LED Circuit with Arduino turns every clap, snap or beat into a colorful light show.

It is a fun and easy project that brings sound and LEDs to life.

Perfect for beginners who want to see their music or sounds in action!

Circuit Coding:

int soundSensor = A0;
int ledPins[] = {2,3,4,5,6};
int sensorValue = 0;

void setup() {
for(int i=0; i<5; i++) {
pinMode(ledPins[i], OUTPUT);
}
pinMode(soundSensor, INPUT);
Serial.begin(9600);
}

void loop() {
sensorValue = analogRead(soundSensor);
Serial.println(sensorValue);
if(sensorValue > 400) {
for(int i=0; i<5; i++) {
digitalWrite(ledPins[i], HIGH);
}
} else {
for(int i=0; i<5; i++) {
digitalWrite(ledPins[i], LOW);
}
}
}

Coding Explanation:

Circuit Working:

Parts List:

ComponentQuantity
Resistors
220Ω 1/4 watt5
Semiconductors
Arduino UNO1
Sound Sensor Module1
LEDs any 5mm 20mA5

Sound sensor get power from Arduino 5V and GND.

Sensor detect sound and send signal to Arduino A0.

Arduino read signal and turn ON/OFF LEDs on pins D2 to D6.

Each LED need resistor from R1 To R5 to protect from too much current.

When sound is loud then more LEDs light up.

Circuit is simple with no button and no switch.

How to Build:

To build a Sound Activated LED Circuit with Arduino follow the below mentioned steps for connections:

Conclusion:

Sound Activated LED Circuit with Arduino is simple project.

It shows sound control LEDs.

Same idea can be used for fan, light, motors.

Circuit is easy to make and is good for beginners.

References:

How to connect an ultrasonic sensor and a sound sensor on one breadboard

Exit mobile version