We investigate the dynamics of a quantum system consisting of a single spin coupled to an oscillator and sandwiched between two thermal baths at different temperatures. By means of an adequately designed Lindblad equation, it is shown that this device can function as a thermodynamic machine exhibiting Carnot-type cycles. For the present model, this means that when run as a heat engine, coherent motion of the oscillator is amplified. Contrary to the quantum computer, such a machine has a quantum as well as a classical limit. Away from the classical limit, it asymptotically approaches a stationary transport scenario.