diff options
author | dakkar <dakkar@thenautilus.net> | 2020-08-20 16:19:29 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2020-08-20 16:19:29 +0100 |
commit | 33a2af7c697cc21a37e73907d725f3caec217057 (patch) | |
tree | 33188808bc0726f237a75a1117a8f6ef2fc93ad5 /wiring.rst.txt | |
parent | just submodule, it's easier (diff) | |
download | lego-piano-33a2af7c697cc21a37e73907d725f3caec217057.tar.gz lego-piano-33a2af7c697cc21a37e73907d725f3caec217057.tar.bz2 lego-piano-33a2af7c697cc21a37e73907d725f3caec217057.zip |
the other board
Diffstat (limited to 'wiring.rst.txt')
-rw-r--r-- | wiring.rst.txt | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/wiring.rst.txt b/wiring.rst.txt new file mode 100644 index 0000000..9280536 --- /dev/null +++ b/wiring.rst.txt @@ -0,0 +1,41 @@ +25 sensors + +5 rows × 5 columns + +pins (`see SparkFun`_):: + + 14 + 23 + +1. phototransistor collector, to pull-up for row +2. phototransistor emitter, to ground for column +3. led anode, to limiter for row +4. led cathode, to ground for column + +so… + +:: + + aM aM aM aM aM cN cN cN cN cN + 14 14 14 14 14 14 14 14 14 14 … + 23 23 23 23 23 23 23 23 23 23 … + Mb Mb Mb Mb Mb Nd Nd Nd Nd Nd + + + /---------- input1 + a -+-10kΩ--+- output1 + b ---220Ω--/ + + /---------- input2 + c -+-10kΩ--+- output2 + d ---220Ω--/ + + … + … + + M ------------ output6 + N ------------ output7 + + +.. `see SparkFun`: + https://learn.sparkfun.com/tutorials/qrd1114-optical-detector-hookup-guide/all |