69
Hack your own beer Markus Baden and Nick Lewty Centre for Quantum Technologies

Geekcamp talk

Embed Size (px)

DESCRIPTION

Talk given at the 2013 GeekcampSG about how you can hack some hardware to improve your home brewed beer.

Citation preview

Page 1: Geekcamp talk

Hack your own beerMarkus Baden and Nick Lewty

Centre for Quantum Technologies

Page 2: Geekcamp talk
Page 3: Geekcamp talk

Make

Page 4: Geekcamp talk

Hack your beer?

• Beer is not Tiger

• Homebrewing - Making

• Hardware hacks

• Software hacks

Page 5: Geekcamp talk

Beer is not Tiger

Page 6: Geekcamp talk
Page 7: Geekcamp talk

You could

Drink imported craft beers

Go to local micro breweries

...

Page 8: Geekcamp talk

You could

Drink imported craft beers

Go to local micro breweries

...

Or just make it yourself

Full control over flavour

Keeps you hacking on weekends

Page 9: Geekcamp talk

Beer basics

• Water

• Barley

• Hops

• Yeast

Beer

Page 10: Geekcamp talk

THE EQUIPMENT

Beer is made from 4 basic ingredients:barley, water, hops and yeast.

Most items can be purchased at your local homebrew store

THE INGREDIENTS

THE BASIC PROCESS

Fermenter, usually a food-grade plastic bucket with a tight-!tting lid (more experienced brewers may use a glass carboy)

Air lock and stopper to allow carbon dioxide to escape during fermentation while keeping air out

Thermometer Racking cane & tubing for transferring beer from one vessel to another Bottles, about 50 12-oz. bottles for each 5-gallon batch, new or reused Bottle !ller to transfer beer into bottles

Bottle capper, a device that clamps bottle caps on bottles Sanitizing agent & bottle-cleaning brush Kitchen supplies—a stove, large pot, cooking spoon, strainer, measuring cup, can opener, and a cup or bowl

HOW TOMAKE BEER

FERMENTER

1.

1.

2.

2.

3.

3.

4.

4.

5.

5.

6.

6.

7.

7.

8.

8.

9.

9.

Beer is created when brewers yeast converts malt sugar intoalcohol and carbon dioxide

BREWERS YEAST MALT SUGAR

CO2

C2H5OH

ALCOHOL

CARBON DIOXIDE

S A N I T I Z I N G1.

M A S H I N G2.

The most important step. Nothing can spoil a batch of beer faster than stray bacteria.

Steep grains in hot (but not boiling) water to make wort, a sweet liquid that's basically unfermented beer.

Bring wort to a rolling boil and add hops—the "ower of the hop plant that gives the beer "avor—according to the recipe.

Chill wort and transfer to fermenter. Pitch yeast. Store beer away from sunlight and wait one to several weeks, depending on the recipe.

B O I L I N G3.

F E R M E N TAT I O N4.

You now have beer! But it's "at beer. In order to carbonate it, you must prime it with additional fermentable sugars and bottle it. Then wait at least two weeks.

B OT T L I N G 5.

D R I N K U P !6.

SOURCES: American Homebrewers Association, SoYouWanna.com,Popular Mechanics, Barley Bandits

Page 11: Geekcamp talk

Recap

• Mashing

• Convert starch into sugar

• Keep grains at target temperature (warm)

• Boil to add hops

• Cool down from 100 to 7 degrees

• Fermenting

• Convert sugar into alcohol

• Keep pre beer at target temperature (cold)

• Put in kegs and drink

Page 12: Geekcamp talk

Recap

• Mashing

• Convert starch into sugar

• Keep grains at target temperature (warm)

• Boil to add hops

• Cool down from 100 to 7 degrees

• Fermenting

• Convert sugar into alcohol

• Keep pre beer at target temperature (cold)

• Put in kegs and drink

Hacked?

Page 13: Geekcamp talk

Some projects

• The Recirculating Mash Tun

• The Fermentation Chest Freezer

• The Kegerator

• The Flapibrew Software

Page 14: Geekcamp talk

The Recirculating Mash Tun

Page 15: Geekcamp talk

Getting the mash right

Page 16: Geekcamp talk

Getting the mash right

• Enzymes work at specific temperature

• Keep all grains at that temperature

• Cycle through temperatures for different groups of enzymes

• Maximize starch to sugar conversion

Page 17: Geekcamp talk

Getting the mash right

Page 18: Geekcamp talk

Getting the mash right

• Water heater, Kopitiam style

• Add pump to recirculate water

• Add control of heater / pump

Page 19: Geekcamp talk

Getting the mash right

Page 20: Geekcamp talk

Mash electronics

• Thermistor to sense temperature

