Simple idea, (probably not easy to code though).
Iron block+copper cable (For more powerful ones, crafted with better cables, and needing more energy)= magnet (better cabled ones= mk 1,2,3). Magnets attract metal dusts, and bars towards them. Magnets could also be used as future building materials for more advanced machines.
I=Iron block
C=Copper Cable
IC