Loading...
Pages: [1]   Go Down
Author Topic: oscillating value for 5V on analog input  (Read 353 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 63
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
Offline Offline
Brattain Member
*****
Karma: 270
Posts: 17059
Available for Design & Build services
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

Pages: [1]   Go Up
Print
 
Jump to: