Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
Salma MayorquinTerry Rodriguez
Published © MIT

VU Meter Costume

Need a last minute costume for Halloween? Be a human VU meter this year!

BeginnerFull instructions provided4 hours1,912

Things used in this project

Hardware components

String LED lights (varying colors)
×1
LightBlue Bean+
Punch Through LightBlue Bean+
×1
Microphone Amplifier Breakout
Adafruit Microphone Amplifier Breakout
×1
Breadboard (generic)
Breadboard (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Resistor 10k ohm
Resistor 10k ohm
×1

Software apps and online services

LightBlue Explorer
Punch Through LightBlue Explorer
Punch Through Bean Loader

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Needle and plenty of thread
White outfit

Story

Read more

Schematics

VU meter wiring

wiring for VU meter, replace single LED for each string LED band

Code

VU meter code

Arduino
code for VU meter, upload via Bean Loader App
// Electronics Projects Hub - https://electronicsprojectshub.com/
// Subscribe : https://www.youtube.com/c/TechMaker1
//  -->  https://electronicsprojectshub.com/category/arduino/arduino-projects/
int led[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
int input, i;
void setup()
{
  for (i = 0; i < 10; i++)
    pinMode(led[i], OUTPUT);
  //Serial.begin(9600);
}
void loop()
{
  input = analogRead(0);
  //Serial.println(s);
  input = input /3;      //By changing the denomintor the sensitivity can be changed
  if (input < 12)
  {
    if (input == 0)
    {
      for (i = 0; i < 10; i++)
      {
        digitalWrite(led[i], LOW);
      }
    }
    else
    {
      for (i = 0; i < input; i++)
      {
        digitalWrite(led[i], HIGH);
        delay(4);
      }
      for (i = i; i < 10; i++)
      {
        digitalWrite(led[i], LOW);
      }
    }
  }
}

Test LEDs

Arduino
script to test leds as you wire it up.
const int LED0 =0;
const int LED1 =1;
const int LED2 =2;
const int LED3 =3;
const int LED4 =4;
const int LED5 =5;
const int LED6 =6;
const int LED7 =7;
const int LED8 =8;
const int LED9 =9;



void setup() {
    pinMode(LED0, OUTPUT);
    pinMode(LED1, OUTPUT);
    pinMode(LED2, OUTPUT);
    pinMode(LED3, OUTPUT);
    pinMode(LED4, OUTPUT);
    pinMode(LED5, OUTPUT);
    pinMode(LED6, OUTPUT);
    pinMode(LED7, OUTPUT);
    pinMode(LED8, OUTPUT);
    pinMode(LED9, OUTPUT);
 }

void loop() {
    digitalWrite(LED0, HIGH);
    digitalWrite(LED1, HIGH);
    digitalWrite(LED2, HIGH);
    digitalWrite(LED3, HIGH);
    digitalWrite(LED4, HIGH);
    digitalWrite(LED5, HIGH);
    digitalWrite(LED6, HIGH);
    digitalWrite(LED7, HIGH);
    digitalWrite(LED8, HIGH);
    digitalWrite(LED9, HIGH);
    delay(1000);
    digitalWrite(LED0, LOW);
    digitalWrite(LED1, LOW);
    digitalWrite(LED2, LOW);
    digitalWrite(LED3, LOW);
    digitalWrite(LED4, LOW);
    digitalWrite(LED5, LOW);
    digitalWrite(LED6, LOW);
    digitalWrite(LED7, LOW);
    digitalWrite(LED8, LOW);
    digitalWrite(LED9, LOW);
    delay(1000);

}

Credits

Salma Mayorquin
21 projects • 383 followers
Software engineer AI/ML & hardware tinkerer interested in embedded AI. Lets hack the change we want to see!
Contact
Terry Rodriguez
21 projects • 194 followers
hack the change you want to see
Contact

Comments

Please log in or sign up to comment.