Introduction: Programmable Pipe Lamp
Want to make a cool lamp you can program to illuminate how you want?
If so, check out this Arduino-controlled lamp!
The goal behind this project was to make an aesthetically appealing lamp out of resources that I had laying around. The main components of this lamp include Kombucha bottles, some piping from Home Depot and some basic Arduino components. Overall, this is a fairly easy project and takes very limited arduino and construction knowledge!
Approximate Project Time (4 hours)
Let's get started!
Step 1: Materials & Tools
- Kombucha Bottles (x2)
- NeoPixels (Approx. 1.5 meters)
- Arduino Uno
- Galvanized Piping (1.25" Threading)
- "T" fitting
- Straight Pipe (1ft long)
- Floor Flange
- Soldering Iron
- Computer (To program Arduino)
- Arduino Software
- Hot glue gun
- Wood Bits
- Wood File
Step 2: Bottle Preparation
I regularly drink Kombucha and decided to reuse the bottles after they were empty. You regularly buy these at Publix or other supermarkets for approximately $3. These are clear bottles, so I used frosted glass spray paint in order to make them semi-transparent.
- Take sticker off empty Kombucha bottle. Peel slowly, taking care to get as much as you can off.
- Use rubbing alcohol and vigorously scrub the bottle until all adhesive has come off.
- Make sure the entire bottle is washed inside and out before spray-painting.
- Apply multiple coats of spray paint, letting it dry between coats. (I applied about 6 coats)
- After the bottles are dry, overlay the threads with multiple layers of electrical tape.
Step 3: Lamp Base
Now let's prepare the lamp base! I got this stair newel topper/ dowel at home depot in the lumber section.
- Drill a hole through the middle of the base. (This will be so your wires can go through the base)
- While you are near the drill, I also recommend drilling a hole through the middle of your copper piping.
- Cut a section out of the bottom of the base. (This will be so the base can lay flat over the wires)
- I used a Dremel with a cut-off wheel because it is all I had accessible. (I do not recommend this attachment) If available, use a drum and sanding band attachment.
- Further smooth the section you carve out using sandpaper and your Dremel attachments.
- Take your galvanized floor flange and center it on the top of the base.
- Finally, use you self-tapping screws to secure the flange to the top of the base.
Step 4: NeoPixel Assembly
In order to secure the NeoPixels, I used a section of copper piping with a small diameter. (This provides rigidity and a "dowel" of some sorts to secure the NeoPixels around)
- Cut a section of NeoPixels. (I used about 1.5 meters)
- Hot glue the beginning of the NeoPixel strip to one end of the copper pipe.
- Take the adhesive backing off of your NeoPixels and wrap them around the pipe evenly.
- After wrapping to the end of your NeoPixel strip hot glue the other end.
- Run the remaining wiring through the end of the copper pipe and out through the hole you drilled in the middle of it.
- *You might need to solder some longer sections of wire to your LED strip in order to run it through the copper pipe, down the lamp neck, and through the bottom of the base.
Step 5: Final Hardware Assembly
Now that you have prepared your frosted bottles with electrical tape, evenly spaced your lights on the copper piping, and crafted your lamp base, it is time to finalize the assembly of the lamp.
- Make sure your wiring is run through the copper piping, the "T" pipe fitting, down the lamp neck, and through the lamp base.
- Screw the lamp neck into the base.
- Screw the "T" pipe fitting onto the lamp neck.
- Slowly thread one of your bottles into one end of the "T" pipe.
- If it is loose inside the fitting, layer more electrical tape around the bottle threads.
- Carefully fit the NeoPixel-copper pipe assembly through the "T" pipe and into the bottle on the other side.
- Put the other bottle over the exposed side of copper pipe and carefully thread into the "T" pipe
Step 6: Arduino Connection
After you assemble all the hardware of your lamp, it is time to program your NeoPixels!
The following link will provide you with basics of understanding NeoPixels: https://goo.gl/xJwOy9
Make sure to read this link before hooking up your NeoPixels: https://goo.gl/xYbcdv
After looking through Adafruit's resources a bit, you will want to install the Arduino software and such
- Open Arduino software
- Import Arduino "NeoPixel" library: https://goo.gl/hLzKb9
- Go to File > Examples > Adafruit NeoPixel > strandtest
- Verify and then Upload your code to your Arduino Uno
- Connect your ground (-), positive (+), and DIN wires to the Arduino
- Based on the sample code, you will need to connect your DIN wire to Digital pin 6 on the Arduino
After the Arduino is hooked up, the wires are connected to the board, and the code is uploaded, your lamp should be running the sample code! Enjoy your awesome lamp and be sure to post your version in the comments!
- Make sure all connections are soldered properly
- Make sure all wires are connected in the board and in the right pins
- Make sure your code has been compiled and uploaded correctlyf
Step 7: Future Development
I hope to add to this lamp by developing some different code for the NeoPixels. This code will include different ambient functions of the light such as slowly increasing and decreasing the brightness while switching through various colors. I would also like to add light sensors and a microphone so that the lamp could be regulated by exterior lighting or sound as well!
Let me know if you have any other suggestions in which I could improve the hardware or software of this build!