1 // A simple adjustable diffuser for the LED flashlights.
3 // Designed by Jan "Yenya" Kasprzak <kas at yenya.net>.
4 // Distributable under the terms of the Artistic License.
6 // Tested with ZHISHUNJIA ZSJ-T29 LED flashlight (dx.com SKU #317226).
7 // NOTE: I can't really recommend this particular flashlight, it is
8 // well below the specs (600/300/150 mA instead of stated 2.4 A).
10 // For any other flashlight, adjust the parameters below:
12 // the true _diameter_ of the flashlight + some space around
13 // ring_d = 34.3 + 1.0; // zsj-t29
14 ring_d = 44 + 1.0; // lzz-186
16 // the diaphragm thickness, set so that it is printed with two print layers
19 // outer wall thickness - preferably the integer multiple
20 // of the print trace width
23 // height of the center of clip beams + some space below + diaphragm thickness
24 // clip_h = 7.3 + 0.5 + diaphragm; // zsj-t29
25 clip_h = 16 + 0.5 + diaphragm; // zsj-t29
27 // the clips protrude this much to the inner cylindrical hole
28 // the bigger value means more stiff fit
31 clip_angle = 90; // at least 90 degrees; bigger is easier to put on and off,
32 // smaller is more stiff, but harder to remove
34 n_clips = 3; // number of clips; odd numbers prefered
36 // the height of the clip is computed so that there is wall/2-wide flat
38 clip_top = clip_h + (clip_w+wall/2)*tan(clip_angle/2);
40 // if the lens protrudes below the outer ring, it is better that
41 // the diffuser sits on the outer ring. So we can add an additional
46 // the overall height:
47 // ring_h = clip_top; // cylindrical shape without the clips protruding on the top
48 ring_h = clip_h + wall; // clips protruding on the top
56 cylinder(r = ring_d/2 + wall, h = ring_h);
57 // inner cylinder hole
58 translate([0, 0, diaphragm + support_h])
59 cylinder(r = ring_d/2, h = ring_h - support_h);
61 translate([0, 0, diaphragm])
62 cylinder(r = ring_d/2 - support_w, h = support_h + eps);
63 translate([0, 0, ring_h + eps - wall])
64 cylinder(r1 = ring_d/2, r2 = ring_d/2 + wall/2, h = wall);
67 for (angle = [0:360/n_clips:360-eps]) intersection() {
69 translate([ring_d/2-clip_w, -infty/2, clip_h]) {
70 rotate([0, 90-clip_angle/2, 0])
72 rotate([0, clip_angle/2, 0])
75 cylinder(r = ring_d/2 + wall, h = clip_top);