Get in the mood with some fairly simple ATTiny85 based DIY color shifting lamps!
Step 1: Materials
- Sheet of wood
- Wood screws
- Various hole cutter bits
- 6″ Acrylic Cupcake / CAKE / Centerpiece Tube Extension (for diffusing the light)
- 2 Watt 10 Ohm Metal Film Resistor (qty 3)
- Proto board
- Your preference for on off switch (I used the rocker switches in the attached picture)
- ULN2003AN (High-Voltage High-Current Darlington Transistor Array)
- 3W RGB Color High Power LED Light Common Anode with 20mm Star Heat sink
- ATTiny85 (and some means of transferring a sketch to it)
- 5v 2W power supply
- Basic soldering equipment (solder, solder iron, wire cutters\strippers, etc)
- Hot glue gun
- 4 rubber feet
Step 2: Step 2: Build Your Box
Top and Bottom of the box should be 8×5 inches
Front and Back of the box should be 8×3 inches (Box will be 3 + 2*X inches tall where X is the width of your wood)
The two end pieces should be (5 – 2*X)x3 inches where X is the width of your wood. (the end pieces will be as wide as your bottom piece minus the width of the front and back pieces)
Sand all edges
Assemble bottom, front, back and both edge pieces and hold them together with wood screws.
Align and drill your pilot holes for the top piece to be secured later.
Pro tip (err…. amateur tip)
If your woodworking skills are as abysmal as mine you may end up with some gaps where your sides don’t line up quite right. You can disguise those gaps by mixing together some of your sawdust with a little wood glue to make a paste. Fill your gaps with this paste and allow it to dry. After it is dry you can sand it smooth.
Step 3: Step 3: Prepare Your Box
Using a regular drill bit put a hole low in the back of your box where the wire from your 5v power supply to be feed into the box. Only account for the diameter of the wire and not the plug as we’ll be cutting the plug off.
Use a spade bit the same size as your rocker switch to make a hole for mounting (or do whatever you need to do to mount the switch you’ve chosen)
Use a hole drilling bit (see picture) the same diameter as the acrylic tube to make a groove for the tube to rest in. Your LED will rest in the center of this circle. Inside this circle you’ll drill four holes for you to feed wire from the electronics inside to the LED outside.
Once everything is drilled and sanded to your liking you can stain the wood if you wish.
Read more: Color Changing Mood Lamp