Controlling Pumps With Raspberry Pi and GUI Touchscreen: Perfect Pour Drink Dispenser

by cheiner32 in Circuits > Raspberry Pi

1995 Views, 21 Favorites, 0 Comments

Controlling Pumps With Raspberry Pi and GUI Touchscreen: Perfect Pour Drink Dispenser

Demonstration of the Bar in Action!
Using the Perfect Pour to quickly dispense 0.5oz, 1oz, and 2oz
Full Bar Picture.jpg
image0 (14).jpeg
Full Bar Picture 2.jpg

Summary:

Do you want to modernize your home bar experience while still maintaining a classy and stylish bar feel? Here is a versatile project that can be easily modified to meet your own design. The goal of this project is to bring together a raspberry pi, touch screen, diaphragm pumps, and various electrical components to automatically pour six different drinks. Each of the six options can be quickly poured to either 0.5oz, 1oz, 2oz, and a free flow.

This project serves as a great beginners guide to programming graphical user interfaces(GUI) and learning to control mechanical components with digital call outs.

These instructions will take you though the following:

  • Supplies
  • Step 1: Raspberry pi code download walkthrough
  • Step 2: Wiring schematic
  • Step 3: Custom CAD parts download
  • Steps 4-9: Preparing parts
  • Steps 10-29: Bar assembly walkthrough
  • Step 30: Loading Bottles
  • Step 31: Finished

Supplies

Electronics:


Quantity: 1 ----- Raspberry Pi Model 3 A+

Quantity: 1 ----- GeeekPi 5 inch HDMI Monitor LCD Resistive Touch Screen 800x480 LCD Display USB Interface for Raspberry Pi 4 Model B, Pi 3/2 Model B/B+ & Banana Pi (Plug and Play Free Driver)

Quantity: 1 ----- ANMBEST Relay Module with Optocoupler High/Low Level Trigger for Arduino (5V Relay 6 Channel)

Quantity: 1 ----- 3Dman 15A 250V Rocker Switch Power Socket Inlet Module Plug 5A Fuse Switch with 18 AWG Wiring 3 Pin IEC320 C14

Quantity: 1 ----- C2G Power Cord, Replacement Power Cable, 3 Pin Connector, Universal Power Cord, 5-15P to C13, 18 AWG, Black, 6 Feet (1.82 Meters), Cables to Go 03130

Quantity: 1 ----- inShareplus 12V 10A 120W, DC Universal Regulated Switching Power Supply, 100-240V AC to DC 12 Volt LED Driver, Converter, Transformer for LED Strip Light, CCTV, Computer Project, 3D Printer

Quantity: 1 ----- Pure Copper 20 AWG (American Wire Gauge) 100 ft Red & 100’ Black Bonded Zip Cord Power Speaker Cable for Car Audio Home Stereo LED Light (Also in 50 & 200ft Roll)

Quantity: 1 ----- EDGELEC 120pcs Breadboard Jumper Wires 10cm 15cm 20cm 30cm 40cm 50cm 100cm Wire Length Optional Dupont Cable Assorted Kit Male to Female Male to Male Female to Female Multicolored Ribbon Cables

Quantity: 1 ----- PCB007 1X 12 Position Power Distribution Board 2 Inputs 2 x 13 Outputs for DC AC Voltage New

Quantity: 1 ----- Buck Converter 12v to 5v, DROK 5A USB Voltage Regulator DC 9V-36V Step Down to DC 5V-5.3V 5.2V 3.5-6A Volt Transformer Power Supply Module for Phone Fast Charging

Quantity: 1 ----- Cablecc CYFPV FPV HDMI Male to Up Angled 90D HDMI Male HDTV FPC Flat Cable for FPV HDTV Multicopter Aerial Photography (50cm)

Quantity 1: ----- EWUONU Micro USB 90 Degree Cable [2 Pack 10FT] for Fire 7 HD8, Samsung Tablets, Galaxy S7 S6 Edge J8 J7, Xbox One, PS4 Controllers, Camera and More – Right Angled Micro USB Charging Cable


Hardware:


Quantity: 6 ----- Gikfun Mini DC 6V to 12V R385 Water cooled Water Pump Air Diaphragm Pump EK1856

