Dear EEVBlog community
I'struggling connecting multiple LDRs to a teensy microcontroller. I use a classic voltage divider circuit for each LDR arranged as a matrix.
6 digital pins of my microcontroller are used to drive the voltage divider (coloumn-wise), 6 analog pins are used to read the values (line/row wise). So I have 36 LDRs in total. I use a 10k resistor per colounn to pull againt GND.
The circuit is working fine for 1 LDR and for muliple LDRs in the same column (one digital output and multiple analog inputs). But as soon as I am adding more coloumns the circuit is not working any more. The readings only show marginal changes when the light changes and the readings of all sensors are changing as well.
I tried to put a diode between each LDR and the digital output, but that did not help, I tried as well different pulldown-resistor values.
BTW: I disconnect teensys unused Outputs during readings.
Does somebody have an idea what I am doing wrong?
Is there a working circuit diagram availble for such a case?
Thank you