You just invented the steam engine. Three problems, three fixes.
Steam can only push, so a crank turns the push into spin. Steam has to get in and then get out, so the whole cylinder rocks on a pivot and its port lines up with the steam inlet, then with the exhaust. No valve gear at all. At the top of each stroke the push goes straight through the crank and can't turn it, so a heavy flywheel carries it over. 47 parts, and only 3 of them move. Every car engine still uses fix 1 and fix 3: the crank and the flywheel.
3D illustration, workshop set. Model: "Oscillating Steam (Air) Engine" by kmccon (Printables 9878), CC BY.
#steamengine#engineering#howitworks#mechanical#machining