Introduction: Arduino Party Lights

Now this is a multipurpose project. Use it as a party light OR as a gig booster.

Adding colors and manipulating the light sequence is easy thing to do.

Check the video to see the project in work.

If there is a VOTE patch on the right side of the project site, throw me a vote if you want :)

Step 1: Components

First thing first. Components.

Consider that this project can be done much smaller with Arduino nano or any small programming board. I made this with Arduino Uno for two reasons. 1. At the time i did not have any smaller programming board available and 2. I't is easier for beginner to make use of the Uno board by copying the work.

You will need:

Arduino board (anything you have, even a copy one).

10 kOhm resistor.

Two female plugs for audio in and audio out.

Neopixel led strip. Mine is 1 meter long and has got 30 led's.

Optional

Case (printable files in project)

Prototype shield. Just to keep everything nice looking.

Step 2: Desing

The case was designed with Tinkercad. Simple and easy to use tool that works in your browser.

Check that out for some easy 3D designs.

Step 3: Printing

The case was printed with Printrbot makers kit. Basic and cheap printer.

Settings for printer was 0.4mm nozzle, 0.2mm layer height, 40mm/s print speed.

Holes for the case are made in the printing. If the fit is snug in the holes just use file to make it fit.

Step 4: Testing and Coding

The connections are pretty simple.

Put a resistor between GND and A0 to make the analog 0 by default. This helps Arduino to sense real thing and not just some interference made by radio signals etc.

Ground the ground from the plug to make it a part of Arduino.

Put left or right channel from the plug to Arduino A0

Put the led strip's +5 to VCC and GND to GND. Data cable goes to Arduino pin 6.

If you have any questions, just ask.

Note that you will need NeoPixel.h library. Find it from GitHub.

#include <Adafruit_NeoPixel.h>

#include <avr/power.h>

#define PIN 6

Adafruit_NeoPixel strip = Adafruit_NeoPixel(30, PIN, NEO_GRB + NEO_KHZ800);

void setup() { Serial.begin(9600); strip.begin(); strip.show(); // Initialize all pixels to 'off' }

void loop() { int sensorValue = analogRead(A0); Serial.println(sensorValue);//Just for the calipration

if(sensorValue > 10) { rainbowCycle(0); } if(sensorValue >30){

theaterChase(strip.Color(255,0,0),10); theaterChase(strip.Color(255,0,0),10); theaterChase(strip.Color(0,0,255),10); } if(sensorValue >40){ colorWipe(strip.Color(255,0,0),10); colorWipe(strip.Color(0,255,0),10); colorWipe(strip.Color(0,0,255),10); } }

//this makes the rainbow equally distributed throughout void rainbowCycle(uint8_t wait) { uint16_t i, j;

for(j=0; j<256*1; j++) { // 1 cycle of all colors on wheel for(i=0; i< strip.numPixels(); i++) { strip.setPixelColor(i, Wheel(((i * 256 / strip.numPixels()) + j) & 255)); } strip.show(); delay(wait); } } //Theatre-style crawling lights. void theaterChase(uint32_t c, uint8_t wait) { for (int j=0; j<5; j++) { //do 5 cycles of chasing for (int q=0; q < 3; q++) { for (int i=0; i < strip.numPixels(); i=i+3) { strip.setPixelColor(i+q, c); //turn every third pixel on } strip.show(); delay(wait); for (int i=0; i < strip.numPixels(); i=i+3) { strip.setPixelColor(i+q, 0); //turn every third pixel off } } } }

// Fill the dots one after the other with a color void colorWipe(uint32_t c, uint8_t wait) { for(uint16_t i=0; i

Step 5: Test Fit

Solder pins to the shield if you use one.

Drop the Arduino in to the case to see it fits.

If it fits continue to next step.

If you use different Arduino than Uno. (Smaller or bigger does not matter.)

And need a design for the case. I can make one on my free time and send it to you via email. Unfortunately i really can't make the real print and send it to you because sending something from here Finland to some other country is really expensive.

Step 6: Soldering

Solder needed wires and hook up the shield to Arduino and hope for best.

The plugs are meant to keep the Arduino down in the case as seen in picture 4.

Step 7: Final Assembly

Insert the "Hook" if needed to the back side of the case. Use hot glue to keep it in place.

Then glue the bottom lid on to the bottom.

Step 8: Done

Now the project is done. This is pretty much there is to make. Now you will just have to thing where to use it.

Next few steps are just examples where to use it.

Power the board from USB or a Battery. Any battery works great. 9V battery lasts about an hour.

Step 9: Option One

Use the box to enchant your speaker setup. Light looks really nice.

Making you favorite colors is easy by just changing the (R-G-B) from the code. Where 0 is no light on and 255 is full light.

Step 10: Option Two

Make a awesome gig enchanter. Just sew the led strip on the guitar/bass strap and rock on!

Or for drummers, throw this inside the bass drum and wait for the applause. Musicians benefits are guaranteed ;)

Thanks for reading :)

If you have any questions i will try to answer them :)

Comments

author
gada888 made it! (author)2015-06-16

There is one thing comfusing,Where is the mic.from your video,it seems the UNO receives audio signal from an outside speaker.so a mic must present.but i can't find it,if the music is from the audio cable like this instructable introduced,you won't hear any sound.

author
mkarvonen made it! (author)mkarvonen2015-06-16

There is no microphone in there. There is input and output for the audio cable. Uno just reads the data in the middle and transfers the information to the led's.

I hope this picture clears the picture. I was really tired last night when i wrote this and i will add up the info to the project soon :D thanks for comment!

Untitled Sketch_bb.png
author
gada888 made it! (author)2015-06-15

Thx for sharing,i think a attiny85 can also do the job.

author
gada888 made it! (author)gada8882015-06-16

I've tested it worked.it could be done on an attiny85.

author
mkarvonen made it! (author)mkarvonen2015-06-16

Any Atmel microprocessor will do the trick :) Just remember that this program uses a lot of RAM on the processor. So if you are considering to make a use for couple of hundred led's you will need a powerful processor.

author
braytonlarson made it! (author)2015-06-15

Why go to the party when you can be the party?

About This Instructable

4,890views

132favorites

License:

Bio: I am 26 years old engineering student from Oulu in Finland. Currently living in Joensuu. I make these projects as a hobby, and it would ... More »
More by mkarvonen:PipBoy 3000 (working)DIY Piranha PlantPhoto(s) to 3D model
Add instructable to: