The Commodore C64 can be used to control all kinds of hardware. In this demonstration you can see that the C64 is used to control a pallet warehouse. A program written in BASIC is used to move the pallets from one place in the warehouse to another place. The movement is controlled with 3 stepper motors that can make the mechanical arm move in the X, Y and Z directions. The commands for the motors are given via 5 outputs at the user-port of the C64.
Read the article about the pallet warehouse.