Serv O'Beer With IPhone for the Perfect Pour
by polymythic in Circuits > Apple
18998 Views, 12 Favorites, 0 Comments
Serv O'Beer With IPhone for the Perfect Pour
With New Years fast approaching, I wanted to make a project that allows for the perfect pour and take out all of that physical work. Using Construx as the mechanical platform, a servo driving the action, and ioBridge controlling the system, I was able to achieve the perfect pour controlled with the turning of my iPhone (using the accelerometer feedback).
Construct Contrux Platform
Using Construx, create a platform that will hold the weight of a bottle of beer (soda works, but does not have the same aftereffect).
Enclose Servo
Enclose servo to keep the servo from turning as it torques the beer holder.
Perform "Dry" Run
While near the kitchen sink perform a "dry" run with water (no beer was harmed during the testing) and find the pivot points.
Connect and Calibrate Servos
Connect the servo to the ioBridge servo module. Calibrate using the module page to find the positions of the servo for the start of the pour and the end of the pour. You will have to readjust positions when the full weight of the bottle and beer are in the housing. Careful not to push the servo past its limits.
Setup HTML and JavaScript
On an empty HTML file, copy the servo widgets into the file. Add the orientation code from ioBridge's iTurn library to allow the iPhone to cause the widgets to execute depending on the orientation of the iPhone. I trigger the widget at 15 degrees off vertical to start the servo pouring. I finish the pour at -90 degrees. If I turn the phone in the opposite direction the Serv O'Beer resets its position.
Perform Calibration of Servo Positions and Speed
Under the full weight of a bottle of "water" (no beer wasting is my credo) recalibrate the positions and servo speed. Go ahead and do a test pour. I had some towels handy, because the first run threw water all over the desk.
Pour Beer (It's Go Time)
It's time for the perfect pour. Load up a new bottle of beer (or another tasty beverage of your choosing). Make sure to enjoy the perfect pour with Serv O'Beer after turning your iPhone.