Step 12: Loop the Program Indefinitely

Action:
  • In Blockly, wrap all the existing program code inside a While “True” loop.

  • Add a Safe collision position at the beginning of the loop

      

Speaker notes:

“Now we want our sequence to repeat forever. To do this, I’ll put all the code we’ve just created inside a While ‘True’ loop.”

“This means the program will never stop on its own — it will keep repeating the pick, conveyor, and place cycle until we manually stop it.”

“However, we want to make sure the robot always starts its cycle from a safe position.”

“Let’s see it in action now.”