source: robotics/car/design/2014.06.13-Robotics-Stepper_Base-v1/2014-06-13-Robotics-Stepper_Base-v1.scad @ 7868465

Last change on this file since 7868465 was 7868465, checked in by Steve Castellotti <sc@…>, 8 years ago
  • screw holes added so that an inset is present to hide head of screw
  • Property mode set to 100644
File size: 3.1 KB
Line 
1// flower parts assmelby
2// all numbers are in mm
3
4// these variables control the stem
5stem_outer_diameter = 3.5;
6//stem_inner_diameter = 5;
7//stem_length = 150;
8
9// these variables control the servo base
10servo_length = 43;
11servo_width = 22;
12servo_depth = 45;
13servo_rot_center_offset = 22;
14servo_top_piece_heigt = 10;
15rim_size = 10;
16
17// generic wall thickness used on more or less all parts except the stem
18wall_thickness = 4;
19
20// used for the top flower part, basically should equal
21// the diameter of the base
22//bell_top_diameter = 50;
23
24
25// Code to generate the servo-base
26module base_plate(stem_outer_diameter,servo_length,servo_width,servo_depth,servo_rot_center_offset,servo_top_piece_heigt,rim_size,wall_thickness)
27{
28        difference(){
29                union(){
30                        translate(v=[stem_outer_diameter/2,0,wall_thickness/2]){
31                                cube([servo_depth+stem_outer_diameter,servo_length+2*rim_size,wall_thickness],center=true);
32                        }
33                        translate(v=[-servo_top_piece_heigt/2,servo_length/2+0.5*rim_size,servo_width/2]){
34                                cube([servo_depth-servo_top_piece_heigt,rim_size,servo_width],center=true);
35                        }
36                        translate(v=[-servo_top_piece_heigt/2,-servo_length/2-0.5*rim_size,servo_width/2]){
37                                cube([servo_depth-servo_top_piece_heigt,rim_size,servo_width],center=true);
38                        }
39                }
40                // Bottom Left Hole
41                translate(v=[servo_depth/2+1-servo_top_piece_heigt/2,-servo_rot_center_offset,0])
42                {
43                        cylinder(r=stem_outer_diameter/2,h=wall_thickness);
44                }
45                // Bottom Left Screw Hole
46                translate(v=[servo_depth/2+1-servo_top_piece_heigt/2,-servo_rot_center_offset,3])
47                {
48                        cylinder(r=stem_outer_diameter/1.5,h=wall_thickness/4);
49                }
50
51                // Bottom Right Hole
52                translate(v=[servo_depth/2+1-servo_top_piece_heigt/2,servo_rot_center_offset,0])
53                {
54                        cylinder(r=stem_outer_diameter/2,h=wall_thickness);
55                }
56                // Bottom Right Screw Hole
57                translate(v=[servo_depth/2+1-servo_top_piece_heigt/2,servo_rot_center_offset,3])
58                {
59                        cylinder(r=stem_outer_diameter/1.5,h=wall_thickness/4);
60                }
61
62                // Top Center Hole
63                translate(v=[servo_depth/2-servo_top_piece_heigt-40/2,0,0])
64                {
65                        cylinder(r=stem_outer_diameter/2,h=wall_thickness);
66                }
67                // Top Center Screw Head
68                translate(v=[servo_depth/2-servo_top_piece_heigt-40/2,0,3])
69                {
70                        cylinder(r=stem_outer_diameter/1.5,h=wall_thickness/4);
71                }
72
73        }
74}
75
76// we now arrange all the components so that they can be
77// printed simultainuously
78//translate(v=[0,-2*bell_top_diameter,0])
79//{
80//      bottom_cone(stem_outer_diameter,2*wall_thickness);
81//}
82//
83//translate(v=[-bell_top_diameter,-2*bell_top_diameter,0])
84//{
85//      bell(bell_top_diameter,stem_outer_diameter,wall_thickness);
86//}
87//
88//translate(v=[-1.25*bell_top_diameter,0,0])
89//{
90//      sub_bell(bell_top_diameter,stem_outer_diameter,wall_thickness);
91//}
92
93base_plate(stem_outer_diameter,servo_length,servo_width,servo_depth,servo_rot_center_offset,servo_top_piece_heigt,rim_size,wall_thickness);
94
95
96//translate(v=[-0.25*stem_length,servo_length,0])
97//{
98//      stem(stem_length,stem_outer_diameter,stem_inner_diameter);
99//}
100
101
102// shortened variant for Formlab printer
103//translate(v=[-0.25*stem_length,servo_length,0])
104//{
105//      stem(0.6*stem_length,stem_outer_diameter,stem_inner_diameter);
106//}
107
Note: See TracBrowser for help on using the repository browser.