How can I increase the sampling rate for AnalogRead() on Arduino Uno?

  • Thread starter cnh1995
  • Start date
  • Tags
    Arduino
In summary, AnalogRead() is a function on the Arduino Uno that reads analog voltage values from specified pins using the built-in analog-to-digital converter (ADC). Its range of values is from 0 to 1023, corresponding to a voltage range of 0 to 5 volts. It can only be used with the analog input pins and not with digital pins. The values returned by AnalogRead() can be stored in a variable and used for various purposes in a program.
  • #1
cnh1995
Homework Helper
Gold Member
3,486
1,165
I connected the A0 pin of arduino uno to +5V and read the voltage using analogRead () and displayed the result and elapsed time on the serial monitor. Its reading only 30 samples per second. What's going wrong? How do I change the clock prescaler for the ADC?
 
Engineering news on Phys.org
  • #2
Last edited:
Back
Top