Should I make a video about these? (Patreon)
Content
I featured these 3D printed cabochon lights on the last livestream, and was wondering if it's worth making a short video about them.
Here's the openscad script that will let you generate STL files with custom shapes and sizes, including an adjustable size hole for the LED that holds it in position.
The three adjustable variables are LED for the LED hole size (usually 5 or 3mm), Diameter for the outer diameter of the light (it scales the rest up) and facets which is the number of facets on each face. I'd recommend a minimum of four as the one 3-facet cabochon I tried to print didn't adhere well at the base. I could theoretically create a ledge there to assist printing.
To use this script in openscad just highlight it and copy it. Then paste it into the empty left hand window of openscad (delete anything that's there already). Press the >> button at the top to see a rough-up. When happy select the hourglass button next to >> and it will create the STL file. Then press the STL button to save it.
I'd recommend using a raft for extra bed adhesion if needed.
//Cabochon fairy light cap generator
//ADJUST THESE THREE VARIABLES TO SUIT
LED=5; //LED HOLE diameter (3 or 5?)
diameter=40; //Diameter of cabochon 20-100
facets=6; //Number of facets 3-360
//Don't touch variables below this line
cap=diameter/3;
base=cap*2;
difference(){
union(){
difference(){
union(){
//main crystal
translate([0,0,10])
cylinder(h=base,d1=8,d2=diameter,$fn=facets);
//crystal cap
translate([0,0,base+10])
cylinder(h=cap,d1=diameter,d2=0,$fn=facets);
}
//base interior
translate([0,0,10])
cylinder(h=base,d1=6,d2=diameter-2,$fn=facets);
//cap interior
translate([0,0,base+10])
cylinder(h=cap-1,d1=diameter-2,d2=0,$fn=facets);
}
//LED INSERT
//LED base cylinder
translate([0,0,0])
cylinder(h=15,d1=10,d2=10,$fn=60);
//LED base dome
translate([0,0,15])
cylinder(h=3,d1=10,d2=LED+1,$fn=60);
}
//LED base interior
translate([0,0,-1])
cylinder(h=16,d1=8,d2=8,$fn=60);
//LED dome interior
translate([0,0,15])
cylinder(h=2,d1=8,d2=LED,$fn=60);
//LED hole
translate([0,0,15])
cylinder(h=5,d1=LED,d2=LED,$fn=60);
//x-ray cube
//translate([-50,-50,-1])
//cube([100,50,100]);
}
Files
Previews only