Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO Sound-Activated LED with Sound Sensor

View and Edit Project In Cirkit DesignerImage of Arduino UNO Sound-Activated LED with Sound Sensor

Circuit Documentation

Summary

This circuit consists of an Arduino UNO microcontroller, a sound sensor, a red LED, and a resistor. The sound sensor detects sound levels and sends a signal to the Arduino. Based on the sound sensor's output, the Arduino controls the LED, turning it on or off.

Component List

Arduino UNO

Sound Sensor

LED: Two Pin (red)

Resistor

Wiring Details

Arduino UNO

Sound Sensor

LED: Two Pin (red)

Resistor

Code Documentation

Arduino UNO Code

int soundsensor = 13;
int led = 3;

void setup() {
    pinMode(soundsensor, INPUT);
    pinMode(led, OUTPUT);
}

void loop() {
    int statusSensor = digitalRead(soundsensor);
    if (statusSensor == LOW) {
        digitalWrite(led, HIGH);
    } else {
        digitalWrite(led, LOW);
    }
}

setup()

loop()