inverted sharp ir
November 21, 2011
i have been using a sharp ir sensor on my first project but it seems to me that when a distance is smaller it is bigger?
i made a short program to test it:
readadc 0, b0
if b0 < 20 then
when i put my hand infront of it it stopped and when i removed my hande it move. shouldn't it be the other way?
i got round this by putting > istead of < and < instead of >
is this right or is something wrong. thanks :)