Microcontroller › Arduino › Line follower robot › Hi Aquib, “if( leftVal >
October 21, 2013 at 5:11 am
#10540
Participant
Hi Aquib,
“if( leftVal > sensorThreshold || rightVal > sensorThreshold)”
You are checking for a high threshold, right?
Why dont you set a low threshold value, which is graeter than zero and check for it?
“if( leftVal < sensorThreshold || rightVal < sensorThreshold)”