This is Legonardo, an automaton capable of drawing portraits. Obviously, it doesn't have the complex clockwork used by automatons of old, like its Swiss counterpart made by Pierre Jacquet-Droz and Henri Maillardet in the 18th century. But it's pretty neat anyway.

Legonardo is made of Lego Technic bricks and powered by Lego Mindstorm controllers hooked to a computer that uses custom programming to generate the portraits. [Benedettelli]

The automaton shown in the movie Hugo

This Neat Lego Automaton Can Draw PortraitsS

Building Leonardo