Some inventions associated with modern convenience have remarkably ancient origins.
The machine relied on gravity and a carefully arranged mechanical mechanism.
A deposited coin landed on a small mechanical lever https://bbs.mofang.com.tw/home.php?mod=space&uid=2702403