I’ve worked with a few machines similar to this, and I’ve always found them a pleasure to watch. Â They are generally just controlled by a series of switches. Once one part reaches its intended position, it hits a switch which stops it and starts the next part moving. It’s crazy to think that the cells in our bodies are constructed in a similar fashion, though the logic is made of complex molecular bonding.