Step 20
Share
Now we have learned averything we need to make a soccer playing robot. Combine the compass sensor code to correct the direction of the robot, the line sensor code to stay within bounds, and the ball sensor code to go towards the ball in step 18 to get a soccer playing robot. (hint: to make the robot go around the ball, you could go diagonally instead of straight. Also a more advanced robot would use all its sensors and not even have to rotate to find the ball!)
Here is a very basic fusion of the three sensors to play soccer!