New algorithms and electronic components could enable printable robots that self-assemble when heated. In two