chiark / gitweb /
anke-gps-bracket: before plug adjust
[reprap-play.git] / anke-gps-bracket.scad
1 // -*- C -*-
2
3 outerw = 140;
4 outerh = 80;
5 bezelw = 8;
6 bezelboth = 8;
7 bezeltoph = 8;
8 outert = 10;
9
10 spkrdia = 40;
11 spkr2bot = 40;
12 spkr2rhs = 30;
13
14 plugw = 10;
15 plugh = 8;
16 plug2bot = 30;
17 plug2lhs = 40;
18
19 plugtotald = 20;
20 pluggapd = 12;
21
22 plugslop = 0.3;
23
24 screent = 1.0;
25
26 plugstrutw = 4;
27 plugstrutt = min(outert, 5);
28
29 module GpsBody() {
30   effplugw = plugw + plugslop;
31   effplugh = plugh + plugslop;
32   difference(){
33     union(){
34       difference(){
35         cube([outerw, outerh, outert]);
36         translate([bezelw, bezelboth, screent])
37           cube([outerw-bezelw*2, outerh-bezelboth-bezeltoph, outert]);
38         translate([outerw-spkr2rhs, spkr2bot, -1])
39           cylinder(r=spkrdia/2, h=outert+2);
40       }
41       translate([plug2lhs+effplugw/2, plug2bot+effplugh/2, 0.01])
42         cylinder(r=(effplugw+effplugh)/2, h=outert-0.02);
43       for (x=[plug2lhs-plugstrutw, plug2lhs+effplugw])
44         translate([x, 0.1, 0.01])
45           cube([plugstrutw, outerh-0.2, plugstrutt-0.02]);
46     }
47     translate([plug2lhs, plug2bot, -1])
48       cube([effplugw, effplugh, outert+2]);
49   }
50 }
51
52 module GpsPlug() {
53 //  translate([plug2lhs, plug2bot, 0]) {
54 //    translate([
55 //  }
56 }
57
58 GpsBody();