3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

RGB lamp with Custom Moodlamp Library

RGB lamp with Custom Moodlamp Library
I wanted to have an easily programmable RGB light to toss into a Jack 'O Lantern for Halloween. Who really wants a dull pumpkin in these days of pumpkin pimping madness. So I set to work building a pocket tin sized RGB lamp that could be reused after Halloween for some other RGBing need. The goal, that it could fit into a tin with room to spare for possible future additions, that it be hyper-simple to write up a new light show. That it used an Arduino at its heart, because I am familiar with them and they are fun.

So lets get to making something!

If you are here for the library it is in step 3. Go on then, let then others read quietly.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Gather up your kit

Gather up your kit
«
  • DSC02117.JPG
  • DSC02120.JPG
  • DSC02119.JPG
  • DSC02121.JPG
To build a replica of my pocket RGB lamp, you will need....

A RGB LED..(You can get these at most electronics stores/sources)
An Arduino Mini Pro 5v (Available from Sparkfun and Robotshop and a bunch of other places too)
A good pocket sized tin that can house a 9v battery and some stuff. I used an alternative to the minty fresh choice of many a maker. Mine, while lacking in freshness is both sharp and precisely engineered...or so I am lead to believe....Your tin will be fine, don't get tin envy...honestly it is only a tin.
A small protoboard, or a larger one that you don't mind cutting to make a smaller piece.
3 resistors, I went with 330ohms. Usually a safe bet with LEDs, but if you have your datasheet, and options, do the math...V=IR is a good place to start.
A 9v battery connector
Some female headers (available at many online retailers)
a small on/off push-button (Dollarama is a great place to find stuff like this attached to other stuff that is also often useful)
Some bits of hookup wire.
some thin foam or thick paper or something to line the bed of the tin in to keep it from shorting out anything.
A small credit card Fresnel magnifier. Not strictly necessary, but I like excuses to cut up credit card sized Fresnel lenses.
ummm...a drill, a computer....ummm...thats it I think.


Okay have you gathered your gear? Do a dry fit. Put the board and battery in the tin, place other components on top, close tin. If the test goes well, proceed to next step, otherwise, figure out what is going to be the problem and then find a slightly larger tin.

I had to cut a bit of my protoboard off. A quick way to do this if you don't mind a rough cut is to score a line and snap it off.
« Previous StepDownload PDFView All StepsNext Step »
6 comments
Oct 29, 2011. 12:39 AMloudboy says:
Your Moodlamp_Library.pde file saves as a temporary file, not a .pde.

Maybe corrupt/bad link?
Oct 27, 2011. 4:04 AMomnibot says:
I was sceptical at first but that seems to work really well in the pumpkin.
tip : If you put a fastener ring from a harddriveplatter around the lenshole on the outside it looks really cool.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
48
Followers
20
Author:fjordcarver
Dad, maker, dreamer, hacker, painter.