Ignore:
Timestamp:
06/16/14 04:53:32 (8 years ago)
Author:
Steve Castellotti <sc@…>
Branches:
master
Children:
e72c971
Parents:
fb88858
Message:
  • screw hole added
File:
1 edited

Legend:

Unmodified
Added
Removed
  • car/design/2014.06.15-Robotics-Drill_Mount-v1/Robotics-Drill_Mount-v1.scad

    rfb88858 r110b06c  
    77// Z - up 
    88 
    9 // Direction Switch 
    10 // - all measurements are looking down from switch with movable piece pointed foward/away (y) 
     9// NOTE: All measurements for direction switch are looking down on switch from above with movable piece pointed foward/away (y) 
     10 
    1111switch_base_x = 17; 
    1212switch_base_y = 28; 
    1313switch_base_z = 10; 
    1414 
    15 // Quick reference 
    16 // translate() - Translates (moves) its child elements along the specified vector. The argument name is optional. 
    17 // difference() -  
     15wall_thickness = 10; 
    1816 
    19 // Cube   
    20 // Creates a cube at the origin of the coordinate system. When center is true the cube will be centered on the origin, otherwise it is created in the first octant. The argument names are optional if the arguments are given in the same order as specified in the parameters 
    21 // 
    22 // Parameters 
    23 // 
    24 // size  
    25 // v=Decimal or 3 value array. If a single number is given, the result will be a cube with sides of that length. If a 3 value array is given, then the values will correspond to the lengths of the X, Y, and Z sides. Default value is 1. 
    26 // 
    27 // center  
    28 // Boolean. This determines the positioning of the object. If true, object is centered at (0,0,0). Otherwise, the cube is placed in the positive quadrant with one corner at (0,0,0). Defaults to false 
     17mount_plate_thickness = 4; 
     18mount_plate_screw_clearance = 12; 
    2919 
    30 wall_thickness = 10; 
     20screw_hole_diameter = 1.75; 
     21screw_head_diameter = 4.20; 
     22screw_head_height = mount_plate_thickness / 4; 
    3123 
    3224// Left Wall 
     
    4941front_wall_y = wall_thickness; // 10 
    5042front_wall_z = 5; // 5 
     43 
     44// Mounting Platform 
     45mount_platform_x = switch_base_x + (wall_thickness * 2) + (mount_plate_screw_clearance * 2); 
     46mount_platform_y = switch_base_y + (wall_thickness * 2); 
     47mount_platform_z = mount_plate_thickness; 
    5148 
    5249 
     
    8077                        } 
    8178 
     79                        // Mount Plate 
     80                        translate(v=[0, 0, -(switch_base_z+mount_platform_z)/2]) { 
     81                                cube([mount_platform_x, mount_platform_y, mount_platform_z], center=true); 
     82                        } 
     83 
     84                } // union() 
     85 
     86                // Front Left Screw Hole 
     87                translate(v=[0,0,-(switch_base_z/2)-(mount_platform_z/2)-(mount_plate_thickness/2)]) 
     88                { 
     89                        cylinder(r=screw_hole_diameter,h=mount_plate_thickness); 
    8290                } 
    83         } 
     91                // Top Center Screw Head 
     92                translate(v=[0,0,-(switch_base_z/2)-screw_head_height]) 
     93                { 
     94                        cylinder(r=screw_head_diameter,h=screw_head_height); 
     95                } 
     96 
     97        } // difference() 
    8498} 
    8599 
    86100switch_mount(switch_base_x, switch_base_y, switch_base_z); 
    87101 
     102 
     103// Quick reference 
     104// translate() - Translates (moves) its child elements along the specified vector. The argument name is optional. 
     105// difference() -  
     106 
     107// Cube   
     108// Creates a cube at the origin of the coordinate system. When center is true the cube will be centered on the origin, otherwise it is created in the first octant. The argument names are optional if the arguments are given in the same order as specified in the parameters 
     109// 
     110// Parameters 
     111// 
     112// size  
     113// v=Decimal or 3 value array. If a single number is given, the result will be a cube with sides of that length. If a 3 value array is given, then the values will correspond to the lengths of the X, Y, and Z sides. Default value is 1. 
     114// 
     115// center  
     116// Boolean. This determines the positioning of the object. If true, object is centered at (0,0,0). Otherwise, the cube is placed in the positive quadrant with one corner at (0,0,0). Defaults to false 
Note: See TracChangeset for help on using the changeset viewer.