Go Down

Topic: In ADC conversion randomly varying output (Read 270 times) previous topic - next topic

when i am reading sensor output using analogread()...It is not giving a stable digital value eventhough grounding is perfect.
Although in the absence of input(wire is disconnected from arduino board), it is showing highly varying digital output.
Some one help me out of this!

JimboZA

when i am reading sensor output using analogread()...It is not giving a stable digital value eventhough grounding is perfect.
A common approach is to average say 10 readings. But how do you know the sensor isn't giving funny readings in the first place?


Quote
Although in the absence of input(wire is disconnected from arduino board), it is showing highly varying digital output.
With nothing connected it will pick up random signals from the environment. That's sometimes used as a seed for generating random numbers, in fact.
No PMs for help please.
Arduino with e'net at http://jimboza.gotdns.com:8085/
DO NOT power servos from Arduino 5V: give them their own power and connect the grounds.

KenF

Treasure the random, some people would pay good money for that!




You could have spam eggs spam and spam, that's not got much spam in it!

MarkT

What are you trying to measure?  How much noise (and with what spectrum) are
you expecting?
[ I won't respond to messages, use the forum please ]

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy