I are going to connect several NTC resistors through a analog MUX (controlled by I2C) to measure up to 16 different temperatures. A few of the sensors will be placed several meters away from the Arduino and the MUX.
Will there be any problems with noice? I thougth a capacitor connected in parallel with the NTC close to the MUX could help? Or is there other ways of doing it?
I have been testing this for while. I have a UNO 3 connected to a 16 channel A/D MUX (CD74HC4057), which is controlled by a PCF8574 I2C unit.
To the MUX I have connected 11 NTCs, one of them is using a 5 meter long NON-twisted wire (AWG 26).
The function reading the temperature on the NTCs looks like this:
As you can see, it does a number of samples for each sensor and it find the highest and lowest read value. I have tried different values in the define statements (delay and sampling count).
It seems like there is hardly no difference in worst min-max diff for the 10 NTC mounted on a prototype board and the one with 5m long wire. I have moved sensor 11 to different places where I know there is a lot of electromagnetic noise (I got a hand-held meter to measure it).
I have also tried with and without the capacitor (and different values of it), but it does not seem to influence on the result.