My Arduino Due cannot read multiple analog inputs in a raw


When I use only one analog input in my project, everything is alright. ADC is working well.

When I try to read multiple analog inputs in a raw, that doesnt work ! :astonished:

Every single analog input is Ok with my Arduino Due Board. Tested one by one with Analog exemple.

Here is a program that doesn’t work with me :

int sensor_pins[] = {A2, A3, A4, A5, A6, A7, A8, A9};

void setup() {

void loop() {
  for(int i=0; i<8;++i)
    Serial.print(' ');

Either this code returns the same value for every inputs (oneinput seems to be cloned), or (in another project) it returns wrong inputs (and every readings are about the same wrong value).

Strange, isn’t it ! I tried to add a delay between analogReads. Not better ! I though that the DUE had bot enough time to switch from one input to the next one.

Any idea ?


I think I solved the problem.

The release note of Arduino IDE 1.5.5 says :


Well, it seems that the effort to speed up the ADC for a signle input ruined the ability to use multiple analog inputs.

I download the previous IDE (1.5.4) and it works well.


IDE 1.5.5
It's the same here. Everything was ok when using maximum two analog inputs at the same time.
When reading eight analog channels at the same time, channels values were mixed. I tried to add delays, but not effort.
With IDE 1.5.4. it is working fine.