19
KegKong: Automated Keg System Grumpycat Productions Joe Giralt Chris Gonzales Jordán Treviño @joegiralt @chrisgonzgonz @jordangtrevino Friday, July 12, 13

KegKong: Automated Keg System, presented at the Flatiron School

Embed Size (px)

DESCRIPTION

This automated keg system was built at the Flatiron School, using Ruby, Arduino, a Raspberry Pi and most importantly: our trusty keg. Creators are: Jordan Trevino, Joe Giralt, Chris Gonzales

Citation preview

Page 1: KegKong: Automated Keg System, presented at the Flatiron School

KegKong:Automated Keg System

Grumpycat ProductionsJoe Giralt Chris GonzalesJordán Treviño

@joegiralt @chrisgonzgonz@jordangtrevino

Friday, July 12, 13

Page 2: KegKong: Automated Keg System, presented at the Flatiron School

Friday, July 12, 13

Page 3: KegKong: Automated Keg System, presented at the Flatiron School

Friday, July 12, 13

Page 4: KegKong: Automated Keg System, presented at the Flatiron School

Enter the KegKong

• Approach and Tools

➡ Web app

➡ Hardware

➡ Process

• Challenges

Friday, July 12, 13

Page 5: KegKong: Automated Keg System, presented at the Flatiron School

Approach and tools• Ways of approach

‣ Weigh keg

‣ Measure beer leaving keg

• The toolset

‣ Hardware: Arduino, Raspberry Pi, Flowmeter

‣ Software: Sinatra Webapp, Ruby script to read frim flowmeter

Friday, July 12, 13

Page 6: KegKong: Automated Keg System, presented at the Flatiron School

Sinatra webapp• Sinatra web framework

• ActiveRecord

• Ruby script

• Twitter Bootstrap

• JavaScript

• Mailer Gem

Languages involved in the project✓ Ruby✓ HTML/CSS/JavaScript ✓ Sql✓ Arduino (from C++)✓ Python✓ Bash scripts✓ Cron DSL

Friday, July 12, 13

Page 7: KegKong: Automated Keg System, presented at the Flatiron School

Friday, July 12, 13

Page 8: KegKong: Automated Keg System, presented at the Flatiron School

Keg has_many Measurements

Friday, July 12, 13

Page 9: KegKong: Automated Keg System, presented at the Flatiron School

Friday, July 12, 13

Page 10: KegKong: Automated Keg System, presented at the Flatiron School

Charting and Serial• Chris

Friday, July 12, 13

Page 11: KegKong: Automated Keg System, presented at the Flatiron School

Friday, July 12, 13

Page 12: KegKong: Automated Keg System, presented at the Flatiron School

Hardware issues

• Why Arduino and Raspberry Pi?

• Wiring up

• Setting-up flowmeter

Friday, July 12, 13

Page 13: KegKong: Automated Keg System, presented at the Flatiron School

Friday, July 12, 13

Page 14: KegKong: Automated Keg System, presented at the Flatiron School

Friday, July 12, 13

Page 15: KegKong: Automated Keg System, presented at the Flatiron School

Friday, July 12, 13

Page 16: KegKong: Automated Keg System, presented at the Flatiron School

• Arduino “Hello World” test

• Flowmeter sink test

• Local-network server

• SSH into Raspberry Pi

• Git to share code

• Dual access to database

Friday, July 12, 13

Page 17: KegKong: Automated Keg System, presented at the Flatiron School

Challenges

• Setting-up hardware

• Communicating to Arduino via Serialport

• Dual-access to database

• Testing environment

• Deployment to production

Friday, July 12, 13

Page 18: KegKong: Automated Keg System, presented at the Flatiron School

What’s next?

• First-time in Ruby

• Open-source project

• Contributions welcome!

• Stay tuned

• Thanks for the support!

Friday, July 12, 13

Page 19: KegKong: Automated Keg System, presented at the Flatiron School

Friday, July 12, 13