Drinking games just got a little more sophisticated (kind of). Startup SmartThings built this awesome Arduino-based machine that automatically pours a shot whenever the US wins a medal in the 2012 Summer Olympics. Goldschläger for gold, Cuervo for silver, and Jack Daniels for bronze.

Please enable JavaScript to watch this video.

The Arduino is connected to a SparkFun XBee shield and a ZigBee network connects it to the SmartThings platform, which connects to the internet.

When the US wins a medal, the Arduino switches on a strobe light and turns on a fan that makes the US flag blow in the wind. And pours the shot, of course. Of course, you can also just pour a drink manually by clicking on the appropriate medal on the SmartThings Medal app.