For the actuated marble run tile, I decided to use the servo to make a pendulum-like structure, where marbles would either be pushed into the right or left path, depending on the direction of the servo arm’s movement.

Solidworks Files:

Code:

while True:
    startAngle = 10.0
    endAngle = 200.0
    servo.write(startAngle)
    time.sleep(1.0)
    servo.write(endAngle)
    time.sleep(1.0)