Work P6 Complete
Raspberry Pi Vending Machine
A broken vending machine, brought back to life with a Raspberry Pi.
- issue of The MagPi
- #130
- publications
- 3
- my age at the time
- 17
Signal path
- Bill acceptor Pyramid Apex
- Raspberry Pi 4 Java and MariaDB
- Arduino relay control
- Relays trigger the vend
The build
I was 17 when I got hold of a vending machine that no longer worked. Instead of repairing its original controller, I replaced it.
A Raspberry Pi 4 runs the machine. A Java application handles the interface and the vending logic, with MariaDB as its database. A Pyramid Apex bill acceptor takes payment, and an Arduino drives the relays that trigger a vend.
What happened next
The project was written up in issue 130 of The MagPi, the official Raspberry Pi magazine, and then picked up by Tom’s Hardware and PC Gamer.
It is also where the thread running through my work started: software that has to work when someone walks up and presses a button.