The Arduino code has two parts, the startup routine and the run loop. To start the machine, the operator ensures that both arms are in the down position (the cams should be vertical). The motors are then energized by turning on the high voltage switch.
Next, the Arduino is powered on by turning on the low voltage switch. The Arduino goes through the startup routine, then the run routine.
In the startup routine, the arms move from the down position into the catching position.
This is the run routine. This is the code in psudocode: