June 4, 2016
Description
For some reason I had an issue uploading the video to thingiverse.
Anywho, I designed this acrylic VU tower that plugs into an audio port and a speaker.
Pretty cool works well.
You'll need 3/8" thick slabs of acrylic 3"x5" they're friction fit so its going to be tight.
I printed two acrylic holders and krazy glued them together. then glued the base to it.
You will need an audio spliter, extra audio cable with 2 wires ( not sure what its called )
5mm LEDs will fit.
Source code for the arduino I found online by Kenny Vanpaemel and messed with it to work with mine.
int led[10] = { 3, 4, 5, 6, 7, 8, 9, 10}; // Assign the pins for the leds
int leftChannel = 0;
int left, i;
void setup()
{
for (i = 0; i < 8; i++)
pinMode(led[i], OUTPUT);
Serial.begin(9600);
}
void loop()
{
left = analogRead(leftChannel);
Serial.println(left);
left = left / 10;
if (left == 0)
{
for(i = 0; i < 10; i++)
{
digitalWrite(led[i], LOW);
}
}
else
{
for (i = 0; i < left; i++)
{
digitalWrite(led[i], HIGH);
}
for(i = i; i < 8; i++)
{
digitalWrite(led[i], LOW);
delay(0);
}
}
}
Should work. Enjoy
License:
Creative Commons - Attribution