/* default for use with cad modeling 25.4 mm in an inch [x, y z] */ //Global variables //X Axis Frame XSmRd=8/2; //x-axis smoothrod radius ((5/16)/2inches) XSpRd= 70; //distance between the two x-axis smooth rods (2.755905511811024inches) LXRd= 420; //Length of the x-axis smooth rod (16.53543307086614inches) translate([0,0,ZPosOfX]) color([1,1,0]) rotate([90,0,90]) cylinder(r=XSmRd, h=LXRd, $fn= 100); //lower smooth rod translate([0,0,ZPosOfX+XSpRd]) color([1,1,0]) rotate([90,0,90]) cylinder(r=XSmRd, h=LXRd, $fn= 100); //upper smooth rod translate([0,0,ZPosOfX+XSpRd/2]) color([1,.5,0]) rotate([90,90,0]) cube(size=[XSmRd, LXRd, XSmRd], $fn= 100); //Drive Spline shaft //Z axis ZSpRd= 30; //Spacing between Y rods ( 1.181102362204724inches) ZSpRdF= 10; // Spacing in front of x axis (rough number for now) ZPosOfX= LXRd*(2/3); //Postion of x axis realivative to the base //first batch translate([0,ZSpRdF, 0]) color([1,1,0]) rotate([0,0,90]) cylinder(r=XSmRd, h=LXRd, $fn= 100); //outside support smooth rod translate([ZSpRd,ZSpRdF, 0]) color([1,1,0]) rotate([0,0,90]) cylinder(r=XSmRd, h=LXRd, $fn= 100); //inside y drive rod //second batch translate([LXRd,ZSpRdF, -10]) color([1,1,0]) rotate([0,0,90]) cylinder(r=XSmRd, h=LXRd, $fn= 100); //outside support smooth rod translate([LXRd-ZSpRd,ZSpRdF, -10]) color([1,1,0]) rotate([0,0,90]) cylinder(r=XSmRd, h=LXRd, $fn= 100); //inside y drive rod //extruder base use use module Extruder_Platform() { translate([LXRd/2,3,ZPosOfX-15]) union() { //the whole extruder assembly difference () { //this is the extruder platform and its cutout translate([-15,-13,-12]) color([.4,.8,.9]) cube([XSpRd+8,5,XSpRd+55]); //platform translate([19,-5,48]) rotate([-90,0,-90]) cylinder(r=20, h= 9.5); //cutout } for(ExBr=[0:1], ExBr2=[0:1]) { //bearings and their spacing translate([ExBr*100/2, 0, ExBr2*(XSpRd+30)]) bearing(angle=[90,0,0], 608); } //Gear Drive translate([20,-5,48]) rotate([-90,0,-90]) color([.9,.9,.1]) gear(circular_pitch=400, gear_thickness = 5, rim_thickness = 5, hub_thickness = 7, circles=0); //Nozzle And Heater translate([22,-25,-20]) cylinder(r=10, h=40); //filiment color([1,1,1]) translate([22,-25,-40]) cylinder(r=1.5, h=200, $fn=30); }//end extruder assembly and union }//end Module Extruder_Platform Extruder_Platform(); //Right Hand Shaft drive stepper use module Drive_Shaft_Stepper(){ translate([LXRd,-2,ZPosOfX+32]) union() { rotate([-90,0,-90]) motor(Nema=17, length=17, dualAxis=true); difference () { color([0,0,0.5]) cube([5, 60, 60], center= true); rotate([90, 90, -90]) cylinder(r=5, h=5.01, center= true); } } // end union } //end Drive_Shaft_Stepper Drive_Shaft_Stepper();