Pages: [1]   Go Down
Author Topic: oscillating value for 5V on analog input  (Read 505 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 66
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

hello,

when i plug the arduino 5V to an analog input i should get a steady reading of 1023, right? the thing is i get 1023 most of the time but the value randomly drops to 1022. what can i do to fix this? is it normal (never noticed it before)?

thanks
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 446
Posts: 23866
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Whenever the voltage varies by 0.00488V, the digital reading changes by 1.
Try putting a 0.1uF cap from the input pin to ground to steady the voltage.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Pages: [1]   Go Up
Jump to: