hello all, im looking to see how to read an analog input faster than the function analogread() can as i believe its to slow for my use.
Could anyone point me in the right direction? im thinking using the registers in the mega 2560 but reading the handbook can be a bit daunting at times.
many thanks!
You can change the clock divisor for the ADC to increase the sample rate from the default, but at much higher speeds accuracy will be reduced. Tutorial for ATmega328 (2560 is similar): https://www.gammon.com.au/adc