Hello everyone !
I recently built a ir phototransistor matrix/strip with this general layout for each smallest element (2*2):
This worked really well, , i even expanded to 2*3 , got analogic multiplexing working (with a 4051) etc.
Now the problem is , i am trying to build a bigger matrix (at least 5*5 for starters), and the wiring of the whole thing is a mess !
-in the current setup , i used a common emitter amplifier configuration (the only one i knew of until recently) and so for EACH phototransistor i need :
- one 10k ohm resistor
- one wire to vcc
- one wire to gnd
- one wired to the multiplexer
All of this is way to much , and way to unpractical : imagine : for a 5*5 matrix i would have to have 25 wires just for the analog out, without any way to simplify it as far as i can see...
-So i recently found this article : http://hades.mech.northwestern.edu/wiki/index.php/Photodiodes_and_Phototransistors
and after a bit of thinking and studying the possibilities i came up with this configuration: (base on the common collector amplifier configuration)
-i reasoned that since , when using multiplexing you can only access the data from the transistors sequentially, one at a time, and that the analogRead is really sufficiently fast, i could:
- use a digital multiplexer instead of an analog one, and not READ the analog data sequentially, but POWER the phototransistors sequentially
- everytime a phototransistor gets powered, i just have to read the analog data through a wire that is the SAME for all the transistors
- since only one of them gets powered at the time , i would not even need a 10k resistor for each , but just one (as seen in the diagram)
- So i would then have LESS wiring, less components needed, more clarity , and same efficiency IF i got it right of course
The questions are:
- am i completely wrong here or would this really work?
- Would the constant on/off switching of the phototransistors shorten their life span considerably?
- Did i overlook something?
- Would there be a similar way to simplify the wiring but still use analog multiplexers? (i have 25 off them just begging to be used)
In case you wonder what the hell i will be using this for :
a small video i did last week end: "Ir_Multitouch Test"
A tad more info on my site , as always : www.kaosat.net
Thanks in advance for any feedback, criticism and suggestions!