From 904103f2f86ef85e423a656dfd40f0fce42881f9 Mon Sep 17 00:00:00 2001 From: Stephen Carpenter Date: Thu, 28 Dec 2023 11:18:05 -0500 Subject: [PATCH] Update to M3 --- terminal-3post.scad | 70 ++++++++++++++++++++++----------------------- 1 file changed, 34 insertions(+), 36 deletions(-) diff --git a/terminal-3post.scad b/terminal-3post.scad index 8759dfc..3dc8f28 100644 --- a/terminal-3post.scad +++ b/terminal-3post.scad @@ -1,5 +1,6 @@ include +use use use use @@ -8,10 +9,7 @@ use <./bobbin.scad> /* [Options] */ -PCB_Y = 100.80; -PCB_X = 100.30; -PCB_Z = 1.69; -PCB_CLR = 5; +Gap = 47; /* [Design] */ @@ -26,10 +24,15 @@ Mount_Y = 89.24; BOX_WALL = 1.5; +/* [Bolt Lengths] */ + +Bolt_Length = 16; +Bolt_Offset = 0; + /* [Render Options] */ -render_fs=.1; +render_fs=.3; render_fn=0; -render_fa=.1; +render_fa=.3; // Set Render Options $fs= ($preview) ? $fs : render_fs; @@ -37,43 +40,38 @@ $fn= ($preview) ? $fn : render_fn; $fa= ($preview) ? $fa : render_fa; zclear=2; +bolthead=7; module print_specs() { - echo("ZVS Module: QS2015004"); - echo("Input Voltage: 12-48V"); - echo("Max Current: 20A"); - echo("24V no load current: 3A"); - echo("48V no load current: 6A"); - echo("Caps .33uFx6 = 1.90 uF"); - - vpk = PI * V_IN; - opk = vpk*Turns_Ratio; - oac = opk/sqrt(2); - echo("Vpk = ", vpk, " volts"); - echo( "OutPk = ", opk," volts"); - echo( "OutVpp = ", 2*opk," volts"); - echo("RMS = ", oac, " volts"); } -module terminal(bl=12, bz=-12, align=V_BOTTOM, orient=ORIENT_Z) { +module terminal(bl=Bolt_Length, bz=Bolt_Offset-Bolt_Length, align=V_BOTTOM, orient=ORIENT_Z) { orient_and_align([5,5,5.56], orig_align=V_BOTTOM, align=align, orient=orient) { - thread_insertM25(bl=bl, bz=bz); + thread_insertM3(bl=bl, bz=bz); } } // print_specs(); +module terminal_mount(bl=Bolt_Length, bz=Bolt_Offset, be=2) { + basez=8; + difference() { + union() { + hull() xspread(n=3, l=Gap+bolthead) { + cyl(l=.4+bl+be, d=16,align=V_TOP); + } + cuboid([(Gap+bolthead+18),18,1],align=V_TOP); + } + up(bl+7+be) rotate([45,0,0]) fillet_mask_x(l=50,r=16,align=V_center); + xspread(n=2, l=Gap+bolthead) { + up(basez) cyl(l=bl, d=18,align=V_TOP); + terminal(bl=bl, align=V_TOP, orient=ORIENT_ZNEG, $die=true); + } + terminal(bl=bl, align=V_TOP, orient=ORIENT_ZNEG, $die=true); + up(basez)cuboid([18,18,bl],align=V_TOP); + } + xspread(n=3, l=Gap+bolthead) { + %terminal(bl=bl, align=V_TOP, orient=ORIENT_ZNEG); + } +} -difference() { - hull() xspread(n=3, l=50) { - cyl(l=16, d=16,align=V_TOP); - } - xspread(n=2, l=50) { - up(6) cyl(l=12, d=18,align=V_TOP); - terminal(align=V_TOP, orient=ORIENT_ZNEG, $die=true); - } - terminal(align=V_TOP, orient=ORIENT_ZNEG, $die=true); - up(6)cuboid([18,18,12],align=V_TOP); -} -xspread(n=3, l=50) { - %terminal(align=V_TOP, orient=ORIENT_ZNEG); -} +terminal_mount();