Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: 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).
Step 2: Enclose Servo
Enclose servo to keep the servo from turning as it torques the beer holder.
Step 3: 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.
Step 4: 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.
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.
Step 6: 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.