-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.scad
45 lines (37 loc) · 1.6 KB
/
config.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
pcb_slot_height = 1.8;
pcb_slot_width = 27;
pcb_notch_scale = 0.02485593;
// Default screw length for the LED are 3 millimeters.
led_screw_length = 3.0;
bottom_screw_length = 3.0;
// The height of the controller base in millimeters, not including the LED base and diffusor attachment.
controller_height = 135;
// The radius of the controller base.
controller_radius = 15;
// The height of the LED cylinder.
led_base_height = 10;
// The diameter of the LED cylinder.
led_base_diameter = 23;
// The center of the o-ring can be translated inwards using this variable to adjust the pressure to a functional setting when the diffusor is attached.
led_oring_deepness = 2.0 * 1.35;
controller_mainboard_height_tolerance = 0.5;
controller_mainboard_height = controller_height - controller_mainboard_height_tolerance;
subdivisions = 128;
$fn = subdivisions;
led_screw_diameter = 1.7; // PA Philips Head Micro Screw M1.7
// Ratio for self-cutting plastic screws in brittle SLA printing materials like the ones from JLCPCB.
led_screw_hole_diameter = 0.83 * led_screw_diameter;
// The height of the cylinder below the LED base plate for self-cutting screws to bore into.
led_screw_support_height = 3.0;
top_cover_screw_diameter = 1.7; // PA Philips Head Micro Screw M1.4
top_cover_screw_hole_diameter = 0.83 * top_cover_screw_diameter;
top_cover_screw_support_height = 3.0;
top_plate_cutout_width = 16.2;
top_plate_cutout_height = 10;
module ring(outer_diameter, inner_diameter, height) {
difference() {
cylinder(h=height, r=outer_diameter/2);
translate([0, 0, -5])
cylinder(h=height + 10, r=inner_diameter/2);
}
}