1. Help Center
  2. Educators
  3. Features and programs you may find useful

Follow the line

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.