enlarge holes on motor mount
[challenge-bot] / 3d-printables / motor-mount.scad
CommitLineData
71abed8c 1// challenge-bot
2// GNU AGPLv3 (or later at your option)
3// project available at these locations:
4// https://gitorious.org/ozzloy/challenge-bot
5// https://github.com/waynegramlich/challenge-bot
6
7$fn = 60;
8
9// from schematic http://goo.gl/96RKol
bedc9f60 10collar_radius = 9.2 / 2 + 0.25;
11nubbin_radius = 4.48 / 2;
12screw_radius = 2.9 / 2 + 0.35; // a little bigger so screws fit through
71abed8c 13
14motor_height = 22.23;
15
16// http://freespace.virgin.net/matt.waite/resource/handy/screwsize.htm
bedc9f60 17_6_radius = 3.5 / 2 + 0.25;
71abed8c 18
19// measurements we made up:
20mount_total_x = 38;
21mount_total_y = mount_total_x;
22mount_total_z = 3.175; // 3/16 in mm
23
24module motor_holes(){
25 collar_x_offset = 10.8;
26 nubbin_x_offset = 22.23;
27 // actual motor screw holes are 0.2 further than spec says
28 screw_x_offset = 30.81 + 0.2;
29 screw_y_offset = 17.44 / 2;
30
31 translate([collar_x_offset, 0, 0]){
32 cylinder(r = collar_radius, h = mount_total_z + 0.1);}
33 translate([nubbin_x_offset, 0, 0]){
34 cylinder(r = nubbin_radius, h = mount_total_z + 0.1);}
35 translate([screw_x_offset, 0, 0]){
36 translate([0, screw_y_offset, 0]){
37 cylinder(r = screw_radius, h = mount_total_z + 0.1);}
38 translate([0, -screw_y_offset, 0]){
39 cylinder(r = screw_radius, h = mount_total_z + 0.1);}}}
40
41module bracket_holes(){
0708912a 42 translate([6.2, 0, 0])
71abed8c 43 cylinder(r = _6_radius, h = mount_total_z + 0.1);
0708912a 44 translate([mount_total_x - 6.2, 0, 0])
71abed8c 45 cylinder(r = _6_radius, h = mount_total_z + 0.1);}
46
47module motor_mount(){
48 difference(){
49 cube([mount_total_x, mount_total_y, mount_total_z]);
50 translate([0, 6.2, -0.05]){
51 bracket_holes();}
0708912a 52 translate([1, mount_total_y - motor_height / 2 - 3, -0.05]){
71abed8c 53 motor_holes();}}}
54
55motor_mount();