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; also it is a fun and easy project that brings sound and LEDs to life.

Moreover, its perfect for beginners who want to see their music or sounds in action!

Arduino Code:

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:

Sound Activated LED Circuit Diagram with Arduino

Parts List:

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

Sound sensor get power from Arduino 5V and GND and sensor detect sound and send signal to Arduino A0.

Then Arduino read signal and turn ON/OFF LEDs on pins D2 to D6; also each LED need resistor from R1 To R5 to protect from too much current.

When sound is loud then more LEDs light up and also 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:

Overall, Sound Activated LED Circuit with Arduino is simple project; it shows sound control LEDs.

Also, you can use the same idea to control fans, lights, and motors; in addition, this circuit is easy to make and suits beginners well.

Exit mobile version