// Roda para robô // Autor: Diógenes Rossi // Licença: MIT $fn=30; module furo(){ translate([-9,0,-8.5]) cylinder(8.5,3,2.25,center=true); translate([-9,0,-0.8]) cylinder(2.5,2.25,2.25,center=true); translate([-9,0,-8.5]) cylinder(12,1.25,1.25,center=true); } //e=espessura module roda(diametro, e) { raio=diametro/2; difference(){ difference(){ union(){ rotate(90,[1,0,0]) difference(){ cylinder(h=e*2,r=raio, center=true); cylinder(h=e*4,r=(raio*0.9),center=true); } for (j=[0:e*.9]){ translate([0,-j,0]) union(){ for (i=[0:9]){ rotate(i*36,[0,1,0]) translate([0,0,raio/2.1]) cylinder(raio,r1=e/2,r2=e/8,center=true); } } } } translate([0,e,0]) rotate(90,[1,0,0]) cylinder(h=e*2,r=raio*1.1, center=true); } rotate(90,[1,0,0]) translate([9,0,9]) furo(); } } module rodas(r1, r2, distancia, e) { roda(r1,e); translate([distancia-((r1+r2)/2),0,(r2-r1)/2]) roda(r2,e); } module fourWheels() { rodas(5,7,15); translate([0,6,0]) rodas(5,7,15); } //fourWheels(); //furo(); //rotate(90,[-1,0,0]) //roda(50,7); $fn=60; module miolo() { difference() { for (i=[0:11]) { translate([sin(i*30),cos(i*30),0]) rotate_extrude(convexity = 10) translate([1, 0, 0]) circle(r = 0.1); } translate([0,0,-.15]) cylinder(h=0.2,r=2.5, center=true); translate([0,0, .15]) cylinder(h=0.2,r=2.5, center=true); } } module aro() { //translate([0,0,-1.7]) scale([10,10,35]) miolo(); translate([0,0,-3.5]) rotate(90,[-1,0,0]) roda(50,7); difference() { cylinder(h=7,r=28, center=true); cylinder(h=9,r=20, center=true); rotate_extrude(convexity = 10) translate([27.5, 0, 0]) circle(r = 2.5); //translate([0, 0, 2.6]) //cylinder(h=5,r=30, center=true); } } aro();