Update to M3

This commit is contained in:
2023-12-28 11:18:05 -05:00
parent a8bc5b04b6
commit 904103f2f8

View File

@@ -1,5 +1,6 @@
include <BOSL/constants.scad> include <BOSL/constants.scad>
use <BOSL/masks.scad>
use <BOSL/transforms.scad> use <BOSL/transforms.scad>
use <BOSL/shapes.scad> use <BOSL/shapes.scad>
use <BOSL/joiners.scad> use <BOSL/joiners.scad>
@@ -8,10 +9,7 @@ use <./bobbin.scad>
/* [Options] */ /* [Options] */
PCB_Y = 100.80; Gap = 47;
PCB_X = 100.30;
PCB_Z = 1.69;
PCB_CLR = 5;
/* [Design] */ /* [Design] */
@@ -26,10 +24,15 @@ Mount_Y = 89.24;
BOX_WALL = 1.5; BOX_WALL = 1.5;
/* [Bolt Lengths] */
Bolt_Length = 16;
Bolt_Offset = 0;
/* [Render Options] */ /* [Render Options] */
render_fs=.1; render_fs=.3;
render_fn=0; render_fn=0;
render_fa=.1; render_fa=.3;
// Set Render Options // Set Render Options
$fs= ($preview) ? $fs : render_fs; $fs= ($preview) ? $fs : render_fs;
@@ -37,43 +40,38 @@ $fn= ($preview) ? $fn : render_fn;
$fa= ($preview) ? $fa : render_fa; $fa= ($preview) ? $fa : render_fa;
zclear=2; zclear=2;
bolthead=7;
module print_specs() { 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) { 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(); print_specs();
module terminal_mount(bl=Bolt_Length, bz=Bolt_Offset, be=2) {
basez=8;
difference() { difference() {
hull() xspread(n=3, l=50) { union() {
cyl(l=16, d=16,align=V_TOP); hull() xspread(n=3, l=Gap+bolthead) {
cyl(l=.4+bl+be, d=16,align=V_TOP);
} }
xspread(n=2, l=50) { cuboid([(Gap+bolthead+18),18,1],align=V_TOP);
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(bl+7+be) rotate([45,0,0]) fillet_mask_x(l=50,r=16,align=V_center);
up(6)cuboid([18,18,12],align=V_TOP); 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);
} }
xspread(n=3, l=50) { terminal(bl=bl, align=V_TOP, orient=ORIENT_ZNEG, $die=true);
%terminal(align=V_TOP, orient=ORIENT_ZNEG); up(basez)cuboid([18,18,bl],align=V_TOP);
} }
xspread(n=3, l=Gap+bolthead) {
%terminal(bl=bl, align=V_TOP, orient=ORIENT_ZNEG);
}
}
terminal_mount();