Parametric LED Candle Holder
by holgero, published
Another LED candle holder, but with OpenSCAD files instead of *.123d files. I made the top of the candle a bit more distorted than the original to give it a 'molten' look.
The second holder (holder2.scad) was an experiment with low current LEDs that didn't work out.
The third holder (holder3.scad) uses my own flickering LED implementation with a PIC12F508 (https://github.com/holgero/PICFlickerLEDs).
For the original thing http://www.thingiverse.com/thing:33003 use the files candle. and holder..
For my own flickering LEDs implementation use the holder3. files instead of holder.. It goes upside down into the candle and the LED sticks through the holes in the disk, see the attached images. The flickering LEDs PIC assembler sources are available on github: https://github.com/holgero/PICFlickerLEDs. The openscad file uses the switch component from the 3D-PCB library http://www.thingiverse.com/thing:21975 . The thing contains also a battery clip (like the two battery holder from http://www.thingiverse.com/thing:38216 .
To make your own you need one printout of candle.scad, holder3.scad and clip2.scad (from the Parametric Battery Clip Thing). Other stuff is: 1 LED (yellow), 1 resistor 68 Ohms, 1 PIC 18F508 (and the means to flash it with a hex file) and some wire.
Assemble the battery clip, thread the wires so that the batteries are connected in series. Assemble the switch (see http://www.instructables.com/id/3D-Printed-Circuit-Boards-for-solder-free-printab/ ). Flash a PIC 12F580 with the hex file (either compile it from the sources on github or use the PICFlickerLEDs.hex file from here) and connect it as seen on the image. The yellow LED is connected with its longer leg (+) to the peg in the middle of the picture (Vdd) and on the other end with the 68 Ohms resistor. Connect the other end of the resistor with one of the pins 2,3,5,6,7 of the PIC (doesn't matter which, they all output some flickering). Connect pin 1 with the peg in the middle (Vdd) and pin 8 with GND (-) from the battery pack.
Note that the PIC in the image is shown from below, so the PIN 1 is on the top right (the one connected to the middle peg).