chiark
/
gitweb
/
~ianmdlvl
/
reprap-play.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
air-hockey-puck: wip
[reprap-play.git]
/
adafruit-powerboost-500.scad
diff --git
a/adafruit-powerboost-500.scad
b/adafruit-powerboost-500.scad
index 09bf4fa7e70c7c075c9f70679c8014caed8f07db..d10002e26b68caa1e9e5ce68a37f39989a1cd21b 100644
(file)
--- a/
adafruit-powerboost-500.scad
+++ b/
adafruit-powerboost-500.scad
@@
-1,14
+1,10
@@
// -*- C -*-
// -*- C -*-
-psu_sz
= [ 21.7, 36.0 ] + [ 0.25, 0.25
];
+psu_sz
_nom = [ 21.59, 35.56
];
+//// toplevels-from:
include <adafruit-powerboost-common.scad>
include <adafruit-powerboost-common.scad>
-psu_hole_pos = [ 2.05, // from back edge of psu_sz[0]
- 0.55 * 0.5 * 25.4, // from centreline
- ];
-
-psu_baffle_gap = 1.0 + 0.5;
psu_baffle_cnr_y = 7.45; // from connector end
psu_baffle_th = [ 0.8, 3.5 ];
psu_usbend_led_x = 4.5;
psu_baffle_cnr_y = 7.45; // from connector end
psu_baffle_th = [ 0.8, 3.5 ];
psu_usbend_led_x = 4.5;
@@
-33,15
+29,21
@@
module PsuLedBafflePlan(){
}
}
}
}
+module PsuLedLegendsPlan(){
+}
+
module PsuLedWindowsPlanCore(){
difference(){
union(){
module PsuLedWindowsPlanCore(){
difference(){
union(){
+ // Two LEDs incl "Chrg", one side of inlet connector
AtPsuMountCorner(1,0) {
rectfromto([ -(psu_board_support_wall + 0.1),
+psu_usbend_led_x ],
[ psu_sz[0]/2,
+psu_usbend_led_depth ]);
}
AtPsuMountCorner(1,0) {
rectfromto([ -(psu_board_support_wall + 0.1),
+psu_usbend_led_x ],
[ psu_sz[0]/2,
+psu_usbend_led_depth ]);
}
+
+ // One LED, "Low", other side of inlet connector
AtPsuMountCorner(0,0) {
sz = psu_baffle_cnr_y - psu_board_support_wall - psu_baffle_th[0];
translate([0, psu_baffle_cnr_y])
AtPsuMountCorner(0,0) {
sz = psu_baffle_cnr_y - psu_board_support_wall - psu_baffle_th[0];
translate([0, psu_baffle_cnr_y])
@@
-50,6
+52,8
@@
module PsuLedWindowsPlanCore(){
[ psu_sz[0]/2,
+sz/2 ]);
}
[ psu_sz[0]/2,
+sz/2 ]);
}
+
+ // One LED, PWR, near outlet USB pads
AtPsuMountCorner(0,1){
rectfromto([0,0],
[psu_sz[0]/2 - psu_hole_pos[1] - psu_hole_dia/2,
AtPsuMountCorner(0,1){
rectfromto([0,0],
[psu_sz[0]/2 - psu_hole_pos[1] - psu_hole_dia/2,