Drinks Machine
By David Crookes. Posted
Project making can be thirsty work, so Spencer Organ’s drinks machine is certainly proving refreshing. All he needs to do is press a button and his device will pour him a fresh glass of squash. A screen will even tell him what drink is being dispensed.
“I’d been missing my meals in the local chain pub with their self-service drinks machines,” Spencer says of his motivation for the project. “I wanted to make a machine that could sit on my desk and pour drinks while I was working.”
At first, Spencer intended to create an automated home watering system. “Then, like many projects, things took a sudden twist,” he laughs. His first big decision was whether to make use of a standard Raspberry Pi computer or Raspberry Pi Pico.
“Both would have worked well, taking inputs, displaying a message on the OLED display, and activating the relays,” he explains. “In the end I went for a non-Pico Raspberry Pi computer as I liked the opportunity to SSH into it and select myself a drink from a different room (as long as the glass was under it).”
A glass act
The drinks machine incorporates a Touch pHAT, offering six touch-sensitive buttons. It also has an OLED display, a four-channel relay board, and two submersible water pumps. Spencer designed the case using Autodesk’s Fusion 360 CAD software. “I printed it in a lovely red filament, opting for a modular approach with each piece slotting into each other,” he says.

Although Spencer has created many projects (he can often be found at Raspberry Pi events up and down the country either speaking or helping out), for the drinks machine he insisted on paying great attention to the quality of the final build.
“This was the first project where I planned in advance the route that cables would take to make sure they were all hidden,” he tells The MagPi. “This was also my first project where I used custom-made cable looms for 5 V, ground, and I2C with heat shrink to tidy them up. I didn’t want it to look homemade, and I wanted it to dispense drinks without flooding my desk, too.”
Going down well
Spencer has certainly succeeded in creating a robust, fab-looking project and he’s been enjoying lots of cold beverages of late without ever needing to leave his chair. So how does it all work? “The drinks machine can either be operated by pressing the capacitive touch buttons or programmed to dispense a drink at a certain time,” he says of his device’s automatic credentials.

“When one of the capacitive buttons is pressed, a relay is activated and this switches on a small submersible pump.” The drink is then dispensed into the glass, while the name of the drink is displayed. But there’s room for improvement.
“I still need to add fail-safes such as empty glass detection,” Spencer says, again looking to prevent liquid from spilling. “But this has been a fun build and I am looking forward to seeing what comes next with it."
Subscribe to Raspberry Pi Official Magazine
Save up to 37% off the cover price and get a FREE Raspberry Pi Pico 2 W with a subscription to Raspberry Pi Official Magazine.
More articles
Review – Pitower Gen 1 case
It seems quite popular now for folks to make their Raspberry Pi look like a diminutive desktop PC. The Pitower Gen 1 from Elecrow manages to do that while also making sure you can still use your Raspberry Pi as, well, a Raspberry Pi. Construction is fairly simple if lengthy – it took the better […]
Read more →
Make your RAM go further – Raspberry Pi OS memory optimisation tips
In issue 164 of Raspberry Pi Official Magazine we have been playing around with the new Raspberry Pi 5 1GB RAM. While the RAM shortage caused by the demands of AI infrastructure is annoying beyond belief, this has been a great chance for us to really get to grips with RAM. Generating images in Stable […]
Read more →
Mighty Projects – 1GB Computer in Raspberry Pi Official Magazine 164
It’s normal for computers to get faster and more pwerful, but the new-ish Raspberry Pi 5 1GB is a step in the other direction: it has all the processing power and the same GPIO pins of its more costly siblings, but with only 1GB of RAM it’s at a price that’s friendlier on the wallet […]
Read more →