Follow the line

Modified on Tue, 09 May 2023 at 03:58 PM

This feature is available in the Photon Blocks interface.

You can make the robot follow a line drawn on a flat surface (thanks to its built-in contrast sensors). The line must be black and fairly wide for the robot to recognize it. You can draw a line with a marker on paper or simply stick black duct tape directly to the floor.

1. This feature is available from the movement-related blocks section. Select the “Follow the line” block and drag it to your program. If you use the Follow the line instruction, you can also add other actions before or after following the line action.

EN10

2. Place the Photon Robot on the line and run the program.

NOTE! During the first few passes, the robot self–calibrates the contrast sensors and adapts to the ambient light. During this time, it may not follow the line with the highest precision.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article