Quantity: 6 (total) ----- Metaland One Way Check Valve, 1/4" Hose Barb Non Return Ozone Resistance Plastic Valve for Water Fuel Oil Air Gas

Quantity: 5 ----- 1 in. x 2 in. x 8 ft. Premium Kiln-Dried Square Edge Whitewood Common Board

Quantity: 3 ----- 1/4 in. x 2 ft. x 4 ft. PureBond Maple Plywood Project Panel

Quantity: 1 ----- Poplar Board (Common: 1 in. x 6 in. x R/L; Actual: 0.75 in. x 5.5 in. x R/L)

Quantity: 1pk -----1-1/2 in. Stainless Finishing Nails

Quantity: 1pk ----- #19 x 1/2 in. Zinc Wire Nails

Quantity: 1pk ----- #6 x 1/2 in. Phillips Round Head Aluminum Sheet Metal Screw

Quantity: 1pk ----- #6 x 1/2 in. Phillips Flat Head Zinc Plated Wood Screw

Quantity: 1pk ----- #8 x 1-1/2 in. Zinc Plated Phillips Flat Head Wood Screw

Quantity: 1pk ----- #8 x 2 in. Phillips Bugle-Head Coarse Thread Sharp Point Polymer Coated Exterior Screws

Quantity: 1 ----- Wood Glue

Quantity: At least 25ft. ----- Sealproof Unreinforced PVC 1/4-Inch-ID x 3/8-Inch OD Food Grade Clear Vinyl Tubing, 10 FT,

Quantity: At least 3ft. ----- Gikfun 9.84 Ft 3m Silicone Tube 2mm ID x 4mm OD Flexible Silicone Rubber Tubing Water Air Hose Pipe Transparent for DIY Peristaltic Pump Transfer EK1962

Quantity: 1 ----- Custom CAD Nozzle

Quantity: 1 ----- Custom CAD Screen Holder

Quantity: 2 ----- Custom CAD Knobs

Quantity: 1 can ----- Stain (of your choosing)

Quantity: 1 can ----- Varnish (of your choosing)

Quantity: 3 spray cans ----- Paint (of your choosing)

Raspberry Pi Code Download

User Interface Walkthrough

Raspberry Pi Code Instructions:

For instructions on setting up, and downloading the code for the raspberry pi follow the github link below.

https://github.com/Cheiner32/Perfect-Pour-Bar


Note that the pump run times and the names of the drinks can be changed within the code to suit your needs.

Wiring Schematic

Wire Schematic Picture.JPG

Custom CAD Parts

Assembly: Press fit 2 "Knob" parts into the "Screen Holder".

(This creates a shelf for an touch screen stylus.)

Preparing Parts

2 - Cut Wood to Length.JPG

Preparing Parts

3 - Board 1.JPG

Preparing Parts

4 - Board 2.JPG

Preparing Parts

5 - Board 3.JPG

Preparing Parts

6 - Planks.JPG

Preparing Parts

Bar Build 2.jpg
Bar Build 3.jpg

Stain and Varnish Boards.

Spray Paint the Planks.

Assembling the Bar

7 - 1.JPG

Assembling the Bar

8 - 2.JPG

Assembling the Bar

9-3.JPG

Assembling the Bar

10 - 4.JPG

Assembling the Bar

11 - 5.JPG

Drill 3/4" hole in center of board before attaching

Assembling the Bar

12 - 6.JPG

Assembling the Bar

13 - 7.JPG

Assembling the Bar

8-1.JPG

Assembling the Bar

15 - 9.JPG

Assembling the Bar

16 - 10.JPG

Assembling the Bar

17 - 11.JPG

Assembling the Bar

18 - 12.JPG

Assembling the Bar

19 - 13.JPG

Assembling the Bar

20 - 14.JPG

Assembling the Bar

21 - 15.JPG

Assembling the Bar

22 - 16.JPG

Assembling the Bar

23 - 17.JPG

Assembling the Bar

18-5.JPG

Assembling the Bar

25 - 19.JPG

Assembling the Bar

20-5.JPG

Loading Bottles

image1 (13).jpeg
Sliding off Side Panel

To load bottles slide the sides off and run tubing into bottles.

There is enough room for 6 bottles.

Finished Result!!

F70NAP9L6PI35SK.jpg
FTQKJNOL9PNCUTB.jpg
FORA241L6PI35T8.jpg