I am using a Mega 2560 for my project. I am inputting an AC signal to one of my Arduino's Analog In pins. I've read that Arduino is capable of reading a value from its Analong In pins up to 10000 times per second. Is this correct? Also, is there anything that can be done to increase this reading rate? Does the Baud rate have an effect on how fast the Arduino reads in analog values?
The Arduino can be optimized for a high sample rate, but only if the normal operations (for example interrupts) are disabled.
The base timer of the Arduino is TIMER0, and is used for millis() for example. Also I2C and the Serial libraries use interrupts.
When using 1000 samples per second, the Arduino has enough time to do calculations with the data and other things.
I do not know about the sample rate for the Arduino Due, but I assume that it is a lot higher.
I am using a Mega 2560 for my project. I am inputting an AC signal to one of my Arduino's Analog In pins. I've read that Arduino is capable of reading a value from its Analong In pins up to 10000 times per second. Is this correct? Also, is there anything that can be done to increase this reading rate? Does the Baud rate have an effect on how fast the Arduino reads in analog values?
Thank you
Applying an AC voltage directly to a arduino analog input pin can/will result in pin damage or worst. Applied voltage to any analog or digital pin must be restricted to 0 to +5vdc, no negative voltage allowed as AC voltage has 50% of the time.