• Relay to switch

• Power to heater (mains!)

• Power to pump

• Arduino in charge

Page 21: Geekcamp talk

Thermistor

Page 22: Geekcamp talk

Thermistor

• Analog in - resistive divider

• Could use serial chip

Page 23: Geekcamp talk

Relays

Page 24: Geekcamp talk

Relays

• Off the shelf for switching mains

• Could use many Arduino relay boards

Page 25: Geekcamp talk

Temperature stabilization

• Read in analog voltage

• Look up temperature

• Adjust duty cycle

Page 26: Geekcamp talk

Duty cycle

Cold

Warm

Hot

Page 27: Geekcamp talk

Who’s in charge?

Page 28: Geekcamp talk

Enter Arduino

Page 29: Geekcamp talk

Arduino

• PID library for closed loop control

• Simple serial communication

• Status up date

• Pump on / off

• ...

• Python control GUI

Page 30: Geekcamp talk

Python GUI

Page 31: Geekcamp talk

Not cool enough?

Page 32: Geekcamp talk

Enter Rasberry Pi

Page 33: Geekcamp talk

Web control

• Rasberry Pi talks to Arduino

• Serves web application

• RasPiBrew by Stephen Smith

• (FlapiBrew in the making...)

Page 34: Geekcamp talk

RasPiBrew

Page 35: Geekcamp talk

Still not cool enough?

Be my guest!

Page 36: Geekcamp talk

Getting the mash right

• Arduino controlled heater

• Rasberry Pi based web application

Page 37: Geekcamp talk

The Fermentation Chest Freezer

Page 38: Geekcamp talk

Good fermentation

Page 39: Geekcamp talk

Good fermentation

• Ales ferment at ~21°

• Lagers ferment at ~7°

• Singapore is ~35°

Page 40: Geekcamp talk

Good fermentation

Page 41: Geekcamp talk

Temperature control

• Similar to mash tun

• Cooling instead of heating

• Switch mains to fridges / freezers

• Don’t kill compressors

Page 42: Geekcamp talk

Don’t kill compressors

• More complex logic

• Cool for only so long

• Wait before restarting

• Threshold control instead of PID

Page 43: Geekcamp talk

User interface

• Hacked laser driver

• A few buttons

• Hitachi HD44780 LCD screen

• Speaks singlish...

Page 44: Geekcamp talk

Not cool enough?

• Rasberry Pi anybody?

• Tablet control maybe?

Page 45: Geekcamp talk

Good fermentation

• Arduino controlled fridge or freezer

Page 46: Geekcamp talk

The Kegerator

Page 47: Geekcamp talk

Problem

Lots of beer you don’t want to bottle

Page 48: Geekcamp talk

Problem

Lots of beer you don’t want to bottle

Solution

Get second hand kegs

Page 49: Geekcamp talk

Problem

Now you got kegs

Page 50: Geekcamp talk

Problem

Now you got kegs

Solution

Build a kegerator

Page 51: Geekcamp talk
Page 52: Geekcamp talk
Page 53: Geekcamp talk

The Kegerator

• Fridge (maybe Arduino controlled)

• Taps (from the internet)

• Tubing (from Kelantan lane)

• CO2 bottle

Page 54: Geekcamp talk

The Kegerator

• Ideal for hosting events

• And... technology is portable

Page 55: Geekcamp talk

Flapibrew

A project in need of a beer drinking rabbit mascot

Page 56: Geekcamp talk

Rasberry Pi

• Control mash with Rasberry Pi

• Somebody must have done it...

• RasPiBrew by Stephen Smith

• Dude... add a button

Page 57: Geekcamp talk

Rasberry Pi

jQuery what?

Page 58: Geekcamp talk

Rasberry Pi

Button done, but...

Page 59: Geekcamp talk

Flapibrew

• Flask app served by tornado

• Tornado handles websocket

• Lightweight client jQuery

• Die die must port to smart phone!

Page 60: Geekcamp talk

A few notes

• Home brewing is a vibrant community

• You can hack as much as you want!

Page 61: Geekcamp talk

A few notes

• Home brewing is a vibrant community

• You can hack as much as you want!

Page 62: Geekcamp talk

homebrew.sg

Page 63: Geekcamp talk

SUTD Brewing Club

Page 64: Geekcamp talk

meetup.com/Singapore-Homebrew/

Page 65: Geekcamp talk

Enjoy the beer but

• A few thanks

• Nick Lewty

• (Prof. ...) Christian Kurtsiefer

• Centre for Quantum Technologies

Page 67: Geekcamp talk
Page 68: Geekcamp talk
Page 69: Geekcamp talk

Drink good beer with good friends!beercanlah.com

github.com/beercanlah