From 9706d029df41a63761b9704c3510f21f2304b77f Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 21 Aug 2020 09:31:41 +0100 Subject: factor resistors bank --- 3d-print/controller.scad | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/3d-print/controller.scad b/3d-print/controller.scad index f50425e..585f19b 100644 --- a/3d-print/controller.scad +++ b/3d-print/controller.scad @@ -24,6 +24,11 @@ module wire_pack() { } } +module resistors() { + wire_pack(); + translate([10,0,0]) wire_pack(); +} + difference() { union() { cube([40,80,1.25]); @@ -36,16 +41,14 @@ difference() { // rows // row output pins wired here - translate([5,36,0]) wire_pack(); // 220Ω between these - translate([15,36,0]) wire_pack(); - // these go to pins 3 of each qrd1114 + // then to pins 3 of each qrd1114 + translate([5,36,0]) resistors(); // same output pins wired here - translate([25,36,0]) wire_pack(); // 10k0Ω between these - translate([35,36,0]) wire_pack(); - // these go to pins 1 of each qrd1114 + // then to pins 1 of each qrd1114 + translate([25,36,0]) resistors(); // columns: ouput pins directly to pins 2&4 of each qrd1114 -- cgit v1.2.3