kegkong: automated keg system, presented at the flatiron school
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 GonzalesTRANSCRIPT
KegKong:Automated Keg System
Grumpycat ProductionsJoe Giralt Chris GonzalesJordán Treviño
@joegiralt @chrisgonzgonz@jordangtrevino
Friday, July 12, 13
Friday, July 12, 13
Friday, July 12, 13
Enter the KegKong
• Approach and Tools
➡ Web app
➡ Hardware
➡ Process
• Challenges
Friday, July 12, 13
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
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
Friday, July 12, 13
Keg has_many Measurements
Friday, July 12, 13
Friday, July 12, 13
Charting and Serial• Chris
Friday, July 12, 13
Friday, July 12, 13
Hardware issues
• Why Arduino and Raspberry Pi?
• Wiring up
• Setting-up flowmeter
Friday, July 12, 13
Friday, July 12, 13
Friday, July 12, 13
Friday, July 12, 13
• 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
Challenges
• Setting-up hardware
• Communicating to Arduino via Serialport
• Dual-access to database
• Testing environment
• Deployment to production
Friday, July 12, 13
What’s next?
• First-time in Ruby
• Open-source project
• Contributions welcome!
• Stay tuned
• Thanks for the support!
Friday, July 12, 13
Friday, July 12, 13