SACC

/ / navigation

Code

Servo Wheels and Base



Here is the OpenSCAD code for the wheels:
 $fn=64;
//User Adjustable Parameters
wheelDiameter=60;
servoD1=8.82;
servoWheelThickness=7.47;
servoHoleD=4;
rubberband=3;


servoWheel();
module servoWheel(){

    difference(){
        union(){
            cylinder(r=wheelDiameter/2, h=(servoWheelThickness-rubberband)/2);
            translate([0,0,(servoWheelThickness-rubberband)/2])
            cylinder(r=wheelDiameter/2-.5, h=rubberband);
            translate([0,0,(servoWheelThickness-rubberband)/2+rubberband])
            cylinder(r=wheelDiameter/2, h=(servoWheelThickness-rubberband)/2);
        }
    
        translate([0,0,-.1])
        cylinder(r=wheelDiameter/2-10, h=(servoWheelThickness-rubberband)/2);
        cylinder(r=servoHoleD/2, h=servoWheelThickness);

    }
    
    
}
base();
base();
module base(){
    difference(){
        union(){

            cube([baseWidth,baseLength,baseHeight], center=true);
            translate([baseWidth/2, -2,0 ])
            cube([6, 58,baseHeight],center=true);
            translate([-baseWidth/2, -2,0 ])
            cube([6,58,baseHeight],center=true);
        }
        translate([baseWidth/3-5, baseLength/2-5,0 ])
        cube([5,10,rubberband],center=true);
        translate([(-baseWidth/3)+5, baseLength/2-5,0 ])
        cube([5,10,rubberband],center=true);
    }
}