BitBarista: fully autonomous coffee machine built using Raspberry Pi and Bitcoin
By Russell Barnes. Posted
A University of Edinburgh project might just be the first fully autonomous business. The Pi-powered BitBarista accepts Bitcoin payments to dispense coffee, pays users to restock supplies, and will call a technician should a fault occur.
BitBarista is not some glorified kettle with WiFi, though. Using the Bitcoin from coffee sales, BitBarista “pays people for small services such as filling its water tank and replenishing it with coffee beans,” according to Dr Larissa Pschetz, Programme Director of Product Design and Researcher at the Centre for Design Informatics, University of Edinburgh and co‑creator of BitBarista.
BitBarista: fully automated coffee machine pays staff itself
When coffee stocks run low, BitBarista asks the user to select a restock vendor. These options could be ranked in price order, or by ethical preference. Larissa explains, “I was also intrigued by this idea of an autonomous coffee machine that would reduce intermediaries in the coffee trade, potentially supporting smallholder famers in developing countries.”
BitBarista is currently on a long-term trial throughout the UK, “which is revealing reactions to the machine’s autonomous features,” according to a University of Edinburgh spokesperson.
So far, Larissa has seen that “some rituals such as making coffee for colleagues were lost while others, such as watching who chose the ‘best price’ option, were created.”

Raspberry Pi and coffee: BitBarista
The Pi controlling BitBarista uses Raspbian “and different plug‑ins to simplify tasks and connect things together,” Larissa reveals. “We also use Electrum for the BitCoin payments.” The code is on GitHub.
BitBarista might be useful for other vending machines, but Larissa warns, “The machine still needs to follow the social rules of the context where it is placed. If people think it is inappropriate they will probably turn it off.”
Asked whether there were machines where BitBarista technology might not ever be appropriate, Larissa replies, “Of course there is always space for malicious practices, but people are careful and good at figuring these things out so it wouldn’t last in the long term.”
Russell runs Raspberry Pi Press, which includes The MagPi, Hello World, HackSpace magazine, and book projects. He’s a massive sci-fi bore.
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
SPOKE review – programmable MIDI controller
An RP2040-powered touch controller for music and a lot more.
Read more →
TinyProgrammer
Want a coding companion? TinyProgrammer lets you watch as it tinkers with Python all day. Sean McManus finds out how it works
Read more →
Make a Smart Home in Raspberry Pi Official Magazine issue 167
The dream of smart, connected devices controlling your home automatically, is especialy appealing on a lazy day when we’re trying to get work done in a heatwave. Maybe this will be the year we finally integrate temperature sensors with fans and a drinks dispenser to keep us cool, or maybe not, but we do know […]
Read more →