Mechanisms with a Stirling engine