An engineer regarded as a pioneer of cybernetics and robotics, who designed automatic machines and water clocks.