Help with Sharp IR code
April 5, 2009
Im kinda new to this programming stuff so this is probably a really easy question. How do i get my robot to react to a increase or decrease of 20 points from my sharp IR. Right now my code looks like this (b1 is IR reading)
if b1 > 115 then
if b1 < 85 then
my sensor reads about 95 when its on my black table but with different light sources or materials it can jump up or down. Instead of using 85 and 115 in my code i want it to react whenever there is a change of a specified amount.