Industrial manufacturing
Industrial Internet of Things | Industrial materials | Equipment Maintenance and Repair | Industrial programming |
home  MfgRobots >> Industrial manufacturing >  >> Manufacturing Technology >> Manufacturing process

Sound-Activated 8-LED Light Display

Components and supplies

Sound-Activated 8-LED Light Display
Arduino UNO
×1
Sound-Activated 8-LED Light Display
Solderless Breadboard Full Size
×1
Sound-Activated 8-LED Light Display
5 mm LED: Red
×3
Sound-Activated 8-LED Light Display
5 mm LED: Yellow
×2
Sound-Activated 8-LED Light Display
LED, Blue Green
×2
Sound-Activated 8-LED Light Display
Resistor 220 ohm
×8
Sound-Activated 8-LED Light Display
SparkFun Sound Detector (with Headers)
×1

Apps and online services

Sound-Activated 8-LED Light Display
Arduino IDE

About this project

So as a beginner I have practiced with the sound sensor and LED. After some practice, I decided to create an 8x LED system with a sound detector. It could be an interesting project for beginners like me.

Sound-Activated 8-LED Light Display

Sound-Activated 8-LED Light Display

The values of LEDs could be set individually by you. Also, do not forget to set the sensitivity of the sound sensor. I adding some instructions on how to set the sensitivity of the sound sensor below. The third image shows the monitoring of the sound sensor values. By these values, the code is set when to react to the sound.

Sound-Activated 8-LED Light Display
Sound-Activated 8-LED Light Display
Sound-Activated 8-LED Light Display

Code

  • The code of project
The code of projectC/C++
This is the code of 8x LED's system with a sound detector.
/*
 * Mantas Utka 
*/

int ledPin1= 13; //Adding the LED's and sensor.
int ledPin2= 12;
int ledPin3= 11;
int ledPin4= 10;
int ledPin5= 9;
int ledPin6= 8;
int ledPin7= 7;
int ledPin8= 6;
int sensorPin= A0; //The sensor selecting as Analog pin. The Analog Pin is better for projects as this one.
int val = 0;

void setup(){
  pinMode(ledPin1, OUTPUT); //Selecting LEDs as outputs to push the results in LEDs of sound detector
  pinMode(ledPin2, OUTPUT);
  pinMode(ledPin3, OUTPUT);
  pinMode(ledPin4, OUTPUT);
  pinMode(ledPin5, OUTPUT);
  pinMode(ledPin6, OUTPUT);
  pinMode(ledPin7, OUTPUT);
  pinMode(ledPin8, OUTPUT);
  pinMode(sensorPin, INPUT); //Selecting the sensor as input to send results into Arduino
  Serial.begin (9600);
}
  
void loop (){
  val =analogRead(sensorPin);
  Serial.println (val);
  // when the sensor detects a signal, LED flashes
  
  //1
  if (val >= 127) {
    digitalWrite(ledPin1, HIGH); //selecting the values of LEDs to flash by detecting values of sound sensor.
  }
  else {
    digitalWrite(ledPin1, LOW);
  }

  //2
   if (val >= 378) {
    digitalWrite(ledPin2, HIGH);
  }
  else {
    digitalWrite(ledPin2, LOW);
  }

   //3
   if (val >= 505) {
    digitalWrite(ledPin3, HIGH);
  }
  else {
    digitalWrite(ledPin3, LOW);
  }

  //4
  if (val >= 632) {
    digitalWrite(ledPin4, HIGH);
  }
  else {
    digitalWrite(ledPin4, LOW);
  }

  //5
  if (val >= 759) {
    digitalWrite(ledPin5, HIGH);
  }
  else {
    digitalWrite(ledPin5, LOW);
  }

  //6
  if (val >= 886) {
    digitalWrite(ledPin6, HIGH);
  }
  else {
    digitalWrite(ledPin6, LOW);
  }

  //7
  if (val >= 980) {
    digitalWrite(ledPin7, HIGH);
  }
  else {
    digitalWrite(ledPin7, LOW);
  }

  //8
  if (val >= 1000) {
    digitalWrite(ledPin8, HIGH);
  }
  else {
    digitalWrite(ledPin8, LOW);
  }
}

Manufacturing process

  1. LED vs. Incandescent Industrial Lighting: The Definitive Guide to Efficiency and ROI
  2. Xylophone: From Ancient African Origins to Modern Orchestral Perfection
  3. The Art and Process of LP Record Production
  4. Infineon’s NLM0011 & NLM0010: NFC‑Enabled Contactless LED Driver Programming
  5. Arduino Coffin Dance Melody Project – Build & Play the Viral Tune
  6. Build a Smart Arduino Quadruped Robot: Step‑by‑Step Guide
  7. LED Tower Art: Programmable RGB Cylinder-Inspired Design
  8. Smart LED Stairs Lighting Shield for Arduino Nano – 24-Step, PWM Fade, Wireless Home Automation
  9. DIY LED Aquarium Lighting for Planted Tanks: A Complete Guide
  10. Side-Emitting LED Strips: Energy‑Efficient, Versatile Lighting for Any Space