Re: Programing the robot to use the light sensor to find lig
To follow a line, you need at least 2 light sensors. However, if you follow the edge of the line, you only need one light sensor. First, break the problem down into pseudo code, then translate it into real code. For example:
Then think about how to determine "left side of the line edge" and "right side of the line edge"? Once you determine that you can translate the above to real code.