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

Arduino UNO Sound-Activated LED Display

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

Circuit Documentation

Summary

This circuit involves an Arduino UNO microcontroller interfacing with various LEDs and a KY 038 sound sensor. The LEDs are connected through current-limiting resistors, and the KY 038 sound sensor is connected to the Arduino for power and signal input.

Component List

  1. KY 038 Sound Sensor

    • Pins: +, G, A0, D0
    • Description: Sound sensor module used to detect sound levels.
    • Purpose: To detect sound and provide an analog signal to the Arduino.
  2. Arduino UNO

    • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
    • Description: Microcontroller board based on the ATmega328P.
    • Purpose: To control the LEDs and read the sound sensor input.
  3. Resistors (220 Ohms)

    • Pins: pin1, pin2
    • Description: Resistors used to limit the current through the LEDs.
    • Purpose: To protect the LEDs from excessive current.
  4. LED: Two Pin (red)

    • Pins: cathode, anode
    • Description: Red LED.
    • Purpose: To provide visual indication.
  5. LED: Two Pin (green)

    • Pins: cathode, anode
    • Description: Green LED.
    • Purpose: To provide visual indication.
  6. LED: Two Pin (yellow)

    • Pins: cathode, anode
    • Description: Yellow LED.
    • Purpose: To provide visual indication.

Wiring Details

KY 038 Sound Sensor

Arduino UNO

Resistors

LEDs

Code Documentation

Arduino UNO Code

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

This code is a basic template for the Arduino UNO. The setup() function is where you initialize your components, and the loop() function is where you place the main logic that runs repeatedly.