7P777 introduces an early coin-operated dispenser described by Hero of Alexandria.
The machine relied on gravity and a carefully arranged mechanical mechanism.
A deposited coin landed on a small mechanical lever https://www.pianobook.co.uk/profile/7p7775com1/