Go Down

Topic: Analog input problem (Read 1 time) previous topic - next topic

Daniel_DSO

Hi, my Arduino Duemilanove analog input is returning numbers around 400 without anything turned on. What do you thing about it? Can it be problem of Arduino?

Thanks!!

retrolefty


Hi, my Arduino Duemilanove analog input is returning numbers around 400 without anything turned on. What do you thing about it? Can it be problem of Arduino?

Thanks!!


A analog input pin with nothing wired to it will have a 'floating input pin' condition and will give random/noisy/meaningless values if read from. If you want to test a analog input pin first wire to a ground pin and perform a analogRead and see the value returned, then wire the pin to 5V pin and test again and see the reading.

Lefty

JimboZA

As I write this, my Arduino web server is publishing the values of analog pins 2-5. Only pin 5 is actually measuring anything, and is varying according to a sensor. Pins 2, 3 and 4 are floating: as you'll see if you click the link, not only do they change, they're quite different to each other.
meArm build blog:     http://jimbozamearm.blogspot.com/

Please don't PM for technical advice. Firstly my advice is sometimes wrong, and second, in the forum you get a broader, more timely, range of responses.

Daniel_DSO

Thanks so much retrolefty and JimboZA!!! Now, it's working.

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