A Raspberry Pi might be the key to running your very own vending machine, and what dyed in the wool PC gamer wouldn't want an entire vending machine in their house? Okay, well perhaps some don't, but this is another great use of the compact computer.
User OfficalFlance on Reddit posted their vending machine conversion to the site after they managed to get the broken machine up and running again (good spot, Tom's Hardware). Essentially, they took an old, burned out vending machine and gave it a Pi-powered makeover to get it dispensing sweet treats once again.
"Basically I found an old vending machine that had a burnt out motherboard, bad lights, and the only thing working in them were motors, and tore out everything to be a part of the Pi-family," they say in the post.
The modder says they bought the old machine for $200, and replaced its ruined innards with a Raspberry Pi 4, which is a $35–$75 part. An Arduino Mega microcontroller is being used to control all the motors, which is a sub $50 part. You really don't want your snacks to get stuck in those blasted coils because of a dodgy controller.
So that's a cheap build overall, though rebuilding of the vending machine's insides doesn't sound like an altogether simple one, actually requiring a full rewire.
Currently the vending machine only accepts cash, but the modder is hoping to make it work with credit card readers at some point in the future. The difficulty being with sourcing a decent Java API, which they haven't managed to do just yet.
OfficalFlance hopes for the vending machine to find a new use inside a church, though they say they are building more. Once again proving that the tiny Pi computer is a mighty tool in the right hands, despite its diminutive size.