Thursday, September 17, 2009

Arduino #1

The first color is blue, as I move my hand away the blinks become less rapid. When I reach a certain threshold (around 20 in), the color then turns to red and blinks even less rapidly. After the red (when my hand is around 5o inches away) the green light comes on a stays solid. I move my hand back quickly and the next reading lights up the blue again. The number of blinks are proportional to the distance away from my hand, which is also proportional to the number of readings the rangefinder takes. I was pretty happy with the result.


I had an old Rangefinder hanging around and I decided to put it to use with the lamp. I used a pretty simple piece of code that permitted three different lights to turn on with specific time lapses that were designated by the distance from the rangefinder. The Rangefinder definitely is not perfect but I got the results that I was looking for.






























A Few Iterations of the my standard lamp...





































































I was able to get some laser time and made a small 3"x3"x3" lamp out of acrylic which was pretty easy to frost and to stuff with some trace to get the right look going.





I have had a bit of experience with arduino already, but the first couple of tutorials got me reacquainted.

No comments:

Post a Comment