From: Clinton Ebadi Date: Thu, 4 Apr 2019 02:48:53 +0000 (-0400) Subject: led-clip: an clip to mount strips of leds to surfaces X-Git-Url: http://git.hcoop.net/clinton/3d-models.git/commitdiff_plain/12c98db537b6394ce6dff6893269f92be57080b1 led-clip: an clip to mount strips of leds to surfaces Written in 2015 and just sitting in a folder since, which is my excuse for the awkward math. Inspired by some long-forgotten model I found on thingiverse... it wasn't parametric so it couldn't fit waterproof strips, inspiring this quick hack. --- diff --git a/led-clip/new-led-clip.scad b/led-clip/new-led-clip.scad new file mode 100644 index 0000000..20ebbec --- /dev/null +++ b/led-clip/new-led-clip.scad @@ -0,0 +1,56 @@ +/* Customizable Clip for mounting strip LEDs + Copyright (c) 2015 Clinton Ebadi + + This program is free software: you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see + . +*/ + +// TODO: +// - make this a module + +use + +// All lengths in mm + +wall_height = 4; // How tall should the wall be? +wall_width = 3.2; // How thick should the walls be at their base? +extra_wall_height = 10; // How tall should the horizontal mounting tab be? 0 = no tab. + +base_height = 2.5; // Thickness of the base +base_length = 30; // Length of the clip + +strip_width = 10; // Width of LED strip + +hole_radius = 2; // Size of mounting holes + +x_midpoint = (wall_width*2 + strip_width) / 2; + +difference () { + rotate([90,0,0]) { + linear_extrude(height = base_length) { + translate ([0, wall_height + base_height, 0]) square([wall_width, extra_wall_height]); + difference () { + square ([wall_width * 2 + strip_width, wall_height + base_height]); + polygon (points = [[wall_width, base_height], [wall_width + strip_width, base_height], + [(wall_width*2 + strip_width) / 2, (wall_height + base_height) * 3]], + paths = [[0, 1, 2]]); + } + } + + } + translate ([x_midpoint, -base_length / 2, -0.1]) cylinder (h = base_height + 0.2, r = hole_radius, $fn = 20); + translate([0.1, -base_length/2, (base_height + wall_height + extra_wall_height) - hole_radius*2 ]) teardrop (radius = hole_radius, length = wall_width*2 + 0.2, angle = 90); + +} +