I am making an 8x8 array of IR sensors and want to scan over them in a keyboard arrangement. So basically I want to power up the rows one at a time and check the value of each sensor in the row (column values). Doing this quickly allows me to check over the whole array and require only a small amount of driving current.
I am controlling the power to the array using the arduino and a 4051 demux connected to 8 transistors feeding in 5V. The part I am a little confused about is how to connect the output of 8 sensors (one row) into one input of a 4051 mux.
I want to have simply 8 inputs and 8 outputs from the array. The inputs is easy but is it possible to tie the output of 8 sensors to one input? Bearing in mind that only 1 of the 8 sensors will be powered on.
I hope I have explained what I am trying to achieve.
Any help would be great. Cheers,