module motor(){
color([0.5,0.5,0.5])rotate([90,0,0])	union(){
translate([0,0,-2]) cylinder(h=38, r=1,$fn=100);
translate([0,0,-1]) cylinder(h=29, r=3,$fn=100);
cylinder(h=26, r=8,$fn=100);
cylinder(h=22, r=11,$fn=100);
translate([8,0,-2])cube([0.2,3,5],center =true) ;
translate([-8,0,-2])cube([0.2,3,5],center =true) ;
	}}
module pila (){
color([0,0.4,1])
hull(){
	translate([20,0,0])cylinder(h=63.5, r=10.8);
	translate([-20,0,0])cylinder(h=63.5, r=10.8);
}
color([0.5,0.5,0.5])translate([18,0,64])cube([20,6,1],center=true);
color([0.5,0.5,0.5])translate([-13,0,64])cube([30,6,1],center=true);
}
module polea(){
   rotate([-90,0,0]){
color([0.9,0.5,0]){
translate([0,0,-3])cylinder(h=3, r=25, center=true);
translate([0,0,3])cylinder(h=3, r=25, center=true);
cylinder(h=4, r1=25,r2=22, center=true);
cylinder(h=4, r1=22,r2=25, center=true);
}
color([0.5,0.5,0.5]){
cylinder(h=70, r=2, $fn=20);
translate([0,0,-7])cylinder(h=2.5, r=3.5, $fn=20);	
translate([0,0,4])cylinder(h=2.5, r=3.5, $fn=6);
}
}
}
module tornillo(l){
color([0.5,0.5,0.5]){
cylinder(h=l, r=2, $fn=20);
translate([0,0,0])cylinder(h=2.5, r=3.5, $fn=20);	
}
}
module tuerca(){
color([0.5,0.5,0.5])difference(){
cylinder(h=2.5, r=3.5, $fn=6, center=true);
cylinder(h=5, r=2, $fn=20, center=true);
}
}

