//nema fix plate library for 2d drawings /* notes sc= shaft clearance pd =pilot diameter pl = pilot length bd= bolt diameter s= bolt fixings square nema series is in inches, metricvalues maybe have errors, nem17 should have unc thread in motor plate depending on manufacturer. Best to check motor and adjust values as required. */ module nema_plate(sc,pd,pl,bd,s){ p=s/2; circle(d=pd); // translate([0,0,-pl])cylinder(h=pl*2,d=pd,true); //to pl*2 to stop z fighting // fix holes translate([p,p])circle(d=bd); translate([p,-p])circle(d=bd); translate([-p,p])circle(d=bd); translate([-p,-p])circle(d=bd); translate([0,0])circle(d=sc); echo("bolt holes diameter =",bd); print("bolt hole diameter = ",bd); } module nema23_fix( ){ echo("Nema23"); nema_plate( sc=7, pd=38.1, pl=1.5748, bd=5, s=47.1424 ); } module nema17_fix( ){ echo("Nema17"); nema_plate( sc=5.5, pd=22, pl=2.26, bd=4.4, s=30.988 ); } module nema34_fix( ){ echo("Nema34"); nema_plate( sc=10, pd=73.025, pl=1.5748, bd=5.6, s=69.596); } module nema42_fix( ){ echo("Nema42"); nema_plate( sc=18, pd=55.5244, pl=1.5748, bd=7.5, s=88.9 ); } nema34_fix();