Let's Make Robots!

backwards

inverted sharp ir

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:

main:

readadc 0, b0

if b0 < 20 then

high 5

low 4

high 7

low 6

pause 500 

low 4

low 5

low 6

low 7

endif

goto main

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 >