diff options
author | dakkar <dakkar@thenautilus.net> | 2020-08-21 09:31:41 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2020-08-21 09:31:41 +0100 |
commit | 9706d029df41a63761b9704c3510f21f2304b77f (patch) | |
tree | de4eb56570652a44ff01d805cb5140c2db4a3458 | |
parent | fix via size (diff) | |
download | lego-piano-9706d029df41a63761b9704c3510f21f2304b77f.tar.gz lego-piano-9706d029df41a63761b9704c3510f21f2304b77f.tar.bz2 lego-piano-9706d029df41a63761b9704c3510f21f2304b77f.zip |
factor resistors bank
-rw-r--r-- | 3d-print/controller.scad | 15 |
1 files 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 |