See what's new at Remyx.ai
IntroThis is a very simple project you can wire together and make you the life of the party.
ComponentsFor this project, we need a small board that is portable, requires minimal power, and can handle powering all the fairy light LED strings. We found that a Light Blue Bean is a great board for this use case. It has a small rechargeable lithium ion battery already soldered on to keep the board powered and plenty of analog/digital pins to control each section. If you need to power it for a long time, it is easy to carry a battery pack like this one to plug in and charge.
As mentioned, you'll need plenty of string LEDs, enough to cover your entire body. We got three of the string LEDs listed in the components list above in green, yellow, and red.
You'll also need plenty of thread and wire to attach the lights to fabric and connect all the sections together.
Small Test FirstTo start, we'll make a small version of our VU meter with a couple of breadboard LEDs and the Light Blue Bean to check how the code will work.
Here is the wiring needed to set up a mini version of our costume. It'll have 10 bands so we'll use 10 LEDs to simulate each channel.
The electret microphone is connected to the first analog pin of the bean and each LED has its own digital pin, in color order.
The Light Blue bean connects over bluetooth to your mobile devices and uses the Bean Loader app to upload code. Download this app on your device and upload the following code from electronics projects hub:
// 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);
}
}
}
}
Take a note of the line input=input/3
line. Experiment with the denominator to play with the VU meter's sensitivity. Smaller numbers makes it less sensitive, larger numbers will make it more sensitive.
Compile and upload to your bean using the bean loader. Here's a quick demo of what this test should look like placing it near a speaker.
Now we can move on to building the real VU meter!
Constructing the costumePlan out your string led sections like the images show below. We cut 9 sections of green LEDs for the pants, three sections of yellow LEDs for the mid section on the shirt, and 3 sections of red LEDs for the top of the shirt and sleeves.
We want each band to be switching on together, so the bands will be wired in pairs for the pants. Therefore each pair will be a band which means we have 5 green bands for the pants. The 3 yellow LED sections don't need to be separated on the shirt so that leaves us with 3 yellow bands. Each arm will need a red string LED and since we have 3 sections, we'll have 2 red bands.
Flip the clothes inside out and start laying out each section. Use a needle and thread to secure each section of LED to the fabric. Make sure to not bunch up the fabric so the clothing can retain its shape! Here's an example of two green bands sewed onto the pant legs.
Your pieces should look something like this:
And this is the shirt:
You'll need long sections of wire to reach the all the way to the back pocket area. Keep this in mind as you're attaching wires to each section of LEDs, particularly those LED sections far away from the back pockets.
Wire each section with long wire to reach the back pocket. Make a small hole in the back pocket to thread the wires through. You can test you've got the lights working at each section using the test.ino script attached below. Here we are testing each section as we go:
For quick iteration, we used a breadboard to connect everything together. We suggest you solder all the wires to a pcb board before you take it out for heavy movement.
We stuffed all the wires and board with microphone in the back pocket of the pants like this:
When you are done, turn the clothes inside out again to show the smooth surface.
Congrats! You have a VU meter costume. The LightBlue bean makes it easy to adjust the VU meter code while you're out and about so you can play with the sensitivity of the lights, or even program a new light show on the spot!
Here's our first experiment with the costume indoors with some music:
Comments