Well the title of the post is a bit wrong if you want to multiplex detectors. The principle is the same but the circuit is different. And you will only look at one detector at a time, so it will be no good for IR data like from a remote.
This is an example of multiplexing many analogue inputs into the arduino:-http://www.thebox.myzen.co.uk/Hardware/MIDI_Footsteps.html
Are you suggesting I use a 4051 and loop through all the sensor readings?
Would these be suitable or fast enough to switch
To my understanding, all I need to control these are 3 pins on the 4051s
If I were to not use it as an input and rather an output, how would I do it?
I havnt been able to find many 4067s are there any other 16 channel multiplexers that are similar
If I have 3 4067s for a 8x12 matrix of LED's and 1 row of 12 photodiodes and 4 blank inputs reading on 1 input to the arduino,
QuoteAre you suggesting I use a 4051 and loop through all the sensor readings? Yes I think it will be the simplest option. You can cascade 4051s to get as many inputs as you like therefore you will need one 4051 for every 8 sensors.QuoteWould these be suitable or fast enough to switchYes providing you are getting a good signal from the IR sensors. There is an associated serial resistance with the path through this device, this is different for different manufacturers so check the data sheet.QuoteTo my understanding, all I need to control these are 3 pins on the 4051sThe 3 pins select which one of the 8 wires is connected to the one wire. You can't say input and output because the is bidirectional it is just like a multiway switch controlled by the 3 select lines.QuoteIf I were to not use it as an input and rather an output, how would I do it?See above the input is the output.QuoteI havnt been able to find many 4067s are there any other 16 channel multiplexers that are similarNo in simple electronics like this the package size is the thing that determines the cost. As it is easy to use two 4051s these are mainly used in place of bigger multiplexers because of cost.So far I have been talking about just expanding the inputs with a 4051. You asked about a matrix, this is a bit more unusual. In fact I have never made a matrix of sensors.QuoteIf I have 3 4067s for a 8x12 matrix of LED's and 1 row of 12 photodiodes and 4 blank inputs reading on 1 input to the arduino,Sorry I don't understand this, can you draw something. Look at http://www.thebox.myzen.co.uk/Workshop/LED_Matrix.html to see how a matrix should be wired.I have drawn up what I would try if I were to make a matrix of sensors but this is only my starting point and I must stress I have not made such a device so I don't know if it will work. It is attached.
Close but not quite right. It is not what I sent you but you could try it like that.There is no need to connect the top 4051 to an arduino output, just connect that directly to +5V.The next one down can go to an arduino input but you will need a pull down resistor on that input and you would be best connecting it to an analogue input.
I am not sure what the bottom 4051 is doing, are those LEDs or sensors. If they are sensors then that is the other way to use the 4051. If they are LEDs then no.
You need to remove that switch and connect the pull down and pin 3 and the analogue input together.
Yes that is right with the 5V. The 4051 will supply 5V only to the row of sensors you have selected, the other rows will not be connected to anything and so will be floating.
I am not sure you have shown the sensors wired up the right way round, as you have it they look like LEDs which they are not.
wont the LED's be on all the time?
Also I almost forgot how do I wire up the IR Emitters?
What LED? They are all sensors.
Do you need to controll them? If not wire them up through a resistor to the power and ground.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16