Jackpot! Hackers Make a Slot Machine That Mixes Drinks

10.03.2011
Brooklyn-based hackerspace has built a drink-mixing slot machine inspired by , and we're itching to spin. Created as an entry into VIMBY and Scion's , a hardware hacking competition to give existing devices a totally new function, this winning mod beat out the entries of four other hackerspaces. With a $3000 supply budget and the rule that the hack must include a movie reference, NYC Resistor members set about shaping their solution to this open-ended challenge.

The members of NYC Resistor have made three previous generations of BarBots, so the decision to revisit the concept of a cocktail-making device was a quick one. Previous iterations, however, were built from scratch and not nearly as sophisticated; the designs were functional rather than handsome, and metered out random pours of liquor and mixers that were sometimes pretty nasty.

The idea to hack a slot machine for the next iteration of BarBot came to the team quickly, and a volley of movie tie-in ideas rejected ("voted down as being entirely too grim"), while Fear and Loathing in Las Vegas, the Hunter S. Thompson-based tripfest, was a natural choice.

They found a decommissioned, like-new Japanese slot machine on Craigslist that had been modified to meet New York State regulations by only taking tokens. The hackers decided early on that they wanted to maintain as much of its original functionality as possible, which meant they had to take it apart and learn how it worked.

The question of reading where the wheels stop with each spin--how the machine knows if you've got three cherries--required learning how to read the "stepline" system. The wheels are turned by stepper motors, which have several internal coils that magnetically turn the rotor. Drivers energize these coils with every turn, which emulates continuous motion. By soldering a wire to each of these coils and monitoring the number of times each one is energized and when each hits the zero position, they realized that they could count the wheels' rotations and at what point it stopped.

From poking around the machine's guts to the actual build-out, though, the idea and approach changed a number of times. They initially planned to assign ingredients to positions on the wheel, but near-undrinkable combinations convinced them to switch to a randomized reward system based on 30 or so preprogrammed cocktails stored in an sqlite database. As Hunter S. Thompson's favorite drink was Wild Turkey, however, they mapped it to the big win.