My Locomotive from the Robot Recipes won't run straight along the track or line

Please go through the following steps to check the settings.

  1. Check that the IR photoreflector is connected to K7 with a 3-core cable.
  2. Switch to "test mode" in the coding screen, then select "Values".
  3. Hold the back of the IR photoreflector (the sensing part) alternately on top of a white paper and on a railroad or black line, and check if the value of K7 changes.
  4. Check the value of K7 when the IR photoreflector is on top of a railroad or black line. Enter a greater value to the coding block "IR photoreflector K7 < " .
Was this article helpful?