// Trellis connectors // Category: Pots and plant support // Units: millimeters // Designed for customization. Edit the call at the bottom or common module parameters. // Default print assumptions: 0.4 mm nozzle, 0.20 mm layer, 3-4 walls, PETG where wet/structural. $fn=48; EPS=0.01; wall_default=2.4; clearance_default=0.35; module hollow_cyl(od=40,id=34,h=20){ difference(){ cylinder(d=od,h=h); translate([0,0,-EPS]) cylinder(d=id,h=h+2*EPS); } } module tube(od=12,id=8,h=30){ hollow_cyl(od,id,h); } module flange_tube(od=16,id=10,h=20,flange_d=28,flange_t=3){ union(){ cylinder(d=flange_d,h=flange_t); translate([0,0,flange_t]) hollow_cyl(od,id,h); } } module barb_tube(od=12,id=8,h=28){ difference(){ union(){ cylinder(d=od,h=h); for(z=[4:5:h-4]) translate([0,0,z]) cylinder(d1=od+2.2,d2=od,h=2.2); } translate([0,0,-EPS]) cylinder(d=id,h=h+2*EPS); } } module box_shell(w=70,d=50,h=25,wall=2.4,bottom=2.4){ difference(){ cube([w,d,h]); translate([wall,wall,bottom]) cube([w-2*wall,d-2*wall,h-bottom+EPS]); } } module tray(w=120,d=80,h=18,wall=2.4,bottom=2.4){ box_shell(w,d,h,wall,bottom); } module grid_plate(w=120,d=120,t=3,rib=4,cell=18){ union(){ for(x=[0:cell:w]) translate([min(x,w-rib),0,0]) cube([rib,d,t]); for(y=[0:cell:d]) translate([0,min(y,d-rib),0]) cube([w,rib,t]); } } module grid_box(w=80,d=60,h=50,rib=3,cell=15){ union(){ grid_plate(w,d,rib,rib,cell); translate([0,0,h-rib]) grid_plate(w,d,rib,rib,cell); for(x=[0:cell:w]) for(y=[0,d-rib]) translate([min(x,w-rib),y,0]) cube([rib,rib,h]); for(y=[0:cell:d]) for(x=[0,w-rib]) translate([x,min(y,d-rib),0]) cube([rib,rib,h]); } } module perforated_plate(w=100,d=100,t=3,hole=5,spacing=12){ difference(){ cube([w,d,t]); for(x=[spacing/2:spacing:w-spacing/2]) for(y=[spacing/2:spacing:d-spacing/2]) translate([x,y,-EPS]) cylinder(d=hole,h=t+2*EPS,$fn=24); } } module perforated_disk(d=90,t=3,hole=4,spacing=10){ difference(){ cylinder(d=d,h=t); for(x=[-d/2+spacing:spacing:d/2-spacing]) for(y=[-d/2+spacing:spacing:d/2-spacing]) if(x*x+y*y < (d/2-5)*(d/2-5)) translate([x,y,-EPS]) cylinder(d=hole,h=t+2*EPS,$fn=20); } } module tapered_pot(top_d=80,bottom_d=60,h=80,wall=2.4,bottom=2.4,drain=true){ difference(){ cylinder(d1=bottom_d,d2=top_d,h=h); translate([0,0,bottom]) cylinder(d1=max(1,bottom_d-2*wall),d2=max(1,top_d-2*wall),h=h-bottom+EPS); if(drain) for(a=[0:45:315]) rotate([0,0,a]) translate([bottom_d*0.22,0,-EPS]) cylinder(d=5,h=bottom+2*EPS,$fn=20); } } module net_pot(d=55,h=55,rib=3,rings=3){ union(){ cylinder(d=d*0.72,h=2.4); for(a=[0:30:330]) rotate([0,0,a]) hull(){ translate([d*0.32,0,0]) cube([rib,rib,2.4],center=true); translate([d*0.45,0,h]) cube([rib,rib,2.4],center=true); } for(z=[8:(h-12)/(rings-1):h-4]) translate([0,0,z]) difference(){ cylinder(d=d*(0.75+0.25*z/h),h=2.6); translate([0,0,-EPS]) cylinder(d=d*(0.75+0.25*z/h)-2*rib,h=2.6+2*EPS); } translate([0,0,h-4]) difference(){ cylinder(d=d+6,h=4); translate([0,0,-EPS]) cylinder(d=d-2,h=4+2*EPS); } } } module ring(d=80,t=4,h=4){ difference(){ cylinder(d=d,h=h); translate([0,0,-EPS]) cylinder(d=d-2*t,h=h+2*EPS); } } module c_clip(od=24,wall=3,h=10,gap=8){ difference(){ ring(od,wall,h); translate([-gap/2,0,-EPS]) cube([gap,od,h+2*EPS]); } } module u_clip(gap=10,wall=3,depth=15,width=12){ union(){ cube([wall,depth,width]); translate([gap+wall,0,0]) cube([wall,depth,width]); cube([gap+2*wall,wall,width]); } } module angle_bracket(a=35,b=35,w=24,t=4,hole=5){ difference(){ union(){ cube([a,w,t]); cube([t,w,b]); } for(x=[a*0.55]) translate([x,w/2,-EPS]) cylinder(d=hole,h=t+2*EPS,$fn=24); rotate([0,90,0]) translate([-b*0.55,w/2,-EPS]) cylinder(d=hole,h=t+2*EPS,$fn=24); } } module channel(len=150,w=35,h=20,wall=2.4){ union(){ cube([len,w,wall]); cube([len,wall,h]); translate([0,w-wall,0]) cube([len,wall,h]); } } module square_tube_socket(inner=25.8,wall=3,h=35){ difference(){ cube([inner+2*wall,inner+2*wall,h]); translate([wall,wall,-EPS]) cube([inner,inner,h+2*EPS]); } } module snap_tab(w=18,d=8,t=3){ union(){ cube([w,d,t]); translate([w-2,0,t]) cube([2,d,2]); } } module tile150(){ W=152.4; T=5; rib=4; cell=25; union(){ grid_plate(W,W,T,rib,cell); translate([W,52,0]) snap_tab(12,18,3); translate([W,102,0]) snap_tab(12,18,3); translate([52,W,0]) rotate([0,0,90]) snap_tab(12,18,3); translate([102,W,0]) rotate([0,0,90]) snap_tab(12,18,3); } } module wedge(w=70,d=50,h=10){ linear_extrude(height=d) polygon(points=[[0,0],[w,0],[w,h],[0,0]]); } module fan_housing(id=114.3,wall=3,h=16){ od=id+2*wall; difference(){ union(){ hollow_cyl(od,id,h); for(a=[45:90:315]) rotate([0,0,a]) translate([od/2-2,-12,0]) cube([18,24,5]); } for(a=[45:90:315]) rotate([0,0,a]) translate([od/2+7,0,-EPS]) cylinder(d=4.5,h=5+2*EPS,$fn=24); } } module fan_guard(d=114.3,t=3){ union(){ ring(d+8,4,t); for(a=[0:30:150]) rotate([0,0,a]) translate([-d/2, -1.5,0]) cube([d,3,t]); ring(24,3,t); } } module fan_stand(){ union(){ cube([90,60,5]); translate([10,27,5]) cube([70,6,75]); translate([45,30,80]) rotate([90,0,0]) hollow_cyl(28,20,12); } } module plate_mount(w=80,d=55,t=4,hole=5){ difference(){ cube([w,d,t]); for(x=[12,w-12]) for(y=[12,d-12]) translate([x,y,-EPS]) cylinder(d=hole,h=t+2*EPS,$fn=24); } } module duct_straight(id=75,wall=2.4,len=100){ rotate([0,90,0]) hollow_cyl(id+2*wall,id,len); } module elbow90(id=50,wall=2.4,r=45){ difference(){ rotate_extrude(angle=90,convexity=10) translate([r,0,0]) circle(d=id+2*wall,$fn=36); rotate_extrude(angle=90,convexity=10) translate([r,0,0]) circle(d=id,$fn=36); } } module reducer(id1=75,id2=50,wall=2.4,h=50){ difference(){ cylinder(d1=id1+2*wall,d2=id2+2*wall,h=h); translate([0,0,-EPS]) cylinder(d1=id1,d2=id2,h=h+2*EPS); } } module y_tube(id=16,wall=2.4,len=50,branch=38){ difference(){ union(){ rotate([0,90,0]) cylinder(d=id+2*wall,h=len); translate([len*0.45,0,0]) rotate([0,45,0]) cylinder(d=id+2*wall,h=branch); translate([len*0.45,0,0]) rotate([0,135,0]) cylinder(d=id+2*wall,h=branch); } union(){ translate([-EPS,0,0]) rotate([0,90,0]) cylinder(d=id,h=len+2*EPS); translate([len*0.45,0,0]) rotate([0,45,0]) cylinder(d=id,h=branch+EPS); translate([len*0.45,0,0]) rotate([0,135,0]) cylinder(d=id,h=branch+EPS); } } } module t_tube(id=12,wall=2.4,len=50,branch=35){ difference(){ union(){ rotate([0,90,0]) cylinder(d=id+2*wall,h=len); translate([len/2,0,0]) rotate([90,0,0]) cylinder(d=id+2*wall,h=branch); } union(){ translate([-EPS,0,0]) rotate([0,90,0]) cylinder(d=id,h=len+2*EPS); translate([len/2,0,0]) rotate([90,0,0]) cylinder(d=id,h=branch+EPS); } } } module hose_joiner(id=8,od=12,len=36){ rotate([0,90,0]) barb_tube(od,id,len); } module hose_elbow(id=8,od=12,r=18){ rotate([90,0,0]) difference(){ rotate_extrude(angle=90) translate([r,0,0]) circle(d=od,$fn=30); rotate_extrude(angle=90) translate([r,0,0]) circle(d=id,$fn=30); } } module manifold(n=6,id=6,main_id=14,wall=2.4,spacing=18){ L=(n-1)*spacing+24; difference(){ union(){ rotate([0,90,0]) cylinder(d=main_id+2*wall,h=L); for(i=[0:n-1]) translate([12+i*spacing,0,0]) rotate([90,0,0]) cylinder(d=id+2*wall,h=22); } union(){ translate([-EPS,0,0]) rotate([0,90,0]) cylinder(d=main_id,h=L+2*EPS); for(i=[0:n-1]) translate([12+i*spacing,0,0]) rotate([90,0,0]) cylinder(d=id,h=22+EPS); } } } module spray_bar(len=140,od=14,id=9,holes=10){ difference(){ rotate([0,90,0]) cylinder(d=od,h=len); translate([-EPS,0,0]) rotate([0,90,0]) cylinder(d=id,h=len+2*EPS); for(i=[1:holes]) translate([i*len/(holes+1),0,od/2-1]) cylinder(d=2,h=6,$fn=16); } } module shower_head(d=60,t=7,inlet_od=14,inlet_id=9){ difference(){ union(){ cylinder(d=d,h=t); translate([0,0,t]) hollow_cyl(inlet_od,inlet_id,18); } translate([0,0,2]) cylinder(d=d-6,h=t+EPS); for(x=[-18:9:18]) for(y=[-18:9:18]) if(x*x+y*y<20*20) translate([x,y,-EPS]) cylinder(d=2.2,h=4,$fn=16); } } module distribution_ring(d=90,rod=10,hole=2){ difference(){ rotate_extrude() translate([d/2,0,0]) circle(d=rod,$fn=24); rotate_extrude() translate([d/2,0,0]) circle(d=rod-4,$fn=24); for(a=[0:45:315]) rotate([0,0,a]) translate([d/2,0,-rod]) cylinder(d=hole,h=rod*2,$fn=16); } } module reservoir_lid(w=180,d=120,t=4,lip=8){ union(){ cube([w,d,t]); translate([3,3,-lip]) difference(){ cube([w-6,d-6,lip]); translate([2.5,2.5,-EPS]) cube([w-11,d-11,lip+2*EPS]); } } } module cradle(w=70,d=50,h=30,wall=4){ union(){ cube([w,d,wall]); cube([wall,d,h]); translate([w-wall,0,0]) cube([wall,d,h]); } } module strainer_cup(d=65,h=55,wall=2.5){ union(){ net_pot(d,h,3,3); translate([0,0,h]) ring(d+6,4,4); } } module funnel(top_d=80,out_od=16,out_id=10,h=50,wall=2.4){ difference(){ union(){ cylinder(d1=out_od+2*wall,d2=top_d,h=h); translate([0,0,-22]) hollow_cyl(out_od,out_id,22); } translate([0,0,wall]) cylinder(d1=out_id,d2=top_d-2*wall,h=h+EPS); } } module scrubber_body(d=152.4,h=101.6,wall=3){ difference(){ cylinder(d=d,h=h); translate([0,0,3]) cylinder(d=d-2*wall,h=h); } translate([d/2-4,0,55]) rotate([0,90,0]) flange_tube(24,18,25,34,4); translate([-d/2+4,0,22]) rotate([0,-90,0]) flange_tube(20,14,25,30,4); } module lid_disc(d=152.4,t=5,lip=8,clear=0.4){ union(){ cylinder(d=d+6,h=t); translate([0,0,-lip]) difference(){ cylinder(d=d-2*clear,h=lip); translate([0,0,-EPS]) cylinder(d=d-6,h=lip+2*EPS); } } } module baffle_trap(w=100,d=70,h=45,wall=2.4){ union(){ tray(w,d,h,wall,wall); for(x=[w/3,2*w/3]) translate([x,wall,wall]) cube([wall,d-2*wall,h*0.65]); } } module waterfall_tray(w=110,d=70,h=22,lip=15){ union(){ tray(w,d,h,2.4,2.4); translate([w-2.4,d/3,0]) cube([lip,d/3,2.4]); } } module rack_frame(w=160,d=100,h=120,bar=8){ union(){ for(x=[0,w-bar]) for(y=[0,d-bar]) translate([x,y,0]) cube([bar,bar,h]); for(z=[0,h-bar]) { translate([0,0,z]) cube([w,bar,bar]); translate([0,d-bar,z]) cube([w,bar,bar]); translate([0,0,z]) cube([bar,d,bar]); translate([w-bar,0,z]) cube([bar,d,bar]); } } } module plant_stake(h=180,d=8){ union(){ cylinder(d=d,h=h,$fn=24); cylinder(d1=12,d2=1,h=18,$fn=24); } } module cage(d=120,h=150,rod=4){ union(){ for(a=[0:60:300]) rotate([0,0,a]) translate([d/2,0,0]) cylinder(d=rod,h=h,$fn=20); for(z=[12,h/2,h-8]) translate([0,0,z]) ring(d+rod,rod,rod); } } module divider_panel(w=200,h=200,t=4,cell=30){ rotate([90,0,0]) grid_plate(w,h,t,4,cell); } module slotted_foot(slot=4.5,w=50,d=50,h=22){ difference(){ hull(){ cube([w,d,5]); translate([w/2-12,d/2-8,0]) cube([24,16,h]); } translate([w/2-slot/2,d/2-10,5]) cube([slot,20,h]); } } module corner_slot(slot=4.5,h=40,wall=4){ union(){ u_clip(slot,wall,20,h); rotate([0,0,90]) u_clip(slot,wall,20,h); } } module simple_hinge(w=60,h=35,t=4,pin=4){ union(){ cube([w/2-3,h,t]); translate([w/2+3,0,0]) cube([w/2-3,h,t]); for(y=[5,20]) translate([w/2-3,y,t]) rotate([0,90,0]) hollow_cyl(pin+4,pin+0.5,6); translate([w/2+3,12.5,t]) rotate([0,90,0]) hollow_cyl(pin+4,pin+0.5,6); translate([w+8,0,0]) cylinder(d=pin,h=h-4,$fn=24); } } module magnet_connector(d=18,h=8,pocket=10.4,pdepth=3.2){ difference(){ cylinder(d=d,h=h); translate([0,0,h-pdepth]) cylinder(d=pocket,h=pdepth+EPS,$fn=32); } } module table_corner(inner=25.8,wall=3,len=38){ union(){ square_tube_socket(inner,wall,len); translate([inner/2+wall,inner/2+wall,len-6]) rotate([0,90,0]) translate([-inner/2-wall,-inner/2-wall,0]) square_tube_socket(inner,wall,len); } } module table_T(inner=25.8,wall=3,len=35){ union(){ square_tube_socket(inner,wall,len); translate([inner/2+wall,inner/2+wall,len/2]) rotate([0,90,0]) translate([-inner/2-wall,-inner/2-wall,-len/2]) square_tube_socket(inner,wall,len); } } module leveling_foot(stem=10,foot=45,h=18){ difference(){ union(){ cylinder(d=foot,h=6); translate([0,0,6]) cylinder(d=stem+8,h=h-6); } translate([0,0,4]) cylinder(d=stem,h=h,$fn=28); } } module bottle_holder(d=70,h=25,wall=4){ union(){ ring(d+2*wall,wall,h); translate([-d/2-wall,-18,0]) cube([d+2*wall,18,5]); } } module tool_rack(w=150,h=45,t=5,slots=8){ difference(){ cube([w,h,t]); for(i=[1:slots]) translate([i*w/(slots+1),h/2,-EPS]) cylinder(d=10,h=t+2*EPS,$fn=24); } } module hose_rack(w=100,d=55,t=6){ difference(){ cube([w,d,t]); translate([w/2,d*0.62,-EPS]) cylinder(d=48,h=t+2*EPS,$fn=40); } } module cable_rack(w=100,d=35,t=5,slots=8){ difference(){ cube([w,d,t]); for(i=[1:slots]) translate([i*w/(slots+1)-2,d/2,-EPS]) cube([4,d/2+EPS,t+2*EPS]); } } module bin(w=100,d=80,h=55,wall=2.4){ difference(){ cube([w,d,h]); translate([wall,wall,wall]) cube([w-2*wall,d-2*wall,h]); translate([w*0.25,-EPS,h*0.6]) cube([w*0.5,wall+2*EPS,h*0.4+EPS]); } } module peg_hook(board_hole=6.2,spacing=25.4,hook=40){ union(){ rotate([90,0,0]) cylinder(d=board_hole,h=8,$fn=24); translate([spacing,0,0]) rotate([90,0,0]) cylinder(d=board_hole,h=8,$fn=24); translate([0,-8,-3]) cube([spacing+hook,6,6]); translate([spacing+hook-6,-8,-3]) cube([6,18,6]); } } module electronics_box(w=100,d=75,h=35,wall=2.4){ union(){ difference(){ cube([w,d,h]); translate([wall,wall,wall]) cube([w-2*wall,d-2*wall,h]); } translate([w+10,0,0]) difference(){ cube([w,d,4]); for(x=[8,w-8]) for(y=[8,d-8]) translate([x,y,-EPS]) cylinder(d=3.5,h=4+2*EPS,$fn=20); } } } module probe_holder(probe=12,plate=45){ difference(){ union(){ cube([plate,25,4]); translate([plate/2,12.5,4]) hollow_cyl(probe+7,probe+0.5,18); } for(x=[7,plate-7]) translate([x,12.5,-EPS]) cylinder(d=4,h=4+2*EPS,$fn=20); } } module camera_mount(){ union(){ angle_bracket(45,45,30,4,5); translate([20,15,4]) cylinder(d=26,h=4); translate([20,15,8]) cylinder(d=8,h=8); } } module cable_gland(body=20,hole=8,h=18){ difference(){ union(){ cylinder(d=body,h=h,$fn=6); translate([0,0,h]) cylinder(d=body-4,h=8); } translate([0,0,-EPS]) cylinder(d=hole,h=h+9); } } module brush_body(w=90,d=35,h=10,fins=12){ union(){ cube([w,d,h]); for(i=[1:fins]) translate([i*w/(fins+1)-1,5,-10]) cube([2,d-10,10]); translate([w,10,2]) cube([70,15,6]); } } module scoop(bowl=45,depth=18,handle=70){ union(){ difference(){ cylinder(d=bowl,h=depth); translate([0,0,3]) cylinder(d=bowl-5,h=depth); translate([-bowl/2,0,3]) cube([bowl,bowl/2,depth]); } translate([bowl/2-3,-6,4]) cube([handle,12,5]); } } module funnel_set(){ translate([0,0,0]) funnel(45,12,8,35,2); translate([60,0,0]) funnel(65,16,10,45,2.4); translate([140,0,0]) funnel(85,20,14,55,2.6); } module qr_plate(w=60,h=40,t=2.4){ union(){ cube([w,h,t]); translate([0,0,t]) difference(){ cube([w,h,1.2]); for(x=[5:10:w-5]) for(y=[5:10:h-5]) if(((floor(x/10)+floor(y/10))%3)==0) translate([x-2,y-2,0]) cube([4,4,1.2]); } } } // MODEL union(){ rotate([90,0,0]) hollow_cyl(14,8.5,20); rotate([0,90,0]) hollow_cyl(14,8.5,20); }