// // 28BYJ_48 5V Geared Stepper Motor Basic Mount // // Author : Steven Knudsen // // // Copyright : This work is licensed under a Creative Commons Attribution 4.0 International License. // include <28BYJ_48.scad> mountWidth = 50; // mm mountDepth = 28; // mm mountHeight = 20; // mm // 28BYJ_48_Mount // // @brief A simple block 28BYJ_48 motor mount // // @param throughHole If true, 3.5mm holes matching the motor mounting holes // are placed in the block. Otherwise, only 1.5 mm screw holes are made. // module 28BYJ_48_Mount(throughHole) { difference() { union() { translate([-mountWidth/2,-23,0]) cube([mountWidth,mountDepth,mountHeight]); color("red") { translate([17.5,0,0]) cylinder(r=1.75,h=mountHeight,$fn=50); translate([-17.5,0,0]) cylinder(r=1.75,h=mountHeight,$fn=50); } } if (throughHole == true) { color("black") { translate([17.5,0,-1]) cylinder(r=1.75,h=mountHeight+2,$fn=50); translate([-17.5,0,-1]) cylinder(r=1.75,h=mountHeight+2,$fn=50); } } else { color("blue") { translate([17.5,0,mountHeight/2]) cylinder(r=0.75,h=mountHeight/2+1, $fn=50); translate([-17.5,0,mountHeight/2]) cylinder(r=0.75,h=mountHeight/2+1, $fn=50); } } color("green") translate([-(20)/2,-18,19.3-16.7]) cube([20,8,18]); color("red") translate([-17/2,-29,12]) cube([17,12,9]); color("blue") translate([0,0,1.6]) cylinder(r=29/2,h=mountHeight,$fn=50); color("blue") translate([-29/2,0,1.6]) cube([29,10,mountHeight]); } } //28BYJ_48_Mount(true); //translate([0,0,1.6]) gearedMotor28BYJ_48();