Electrical Software DDR
Download
Report
Transcript Electrical Software DDR
P09321 DETAILED DESIGN REVIEW
ELECTRICAL/SOFTWARE/
FIRMWARE SYSTEMS
Felix Feliz
1
Matthew Jones
Michael Boquard
Rebecca Jaiven
Justin Zagorski
Shuaib Mansoori
OVERVIEW
1.
2.
3.
4.
5.
6.
7.
8.
9.
Project Intro & Dispenser Layout
Embedded System Selection
Firmware Data Flow
User Access Levels
GUI Mock Ups
EE Dispensing System
MSDII Timeline
Issues
Appendix
2
INTRO – PROJECT DESCRIPTION
o
o
o
Produce a robust prototype that dispenses
medication on a time-bases to patients in a
secure and accountable environment.
Allow to dispense a week’s supply of up to 6
different pills for two patients accessed twice
daily.
Reliable and compact electro-mechanical
dispensing system that can be controlled by a
common laptop.
3
INTRO – PROJECT DESCRIPTION
4
MECHANICAL LAYOUT
Lid
Cylinder Holder/
Latch
Empty
Return
Lid
Support
Rail
Leg
(Collapsible)
Ramp
(Collapsible)
5
DISPENSING PROCESS
6
REFILLING PROCESS
7
OVERVIEW
1.
2.
3.
4.
5.
6.
7.
8.
9.
Project Intro & Dispenser Layout
Embedded System Selection
Firmware Data Flow
User Access Levels
GUI Mock Ups
EE Dispensing System
MSDII Timeline
Issues
Appendix
8
EMBEDDED SYSTEM SELECTION
Field Programmable Gate Array (FPGA)
USB Microcontroller
EEPROM
FPGA SELECTION
Product Name I/O Pins
FPGA
Cost
EZ1CUSB
128
Altera Cyclone
$199/$219
EZ1KUSB
58
Altera ACEX
$169/$179/$189
EZ2USB
58
Xilinx SpartanII
$169/$179/$189
XEM3001
86
Xilinx Spartan
3
$174.98
9
XEM3001
10
XEM3001
Pro’s
One of the cheapest
Built in USB FPGA interface
High level of support and tools (SDK’s and API’s)
Good number of I/O Pins
Familiar with Xilinx Spartan 3 FPGA’s
Con’s
Hard to solder (easier than the other three)
Has male-female connectors that attach to the
holes
Needs to be programmed at start
Easy to reprogram with provided SDK (one line of
code!)
11
EEPROM COMPARISON:
PARALLEL OR SERIAL
Parallel
Series
Pro’s
Easiest to write to
Higher memory density
Better AC performance
Smaller footprint (only
about 8 pins)
Smaller power
consumption (good if an
onboard battery is used)
Faster access time
Cheaper
Con’s
Very large foot print (Size
of 2N bits requires N pins,
for addressing, and other
pins for power, select, etc)
Higher power consumption
Costly
Pro’s
Con’s
More complexity involved
in writing/reading data
from EEPROM
Conclusion: Series
Two different kinds of serial, SPI and I2C
12
EEPROM COMPARISON: SPI OR I2C
I2C
SPI
Pro’s
Easier to implement
multiple devices on same
bus
Communicate with onboard infrequently used
devices easily
Faster
Full-duplex
Less overhead than I2C due
to no addressing
Con’s
High complexity compared
to SPI
Half-duplex
Pro’s
Con’s
More devices requires more
wires and more hardware
Conclusion: SPI
Component Selected: Spansion 8-Mbit SPI EEPROM
13
OVERVIEW
1.
2.
3.
4.
5.
6.
7.
8.
9.
Project Intro & Dispenser Layout
Embedded System Selection
Firmware Data Flow
User Access Levels
GUI Mock Ups
EE Dispensing System
MSDII Timeline
Issues
Appendix
14
FIRMWARE DATA FLOW - EXISTING
15
FIRMWARE DATA FLOW - PROPOSED
16
OVERVIEW
1.
2.
3.
4.
5.
6.
7.
8.
9.
Project Intro & Dispenser Layout
Embedded System Selection
Firmware Data Flow
User Access Levels
GUI Mock Ups
EE Dispensing System
MSDII Timeline
Issues
Appendix
17
LEVELS OF USER ACCESS
Super User
Direct access to each solenoid
Can check and clear SmartCartridge™
Memory
User Access Control
Connect and remove SmartCartridge™
Set SmartCartridge™ Settings
Pulse time of solenoid
Sensor Sensitivity
18
LEVELS OF USER ACCESS – CONT.
Administrator
Pharmacist
User Access Control
Check SmartCartridge™ History
Connect and remove cartridge
Check SmartCartridge™ History
Add and adjust medication
Connect and remove cartridge
Delivery
Connect and remove cartridge
19
LEVELS OF USER ACCESS – CONT.
Caregiver
Can dispense medication for patient under
caregiver’s care
Patient
Can dispense own medication
20
OVERVIEW
1.
2.
3.
4.
5.
6.
7.
8.
9.
Project Intro & Dispenser Layout
Embedded System Selection
Firmware Data Flow
User Access Levels
GUI Mock Ups
EE Dispensing System
MSDII Timeline
Issues
Appendix
21
GUI Mockup – Connect
SmartCartridge™
22
GUI Mockup – Patient/Caregiver Screen
23
GUI Mockup – Patient/Caregiver Screen, cont.
24
GUI Mockup – Administrator/User
Access Control
25
GUI Mockup – Administrator/User
Access Control, cont.
26
GUI Mockup – Super User
27
GUI Mockup - Pharmacist
28
OVERVIEW
1.
2.
3.
4.
5.
6.
7.
8.
9.
Project Intro & Dispenser Layout
Embedded System Selection
Firmware Data Flow
User Access Levels
GUI Mock Ups
EE Dispensing System
MSDII Timeline
Issues
Appendix
29
EXISTING ELECTRICAL DISPENSING SYSTEM
30
Appendix D: Schematics
PROPOSED ELECTRICAL DISPENSING SYSTEM
31
Appendix XXXXX: Schematics
SYSTEM LEVEL CHANGES - ELECTRICAL
Existing
Change
3.3V Regulator
Remove
Mux/ Demux
System ROM
Non-standard connector
Memory Card Connector
Microcontroller
Sensors
FPGA
Remove
Update
Change
Remove
Remove
Addition
Update
Reason
Not necessary to power
components
Replace with FPGA
Old Technology
To USB 2.0 for standardization
Replace with Laptop
Replace with Laptop
Increased reliability and security
Old Technology
32
POWER BUDGET
USB (outputs 2W per connection)
Power Supply (outputs 30W)
Component
Component
Watts Consumed
Watts Consumed
FPGA
0.09
Nitinol Drivers
7
LED
0.12
Sensors (OP700)
0.13*
Finger Reader
.95 (scanning)
Finger Reader
.7 (idle)
*Max dissipation
33
COMPONENT PRELIMINARY BOM - ELECTRICAL
Dispensing System
Existing
Components
:
New
Compone
nt:
Description
Manufacturer
LM2675MMADJ
LM22675
LM2675 - SIMPLE SWITCHER Power
Converter High Efficiency 1A StepDown Voltage Regulator
National
Semiconductor
$1.68
1
MAX471/SO
MAX4071
Maxim
$1.53
1
LM2941CS
X
$0.87
1
LM1117MP5.0
X
$0.42
1
MIC2982/SO
UDN2981
A
Row Drivers
Allegro
$1.78
4
MIC2982/SO
A6800
Column Sinks
Allegro
$1.60
4
Bidirectional, High-Side, CurrentSense Amplifiers
LM2941C - 1A Low Dropout Adjustable
Regulator
LM1117 - 800mA Low-Dropout Linear
Regulator
National
Semiconductor
National
Semiconductor
Price per
unit
Quantity
(min)
Dispensing Board
Material
Quantity
Price
Copper
Traces
Circuit Board
Material
36”
~5$
7.75” x
11.5"
TBD
34
COMPONENT PRELIMINARY BOM - ELECTRICAL
Biometric
Sensor
Component
Cos
t
Digital Persona: U.are.U 4500
$99
Detection
Sensors
Component
OPB100Z
Cost
$9
OPB700Z
$11
GP2D120
$12
Quantity
1
Description
Optical Emitter and Sensor Pair
Hi-Reliability Reflective Object
Sensor
Sharp Optoelectronic Device
Manufacturer
OPTEK
Quantity (min)
TBD
OPTEK
TBD
Sharp
TBD
Description
Manufacturer
Quantity (min)
Detection Sensor Circuitry
Component
Power Supply
Circuitry
AI-3035-TWT-3VR
LM2675-3.3
Cost
TBD
$3.40
Piezo Indicator, Internal Drive
Projects Unlimited
$2.01
LM2675 - SIMPLE SWITCHER
Power Converter High Efficiency
1A Step-Down Voltage Regulator
National
Semiconductor
1
35
1
COMPONENT PRELIMINARY BOM - EMBEDDED
Miscellaneous
Component
LED
MW173KB1
203B01
PCL712A
Cost
$0.60
$38.65
$2.85
Description
Manufacturer
Quantity (min)
Green LED
Super Bright LEDs
1
PS EXT 30W 12V @ 2.50A E-STAR
SL Power Electronics Manufacture
of Condor/Ault Brands
1
CONN JACK STR MINI POWER PCB
Switchcraft Inc.
1
Embedded System
Component
Cost
Description
Manufacturer
XEM3001
$174.95
FPGA w/ built in USB microcontroller
Opal Kelly
1
8MB 50MHZ SPI EEPROM
Spansion
1
S25FL008A
$4
Quantity (min)
36
ADDITIONS TO DISPENSING
CIRCUITRY
Sensors
Buzzer
37
PROPOSED DISPENSING TRACES ON
CIRCUIT BOARD - SOURCE
38
PROPOSED DISPENSING TRACES ON
CIRCUIT BOARD- SINK
39
Connections and Cabling
Input to PCB Board:
2 Conductors, 3 Contacts
From Driver:
Cable Ribbon to Nitinol
Arrays
40
OVERVIEW
1.
2.
3.
4.
5.
6.
7.
8.
9.
Project Intro & Dispenser Layout
Embedded System Selection
Firmware Data Flow
User Access Levels
GUI Mock Ups
EE Dispensing System
MSDII Timeline
Issues
Appendix
41
MSDII Timeline
42
OVERVIEW
1.
2.
3.
4.
5.
6.
7.
8.
9.
Project Intro & Dispenser Layout
Embedded System Selection
Firmware Data Flow
User Access Levels
GUI Mock Ups
EE Dispensing System
MSDII Timeline
Issues
Appendix
43
ISSUES
Sensor’s Sensitivity
Cabling properly
Timeline for prototyping and PCB
Constant Current Controller
MOSFET vs. Bipolar devices
44
OVERVIEW
1.
2.
3.
4.
5.
6.
7.
8.
9.
Project Intro & Dispenser Layout
Embedded System Selection
Firmware Data Flow
User Access Levels
GUI Mock Ups
EE Dispensing System
MSDII Timeline
Issues
Appendix
45
APPENDIX
46
BACK UP SLIDES
Definition of Parallel EEPROM
Typically has 8-bit data bus
Address bus large enough to cover complete
address range
Ex. 1024 addresses = 210 addresses, so 10 bits for a
data bus
To Write:
Enable Write with Address Selected
Disable Write when data is asserted on data pins
To Read:
Enable Read with Address Selected
Read data asserted on data pins
Definition of Serial I2C
2 wire-input
Serial Data (SDA)
Serial Clock (SCL)
Communication Process
Master sends start condition
Master sends unique 7-bit address of the slave
Master sends read/write bit (0 – write, 1 – read)
Receiver (Master when read, slave when write) sends
“ACK”nowledgement
Transmitter (Master when write, slave when read)
transmits 1 byte
Receiver sends ack (repeats till stop)