chiark / gitweb /
anke-gps-bracket: todos now tracked on paper
[reprap-play.git] / axlepin.scad
1 // -*- C -*-
2
3 function AxlePin_holerad() = 2;
4 function AxlePin_zoffset(holerad=2, slop=0.5) = (holerad - slop)*0.7;
5
6 module AxlePin(axlerad, pinlen, holerad=2, tabthick=5, slop=0.5){
7   pinr = holerad - slop;
8   intersection(){
9     union(){
10       translate([0, -pinlen/2, 0]) rotate([-90,0,0])
11         cylinder(r=pinr, h=pinlen, $fn=10);
12       translate([-tabthick, axlerad, -holerad])
13         cube([tabthick*2, holerad*2, holerad*2]);
14     }
15     translate([-50,-50,-AxlePin_zoffset(holerad,slop)])
16       cube([100,100,50]);
17   }
18 }
19
20 function Washer_thick() = 1.2;
21
22 module Washer(axlerad, washerrad, thick=1.2, slop=0.5){
23   difference(){
24     cylinder(h=thick, r=washerrad);
25     translate([0,0,-1]) cylinder(h=thick+2, r=axlerad+slop);
26   }
27 }