Automatic Drink Mixer - Rochester Institute of Technology

Download Report

Transcript Automatic Drink Mixer - Rochester Institute of Technology

Automatic Drink Mixer
Design Review
Team Members:
Ryan Bowen
Jake Czapeczka
Ken Smith Jr.
Agenda


Overview of System
Review of Components





Plumbing (Physical Components)
Circuitry
Database System
Software Interface
Discussion
System Overview

Normal Operation



System Setup
Drink Selection
Liquid Dispensing
System Overview

Abnormal Operation



Bottle Replacement
Manual System Halt
Software System Halt
Plumbing





Tubing/Fittings
Solenoid Valves / Air Relief Valves
Air Pressure System
Physical Layout
Cabinet
Plumbing – Tubing/Fittings

Tubing Type


Tubing Sizing



Plastic and flexible
Flow rate
Length of tubing
Compression Fittings

Nicely interfaces with solenoid valves
Plumbing – Valves

Solenoid Valves




12 DC 0.25A
Operating Range 0 – 40 psi
Normally Closed
Air Relief Valves


Removes air from line
Need to be oriented at an apex
Plumbing – Air Pressure System

Air Compressor




Max Pressure – 135 psi
Volume – 1.5 gallon tank
Automatic pressure maintenance
Pressurized Bottles


Air input, liquid output lines
Rubber stopper
Plumbing – Physical Layout










A – Solenoid Valve 1
B – Solenoid Valve 2
C – Air Relief Valve
D – Bottle with Rubber Stopper
E – Check Value
F – Air Compressor
1 – Multiple F-E Connections
2 – Normalized Filling Chamber
3 – Pressurized Liquid
5 – Liquor Dispenser
Plumbing - Cabinet
Circuitry





Parallel Port
PAL Chip
Darlington Circuit
Next State Logic
Java-based Hardware Drivers
Circuitry – Parallel Port

Parallel Port Pin out



Line Control (Bits 0 – 4 )
Solenoid Control (Bits 5,6)
System Pause (Bit 7)
Circuitry – PAL Chip




System calls for 64 solenoid valves to
be controlled by 7 bits.
PAL chips allow for full selection
programming
Global reset can be include in PAL
PAL also can fake internal clock
Circuitry – Darlington Circuit


Solenoid valves require more voltage
and current than normal TTL
Darlington circuit – consists of pair of
BJT transistors


Able to drive large load
5V TTL compatible
Circuitry – Next State Logic
5V
12V
U2A
1
U1A
1
3
2
2 2
Sol
2
U8A
3
1
2
13
U1A
12 1
2
7404
7408
U4A
7427
2
3
D
PRE
1
CLR
Sel
7408
U3A
4
L1
7404
Q
CLK Q
5
6
3
1
2
3
7432
CLK
1
RST
D1
Bbreak
B1
7402
7404
U6A
1
1
B2
3
U1A
7408
1k
2
7474
2
B7
R1
U5A
21
1
10uH
U7A
Bbreak
Circuitry – Drivers
12V
2
L1
10uH
1
D1
Database System




Database Manager – PostgreSQL
Scheme - UML Diagram
Database Drivers (JDBD and Custom)
Add/Delete/Modify as Triggers
Database – PostgreSQL

PostgreSQL - Database Manager




Freely Available
Cross-Platform Capable
Object-Oriented Database
PGAdmin – Database Utility


Graphically manage database
Shell provided to execute SQL queries
Database – UML Diagram
FK – Foreign Key
PK – Primary Key
Bold – Required
Database – JDBC Driver

JDBC – Java driver package



Library of function calls specific to the
database manager (PostgreSQL)
These function calls allow for connections,
queries, and updates to the database
Required in the CLASSPATH
Database – Custom Drivers

Custom Java-based Database Drivers

Database Controller



Drink Controller


Establishes connection to database
Queries the database
Retrieves and stores data that involve drinks
including their recipes and ingredients
Cabinet Controller

Retrieves and stores data that is involve with the
physical components (Bottles used, Quantity, etc)
Database - Triggers

Triggers




SQL code sequences
Stored within the Database Manager
Executed locally to the Database Manager
Possible Trigger Implementation


Adding/Deleting/Updating data where
constraints exist
Example – Adding an ingredient for a drink
Software - GUI






Main Frame – application foundation
Bottle Pane
Top10 & Recent Recipes
Search Pane
Browse Pane
Custom Pane
Software – GUI

Bottle Pane



Top 10 Drinks


Progress Bars for Fluid Levels
Bottle Status Database Driven
Polls Database for Top 10 drinks
10 Most Recent Recipes

Polls Database for last 10 unique drinks made
Software - GUI

Search Pane


Browse Pane


Searches database drink names like string
in a text field.
Search database drink names based on its
ingredients
Custom Pane

Create your own drink by adding
ingredients and their quantities.
Questions and Comments