A drawing of this engine appears in the Wu Ching Tsung Yao, "the most important developments in the military".  It is a Song Dynasty document dated approximately 1040 AD.  This is a functional modern representation of the engine depicted by the drawing.
<a href="//commons.wikimedia.org/w/index.php?title=User:Arqai&amp;action=edit&amp;redlink=1" class="new" title="User:Arqai (page does not exist)">Arqai</a>
CC BY-SA 4.0
<span class="int-own-work" lang="en">Own work</span>