Extended Analog Input

At the moment I´m studying mechanical engineering at the university of applied sciences Würzburg Schweinfurt. I´m working at a project which should identify errors of a TPU foil. To realise this application i´m trying to use light behind the foil and detect the light which gets through it.

First i´m going to try if the LDR works. Next step is to try it with more than one LDR. The arduino uno only has 4 analog inputs. How can I extend the inputs pins? Did anybody use a multiplexer before? Would this be a solution? The LDR has a width of about 4 mm. I will need at least 256 of them.

Can anybody help me?

The Uno has 6 analog inputs, some Arduinos have more.
You can use a multiplexer to increase the number of analog inputs. You may have to allow time for switching or take an extra reading when switching'

You might also consider other approaches such as a video camera with a digital interface to the Arduino.

noiasca:
check the PCF8574 ... an 8 channel AD IC with i2c and up to 8 adresses, or the PCF8575 with 16 channels.

PCF8575 data sheet, product information and support | TI.com

Sorry! You got that wrong. The PCF8574 is absolutely not an ADC; it is a "port expander".

A PCF8591 has four inputs and eight possible addresses. This limits it to 32 inputs unless some additional multiplexing is added.

thank you guys :slight_smile: i´ll try it.