As per an assignment in my digital multi-media class, I’ve combined two Arduino-related tutorials into a functional object! The result is a pair of infinity mirrors that flash red and blue depending on minute fluctuations in ambient temperature.
This is my first experience with Arduino, and my first attempt at building an electronic device from scratch—that is to say, there’s lots of rough edges and things I’d do differently if I were to approach this project again, but overall I’m happy with the outcome and think it looks hella sweet on my desk at home.
I would recommend reading the following three tutorials before you begin, as this one relies heavily on all of them.
http://www.instructables.com/id/Arduino-controlled-RGB-LED-Infinity-Mirror/ - Very thorough description of infinity mirror construction and the electronic components necessary to make the LED strips function. My project was largely inspired by this instructable, and the following tutorial will focus more on the implementation of the temperature sensor than the construction of an Arduino-controlled infinity mirror.
http://bildr.org/2011/07/ds18b20-arduino/ - The temperature sensor I used, as well as a much more concise code to operate it. My code is very similar, with only a few modifications so it can save the last two values and compare them.
http://learn.adafruit.com/rgb-led-strips/usage - This is the basic hardware configuration and code I used for my LED strips, only I doubled it in order to run two different strips from the same Arduino, and combined the code with the temperature sensor data.
- Arduino Uno, breadboard, and perforated board for later stabilization.
- 22-gauge hook up wire in various colors (red and black for denoting power and ground, as well as blue and green for identifying the RGB LED pins would probably be ideal)
- 1 meter RGB LED strip (x2)
- N-Channel MOSFETS (x6)
-Barrel jack breadboard adapter
- 12V/5A power supply (I purchased one from ebay for ten bucks and had a lot of luck with it)
- DS18B20 One-wire Temperature Sensor (I recommend buying multiples--I had to manipulate the pins a lot and ultimately broke one off in the final stretch. Luckily I foresaw this situation and purchased a couple of them to begin with.)
- 4.7K Resistor
- Four-conductor hook up cable, for aesthetic purposes. I have two 2’ strands running from my mirrors to the arduino/power source, as opposed to eight lose wires.
- 2’ x 4’ sheet of ¼” whitewood board. The plywood core wasn’t ideal and stands out on the final product, but it was cheap and appropriate for this prototype.
- 12” mirror tiles (x2) The ones I found come in packs of six and are a little pricey, so any relative sized, cheap alternative works here.
- 11 ½” x 8” sheet of glass (x2)
- ½” foam sheet, for padding the inside edges of the box so the LED strips are readily visible from any angle and form the desired shape. (This was the faster, more readily available option and by far not the best one. I'd rather gather the appropriate measurements and cut this out of a half inch piece of wood.)
- Mirrored window tint, for the two-way mirror.
- Electrical tape, black masking tape, and possibly heat shrink tubes if you want something with more permanence, although I didn't use them in this project.
- Hot glue for constructing the box and super glue for adhering the LED strip to the inside edges.
- Soldering iron and solder, if you intend to move the components from the breadboard to the perforated board. Otherwise you might be able to get away without them.
- Wire strippers
- Table saw
- Glass cutter and duckbill clamp or similar tool for applying even pressure to the glass and mirror in order to break it along the groove.
- CNC machine for cutting out the two lamp faces