Last active
April 15, 2024 15:14
-
-
Save topshed/c21bc5a9800b7063ba5d3e946180e44f to your computer and use it in GitHub Desktop.
Line following
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here is one way to program a robot to follow a black line. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Line following
Tell it to always be moving forward and to the right as long as it is over a black line,
and then switch to moving forward and to the left if it is over a white surface.
You will need to adjust the percentage values for the left and right motor motion depending on how you have built your robot.