stop a conveyor for a certain ammount of time

i want to make it so that when the sensor on the conveyor is triggered, it stops for a certain ammount of time (5 seconds) and the to continue its path. So far ive only got the code from the course on volume sensors. Ive tried using the time.sleep(5) method but this would stop the entire simulation and then after 5 seconds it would skip the item on the conveyor ahead to the point it wouldve been at if the timer were going as normal and hadnt stopped.
pythonofko

try the approach with triggerCondition and delay() in OnRun:

For a no-code approach, you can use the conveyor sensor, motor and timer components.
image
stop_start_conveyor.vcmx (423.5 KB)

1 Like