Presenter's guideline - WS2 : Conveyor & Sensor Integration
Requisitos de finalización
🎯Expand the line by adding motion control and logic. Participants will integrate the conveyor and IR sensor so the robot can move objects automatically and react to sensor input.
⏱️2 hours
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.”


