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

  • Thread starter Thread starter cnh1995
  • Start date Start date
  • Tags Tags
    Arduino
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
1 reply · 2K views
Homework Helper
Gold Member
Messages
3,489
Reaction score
1,173
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