A person who designs machines?

An engineer designs machines.

And an architect also designs the layout/aesthetics of the machine.