Post on 01-Jan-2016
ECE 477 Final Presentation ECE 477 Final Presentation Group 9 Group 9 Fall 2005 Fall 2005
Tim Miller Clif Barnes Drew Heinrich Steven Kady
OutlineOutline
• Project overviewProject overview• Block diagramBlock diagram• Professional componentsProfessional components• Design componentsDesign components• Success criteria demonstrationsSuccess criteria demonstrations• Individual contributionsIndividual contributions• Project summaryProject summary• Questions / discussionQuestions / discussion
Project OverviewProject Overview
• Automated Pill dispensing system that Automated Pill dispensing system that delivers pills based upon a schedule.delivers pills based upon a schedule.
• Can be monitored and controlled remotely Can be monitored and controlled remotely via a web interface.via a web interface.
• Able to be controlled locally using an optical Able to be controlled locally using an optical rotary encoder and LCD screen.rotary encoder and LCD screen.
Block DiagramBlock Diagram
MC9S12NE64
LCD Display
Rotary Interface
Sensors
Web Interface
Dispensing Mechanism
User Control
TCP/IP
Motor Control
Status Data
Motor Position Data
Professional ComponentsProfessional Components
• Constraint analysis and component selection Constraint analysis and component selection rationalerationale
• Patent liability analysisPatent liability analysis• Reliability and safety analysisReliability and safety analysis• Ethical and environmental impact analysisEthical and environmental impact analysis
Constraint AnalysisConstraint Analysis
• Interface requirementsInterface requirements• Computation requirementsComputation requirements• Power consumptionPower consumption
Constraint AnalysisConstraint Analysis
• MicrocontrollerMicrocontroller– MC9S12NE64MC9S12NE64– Onboard Ethernet ControllerOnboard Ethernet Controller– 34 of 70 I/O pins used34 of 70 I/O pins used– Metrowerks integrated development environmentMetrowerks integrated development environment
• LCDLCD– ParallelParallel– Sufficient space to display short messagesSufficient space to display short messages
• MotorsMotors– Stepper MotorStepper Motor
Constraint AnalysisConstraint Analysis
• Computation RequirementsComputation Requirements– Embedded web serverEmbedded web server– Schedule/CalendarSchedule/Calendar
Constraint AnalysisConstraint Analysis
• Power ConsumptionPower Consumption– 5 volt and 3.3 volt 5 volt and 3.3 volt – Sufficient currentSufficient current– Battery Backup circuitryBattery Backup circuitry
Patent Liability AnalysisPatent Liability Analysis
• 6,304,797– Uses rotating carousel to dispense pillsUses rotating carousel to dispense pills– Drops pills into a binDrops pills into a bin– Connects to a computer for programmingConnects to a computer for programming
• 6,471,087– Same as previous except for garment vital monitoring
device• Various others using a microcontroller
and gravity to dispense pills
at a specified time.
Patent Liability AnalysisPatent Liability Analysis
• Commercially availableCommercially available– MD2 Automatic Pill Dispenser from ePill
• Alerts caregivers using a telephoneAlerts caregivers using a telephone• Interfaces to an LCD screen Interfaces to an LCD screen • Keeps track of time and date to Keeps track of time and date to
dispense pills.dispense pills.• Action RequiredAction Required
– Paying royalties Paying royalties
Ethical/Environmental AnalysisEthical/Environmental Analysis
• Ethical ConcernsEthical Concerns– Misuse of prescription medication can Misuse of prescription medication can
result in illness or deathresult in illness or death– Both physical package and web interface Both physical package and web interface
should be secureshould be secure– Missing doses of medication can be just Missing doses of medication can be just
as hazardous. Device must be extremely as hazardous. Device must be extremely reliablereliable
Ethical/Environmental AnalysisEthical/Environmental Analysis
• Ethical Concerns (continued)Ethical Concerns (continued)– Extensive testing is required to ensure that Extensive testing is required to ensure that
device always dispenses medication when device always dispenses medication when programmed to do so, and never when it programmed to do so, and never when it has not.has not.
– May present a fire hazard (ensure wiring is May present a fire hazard (ensure wiring is properly insulated and secured)properly insulated and secured)
Ethical/Environmental AnalysisEthical/Environmental Analysis
• Environmental ConcernsEnvironmental Concerns– Hazardous chemicals are used in Hazardous chemicals are used in
fabrication of PCBs (look for an fabrication of PCBs (look for an environmentally friendly fab. house)environmentally friendly fab. house)
– PCBs contain toxic chemicals such as lead PCBs contain toxic chemicals such as lead and mercury (instruct users to return to and mercury (instruct users to return to manufacturer at end of product life cycle manufacturer at end of product life cycle for proper disposal)for proper disposal)
Design ComponentsDesign Components
• Packaging design considerationsPackaging design considerations• Schematic design considerationsSchematic design considerations• PCB layout design considerationsPCB layout design considerations• Software design considerationsSoftware design considerations
PCB Layout DesignPCB Layout Design
• Decoupling capacitors close to processorDecoupling capacitors close to processor
PCB Layout DesignPCB Layout Design
• Minimize interference on Ethernet tracesMinimize interference on Ethernet traces
PCB Layout DesignPCB Layout Design
• Headers for ease of debugging and Headers for ease of debugging and modificationmodification
Software DesignSoftware Design
• Written in CWritten in C• Code Warrior IDE used for developmentCode Warrior IDE used for development• Uses OpenTCP TCP/IP stack Uses OpenTCP TCP/IP stack • Occupies 25KB of the available Flash and all Occupies 25KB of the available Flash and all
of the available 8KB of RAMof the available 8KB of RAM
Software DesignSoftware Design
• Interrupt DrivenInterrupt Driven– ClockClock– SchedulingScheduling
• PollingPolling– EthernetEthernet– RPGRPG– SensorsSensors
Software DesignSoftware Design
• Major SectionsMajor Sections– Web ServerWeb Server
• Uses the OpenTCP TCP/IP stackUses the OpenTCP TCP/IP stack• Website resides in FlashWebsite resides in Flash• Utilizes CGI to pass informationUtilizes CGI to pass information
– ScheduleSchedule• Updated via webpageUpdated via webpage• Dispenses pills when Dispenses pills when
appropriate and updatesappropriate and updates
status logstatus log
Software DesignSoftware Design
• LCD DisplayLCD Display– Shows the current timeShows the current time– Displays menu to set the current timeDisplays menu to set the current time
• RPGRPG– Used to activate and navigate the menuUsed to activate and navigate the menu– Sets the current timeSets the current time
• Motor ControlMotor Control– Runs the motor to rotateRuns the motor to rotate
the carouselsthe carousels
Success Criteria DemonstrationsSuccess Criteria Demonstrations
1.1. Ability to dispense pills at specifically programmed times Ability to dispense pills at specifically programmed times and/or intervals [programming can be done locally using a and/or intervals [programming can be done locally using a keypad/RPG, or remotely via an embedded web server. keypad/RPG, or remotely via an embedded web server.
2.2. Ability to dispense pills by rotating an aperture to a specified Ability to dispense pills by rotating an aperture to a specified (absolute) angular position [using a stepper motor equipped (absolute) angular position [using a stepper motor equipped with position encoder feedback]. with position encoder feedback].
3.3. Ability to sense release of pills [e.g., using IR LED/photo Ability to sense release of pills [e.g., using IR LED/photo sensor pairs] and update [remotely viewable] status log sensor pairs] and update [remotely viewable] status log accordingly.accordingly.
4.4. Ability to display system status locally on an LCD Ability to display system status locally on an LCD (information such as month/date/time, pill doses remaining, (information such as month/date/time, pill doses remaining, etc. - etc. - demodemo
5.5. Ability to continue operation in the event of Ability to continue operation in the event of A.C. power failure (battery backup) A.C. power failure (battery backup)
Individual ContributionsIndividual Contributions
• Team Leader – Steven KadyTeam Leader – Steven Kady• Team Member 2 – Tim MillerTeam Member 2 – Tim Miller• Team Member 3 – Drew HeinrichTeam Member 3 – Drew Heinrich• Team Member 4 – Clif BarnesTeam Member 4 – Clif Barnes
Team Leader – Steven KadyTeam Leader – Steven Kady
• Design Constraint AnalysisDesign Constraint Analysis• Packaging SpecificationPackaging Specification• Packaging FabricationPackaging Fabrication• Timer BlockTimer Block• Motor ControlMotor Control• Debugging and other softwareDebugging and other software
Member 2 – Tim MillerMember 2 – Tim Miller
• PCB LayoutPCB Layout• Web server developmentWeb server development• LCD driverLCD driver• Ethical / Environmental ConsiderationsEthical / Environmental Considerations• Packaging FabricationPackaging Fabrication• Hardware / Software DebuggingHardware / Software Debugging
Member 3 – Drew HeinrichMember 3 – Drew Heinrich
• Schematic / Theory of OperationSchematic / Theory of Operation• PCB PopulationPCB Population• Packaging FabricationPackaging Fabrication• Hardware DebuggingHardware Debugging• Parts OrderingParts Ordering• Safety and Reliability AnalysisSafety and Reliability Analysis• Circuit DesignCircuit Design
Member 4 – Clif BarnesMember 4 – Clif Barnes
• Software Design Software Design • Patent Liability AnalysisPatent Liability Analysis• Sensor softwareSensor software• Packaging/HardwarePackaging/Hardware• Debugging and softwareDebugging and software
Project SummaryProject Summary
• Important lessons learnedImportant lessons learned– Start earlyStart early– Research twice, buy onceResearch twice, buy once– PrototypePrototype
Project SummaryProject Summary
• Second iteration enhancementsSecond iteration enhancements– SecuritySecurity– PackagingPackaging– Yearly calendarYearly calendar– Larger capacityLarger capacity