View
215
Download
1
Embed Size (px)
Citation preview
Midterm Design Review
December 12, 2003
T.A.B. Team Members
Matthew T. FulchinoLaurence GitlitzNicholas Burgan-IlligKeith Goldrick
T.A.B. Faculty Advisor
Professor Aura Ganz
T.A.B./Project Motivation
Origin
• Amherst Brewing Company
• Bartender makes no tips for table ordered drinks - inefficient
Goals
• Decrease drink wait time for seated patrons
• Increase bartender efficiency
• Easy to operate
• Production at an affordable price
• Should NOT replace the Bartender
Target Audience
• Restaurants / Pubs
T.A.B./Project Motivation Cont.
Marketability
• Scalable Production
• Huge Market i.e., EVERY restaurant/pub where the bartender makes table ordered mixed drinks
• Huge market means potential for large profit
• Restaurants already use POS terminals – no learning curve
• Automated Liquor Dispensers exist, but nothing that actually mixes the drink and dispenses it…
Plan of Attack
Break Design into Components
• Software – Java
• Hardware – PIC Assembly
• Electromechanical
1. Allows for individual focus and encourages peer interaction
2. Time management
3. Top-Down approach
Project Design – Block Conception
Point of Sale Terminal (GUI)PIC Microcontroller and
Relay SystemMixing/Dispensing Apparatus
Handshake
Status Update
Control
Automated BartenderGeneral Block Diagram
Point of Sale Terminal (GUI)PIC Microcontroller and
Relay SystemMixing/Dispensing Apparatus
Handshake
Status Update
Control
Automated BartenderGeneral Block Diagram
Project Design – Block Conception
Project Design – POS Terminal
Front End - GUI
OPTIONS
• Select a Drink
• Create a New Drink
Drink Database
• Drink Names
• Mix Parameters
Select a Drink
New Drink Menu
Fields
• Drink Name
• Liquors and QuantitiesLiquors Available
Create a Drink
Save Drink to DB?
Output via RS-232
• Systems Management
NO
Point of Sale TerminalWorkstation User Interface
YES
Project Design – POS Terminal
Front End - GUI
OPTIONS
• Select a Drink
• Create a New Drink
Drink Database
• Drink Names
• Mix Parameters
Select a Drink
New Drink Menu
Fields
• Drink Name
• Liquors and QuantitiesLiquors Available
Create a Drink
Save Drink to DB?
Output via RS-232
• Systems Management
NO
Point of Sale TerminalWorkstation User Interface
YES
Project Design – POS Terminal
Front End - GUI
OPTIONS
• Select a Drink
• Create a New Drink
Drink Database
• Drink Names
• Mix Parameters
Select a Drink
New Drink Menu
Fields
• Drink Name
• Liquors and QuantitiesLiquors Available
Create a Drink
Save Drink to DB?
Output via RS-232
• Systems Management
NO
Point of Sale TerminalWorkstation User Interface
YES
Project Design – POS Terminal
Front End - GUI
OPTIONS
• Select a Drink
• Create a New Drink
Drink Database
• Drink Names
• Mix Parameters
Select a Drink
New Drink Menu
Fields
• Drink Name
• Liquors and QuantitiesLiquors Available
Create a Drink
Save Drink to DB?
Output via RS-232
• Systems Management
NO
Point of Sale TerminalWorkstation User Interface
YES
Project Design – POS Terminal
Front End - GUI
OPTIONS
• Select a Drink
• Create a New Drink
Drink Database
• Drink Names
• Mix Parameters
Select a Drink
New Drink Menu
Fields
• Drink Name
• Liquors and QuantitiesLiquors Available
Create a Drink
Save Drink to DB?
Output via RS-232
• Systems Management
NO
Point of Sale TerminalWorkstation User Interface
YES
Project Design – POS Terminal
Front End - GUI
OPTIONS
• Select a Drink
• Create a New Drink
Drink Database
• Drink Names
• Mix Parameters
Select a Drink
New Drink Menu
Fields
• Drink Name
• Liquors and QuantitiesLiquors Available
Create a Drink
Save Drink to DB?
Output via RS-232
• Systems Management
NO
Point of Sale TerminalWorkstation User Interface
YES
Project Design – POS Terminal
Front End - GUI
OPTIONS
• Select a Drink
• Create a New Drink
Drink Database
• Drink Names
• Mix Parameters
Select a Drink
New Drink Menu
Fields
• Drink Name
• Liquors and QuantitiesLiquors Available
Create a Drink
Save Drink to DB?
Output via RS-232
• Systems Management
NO
Point of Sale TerminalWorkstation User Interface
YES
Project Design – POS Terminal
Front End - GUI
OPTIONS
• Select a Drink
• Create a New Drink
Drink Database
• Drink Names
• Mix Parameters
Select a Drink
New Drink Menu
Fields
• Drink Name
• Liquors and QuantitiesLiquors Available
Create a Drink
Save Drink to DB?
Output via RS-232
• Systems Management
NO
Point of Sale TerminalWorkstation User Interface
YES
Project Design – POS Terminal
Front End - GUI
OPTIONS
• Select a Drink
• Create a New Drink
Drink Database
• Drink Names
• Mix Parameters
Select a Drink
New Drink Menu
Fields
• Drink Name
• Liquors and QuantitiesLiquors Available
Create a Drink
Save Drink to DB?
Output via RS-232
• Systems Management
NO
Point of Sale TerminalWorkstation User Interface
YES
Project Design – POS Terminal
Front End - GUI
OPTIONS
• Select a Drink
• Create a New Drink
Drink Database
• Drink Names
• Mix Parameters
Select a Drink
New Drink Menu
Fields
• Drink Name
• Liquors and QuantitiesLiquors Available
Create a Drink
Save Drink to DB?
Output via RS-232
• Systems Management
NO
Point of Sale TerminalWorkstation User Interface
YES
Project Design – Block Conception
Point of Sale Terminal (GUI)PIC Microcontroller and
Relay SystemMixing/Dispensing Apparatus
Handshake
Status Update
Control
Automated BartenderGeneral Block Diagram
Point of Sale Terminal (GUI)PIC Microcontroller and
Relay SystemMixing/Dispensing Apparatus
Handshake
Status Update
Control
Automated BartenderGeneral Block Diagram
Project Design – Block Conception
PIC Microcontroller
Output Expansion
Chips
Relay Board
RS – 232Input/Output
from POS Terminal
Relay Control
Data // Clk // Shift
120VAC Power to Valve/Pump
System
PIC Microcontroller + Relay System
PIC Microcontroller
Output Expansion
Chips
Relay Board
RS – 232Input/Output
from POS Terminal
Relay Control
Data // Clk // Shift
120VAC Power to Valve/Pump
System
PIC Microcontroller + Relay System
Microcontroller Communication
Drink Data Reception
ERROR?Error Transmit to GUI via RS-232
YES
EEPROM Storage
Control Phase
NO
Microcontroller Communication
Drink Data Reception
ERROR?Error Transmit to GUI via RS-232
YES
EEPROM Storage
Control Phase
NO
Microcontroller Communication
Drink Data Reception
ERROR?Error Transmit to GUI via RS-232
YES
EEPROM Storage
Control Phase
NO
Microcontroller Communication
Drink Data Reception
ERROR?Error Transmit to GUI via RS-232
YES
EEPROM Storage
Control Phase
NO
Microcontroller Communication
Drink Data Reception
ERROR?Error Transmit to GUI via RS-232
YES
EEPROM Storage
Control Phase
NO
Microcontroller Communication
Drink Data Reception
ERROR?Error Transmit to GUI via RS-232
YES
EEPROM Storage
Control Phase
NO
Microcontroller Communication
Drink Data Reception
ERROR?Error Transmit to GUI via RS-232
YES
EEPROM Storage
Control Phase
NO
Microcontroller Communication
Drink Data Reception
ERROR?Error Transmit to GUI via RS-232
YES
EEPROM Storage
Control Phase
NO
Microcontroller Communication
Drink Data Reception
ERROR?Error Transmit to GUI via RS-232
YES
EEPROM Storage
Control Phase
NO
PIC Microcontroller
Output Expansion
Chips
Relay Board
RS – 232Input/Output
from POS Terminal
Relay Control
Data // Clk // Shift
120VAC Power to Valve/Pump
System
PIC Microcontroller + Relay System
PIC Microcontroller
Output Expansion
Chips
Relay Board
RS – 232Input/Output
from POS Terminal
Relay Control
Data // Clk // Shift
120VAC Power to Valve/Pump
System
PIC Microcontroller + Relay System
PIC Microcontroller
Output Expansion
Chips
Relay Board
RS – 232Input/Output
from POS Terminal
Relay Control
Data // Clk // Shift
120VAC Power to Valve/Pump
System
PIC Microcontroller + Relay System
PIC Microcontroller
Output Expansion
Chips
Relay Board
RS – 232Input/Output
from POS Terminal
Relay Control
Data // Clk // Shift
120VAC Power to Valve/Pump
System
PIC Microcontroller + Relay System
Point of Sale Terminal (GUI)PIC Microcontroller and
Relay SystemMixing/Dispensing Apparatus
Handshake
Status Update
Control
Automated BartenderGeneral Block Diagram
Project Design – Block Conception
Point of Sale Terminal (GUI)PIC Microcontroller and
Relay SystemMixing/Dispensing Apparatus
Handshake
Status Update
Control
Automated BartenderGeneral Block Diagram
Project Design – Block Conception
Point of Sale Terminal (GUI)PIC Microcontroller and
Relay SystemMixing/Dispensing Apparatus
Handshake
Status Update
Control
Automated BartenderGeneral Block Diagram
Project Design – Block Conception
Pressurized CO2Gas
Regulator ONE
LiquidsFLO-JET Pumps
Liquid Solenoid Valve
Valve Manifold
Mixing System
Gas Regulator
TWO
Solenoid Gas Valve ONE
Solenoid Gas Valve TWO
From Relay
Control
Mixing and Dispensing Subsystem
Finished Product
Pressurized CO2Gas
Regulator ONE
LiquidsFLO-JET Pumps
Liquid Solenoid Valve
Valve Manifold
Mixing System
Gas Regulator
TWO
Solenoid Gas Valve ONE
Solenoid Gas Valve TWO
From Relay
Control
Mixing and Dispensing Subsystem
Finished Product
Pressurized CO2Gas
Regulator ONE
LiquidsFLO-JET Pumps
Liquid Solenoid Valve
Valve Manifold
Mixing System
Gas Regulator
TWO
Solenoid Gas Valve ONE
Solenoid Gas Valve TWO
From Relay
Control
Mixing and Dispensing Subsystem
Finished Product
Pressurized CO2Gas
Regulator ONE
LiquidsFLO-JET Pumps
Liquid Solenoid Valve
Valve Manifold
Mixing System
Gas Regulator
TWO
Solenoid Gas Valve ONE
Solenoid Gas Valve TWO
From Relay
Control
Mixing and Dispensing Subsystem
Finished Product
LiquidsFLO-JET Pumps
Liquid Solenoid Valve
Valve Manifold
Mixing System
Solenoid Gas Valve ONE
Solenoid Gas Valve TWO
From Relay
Control
Mixing and Dispensing SubsystemSimplified Model
Finished Product
LiquidsFLO-JET Pumps
Liquid Solenoid Valve
Valve Manifold
Mixing System
Solenoid Gas Valve ONE
Solenoid Gas Valve TWO
From Relay
Control
Mixing and Dispensing SubsystemSimplified Model
Finished Product
LiquidsFLO-JET Pumps
Liquid Solenoid Valve
Valve Manifold
Mixing System
Solenoid Gas Valve ONE
Solenoid Gas Valve TWO
From Relay
Control
Mixing and Dispensing SubsystemSimplified Model
Finished Product
LiquidsFLO-JET Pumps
Liquid Solenoid Valve
Valve Manifold
Mixing System
Solenoid Gas Valve ONE
Solenoid Gas Valve TWO
From Relay
Control
Mixing and Dispensing SubsystemSimplified Model
Finished Product
LiquidsFLO-JET Pumps
Liquid Solenoid Valve
Valve Manifold
Mixing System
Solenoid Gas Valve ONE
Solenoid Gas Valve TWO
From Relay
Control
Mixing and Dispensing SubsystemSimplified Model
Finished Product
LiquidsFLO-JET Pumps
Liquid Solenoid Valve
Valve Manifold
Mixing System
Solenoid Gas Valve ONE
Solenoid Gas Valve TWO
From Relay
Control
Mixing and Dispensing SubsystemSimplified Model
Finished Product
LiquidsFLO-JET Pumps
Liquid Solenoid Valve
Valve Manifold
Mixing System
Solenoid Gas Valve ONE
Solenoid Gas Valve TWO
From Relay
Control
Mixing and Dispensing SubsystemSimplified Model
Point of Sale Terminal (GUI)PIC Microcontroller and
Relay SystemMixing/Dispensing Apparatus
Handshake
Status Update
Control
Automated BartenderGeneral Block Diagram
Project Design – Block Conception
Point of Sale Terminal (GUI)PIC Microcontroller and
Relay SystemMixing/Dispensing ApparatusControl
Automated BartenderPrototype Block Diagram
Prototype Design – Block Conception
Prototype Design – POS Terminal
Front End - GUI
OPTIONS
• Select a Drink
• Create a New Drink
Drink Database
• Drink Names
• Mix Parameters
Select a Drink
New Drink Menu
Fields
• Drink Name
• Liquors and QuantitiesLiquors Available
Create a Drink
Save Drink to DB?
• Systems Management
YES
Point of Sale TerminalWorkstation User Interface
NO RS-232 COMM.
GUI Screen Shots
Drink Selection Drink Database
GUI Screen Shots
Pump Identification
Name File
Liquid Database Addition
New Drink Creation
GUI Testing
User Interface
• Test code that prints internal information to the console
• Output to console in place of serial communication
• Different layouts tested for usability
• Error robustness
Database
• Invalid entries and database format
• Duplicate entries
Prototype Design – Block Conception
Point of Sale Terminal (GUI)PIC Microcontroller and
Relay SystemMixing/Dispensing ApparatusControl
Automated BartenderPrototype Block Diagram
PIC Microcontroller
Output Expansion
Chips
Relay Board
RS – 232Input/Output
from POS Terminal
Relay Control
Data // Clk // Shift
120VAC Power to Valve/Pump
System
PIC Microcontroller + Relay System
PIC Microcontroller
Output Expansion
Chip
Relay
Terminal Control via RS-
232
Relay Control
Data // Clk // Shift
120VAC Power Fluid Control
Valve
PIC Microcontroller + Relay SystemPrototype
Point of Sale Terminal (GUI)PIC Microcontroller and
Relay SystemMixing/Dispensing ApparatusControl
Automated BartenderPrototype Block Diagram
Prototype Design – Block Conception
Point of Sale Terminal (GUI)PIC Microcontroller and
Relay SystemMixing/Dispensing ApparatusControl
Automated BartenderPrototype Block Diagram
Prototype Design – Block Conception
Pressurized CO2Gas
Regulator ONE
LiquidsFLO-JET Pumps
Liquid Solenoid Valve
Valve Manifold
Mixing System
Gas Regulator
TWO
Solenoid Gas Valve ONE
Solenoid Gas Valve TWO
From Relay
Control
Mixing and Dispensing Subsystem
Finished Product
Pressurized CO2Gas
Regulator ONE
WaterSingle FLO-JET
Pump
Liquid Solenoid Valve
Mixing and Dispensing Subsystem - Prototype
Relay Controlled via PIC
Simplifications:Single PumpWater OnlySingle PIC Control SignalSingle Tube Between FLO-
JET and Liquid Output
Hardware Testing
Pressure
• Different gas pressure produces different flow rates
• Small changes in pressure = large liquid flow rate changes
• Time vs. Volume and Speed – Controllability
• Fluid Timing
Communication
POS Computer – PIC Microcontroller
• RS-232
• Byte driven operations
• Bi-directional
PIC Microcontroller – Mixing Apparatus
• PIC Output Expansion Chips
• 5VDC / 120VAC @ 12A(max) Relay Subsystem
Point of Sale Terminal (GUI)PIC Microcontroller and
Relay SystemMixing/Dispensing Apparatus
Handshake
Status Update
Control
Challenges
Scope
• Diverse Disciplines ( Software, Hardware, Electromechanical )
• Scale
Software
• Java serial communication
• Database Design
• User Friendly GUI
Hardware
• Valve timing control
• GUI + Mixing Apparatus Interaction
• Fluid Control – Valves, Pressure
Challenges - Solved
Scope
• Modular Design
Software
• ECE 242 (Java) techniques used in program development
• ECE 397a (Software Engin.) employed to develop database
Hardware
• ECE 354 (CS II) PIC software development
• ECE 354 (CS II) Analog Communication Tools
• ECE 323 (Electronics) Assisted in relay subsystem design
Point of Sale Terminal (GUI)PIC Microcontroller and
Relay SystemMixing/Dispensing Apparatus
Handshake
Status Update
Control
Challenges – Solved Cont.
Hardware
• Component by component approach
• ECE acquired knowledge utilized to solve problems
• Employing resources on hand to solve raised issues
Status Report
MDR Specifications
• Operational GUI
• PIC control over a single valve
• Ability to pump a single liquid (water)
• Designed to be scalable
Status Report
MDR Specifications
• Operational GUI
• PIC control over a single valve
• Ability to pump a single liquid (water)
• Designed to be scalable
Status Report
MDR Specifications
• Operational GUI
• PIC control over a single valve
• Ability to pump a single liquid (water)
• Designed to be scalable
Status Report
MDR Specifications
• Operational GUI
• PIC control over a single valve
• Ability to pump a single liquid (water)
• Designed to be scalable
Status Report
MDR Specifications
• Operational GUI
• PIC control over a single valve
• Ability to pump a single liquid (water)
• Designed to be scalable
Budget Breakdown
Budget Information
• Fiscally Strong - $440 Left in Budget
• Over $900 in donations
Conclusion
Current State of Design
• Achieved All Semester One Goals
• Positioned well for 2nd half of SDP
• Strong Team Dynamic – Strong Work Ethic
• Much work to do
Current Budget
• Well within our allotted budget
Future Projections
• Projected success post SDP ‘04
• On track for Iced Coffee and Mixed Drinks in May ‘04
Thank You
Faculty Board Members
Professor Aura Ganz
Transmission Coding
Instruction Process 8-Byte Blocks
Transmission Bytes
• START – Begin a new drink request
• PUMP ID – Ready PIC for Pump ID #
• PID # - Pump ID #
• QUANTITY – Ready PIC for quantity information
• QNUM – Number of ¼ ounce increments
• MIXING ID – Ready PIC for mixing information
• MIXINFO – Mixing specifications
• END – End new drink request
START PUMP ID PID # QUANTITY QNUM MIXING ID MIXINFO END
Database Design
Database Schema
• Utilizes Java StringTokenizer
• Easily updatable
• Intuitive
Entry Format
1 Drink Name : Ingredient.1 Q_Number Ingredient.2 Q_Number
Drink ID, Drink Name, :, Ingredient, Quantity, Ingredient...
Example Entries
1 Rum and Coke : Rum 8 Coke 20
2 Gin and Tonic : Gin 4 Tonic 20
3 Iced Coffee : Coffee 20
Safety Information
FDA Requirements
• All liquid tubing/connections FDA tested/certified
• FLO-JET Pumps used by Coca-Cola for soda dispensers
• ASCO Valves – Often used in Bio-Med industry - isolated
• CO2 Does not interact with liquid, but is Med. Certified
Safety is PARAMOUNT
• Limiting factor
• Expensive
’03 Timeline
11/10/2003 12/08/2003
11/16/2003 11/23/2003 11/30/2003 12/07/2003
11/10/2003 - 11/20/2003Pump/Valve System Prototyping
11/10/2003 - 11/24/2003GUI Design
11/19/2003 - 12/01/2003PIC/GUI Handshake Prototype Design
11/25/2003 - 12/05/2003Establish PIC – Apparatus Control
12/03/2003 - 12/08/2003Ready Demo. Prototype
’04 Timeline
1/1/2004 5/10/2004
2/1/2004 3/1/2004 4/1/2004 5/1/2004
1/1/2004 - 3/1/2004Complete Comm. Control
1/1/2004 - 2/14/2004Build Pump Subsystem
2/14/2004 - 4/17/2004Create Mixing System
4/17/2004 - 5/10/2004Test Design / Tweak