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
![Page 1: KegKong: Automated Keg System, presented at the Flatiron School](https://reader034.vdocuments.us/reader034/viewer/2022051322/545caeebaf7959be098b490e/html5/thumbnails/1.jpg)
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](https://reader034.vdocuments.us/reader034/viewer/2022051322/545caeebaf7959be098b490e/html5/thumbnails/2.jpg)
Friday, July 12, 13
![Page 3: KegKong: Automated Keg System, presented at the Flatiron School](https://reader034.vdocuments.us/reader034/viewer/2022051322/545caeebaf7959be098b490e/html5/thumbnails/3.jpg)
Friday, July 12, 13
![Page 4: KegKong: Automated Keg System, presented at the Flatiron School](https://reader034.vdocuments.us/reader034/viewer/2022051322/545caeebaf7959be098b490e/html5/thumbnails/4.jpg)
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](https://reader034.vdocuments.us/reader034/viewer/2022051322/545caeebaf7959be098b490e/html5/thumbnails/5.jpg)
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](https://reader034.vdocuments.us/reader034/viewer/2022051322/545caeebaf7959be098b490e/html5/thumbnails/6.jpg)
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](https://reader034.vdocuments.us/reader034/viewer/2022051322/545caeebaf7959be098b490e/html5/thumbnails/7.jpg)
Friday, July 12, 13
![Page 8: KegKong: Automated Keg System, presented at the Flatiron School](https://reader034.vdocuments.us/reader034/viewer/2022051322/545caeebaf7959be098b490e/html5/thumbnails/8.jpg)
Keg has_many Measurements
Friday, July 12, 13
![Page 9: KegKong: Automated Keg System, presented at the Flatiron School](https://reader034.vdocuments.us/reader034/viewer/2022051322/545caeebaf7959be098b490e/html5/thumbnails/9.jpg)
Friday, July 12, 13
![Page 10: KegKong: Automated Keg System, presented at the Flatiron School](https://reader034.vdocuments.us/reader034/viewer/2022051322/545caeebaf7959be098b490e/html5/thumbnails/10.jpg)
Charting and Serial• Chris
Friday, July 12, 13
![Page 11: KegKong: Automated Keg System, presented at the Flatiron School](https://reader034.vdocuments.us/reader034/viewer/2022051322/545caeebaf7959be098b490e/html5/thumbnails/11.jpg)
Friday, July 12, 13
![Page 12: KegKong: Automated Keg System, presented at the Flatiron School](https://reader034.vdocuments.us/reader034/viewer/2022051322/545caeebaf7959be098b490e/html5/thumbnails/12.jpg)
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](https://reader034.vdocuments.us/reader034/viewer/2022051322/545caeebaf7959be098b490e/html5/thumbnails/13.jpg)
Friday, July 12, 13
![Page 14: KegKong: Automated Keg System, presented at the Flatiron School](https://reader034.vdocuments.us/reader034/viewer/2022051322/545caeebaf7959be098b490e/html5/thumbnails/14.jpg)
Friday, July 12, 13
![Page 15: KegKong: Automated Keg System, presented at the Flatiron School](https://reader034.vdocuments.us/reader034/viewer/2022051322/545caeebaf7959be098b490e/html5/thumbnails/15.jpg)
Friday, July 12, 13
![Page 16: KegKong: Automated Keg System, presented at the Flatiron School](https://reader034.vdocuments.us/reader034/viewer/2022051322/545caeebaf7959be098b490e/html5/thumbnails/16.jpg)
• 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](https://reader034.vdocuments.us/reader034/viewer/2022051322/545caeebaf7959be098b490e/html5/thumbnails/17.jpg)
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](https://reader034.vdocuments.us/reader034/viewer/2022051322/545caeebaf7959be098b490e/html5/thumbnails/18.jpg)
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](https://reader034.vdocuments.us/reader034/viewer/2022051322/545caeebaf7959be098b490e/html5/thumbnails/19.jpg)
Friday, July 12, 13