Step 3: IO Fridge
Add a servo smart board to the iobridge 204 micro controller.
Add a "single servo position widget" to the iobridge dash board using the location that retains the beer on the shelf. This setting is the "up" position. Next, find a value that is 90 degrees away from the up position to release the beer and create another widget for this "down" location. You should now have two iobridge widgets on your iobridge dashboard that you can name "servo up" and "servo down" respectively. Complete this step for each servo that will be vending beer. You now have a working vending machine! But what fun is that? Let's shoot some beers.
In order to create a internet controlled switch, you will need an iobridge relay board. Pick a port on the iobridge and assign a "Digital Output Pulse Widget." Assign its pulse width to 100ms . Connect the wire connecting to the positive side of the nine volt battery to the "common (C)" screw terminal on the relay. Connect the negative wire to one of the wires on the
sprinkler valve. Connect the remaining wire on the sprinkler valve into the "Normally Open (NO)" screw terminal. This will create a digital switch that will open the valve for one tenth of a second when the "Fire" button is pressed releasing the compressed air and firing your beer. Hook it up exactly like I did in the picture and you can skip all the electrical jargon.
Editor's note: adding widgets on the iobridge dashboard is
extremely easy so I did not go into detail.