Go Down

Topic: Is it possible to get two analog value in the same time? (Read 419 times) previous topic - next topic

hangzhang

I'm using Arduino uno to do some simple tests which is to get the analog value from different Analog pins, of course now I'm using "analogRead" function to do this job.

The problem is that if I want to get two different values from different analog pins, I have to write two lines like :

int val1 = analogRead(A0);
int val2 = analogRead(A1);

But when I write this two lines it means there's a interval time between two values, is it possible to get the different values in the same time which means there's no interval time between two values?(Because I'm doing the audio test so I want to get the value in the same time because it varies too fast)

Thanks

AWOL

You have one analogue-to-digital converter with an input multiplexer.
It isn't possible to make two simultaneous readings.

Riva

Maybe you could use a couple of external ADC chips like this to do the reading but how fast do you need to sample the audio?
Don't PM me for help as I will ignore it.

Go Up