Hi everyone
I am using Arduino Mega2560 to acquire audio signals from 2 channels (A0 and A1). The default sampling rate seems to be around 4 kHz. When I try to read two channels( with the analogRead function) the sampling rate reduces to half per channel. I want to use both channels with at least 16ksPs. How can I achieve this?
Can you provide me with sample codes?
Here is my code :
I am trying to sample 2 separate signals with maximum frequency of 4kHz and then send them to computer via ethernet. I want to do this as fast as possible. Also, is there any way that I can get conversion results from two channels using interrupt?