projects
/
challenge-bot
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a96c093
)
clean up spacing on motor-mount drill jig
author
daniel watson
<ozzloy@gmail.com>
Wed, 23 Oct 2013 17:15:03 +0000
(10:15 -0700)
committer
daniel watson
<ozzloy@gmail.com>
Wed, 23 Oct 2013 17:15:03 +0000
(10:15 -0700)
motor-mount-drill-jig.scad
patch
|
blob
|
blame
|
history
diff --git
a/motor-mount-drill-jig.scad
b/motor-mount-drill-jig.scad
index bafbe5a6593543d0cd31dc7654892c5be2e03bb3..9e9673f6cb8fe7956c7dea6e5b054f3599bc444e 100644
(file)
--- a/
motor-mount-drill-jig.scad
+++ b/
motor-mount-drill-jig.scad
@@
-10,74
+10,75
@@
mm_per_inch = 25.4;
mm_per_inch = 25.4;
-material_width = (1
/
8) * mm_per_inch;
+material_width = (1
/
8) * mm_per_inch;
board_length = 1.75 * mm_per_inch;
board_width = 1.5 * mm_per_inch;
board_length = 1.75 * mm_per_inch;
board_width = 1.5 * mm_per_inch;
-board_depth = (3
/
16) * mm_per_inch;
+board_depth = (3
/
16) * mm_per_inch;
tab_length = 3 * mm_per_inch;
tab_length = 3 * mm_per_inch;
-tab_width = (1
/
4) * mm_per_inch;
+tab_width = (1
/
4) * mm_per_inch;
union(){
rotate(a = 90, v = [1, 0, 0]) {
cube([board_length + material_width,
1.75 * mm_per_inch + material_width,
union(){
rotate(a = 90, v = [1, 0, 0]) {
cube([board_length + material_width,
1.75 * mm_per_inch + material_width,
- material_width
]);}
+ material_width]);}
translate(v = [0, -material_width, 0]){
rotate(a = -90, v = [0, 1, 0]) {
cube( [1.75 * mm_per_inch + material_width,
1.5 * mm_per_inch + 2 * material_width,
translate(v = [0, -material_width, 0]){
rotate(a = -90, v = [0, 1, 0]) {
cube( [1.75 * mm_per_inch + material_width,
1.5 * mm_per_inch + 2 * material_width,
- material_width
]);}}
+ material_width]);}}
- translate(v = [(1.75*mm_per_inch + material_width)/2 + tab_width,
- -tab_length, 0]){
+ translate(v = [(1.75 * mm_per_inch + material_width) / 2 + tab_width,
+ -tab_length,
+ 0]){
rotate(a = 90, v = [0 ,0 ,1 ]){
rotate(a = 90, v = [0 ,0 ,1 ]){
- cube([3
*mm_per_inch, 0.5*
mm_per_inch , material_width]);}}
+ cube([3
* mm_per_inch, 0.5 *
mm_per_inch , material_width]);}}
translate(v = [-tab_length,
translate(v = [-tab_length,
- (1.5
*mm_per_inch + material_width)/
2 - tab_width,
+ (1.5
* mm_per_inch + material_width) /
2 - tab_width,
0]){
0]){
- cube([3
*mm_per_inch, 0.5*
mm_per_inch , material_width]);}
+ cube([3
* mm_per_inch, 0.5 *
mm_per_inch , material_width]);}
- translate(v = [(1.75
*mm_per_inch + material_width)/
2 + tab_width,
- (1.5
*
mm_per_inch),
+ translate(v = [(1.75
* mm_per_inch + material_width) /
2 + tab_width,
+ (1.5
*
mm_per_inch),
0]){
rotate(a = 90, v = [0, 0, 1]){
0]){
rotate(a = 90, v = [0, 0, 1]){
- cube([3
*mm_per_inch, 0.5*
mm_per_inch , material_width]);}}
+ cube([3
* mm_per_inch, 0.5 *
mm_per_inch , material_width]);}}
- translate(v = [(1.75
*
mm_per_inch),
- (1.5
*mm_per_inch+material_width)/
2 - tab_width,
+ translate(v = [(1.75
*
mm_per_inch),
+ (1.5
* mm_per_inch + material_width) /
2 - tab_width,
0]){
0]){
- cube([3
*mm_per_inch, 0.5*
mm_per_inch , material_width]);}}
+ cube([3
* mm_per_inch, 0.5 *
mm_per_inch , material_width]);}}
-_4_40 = 0.1285
*mm_per_inch/
2; // size of hole for 4x40
-_6_32 = 0.1495
*mm_per_inch/
2; // size of hole for 6x32
+_4_40 = 0.1285
* mm_per_inch /
2; // size of hole for 4x40
+_6_32 = 0.1495
* mm_per_inch /
2; // size of hole for 6x32
module collar_hole(){
module collar_hole(){
- cylinder(h = board_depth, r = 2
*_6_32, $fn=
20);}
+ cylinder(h = board_depth, r = 2
* _6_32, $fn =
20);}
module nubbin_hole(){
module nubbin_hole(){
- cylinder(h = board_depth, r = _6_32, $fn
=
20);}
+ cylinder(h = board_depth, r = _6_32, $fn
=
20);}
module mounting_screw_hole(){
module mounting_screw_hole(){
- cylinder(h = board_depth, r = _6_32, $fn
=
20);}
+ cylinder(h = board_depth, r = _6_32, $fn
=
20);}
module bracket_screw_hole(){
module bracket_screw_hole(){
- cylinder(h = board_depth, r = _6_32, $fn
=
20);}
+ cylinder(h = board_depth, r = _6_32, $fn
=
20);}
module wheel_motor_holes(scale){
module wheel_motor_holes(scale){
- translate([
51-26.78,38-
10.8, 0] * scale) {
+ translate([
51 - 26.78, 38 -
10.8, 0] * scale) {
collar_hole();}
collar_hole();}
- translate([
51-26.78,38-
22.23, 0] * scale){
+ translate([
51 - 26.78, 38 -
22.23, 0] * scale){
nubbin_hole();}
nubbin_hole();}
- translate([51
-18.05-17.45,38-
30.81, 0] * scale){
+ translate([51
- 18.05 - 17.45, 38 -
30.81, 0] * scale){
mounting_screw_hole();}
mounting_screw_hole();}
- translate([51
-18.05,38-
30.81, 0] * scale){
+ translate([51
- 18.05, 38 -
30.81, 0] * scale){
mounting_screw_hole();}
mounting_screw_hole();}
- translate([7.5,8.5, 0] * scale){
+ translate([7.5,
8.5, 0] * scale){
bracket_screw_hole();}
bracket_screw_hole();}
- translate([7.5,
21+
8.5, 0] * scale){
+ translate([7.5,
21 +
8.5, 0] * scale){
bracket_screw_hole();}}
module wheel_mount(scale){
bracket_screw_hole();}}
module wheel_mount(scale){