SHARE:
Uncategorized

…and the beer must flow.

Flatiron School / 18 June 2013

The following is a guest post by Joe Giralt and originally appeared on his blog. Joe is currently a student at The Flatiron School. You can follow him on Twitter here.

Just the Facts 

  1. I’m a student at the Flatiron School. 
  2. There’s a frosty keg of beer that sits in the corner 
  3. That keg is all that stands between every student and sanity after a long hard week of work.
  4. From when the keg dies to when we get a new cold keg is approximately 36 hours.

So can you imagine to our horror when Friday came and the keg kicked only after two pours.

After much crying, disappointment and drinking from inferior aluminum cans where the red solo cup clearly reigns supreme. Team grumpycat has decided to unite and use its ruby powers for good and fabricate a system to measure and report the amount beer being consumed. 

The team (ChrisJordãn, Ruthie and Myself) are presenting our solution in three weeks time at the Ruby Meet-up our school hosts every Thursday.

Game plan

There are two ways to approach this problem.

  1. measure amount of fluid that leaves the keg via measuring the over all weight of the keg as it gets lighter
  2. measure the fluid that leaves the keg using a flow meter.

We decided to use a flow meter because:

  • scales are expensive and invasive
  • Routinely calibrating scales sucks
  • flow meters are cheap
  • flow meters have tons of documentation on the web.

Heres a nifty little diagram that will show the basic flow of our design. 

So the plan is to install a flow meter on the tube that goes from the keg to the tap.

The flow meter will connect to an arduino that will send it’s readings to a raspberry pi that will then forward the data to the beer-buyers-that-be.

 Seems simple enough…

I ordered everything that I needed from Amazon minus the flow meter and it will all be arriving Weds.  All and all this will be a rich learning experience for team grumpycat. more to follow……

Look Ma, I Built a Game! Previous Post WordPress vs. MVC Next Post