You are basically describing an automaton, some of them were very elaborate and able to write with a pen on paper. People probably misinterpreted it for intelligence, basically thing have improved, but not changed.
Whether you build it with gears, transistors on silicon wafer, or biological neurons, it doesn't matter. If complex enough arrangement of enough neurons can give rise to intelligence, then so can enough transistors or enough gears.