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

Last change on this file since 04b7757 was 04b7757, checked in by Steve Castellotti <sc@…>, 8 years ago
  • mounting plate added
  • Property mode set to 100644
File size: 3.4 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
17stepper_lip = 22;
18stepper_mount_plate_height = (servo_length - stepper_lip) / 2 ; //10.5
19stepper_mount_plate_thickness = 6;
20
21// generic wall thickness used on more or less all parts except the stem
22wall_thickness = 4;
23
24// used for the top flower part, basically should equal
25// the diameter of the base
26//bell_top_diameter = 50;
27
28
29// Code to generate the servo-base
30module base_plate(stem_outer_diameter,servo_length,servo_width,servo_depth,servo_rot_center_offset,servo_top_piece_heigt,rim_size,wall_thickness)
31{
32        difference(){
33                union(){
34                        // Floor
35                        translate(v=[stem_outer_diameter/2,0,wall_thickness/2]){
36                                cube([servo_depth+stem_outer_diameter,servo_length+2*rim_size,wall_thickness],center=true);
37                        }
38
39                        // Right wall
40                        translate(v=[-servo_top_piece_heigt/2,servo_length/2+0.5*rim_size,servo_width/2]){
41                                cube([servo_depth-servo_top_piece_heigt,rim_size,servo_width],center=true);
42                        }
43
44                        // Left wall
45                        translate(v=[-servo_top_piece_heigt/2,-servo_length/2-0.5*rim_size,servo_width/2]){
46                                cube([servo_depth-servo_top_piece_heigt,rim_size,servo_width],center=true);
47                        }
48
49                        // Stepper Mounting Plate (Bottom)
50                        translate(v=[-19.5,0,stepper_mount_plate_height/2]){
51                                cube([stepper_mount_plate_thickness,50,stepper_mount_plate_height],center=true);
52                        }
53
54                }
55                // Bottom Left Hole
56                translate(v=[servo_depth/2+1-servo_top_piece_heigt/2,-servo_rot_center_offset,0])
57                {
58                        cylinder(r=stem_outer_diameter/2,h=wall_thickness);
59                }
60                // Bottom Left Screw Hole
61                translate(v=[servo_depth/2+1-servo_top_piece_heigt/2,-servo_rot_center_offset,3])
62                {
63                        cylinder(r=stem_outer_diameter/1.2,h=wall_thickness/4);
64                }
65
66                // Bottom Right Hole
67                translate(v=[servo_depth/2+1-servo_top_piece_heigt/2,servo_rot_center_offset,0])
68                {
69                        cylinder(r=stem_outer_diameter/2,h=wall_thickness);
70                }
71                // Bottom Right Screw Hole
72                translate(v=[servo_depth/2+1-servo_top_piece_heigt/2,servo_rot_center_offset,3])
73                {
74                        cylinder(r=stem_outer_diameter/1.2,h=wall_thickness/4);
75                }
76
77                // Top Center Hole
78                translate(v=[servo_depth/2-servo_top_piece_heigt-40/2,0,0])
79                {
80                        cylinder(r=stem_outer_diameter/2,h=wall_thickness);
81                }
82                // Top Center Screw Head
83                translate(v=[servo_depth/2-servo_top_piece_heigt-40/2,0,3])
84                {
85                        cylinder(r=stem_outer_diameter/1.2,h=wall_thickness/4);
86                }
87
88        }
89}
90
91// we now arrange all the components so that they can be
92// printed simultainuously
93//translate(v=[0,-2*bell_top_diameter,0])
94//{
95//      bottom_cone(stem_outer_diameter,2*wall_thickness);
96//}
97//
98//translate(v=[-bell_top_diameter,-2*bell_top_diameter,0])
99//{
100//      bell(bell_top_diameter,stem_outer_diameter,wall_thickness);
101//}
102//
103//translate(v=[-1.25*bell_top_diameter,0,0])
104//{
105//      sub_bell(bell_top_diameter,stem_outer_diameter,wall_thickness);
106//}
107
108base_plate(stem_outer_diameter,servo_length,servo_width,servo_depth,servo_rot_center_offset,servo_top_piece_heigt,rim_size,wall_thickness);
109
110
111//translate(v=[-0.25*stem_length,servo_length,0])
112//{
113//      stem(stem_length,stem_outer_diameter,stem_inner_diameter);
114//}
115
116
117// shortened variant for Formlab printer
118//translate(v=[-0.25*stem_length,servo_length,0])
119//{
120//      stem(0.6*stem_length,stem_outer_diameter,stem_inner_diameter);
121//}
122
Note: See TracBrowser for help on using the repository browser.