//Model of Persistance of vision robot // Motors 8x16mm // //Copyright D Commons 2014 // module POV_Bot() { difference(){ union(){ difference(){ union(){ //Define rounded corner body translate([0,2,4])cube([22,146,5]); //lower body translate([2,0,4])cube([18,150,5]); //lower body translate([0,2,0])cube([22,13,9]); //upper body translate([2,0,0])cube([18,17,9]); //upper body translate([2,15,0])cylinder(h=9,r= 2,$fn=100); //upper inside corner translate([20,15,0])cylinder(h=9,r= 2,$fn=100); //upper inside corner translate([2,2,0])cylinder(h=9,r= 2,$fn=100); //corner translate([20,2,0])cylinder(h=9,r= 2,$fn=100); //corner translate([2,148,4])cylinder(h=5,r= 2,$fn=100); //corner translate([20,148,4])cylinder(h=5,r= 2,$fn=100); //corner } //Hollow out the body features translate([-0.01,-0.01,-0.01])cube([5,20,4.01]); //clip upper motor support translate([17.01,-0.01,-0.01])cube([5,20,4.01]); //clip upper motor support translate([1,28,-0.01])cube([20,32,8]); //battery translate([3,59.5,-0.01])cube([3,3,8]); //battery wires translate([1,62,-0.01])cube([17.2,48,8]); //Charger translate([-0.01,69,-0.01])cube([4,8.5,8]); //USB translate([-0.01,90,-0.01])cube([4,6,8]); //Switch translate([11,144,-0.01])cylinder(h=10,r= 4,$fn=100);//axle translate([11,16,4.051])rotate([90,0,0])cylinder(h=17,r= 4.05,$fn=100);//motor 8mm translate([6.99,-0.01,-0.01])cube([8.1,16.01,4.06]); //motor square cutout } //Flatten the motor edge translate([6.99,-0.01,6])cube([8.1,16,2.1]); //6mm motor edge } translate([8,15,-0.01])cylinder(h=10,r= 1,$fn=100); //motor wires translate([14,15,-0.01])cylinder(h=10,r= 1,$fn=100); //motor wires translate([4,100,-0.01])cylinder(h=10,r= 1,$fn=100); //VCC wire translate([17,100,-0.01])cylinder(h=10,r= 1,$fn=100); //GND wire translate([11-5,20,-0.01])cube([10,6,8]); //IR sensor translate([11-2.5,21.5,-0.01])cylinder(h=10,r= 1,$fn=100); //IR wire translate([11+2.5,21.5,-0.01])cylinder(h=10,r= 1,$fn=100); //IR wire translate([11-2.5,24.5,-0.01])cylinder(h=10,r= 1,$fn=100); //IR wire translate([11+2.5,24.5,-0.01])cylinder(h=10,r= 1,$fn=100); //IR wire } } rotate([0,180,0])POV_Bot();