From 0719d2783f60344412a8f0f4e91b4dca56c4210e Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 28 Nov 2012 19:01:01 +0000 Subject: [PATCH] anke-gps-bracket: initial gps body model --- anke-gps-bracket.scad | 45 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 anke-gps-bracket.scad diff --git a/anke-gps-bracket.scad b/anke-gps-bracket.scad new file mode 100644 index 0000000..c3af7e6 --- /dev/null +++ b/anke-gps-bracket.scad @@ -0,0 +1,45 @@ +// -*- C -*- + +outerw = 140; +outerh = 80; +bezelw = 8; +bezelboth = 8; +bezeltoph = 8; +outert = 10; + +spkrdia = 40; +spkr2bot = 40; +spkr2rhs = 30; + +plugw = 10; +plugh = 8; +plug2bot = 30; +plug2lhs = 40; + +screent = 1.0; + +plugstrutw = 4; +plugstrutt = min(outert, 5); + +module Gps() { + difference(){ + union(){ + difference(){ + cube([outerw, outerh, outert]); + translate([bezelw, bezelboth, screent]) + cube([outerw-bezelw*2, outerh-bezelboth-bezeltoph, outert]); + translate([outerw-spkr2rhs, spkr2bot, -1]) + cylinder(r=spkrdia/2, h=outert+2); + } + translate([plug2lhs+plugw/2, plug2bot+plugh/2, 0.01]) + cylinder(r=(plugw+plugh)/2, h=outert-0.02); + for (x=[plug2lhs-plugstrutw, plug2lhs+plugw]) + translate([x, 0.1, 0.01]) + cube([plugstrutw, outerh-0.2, plugstrutt-0.02]); + } + translate([plug2lhs, plug2bot, -1]) + cube([plugw, plugh, outert+2]); + } +} + +Gps(); -- 2.30.2