You’ve Got SARS!! Group 6 Brent Anderson Lauren Cutsinger Martin Gilpatric Michael Oberg Matthew Taylor Capstone Spring 2006 Presentation Outline Project Overview Implementation Hardware Software Project Organization Risk and Contingency IR in Medical Applications First-Pass Diagnostic Tool Research Soft tissue injuries Circulatory Problems Biological response to low frequency appliances Physical exercise and hypothermia research Passively screen for a selection of biological agents Quick response to possible pandemics Airports, office buildings and other mass transit areas SARS detection in several airports SARS begins with a fever greater than 38°C (100.4°F) Project Overview Design an infrared tracking system that will control a motorized camera platform. Track infrared image of person. Display IR image. Determine temperature of person for possible disease detection. Thermopile Temperature Sensors Multiple thermocouples in series that provide an extremely sensitive IR sensor. Bulky and expensive compared to other types of IR sensors. So Why Thermopiles? Breakthroughs in Manufacturing process. Lower cost Much smaller footprint Very accurate at –50 to 450 ° C Correct spectrum for Heat Comes in a 32x32 array! System Overview SPI PWM SPI SPI Major Components IR Camera PIC Processors Camera Mount Motors PCB Output (PC) Serial Hardware Processors 1. Dual PIC18F4550 Motors 1. Stepper Motors Controllers 2. Camera Mount 1. 2. 4 Layer PCB 1. 2. 3. Camera 1. Lynx-B BPT-NS Dual axis Power & GND planes Lower Noise Allow for high speed 48MHz ATX25C mini core Why PIC18F4550 Harvard Architecture Built in SPI interface Camera PIC communication Two PWM Channels for Stepper Motors Development Environment Simultaneous data and program memory access On Chip Programmer 48MHz clock 2 UARTs for computer communication USB 2.0 Interface (optional) Why ATX25C? Thermopile 32x32 Array Low Resolution allows for faster data crunching. Provides enough data for human detection. SPI Interface Compatible with PIC18F4550 Why Stepper Motors High precision Compatible With PIC18F Up to 1.5 degrees of accuracy PWM signals Low cost for precision Easy positioning Software Outline Tracking Algorithms “Hot Spot” Detection Edge Detection Motor control On Chip Pulse Width Modulation (PWM) Display Comunication with a PC for display and control. Targeting Software Goals Identify the portion of the picture containing the face of the subject. Tracking Demonstration Averaging •Averages are taken along both the horizontal and vertical axis. •The highest value of these averages indicates the hottest cross section in each dimension. •The intersection of these cross sections should be the center of the warmest body. In this case we are hoping that this body will be the face of the subject. Tracking Demonstration Differentiation •By differentiating the cross section averages generated in the previous method these plots can be generated. •The peaks of these plots indicate the planes where there has been the greatest change in value. •This method will find the boundries of what should be the head of the subject. Interface Motor control Interacting with onboard PWM for use with motor control logic. Display data via a PC UART connectivity with a Linux machine to display pertinant information and raw data. Possibility of screen capture. Possibility of future additions though PC based processing. Project Goals and Constraints Baseline Objectives Advanced Goals USB2 Advanced Display and User Interface Printing Constraints and Contingency Plans Baseline Objectives IR Camera <-> SPI bus w/ two µcontrollers Real-time processing of incoming data stream at 10 Frames Per Second Dynamic image tracking Determine and record temperature data UART Data stream to PC Baseline Objectives (Cont) PC Client software for User Interface and Control Display of RAW Camera Data False Color Representation with Heat Distribution Summary Statistics and Indication of Abnormal Temp Advanced Goals and Extensions USB2 for data transmission, using UART for control Improvements to PC Software Image Interpolation Additional Controls Pause Screenshot Print Screen Project Constraints Airport Usage Tracking a single hot-spot (no crowds) Limits on tracking speed. Target must be within predefined distances (lens specific) PERSON MUST WEAR CLOTHING!!!! Face must be exposed. Heavy clothing preferred. Hardware Constraints Timing data on the SPI bus for communication between two processors UART speeds. Camera Resolution Will 32x32 resolution provide accuracy? Image Processing Speed Can we processes 10 FPS Smooth Motor Control Risks and Contingencies Parts Delivery Difficulties with optics IR Camera: Can use CCD which supports SPI Software workarounds / mods to core algorithms Replacement optics Inability to process data flow in real-time Slow the data, lower the frame rate Stage the data with external RAM components Add additional micro-controllers and design parallel processing Team Planning • • • • Cost of Implementation Individual Member Tasks Team Milestones and Goals Questions? Costs Camera Lens Camera mount 4-layer PCB Rev 1 4-layer PCB Rev 2 Misc. Electronic parts Processor Programming Hardware Motors $ $ $ $ $ $ $ $ 850.00 150.00 25.00 125.00 125.00 200.00 100.00 50.00 Total: $ 1,625.00 Tasks Team Member Brent Main Tasks • • Lauren • • Martin • • Michael • • Matthew • • Core Chip Programming Overall Product Design PCB Layout Mechanical Assembly Targeting Software UART Interfacing Image Post-Processing PC Client Interface PCB Layout Motor Interfacing Timeline Timeframe Desired Deliverables CDR 1. 2. 3. Milestone 1 1. 2. Milestone 2 Expo Initial 4 Layer PCB Design Reading Camera Data, Display Basic Motor Control 4 layer PCB rev. 2 Basic Tracking 2. Advanced Tracking Basic PC Interface 1. Complete PC Interface 1. Questions?