Cocktail Machine

Cocktail Machine

What’ll it be? Monkey wrench, swimming pool, zombie, painkiller? You can have any of these exotic drinks and more mixed by Stefan Höving’s home-made cocktail machine, whose secret ingredient is a Raspberry Pi. This article first appeared in The MagPi 70 and was written by Nicola King Bioengineering student Stefan came up with the idea for automated cocktails thanks to a friend who “would always pour way too much alcohol into the drinks when we would get together on the weekends… We basically needed something that can ensure that everyone always has the same composition of juice and booze, that would still be enjoyable.” Stefan was also looking for a project to practise his fledgling Python programming skills, learned during his part-time job at an analytical institute. “The first thing I had to do was program a graphical user interface in PyQt for a temperature control system,” he recalls. While that never came to fruition, the GUI would eventually be put to good use in his cocktail machine, which offers a choice of nine drinks via a touchscreen display. Tubes and valves Housed in a handcrafted hexagonal wooden case, the cocktail machine holds five bottles. Each is fitted with a shot dispenser with two tubes: air is pumped through one tube to force liquid up the other, which leads to a magnetic valve to turn the flow on or off. “From there, all five tubes (one for every bottle) are funnelled into the outlet that one can see above the glass,” explains Stefan. To ensure the correct volume measures are poured out, the platform where the glass is placed is a scale. “The first thing the program does after a cocktail is selected is [discount] the weight of the glass. I was surprised by how precise the scale actually is.” Using his woodworking skills, Stefan made a hexagonal case with six triangular compartments It did cause Stefan a headache during development, though. “For some reason, [its HX711 ADC] chip would produce random and really off values, although there was nothing on the scale. This would only happen when the machine was completely assembled. I reassembled the machine three times until I understood this behaviour.” In the end, the annoyingly simple solution was to connect the VCC of the HX711 to 3.3 V power instead of 5 V. Pumping air Stefan also had a problem with the original aquarium air pump, which worked…
Source: Cocktail Machine

댓글 남기기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다