Browse Source

added 12v buck adapater

abetusk 5 years ago
parent
commit
5e6db5db5c

+ 1 - 1
experiment/production/adapter-box/PopufareHousingCommon.scad

@@ -228,7 +228,7 @@ _POWER_CONNECTOR_DEPTH = 14.5;
 _POWER_USB_HOLE_DW = 9.11 + (15.11-9.11)/2;
 _POWER_USB_HOLE_R = 3/2;
 
-_PIU_BUCK_DW = (61.5+58.75)/2;
+_PIU_BUCK_DW = (61.5+48.75)/2;
 _PIU_BUCK_R = 6.75/2;
 
 _PIU_USB_HOLE_DW = 9.25 + (12.5-9.25)/2;

+ 2 - 2
experiment/production/adapter-box/PopufarePowerAdapterBottom.scad

@@ -25,8 +25,8 @@ module PopufarePowerAdapterBottomPlate() {
 
     // PIU buck converter screw holes
     //
-    translate([buck_cx-buck_dw/2, buck_cy]) circle(2*buck_r);
-    translate([buck_cx+buck_dw/2, buck_cy]) circle(2*buck_r);
+    //translate([buck_cx-buck_dw/2, buck_cy]) circle(2*buck_r);
+    //translate([buck_cx+buck_dw/2, buck_cy]) circle(2*buck_r);
 
     // housing holes
     //

+ 2 - 2
experiment/production/adapter-box/PopufarePowerAdapterMiddle.scad

@@ -25,8 +25,8 @@ module PopufarePowerAdapterMiddlePlate() {
 
     // PIU buck converter screw holes
     //
-    translate([buck_cx-buck_dw/2, buck_cy]) circle(2*buck_r);
-    translate([buck_cx+buck_dw/2, buck_cy]) circle(2*buck_r);
+    //translate([buck_cx-buck_dw/2, buck_cy]) circle(2*buck_r);
+    //translate([buck_cx+buck_dw/2, buck_cy]) circle(2*buck_r);
 
     // housing holes
     //

+ 2 - 2
experiment/production/adapter-box/PopufarePowerAdapterMiddleSupport.scad

@@ -30,8 +30,8 @@ module PopufarePowerAdapterMiddleSupportPlate() {
   
     // PIU buck converter screw holes
     //
-    translate([buck_cx-buck_dw/2, buck_cy]) circle(2*buck_r);
-    translate([buck_cx+buck_dw/2, buck_cy]) circle(2*buck_r);
+    //translate([buck_cx-buck_dw/2, buck_cy]) circle(2*buck_r);
+    //translate([buck_cx+buck_dw/2, buck_cy]) circle(2*buck_r);
 
     // housing holes
     //

+ 8 - 4
experiment/production/adapter-box/PopufarePowerAdapterTop.scad

@@ -20,13 +20,17 @@ module PopufarePowerAdapterTopPlate() {
 
   buck_dw = _PIU_BUCK_DW;
   buck_r = _PIU_BUCK_R;
-  buck_cx = 0;
+  buck_cx = _w/2 + 2*buck_r;
   buck_cy = -_h/12;
 
   difference() {
     union() {
       rounded_rect(_w, _h, _r);
-      translate([buck_cx,buck_cy]) rounded_rect(buck_dw + 5*buck_r, 5*buck_r, 2*buck_r);
+
+      translate([buck_cx-3*buck_r,buck_cy]) square([6*buck_r, buck_dw+5*buck_r], center=true);
+      translate([buck_cx,buck_cy])
+         rounded_rect(5*buck_r, buck_dw + 5*buck_r, 2*buck_r);
+         //rounded_rect(buck_dw + 5*buck_r, 5*buck_r, 2*buck_r);
     }
 
     // power connector access
@@ -35,8 +39,8 @@ module PopufarePowerAdapterTopPlate() {
 
     // buck converter screw holes
     //
-    translate([buck_cx-buck_dw/2, buck_cy]) circle(buck_r);
-    translate([buck_cx+buck_dw/2, buck_cy]) circle(buck_r);
+    translate([buck_cx, buck_cy - buck_dw/2 ]) circle(buck_r);
+    translate([buck_cx, buck_cy + buck_dw/2 ]) circle(buck_r);
 
     // housing holes
     //

+ 1 - 1
experiment/production/adapter-box/export/export-all

@@ -1,6 +1,6 @@
 #!/bin/bash
 
-VERSION=0.1.1
+VERSION=0.1.2
 
 function ngc_position {
   ifn="$1"