source: robotics/car/design/2014.06.12-Robotics-Servo_Base-v2/2014-06-12-Robotics-Servo_Base-v2.scad @ 04b7757

Last change on this file since 04b7757 was 18a0139, checked in by Steve Castellotti <sc@…>, 8 years ago
  • Servo base for brake
  • Property mode set to 100644
File size: 2.6 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 = 42;
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
22bell_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 Right Hole
46                translate(v=[servo_depth/2+1-servo_top_piece_heigt/2,servo_rot_center_offset,0])
47                {
48                        cylinder(r=stem_outer_diameter/2,h=wall_thickness);
49                }
50                // Top Hole
51                translate(v=[servo_depth/2-servo_top_piece_heigt-40/2,0,0])
52                {
53                        cylinder(r=stem_outer_diameter/2,h=wall_thickness);
54                }
55
56        }
57}
58
59// we now arrange all the components so that they can be
60// printed simultainuously
61//translate(v=[0,-2*bell_top_diameter,0])
62//{
63//      bottom_cone(stem_outer_diameter,2*wall_thickness);
64//}
65//
66//translate(v=[-bell_top_diameter,-2*bell_top_diameter,0])
67//{
68//      bell(bell_top_diameter,stem_outer_diameter,wall_thickness);
69//}
70//
71//translate(v=[-1.25*bell_top_diameter,0,0])
72//{
73//      sub_bell(bell_top_diameter,stem_outer_diameter,wall_thickness);
74//}
75
76base_plate(stem_outer_diameter,servo_length,servo_width,servo_depth,servo_rot_center_offset,servo_top_piece_heigt,rim_size,wall_thickness);
77
78
79//translate(v=[-0.25*stem_length,servo_length,0])
80//{
81//      stem(stem_length,stem_outer_diameter,stem_inner_diameter);
82//}
83
84
85// shortened variant for Formlab printer
86//translate(v=[-0.25*stem_length,servo_length,0])
87//{
88//      stem(0.6*stem_length,stem_outer_diameter,stem_inner_diameter);
89//}
90
Note: See TracBrowser for help on using the repository browser.