Go Down

Topic: analog reference (Read 1 time) previous topic - next topic

RaHuLL

hello all,
I am using atmega328(without arduino,but programmed using arduino) in my project where in I am checking input from sensor on analog pin.
if it is HIGH necessary action is taken.
But even when no input is given by sensor,atmega shows HIGH signal.
Is this related to analog reference?

JimboZA

It's probably just noise, and you need a pull-down to force it low.... Just because a pin isn't deliberately high, doesn't mean it's actually low.
Roy from ITCrowd: Have you tried turning it off an on again?
I'm on LinkedIn: http://www.linkedin.com/in/jimbrownza

RaHuLL

Actually I am getting HIGH when it should return LOW.

fungus


hello all,
I am using atmega328(without arduino,but programmed using arduino) in my project where in I am checking input from sensor on analog pin.
if it is HIGH necessary action is taken.
But even when no input is given by sensor,atmega shows HIGH signal.


What sensor, what circuit, what code? My crystal ball isn't working today.


Is this related to analog reference?


Very unlikely.
No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

JimboZA


Actually I am getting HIGH when it should return LOW.


But how do you know it should be low?- when it's not getting any input there's no way of telling what it "should" be.

As fungus says, post more detail....
Roy from ITCrowd: Have you tried turning it off an on again?
I'm on LinkedIn: http://www.linkedin.com/in/jimbrownza

Go Up