Many factors helped birth the HypnoLamp: At Toorcamp 2012, I learned to program microcontrollers. Jeff of OlyMEGA blessed me with addressable LED strips, at the aforementioned event. Jeff was also at the Portland Mini Maker Faire, showcasing (among other things) glass Ikea lamps with LEDs inside. I decided to build my own version!
The lid and base are made of semi-clear white acrylic, which almost matches the frosted glass body.
The hardware and electrical tasks took longer than anticipated. The processor would occasionally snow crash, displaying colored static. I relearned Ohm's Law and discovered that, when brightly lit, the LEDs were drawing more power than the Arduino's voltage regulator could handle, which plunged the Arduino into undefined territory. (This was solved by removing the voltage regulator from the board, and supplying power using a regulated 5V 2A power supply.)
Q: Why didn't you use [insert other microcontroller here]? It's better!
A: I used the Adafruit DC Boarduino. At the time, I felt this was the best choice, because:
- I had prior experience with it,
- Adafruit provides an Arduino library for interfacing with the LED strips, and
- The beautiful algorithms use floating point arithmetic (which is more conducive to creative coding than using integers), in HSV color space, which is converted to RGB and pushed to the LED strips at 60 updates per second (effectively 60 FPS), and it runs great, with no performance issues, and we can all go home early.
Programming the lamp was a joy. Each animation was tweaked until it was hypnotic, yet subtle enough to accent the room.
Sean Michael Ragan (Technical Editor for Make Magazine) invited two members of Dorkbot to present their inventions to an audience. Before I knew it, I was on stage with Veronica Belmont, demonstrating the HypnoLamp for hundreds of people! This was a competition; who had invented the best gadget? Dorkbot's own Scott Dixon presented a cell phone screen, repurposed as a bright, ultra-portable display, very nice!
Another maker presented an analog arcade game, which was so novel that I figured it would score an easy victory. However, the audience was so enthusiastic, that Veronica called for a tie-breaker vote between the arcade game, and my lamp. The HypnoLamp just barely did not win. (I believe the sound engineer had to examine the decibel levels on the mixer.) It was extremely close! People cheered for the HypnoLamp, and were excited to talk to me afterwards. I was ecstatic.
The next day, our booth received an Editor's Choice Award, and an Educator's Choice Award. We had a great collection of hacks: Thomas Hudson's Honeybee Counter, Paul Stroffregen's LED Video Wall with stomp sensors, Jared Boone's Radio Spectrum Analyzer, etc.
I had long, detailed discussions with people: Can the HypnoLamp interface be improved? Can it be more expressive? Will there be a Kickstarter campaign to manufacture and distribute HypnoLamps around the world? (This looks promising! Seriously, I want to do this. Stay tuned!)
Thanks to everyone who made my first Maker Faire experience unforgettable.
This is the code that the HypnoLamp was running at Maker Faire. It could use some restructuring, code review, and crufty bits removed. But, it was on the showroom floor for 2 days, and didn't crash or freeze, so it's fairly stable. Enjoy!
[Cross-posted from my blog]
Glad to see you were able to do something with the lights. The lamp looks good. What do you have the switches/pots mapped to in the code?