Glucometer Wireless Design

download Glucometer Wireless Design

of 55

Transcript of Glucometer Wireless Design

  • Smartphone Blood Glucose Meter

    Project 20 Hebah Hasan, Kim Kosko, Tyler Klarr

    Mentor: Steve Murphy

  • Welcome to Project 20 - Smartphone Medical Device Hub44X Senior project

    1 Project Overview

    In today's society we rely heavily on modern technology to go about our daily lives; from protecting our youth to adding quality to our standard of

    living. Technology is becoming more embedded in our lives providing us with data and information exchange that serves many different facets of life.

    This project will bridge the gap between medical data and daily applications.

    This project is the first step to improving data for those suffering with diabetes while also unifying their sources of data into one easily accessible

    place like their smartphone. Integrating this data into such an application will lead the way to more accurate and safe data for users. Imagine,

    checking your blood glucose while at work, the gym, or school with your smartphone and then be able to group that information with suggested

    foods to help you plan your day.

    This project is to create a proof-of-concept of a 'hub' that allows for attachment of specialty devices (including, but not limited to, medical devices)

    to a current generation of smartphones (iPhone, Android, etc.). At a minimum the device must be able to measure blood glucose levels and upload

    information to the smartphone. Also, using the same technology, there must be one other device that can use the 'hub' to connect to a smartphone.

    The final goal is to embed circuitry and specialty connectors into a phone case that has the capabilities to take measurements as well as make

    connections to specialty devices and transmit the information to a smartphone wirelessly. This would allow for a central device in modern life to

    easily measure and monitor blood glucose levels for Diabetics as well as allow for connections with other devices tailored to making the smartphone

    more accessible and useful.

    Throughout our history, technology has served as the fundamental building blocks to our survival and development. From the first map to the first

    navigation system, we have been able to add data exchange into our daily lives and move on to the next revolutionary frontier. This new system will

    add that factor to those living with diabetes while having the potential to one day help many others suffering from different diseases.

    Sponsored by Steve Murphy

    The basic needs for our project after consulting with our mentor are:

    *Blood Glucose Meter: The device must have the capability to quickly and accurately measure blood glucose levels by only using a reasonable

    sample size.

    *Case: Modern products, like smartphones, have sleek cases that are easy to use and look stylish. Current products have to match their styles in

    order to compete in the market today. The customer will want something modern, easy to store, durable and light to carry.

    *Conserves Power: The device must not waste power when not in use. Customers will save time and money by having a product that will conserve

    power in between uses.

    *Rechargeable: The customer will need to be able to easily recharge the device. Having a rechargeable battery will increase the portability of the

    device. The customer will save money by using a rechargeable battery instead of consistently buying standard batteries.

    *Self Powered: The device must be capable of making measurements without being connected to the smartphone. The customer might not have

    their smartphone at the time that they take their blood glucose measurements, therefore the device should be able to work properly without the

    presence of a smartphone.

    *Software: There needs to be a method to at least track blood glucose measurements and store them on a smartphone for further review. The

    measurements for customers will be more useful if they can track their individual measurements and be able to access them later on. The device will

    be convenient for customers to bring to doctor appointments.

    *Wireless: The device must be easily accessible to the smartphone. Customers will find it convenient to have their glucose meter be able to connect

    and store information on their personal phone. A wireless connection will provide easy uploading without storing and using extra wires.

    *PCB: The device needs to be about the same size as a smartphone. The device also needs to be easily replicated. The best way to accomplish this is

    to custom make a printed circuit board.

    *Indicator Light: The device should be able to indicate that it is working without the user having to look at the smartphone. The best way to do

    this will be with an indicator light.

    Dashboard My Profile People Groups Projects Request a Project Help! Log out

    Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/WikiStart

    1 of 2 5/15/2011 6:39 PM

  • Group Members (from left to right):

    Kim Kosko - [email protected]

    Tyler Klarr - [email protected]

    Hebah Hasan - [email protected]

    Table of Contents:

    1 Texas Instruments' Contribution

    2 Needs Identification and Background Research

    3 System Requirements and Desired Features

    4 Design Solutions

    5 Top Level Block Design

    5.1 Power Supply

    5.2 Battery

    5.3 Battery Charger

    5.4 High-Level Controller Code

    5.5 Smart Phone

    5.6 Bluetooth Module

    5.7 Micro-Controller

    5.8 Low-Level Controller Code

    5.9 TestStrips

    5.10 Measurement Circuit

    5.11 Case

    6 Testing

    7 Project Timeline

    8 System Test Evidence

    9 Expo Materials

    References

    [1]Location for the References

    Attachments

    Responsibility Contract.pdf (34.0 kB) - added by koskok on 10/15/10 13:23:56.

    P1300119.JPG (0.9 MB) - added by koskok on 01/31/11 09:44:26.

    Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/WikiStart

    2 of 2 5/15/2011 6:39 PM

  • 1. Texas Instruments' Contribution

    1.) MSP430 The Blood Glucose Meter is controlled by the microcontroller. Texas Instruments MSP430F5438 is the best choice for the device. The

    smartphone requires the wireless protocol to be the Bluetooth 2.1 protocol and this microcontroller is designed to be compatible with a Panasonic

    board using Texas Instruments CC2560 chip to deliver the Bluetooth 2.1 protocol. Other benefits to this microcontroller are the low-power input, the

    SPI and UART options, and the easy programmability. The MSP430 is used to control the measurement circuit and the Bluetooth board. The

    Smartphone sends a code to the Bluetooth board and the microcontroller is informed and starts the measurement process. The microcontroller then

    receives the testing data and tells the Bluetooth board to send the results back to the smartphone. This project is possible because of the

    microcontroller.

    2.) TPS77301 The device is powered by a rechargeable battery that can have more voltage than required. The microcontroller only needs 3.3V for

    typical operation and the battery can supply more than that. The Blood Glucose Meter uses the TPS77301 to insure that the input voltage to the

    microcontroller will be at close to 3.3V no matter what the battery voltage level is at. The example circuit given in this parts datasheet allows two

    resistors to set the voltage level at 3.3V. This project relies on the TPS77301 to provide the correct amount of voltage to the microcontroller so that

    the voltage level does not exceed the maximum input level.

    3.) OPA378 This project uses two op amps for the measurement circuit. The op amps are crucial in the measurement circuit since they make sure

    that the voltage level of one op amp output is the same as the microcontroller controlled output voltage. Using the op amp allows the voltages to be

    controlled and not affected by changes in the currents. The OPA378 is important for the Blood Glucose Meter because it assures that the

    measurements will be more accurate.

    4.) TLV5636 The measurement circuit requires a known signal to be sent into the electrodes. The signal will be passed through chemical reaction of

    the blood and the test strip and then the data out can be processed. The signal can be created by a digital to analog (DAC) converter. This project

    uses TIs TLV5636. The microcontroller has an analog to digital (ADC), which will be used to transform the data back to digital, but does not have the

    DAC built in. The TLV5636 is useful for this project to create a signal for the measurement circuit.

    5.) CC2560 The microcontroller is made to link with the PAN1315ETU Bluetooth board, which uses TIs CC2560 all in one Bluetooth solution. The

    smartphone receives data from the Bluetooth 2.1 protocol and the PAN1316 sends that protocol. The Blood Glucose Meter would not be able to send

    data via Bluetooth without the CC2560 inside of the PAN1315.

    Dashboard My Profile People Groups Projects Request a Project Help! Log out

    TexasInstrumentsContribution - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/TexasInstr...

    1 of 1 5/15/2011 8:47 PM

  • 2. Background Research

    Introduction

    There are a few glucose meters on the market which can connect to a cellphone yet, there are no devices on the market tailored for smartphones that have the

    more popular operating systems; Android, iPhone OS, or Windows Phone 7. This fact reduces their available market share as well as lowers the capabilities of

    monitoring systems that can provide both the patient and care provider for a person with diabetes. We specifically looked for devices that are directly applicable

    to our project, we focused on fours types of devices; blood glucose meters that could connect to cellphones, blood glucose meters that could connect to

    computers, other specialty devices that can connect to smartphones and generic blood glucose meters for comparison. In our search, we were unable to find a

    device that would allow for multiple connects to a single smart phone.

    -Products- -Measurementtype-

    -Deviceconnectedto-

    -ConnectionType-

    -ProgramUsed-

    -ProgramType-

    -DataPath-

    -OnMarket(Cost)-

    -Size/Portability- -Type ofPower-

    -TimeCharged(estimated)-

    iBGStar [1] blood glucose iPhone directly pluginto iPhone

    iBGStarDiabetesManager App

    ApplesiOSplatform

    USB notreleased

    56 x 24 x 10 mm internalbatterypoweredchargedfrom iPhonebattery

    less thaniPhonebattery (6hrs)

    Jazz meter [2] blood glucose iPhone cord attachesiphone todevice

    TheWaveSenseDiabetesManager app

    ApplesiOSplatform

    USB Jazzmeter$49.88,cable(notreleased)$30.00

    1.81"x 3.27"x0.79"

    internalbatterypowered

    less thaniPhonebattery 6 hrs

    Glucophone[3]

    blood glucose certaincellphones

    attached tophone

    HealthPiawebsite

    cellphone'sinternet

    USB StarterKit$79.95

    size of cell phonecase

    cell phonebattery

    less than cellphone battery

    Ultrasoundsmartphone[4]

    ultrasound smartphone cord attachesto phone

    N/A N/A USB notrealeased

    about 1" diameterand 3" long

    cell phonebattery

    less than cellphone battery

    BluetoothBlood PressureMonitor [5]

    blood pressure cell phoneor PDA

    wireless N/A ShortMessageService

    bluetooth N/A 70 x 80 x 25 mm 2 AAA(1.5V)

    N/A

    Contour USBMeter [6]

    blood glucose computer directconnect withUSB

    GlucofactsDeluxe

    N/A USB $74.99 3.75" x 1.25" rechargeablebattery bywall chargeror computer

    N/A

    MyGlucoHealthMeter [7]

    blood glucose sendsinformationonline or tophysician

    wireless MyGlucoHealth N/A bluetooth/USB

    $89.95 larger than cellphone

    battery over 1 year

    Glucocard 01Mini [8]

    blood glucose notconnected

    LCD display N/A user keepslog book

    N/A $18.71 3.6" x 1.2" x 0.5" lithiumCR2032battery

    lastsapproximately3,000 tests

    OneTouchUltraSmart [9]

    blood glucose notconnected

    LCD display N/A electroniclog bookwithgraphs

    N/A $74.65 3.8" x 2.3" x 0.9" 2 AAA(1.5V)

    6-12 months

    AndroidBluetoothOscilloscope[10]

    plotting ofwaveforms

    smartphone wireless Bluetooth Chat N/A LMX9838bluetoothSPP

    notreleased

    about size of acellphone

    3V (notspecified)

    N/A

    Cellphone and Smartphone Enabled Blood Glucose Measurement Devices

    The Glucophone can connect to a variety of cellphones, mainly LG and Motorola phones, with different iterations [3]. These iterations either attach to the phone

    as a case or plug directly into the connector on the bottom of the phone. Also, there is the MyGlucoHealth Meter which can connect to Nokia phones via

    Bluetooth or PCs via USB [7]. Currently, the WaveSense Jazz meter can connect to a PC and in the future, the Jazz meter will use a 30 pin cable, which will be

    sold seperately, to connect to the Apple iPhone [2]. The iBGStar will be launching sometime during 2011 in select countries [1]. The iBGStar will work with

    Apple iPhones and along with the Jazz meter will use proprietary software to track glucose measurements. The iBGStar is a much smaller device than the Jazz or

    MyGlucoHeath meters and connects directly into the 30 pin connector on the bottom of the iPhone. All of these devices have a LCD to display glucose

    measurements except for the Glucophone. The iBGStar and Jazz meter have internal batteries to power the device while the Glucophone uses power from the

    smartphone. The iBGStar and Jazz meter both will utilize dynamic electrochemistry to promise high accuracy. All these devices cost between $70 and $90.

    USB Glucose Meters

    There are other similar meters to the WaveSense Jazz and MyGlucoHealth meters that can connect to a Mac or PC via USB; one of these meters is the Bayer

    Contour USB Meter. The Contour USB Meter uses plug and play management to connect directly to a PC and upload data to their proprietary software, Glucofacts

    [6]. The Contour has a separate LCD display and an internal battery that is recharged through the USB. It is also able to track 2000 measurements on the

    device.

    Other Smartphone Specialty Devices

    As well as blood glucose meters, there are also other medical devices that have been developed for use with smartphones. An ultrasound wand has been

    developed for use with Windows Mobile that connects through USB. This device has been tailored for use in third world countries where medical devices are

    Dashboard My Profile People Groups Projects Request a Project Help! Log out

    BackgroundResearch - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/Backgroun...

    1 of 2 5/15/2011 8:48 PM

  • difficult to come by [4]. Currently, the Ultrasound wand has not been released and is aiming for a pricetag of $500. The bluetooth enabled blood pressure

    monitor allows care takers to wirelessly monitor patients from a distance [5]. Users can also upload their measurements to their PDA. A recent project that has

    similar applications to ours is a wireless bluetooth oscilloscope for Android phones [10]. This project used a two differential amplifiers, a microcontroller and a

    bluetooth transmitter to take measurements and transmit them to the smartphone.

    Other Blood Glucose Meters

    There are numerous generic blood glucose meters that simply display the glucose levels and do not have the capabilities to store the information in other

    locations. Some, such as the OneTouch Ultrasmart can store many measurements and display that information graphically on the its LCD screen [8]. Others,

    such as the Glucocard 01 Mini, require the user to keep track of the measurement results [9]. The Glucocard also has optional personalized faceplates. Both of

    this are designed to be quick and easy to use. The OneTouch Ultrasmart costs $75 and the Glucocard 01 mini costs $15.

    -Blood Glucose Products- -Sample Size- -Test Time- -Strips-

    Glucophone 3 microliters 9 secs GlucoPack Blood

    Contour USB Meter 0.6 microliters 5 secs Contour

    Jazz meter 0.5 microliters 6 secs Jazz Test Strips

    iBGStar 0.5 microliters 6 secs N/A

    MyGlucoHealth Meter 0.3 microliters 3 secs MyGlucoHealth

    Glucocard 01 Mini 0.3 microliters 7 secs Glucocard 01-Mini

    OneTouch UltraSmart 1.0 microliters 5 secs Ultras

    Conclusion

    There are many products that can take blood glucose or other medical measurements, however there aren't any that can wirelessly upload the data to any smart

    phone. Ultimately, there is a need for a blood glucose meter that can connect to any smartphone wirelessly and upload information to a downloaded application.

    The user will not have to keep track of extra wires and having a rechargable product will allow customers to not have to buy common batteries. All of this fueled

    by a comprehensive and detailed application that helps monitor and alert the user will provide a more complete medical solution to dealing with diabetes. Due

    to high prices of medical care, preventative care can help lower the cost of living. Couple that fact with the ability to track and transfer information about current

    health conditions to a care provider and a single device can help people with chronic diseases live a happier better life.

    [1]. http://ibgstar.com/web/ibgstar

    [2]. http://www.wavesense.info/wavesense-jazz

    [3]. https://my.glucophone.com/

    [4]. http://www.genesis-ultrasound.com/Ultrasound-smartphone.html

    [5]. http://mytech-tel.en.alibaba.com/product/200720716-200413478/Bluetooth_Blood_Pressure_Monitor.html

    [6]. http://www.bayercontourusb.us/

    [7]. http://www.myglucohealth.net/

    [8]. http://www.glucocardusa.com/mini.html

    [9]. http://www.onetouchdiabetes.com/ultrasmart

    [10]. http://projectproto.blogspot.com/2010/09/android-bluetooth-oscilloscope.html

    BackgroundResearch - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/Backgroun...

    2 of 2 5/15/2011 8:48 PM

  • 3. System Requirements

    Requirement Name: Blood Glucose Meter RequirementWeight:20/100

    Customer Requirement:

    There must be the capability to measure blood glucose levels. The customer will be able to use asmall sample to test their current blood glucose levels.

    Date Approved:2010-10-20 15:58:35

    Engineering Requirement:

    Must have a blood glucose meter that can either connect directly to a smartphone or through adevice hub. The meter must meet accuracy requirements of FDA and must complete the test inunder 15 seconds.

    Requirement Name: Case RequirementWeight:10/100

    Customer Requirement:Modern products, like smartphones, have sleek cases that are easy to use and look stylish. Currentproducts have to match their styles in order to compete in the market today. The customer willwant something modern, easy to store, durable, small enough and light to carry.

    Date Approved:2010-12-01 17:08:20

    Engineering Requirement:

    There needs to be a case either metal or plastic that can be less than 300 mm (L) X 100 mm (W)X 50 mm (T)

    Requirement Name: Conserves Power RequirementWeight:10/100

    Customer Requirement:The device must not waste power when not in use. Customers will save time and money by havinga product that will conserve power in between uses.

    Date Approved:2010-11-01 11:52:00

    Engineering Requirement:The device must be capable of shutting down automatically after 5 minutes of no inputs and musthave a manual on/off switch.

    Requirement Name: PCB Charge Circuit and Power Management RequirementWeight:/100

    Customer Requirement:

    The device needs to be about the same size as a smartphone. The device also needs to be easilyreplicated. The best way to accomplish this is to custom make a printed circuit board.

    Date Approved:2011-04-06 13:39:46

    Engineering Requirement:

    The charge circuit and the power management circuit must be on a PCB.

    Requirement Name: PCB the Measurement Circuit RequirementWeight:/100

    Customer Requirement:

    The device needs to be about the same size as a smartphone. The device also needs to be easilyreplicated. The best way to accomplish this is to custom make a printed circuit board.

    Date Approved:2011-04-06 13:40:09

    Engineering Requirement:

    The measurement circuit must be on a printed circuit board. The output measurement signal mustcome from the printed circuit board.

    Requirement Name: PCB the Microcontroller RequirementWeight:/100

    Customer Requirement:The device needs to be about the same size as a smartphone. The device also needs to be easilyreplicated. The best way to accomplish this is to custom make a printed circuit board.

    Date Approved:2011-04-06 13:40:02

    Engineering Requirement:The microcontroller must be on a PCB and the microcontroller must be able to be programmed byconnecting the debugger interface to the PCB.

    Requirement Name: Rechargeable RequirementWeight:15/100

    Dashboard My Profile People Groups Projects Request a Project Help! Log out

    SystemRequirements - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/SystemReq...

    1 of 2 5/15/2011 8:52 PM

  • Customer Requirement:The customer will need to be able to easily recharge the device. Having a rechargeable battery willincrease the portability of the device. The customer will save money by using a rechargeablebattery instead of consistently buying standard batteries.

    Date Approved:2010-11-01 11:52:48

    Engineering Requirement:

    We will need a battery charger that uses USB power and/or add the capability to recharge thebattery via the smartphone. The battery will fully charge after 2 hours.

    Requirement Name: Self Powered RequirementWeight:10/100

    Customer Requirement:

    The device must be capable of making measurements without being connected to the smartphone.The customer might not have their smartphone at the time that they take their blood glucosemeasurements, therefore the device should be able to work properly without the presence of asmartphone.

    Date Approved:2010-12-01 17:09:42

    Engineering Requirement:

    The system must be powered by a battery and have a lifetime of at least 6 hours per charge instandby mode.

    Requirement Name: Smaller Case RequirementWeight:/100

    Customer Requirement:The device should be about the same size as a smartphone so that it can be easy to carry around.

    Date Approved:2011-04-06 13:40:20

    Engineering Requirement:

    The case must be smaller than 100mm x 60mm x 50mm.

    Requirement Name: Software RequirementWeight:20/100

    Customer Requirement:

    There needs to be a method to at least track blood glucose measurements and store them on asmartphone for further review. The measurements for customers will be more useful if they cantrack their individual measurements and be able to access them later on. The device will beconvenient for customers to bring to doctor appointments.

    Date Approved:2010-11-07 14:57:27

    Engineering Requirement:

    The software includes a system for tracking measurements, making alerts to the user, anduploading the information to an online database. The software will be able to hold data for 1000measurements on the smartphone.

    Requirement Name: Use Indicator Light RequirementWeight:/100

    Customer Requirement:

    The device should be able to indicate to the user that it is working without the user needing to lookat the smartphone. The best way to do this would be with an indicator light.

    Date Approved:2011-04-06 13:40:14

    Engineering Requirement:

    The device must incorporate at least one LED powered by the device.

    Requirement Name: Wireless RequirementWeight:15/100

    Customer Requirement:

    The device must be easily accessible to the smartphone. Customers will find it convenient to havetheir glucose meter be able to connect and store information on their personal phone. A wirelessconnection will provide easy uploading without storing and using extra wires.

    Date Approved:2010-11-12 15:36:13

    Engineering Requirement:The device must be recognized by the smartphone, form a successful connection, and send datameasurements to the smartphone. That information must be able to be accessed by our third partysoftware.

    SystemRequirements - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/SystemReq...

    2 of 2 5/15/2011 8:52 PM

  • 4. Design Solutions

    Design 1: Bluetooth Enabled Blood Glucose Meter Embedded Case Design

    The primary aspect of this design is that the Blood Glucose Meter would be physically part of the smartphones protective case and transfer data with

    the smartphone via Bluetooth. This would allow for a number of engineering and business advantages. First, it allows for multiple methods of

    implanting a blood glucose measurement circuit. In this design, the meter will measure blood glucose levels using cyclic voltammetry. The analysis

    of the data collected can either be done on the smartphone itself or a microcontroller located in the meter. Also, this design does not require another

    LCD display for the meter thus enabling lower power and cost.

    Microcontroller Method: In this embodiment, a microcontroller will control the cyclic voltammetry measurement as well as take the data collected

    from the measurement and then calculate the blood glucose levels. That data would then be sent to a smartphone through a Bluetooth connection

    module. The smartphone would then be able to track the data and perform long term trending analysis.

    To implement the microcontroller design we would use a TI MSP430 which is a mixed signal microcontroller [1]. First of all, using the MSP430 would

    alleviate some of the measurement necessary to perform cyclic voltammetry. Also, the MSP430 has a standby mode which could allow for activation

    of the meter from the smartphone as long as the Bluetooth connection stays active. Using the MSP430 would also allow for seamless integration with

    the TI CC2560, which is an all-in-one Bluetooth solution. These two chips would control the bulk of the processes on the device itself, the other

    circuitry required would be a power supply, battery charger, power management circuit, and circuitry to help implement the blood glucose

    measurement. By using the MSP430 could also implement a USB connection so that the device could also interact with a computer allowing for

    software updates.

    Pros:

    - Could be developed to be used with multiple smartphone

    - Will be a unique and sleek design that can physically attach to the smartphone seamlessly

    - Would be developing on a platform that was created for similar processes

    Cons:

    - Heavily depending on high and low level coding

    - Will not have a separate LCD display

    Smartphone Analysis Method:

    This embodiment requires the smartphone to analyze the cyclic voltammetry data and calculate the blood glucose levels. The input signal to the

    sample would be generated by a completely separate control circuit that would then send the output signal to an all-in-one Bluetooth connection chip

    [2] which would then transfer the signal to the smartphone. Although this design could be an eloquent solution while uniquely using a smartphones

    computing power, it creates many engineering difficulties which will have to be solved through electrical design. This can be very costly during

    designing but could create a less expensive final product.

    Pros:

    - Could be developed to be used with multiple smartphone

    - Will be a unique and sleek design that can physically attach to the smartphone seamlessly

    Cons:

    - Heavily depending on high and low level coding

    - Will not have a separate LCD display

    - Would be developing on a platform that was not created for similar processes

    Conclusion:

    The advantages of this design is that it is a unique solution to the smartphone capable blood glucose meter. The smartphone analysis method would

    be a possible design solution; however, developing on a platform would add unecessary difficultly to the design. By implementing the microcontroller

    solution, we will be using a platform that can be quickly designed and then easily altered through coding solutions during the testing. This

    embodiment will be the simplest for the customers use and will provide the best possible solution. The final design will be this design with the

    microcontroller method.

    Design 2: Blood Glucose Meter Directly Attached to Smartphone

    The second design includes the medical device connecting to the iPhone via physical connection. The design will be a directly attached device cannot

    interfere with any existing iPhone functionality. The device dimensions will be 1.25H x 2.4W x 0.48D. The device will have two concave grooves on

    the front and top, to facilitate effective usage of iPhone speaker and microphone.

    The device will have a standard glucose test strip reader. The device will not have anything on the right side. For the top side of the device, it will

    have concave grooves to facilitate use of existing iPhone speaker and microphone. On the top side of the device there will also be a 30 pin male

    connector, which will allow for a direct connection to the iPhone 30 pin female connecter. The device must be able to recharge from the smartphone

    through the pins connecters.

    Pros:

    -The user doesnt need a separate charger for the device. The device will get charged directly from the iPhone.

    -The device could be always connected to the iPhone, which is will make it easier for the user to use any time.

    Dashboard My Profile People Groups Projects Request a Project Help! Log out

    DesignSolutions - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/DesignSolu...

    1 of 2 5/15/2011 8:54 PM

  • Cons:

    -This device can be only used on iPhone.

    -The device will not show the measurement results, it have to be through the iPhone.

    -This device might add more length to the size of the iPhone.

    Conclusion:

    This design could be done, but this attached device will be non ideal since it needs specific existing iPhone functionality. That will make the design

    exclave for just iPhone, while we can make it work for any Smartphone.

    Design 3: Blood Glucose Meter Attached by Wire to Smartphone'

    The third design involves the medical device connecting to the smartphone via a cable. This embodiment allows the medical device to be completely

    detachable from the smartphone and best represents a smartphone hub. The medical device will be able function completely without the presence of

    a smartphone; therefore, the medical device must be able to display results on a LCD screen. Many results will need to be stored in the medical

    device until the information can be uploaded to the smartphone. The wire would have a connection type that would fit a certain type or group of

    smartphones. For example, the wire would have a 30-pin connector allowing the device to connect to an iPhone. The wire will not be able to connect

    to every type of smartphone due to the many different connection types that smartphones use.

    The device will be fully functioning without the smartphone; therefore, the smartphone will not be available to do the information processing. The

    medical device will need to have a microprocessor to process the information separately before data is sent to the smartphone. The medical device

    will have an internal battery supply, completely dependent from the smartphone. The battery will be rechargeable and have a power save feature.

    When the medical hub is used as a glucose meter, the user will be able to test the glucose level in their blood by using test strips and the medical

    device. The LCD screen will display the current results without being attached to the wire and the smartphone. The glucose meter will need to store

    the results until the data can be uploaded. Preferably, the meter will be able to store multiple test results without having to upload the data.

    Eventually, the user will use the wire to connect the glucose meter to their smartphone and transfer the information to the specific diabetes

    application.

    Pros:

    -The user can test without a smartphone present

    -Transferring the information will be direct and easy

    -Multiple devices can be connected

    Cons:

    -Only the current testing results will be visible directly after a measurement if the device is not connected to the smartphone

    -The user will have to keep track of two devices and a wire to connect them

    -An extra LCD screen is needed to show instant results

    -The wire will only allow certain smartphones to be connected to the medical device

    Conclusion:

    This embodiment has some good features, such as allowing the user to use their medical device separate from their smart phone and allowing easy

    data transferring; however, the cons out way the pros. The final design should be able to more than just one specific variety of smartphones and the

    users does not want to keep track of a medical device, a smartphone, and the wire to connect them together. Overall, this embodiment would be

    completely possible and would solve some design issues, but would not be the most practical approach to the final product.

    [1]. http://focus.ti.com/docs/prod/folders/print/msp430bt5190.html

    [2]. http://focus.ti.com/general/docs/wtbu/wtbuproductcontent.tsp?contentId=29992&navigationId=12761&templateId=6123

    DesignSolutions - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/DesignSolu...

    2 of 2 5/15/2011 8:54 PM

  • 5. Top Level Block Design

    - - - - - Signal Name - - - - - - - - - - Type - - - - - - - - - - Properties- - - - -

    VMAIN Electrical 3.3V DC +-5%Max Current: 9.5 mA

    VUSB Electrical 5V DC + - 5%Max Current: 500mA + -5%

    Charge Signal Electrical 3.3V DC + - 5%Enable: The charge cricuit is running.Disable: The charge circuit is not running.

    Power Signal Electrical 3.3V DCEnable: Powers system with battery powerDisable: The Power Supply is not connected to the Battery Terminals

    VBAT Electrical 3.6V DC + - 5%

    Cyclic Voltammetry Signal Electrical 3.3Vp-to-p AC @ ~200HzApplied test voltage to BG test strip

    UART Electrical Clk Speed: 32.76kHz3.3V DC

    SmartPhone Display Electrical Displays measurement results to user

    Bluetooth Protocol Electrical Bluetooth 2.1 Protocol Compliant10.5 dBm

    High Code Download Electrical Program: Visual Studio

    low code download Electrical/Control Programming: CTI USB programmer JTAG

    VCHARGE Electrical 3.6V DC + - 5%Max Current: 500mA + - 5%

    Data Signal Electrical 3Vp-to-p AC @ ~200Hz20mA MaxMeasured electrochemical voltage from BGSPI 32.76KHzSupplied input for DAC

    Blood Sample Environmental Human Blood Sample or Calibration SampleTemperature: 95F to 105F

    User Input Environmental

    Environment Environmental -0F to +100FHumidity: 0% to 100%Day to day use of a cellphone

    Attachments

    toplevelblock_2.jpg (40.4 kB) - added by koskok on 12/06/10 14:50:34.

    Block Level Diagram.jpg (59.3 kB) - added by koskok on 03/06/11 17:34:30.

    Dashboard My Profile People Groups Projects Request a Project Help! Log out

    TopLevelBlockDesign - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/TopLevelB...

    1 of 1 5/15/2011 8:56 PM

  • 5.1 Power Supply

    Responsible Party: Hebah Hasan

    Introduction

    A power supply is a device that supplies electrical energy to one or more electric loads. The term is most commonly applied to devices that convert

    one form of electrical energy to another, though it may also refer to devices that convert another form of energy to electrical energy.

    Every electronic circuit is designed to operate off of some supply voltage, which is usually assumed to be constant. A voltage regulator provides this

    constant DC output voltage and contains circuitry that continuously holds the output voltage at the design value regardless of changes in load current

    or input voltage. [1]

    The adjustment voltage regulator circuit is performed by constructing a potential divider with its ends between the regulator output and ground, and

    its centre-tap connected to the 'adjust' terminal of the regulator. [2]

    For our design, we will be using a linear technology manufactures a broad line of high performance low dropout linear regulators (LDO). These LDOs

    offer very low dropout, fast transient response, excellent line and load regulation, and have a very wide input voltage range, from 0.9V to 80V.

    Output currents range from 100mA to 10A, with positive, negative and multiple outputs. We will be using the TPS77301 chip in our design.

    5.1.1: Block Diagram

    5.1.2: Interface Definition

    - - - Signal Name - - - - - - Type - - - - - - Properties- - -

    VBAT Electrical Input 3.6 V DC + - 5%

    VMAIN Electrical Output 3.3V DC +-5%Max Current: 9.5 mA

    5.1.3: Design

    Power Supply Schematic

    " Figure: Power Supply Schematic [3]"

    Dashboard My Profile People Groups Projects Request a Project Help! Log out

    PowerSupply - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/PowerSupply

    1 of 3 5/15/2011 9:00 PM

  • " Figure: Power Supply Build Image [3]"

    5.1.4: Validation

    The TPS77301chip is low-dropout regulators with integrated power-on reset and power good (PG) function respectively. This device is capable of

    supplying 250 mA of output current with a dropout of 200 mV. Quiescent current is 92 uA at full load dropping down to 1 uA when device is

    disabled. This chip is optimized to be stable with a wide range of output capacitors including low ESR ceramic (10 uF) or low capacitance (1 uF)

    tantalum capacitors. TPS77301 is designed to have fast transient response for larger load current changes. [3]

    The input voltage 3.6V will be from the battery. The resister values will be:

    R1 = 53.8 k

    R2 = 30.1 k

    We will get 3.3V DC output voltage.

    5.1.5: Test to Complete

    We need to test the output of the power supply (VMAIN). The output of the power supply will be powering the micro controller with 3.3 V and a

    current value of 6.75mA.

    In order to test this block, we need to have input voltage of 3.6 V and we will be measuring the output voltage and it should be 3.3 +/- 5% V. We

    will be also measuring the output current by connecting a load (resister= 470 ) to the output and measure the output current and it should be =

    6.75 +/- 5 mA.

    Proof of test:

    The test started by supplying an input of 3.6 V to the power supply circuit. Then we measured the voltage across the output of the power supply,

    which was = 3.36 V as it shows in Figuer1.

    Then we changed the input voltage to test the output when its below 3.6 V, so we supplied a voltage of 2.9 V and we measured the output voltage

    and it was = 2.99 V as it shows in Figuer2.

    Finally we changed the input voltage to test the output when its above 3.6 V, so we supplied a voltage of 4 V and we measured the output voltage

    and it was = 2.37 V as it shows in Figuer3.

    For the current measurement, we need the output current = 6.75 m A, so we connected a load(resister with value 470 ) and we got output current

    = 6.8 mA as it shows in Figure4.

    Figuer1

    Figuer2

    PowerSupply - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/PowerSupply

    2 of 3 5/15/2011 9:00 PM

  • Figuer3

    Figuer4

    5.1.6: Budget

    Part # Name Quantity Description Suppler Availability Cost Total Cost

    Resistor [4] 54.9K 3 RES 54.9K OHM METAL FILM .50W 1% digikey Yes $0.23 $0.69

    Resistor [5] 30.1K 3 RES 30.1K OHM METAL FILM .50W 1% digikey Yes $0.23 $0.69

    Resistor [6] 249 3 RES MF 1/4W 249 OHM 1% AXIAL digikey Yes $0.15 $0.45

    Capacitor [7] 0.1 F 3 CAPACITOR METAL FILM, 0.1F newark Yes $0.199 $0.597

    Capacitor [8] 10 F 1 CAP 10UF 63V METAL POLY digikey Yes $3.52 $3.52

    77C1213 [9] TPS77301DGK 1 IC ADJ LDO REG 1.5V TO 5.5V, 250mA MSOP-8 newark Yes $2.19 $2.19

    Grand Total $8.137

    5.1.7: Reference

    [1]: http://en.wikipedia.org/wiki/Power_supply

    [2]: http://en.wikipedia.org/wiki/Linear_regulator

    [3]: http://focus.ti.com/lit/ds/symlink/tps77301.pdf

    [4]: http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=PPC54.9KXCT-ND

    [5]: http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=PPC30.1KXCT-ND

    [6]: http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=RNF14FTD249RCT-ND

    [7]: http://www.newark.com/panasonic/ecqe2104jf/capacitor-metal-film-0-1%C2%B5f-250v/dp/32R8825

    [8]: http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=495-4092-ND

    [9]: http://www.newark.com/texas-instruments/tps77301dgk/ic-adj-ldo-reg-1-5v-to-5-5v-250ma/dp/77C1213?CMP=AFC-JY6146109556

    Attachments

    Power Supply High Level Block Daigram.jpg (14.0 kB) - added by hasanhe on 01/22/11 12:49:43.

    Power Supply Schematic.jpg (23.1 kB) - added by hasanhe on 01/22/11 13:03:30.

    Power Supply order.pdf (28.3 kB) - added by hasanhe on 01/23/11 13:10:59.

    Current measurment.jpg (203.4 kB) - added by hasanhe on 01/31/11 16:03:39.

    power supply output at 2.9 V input.jpg (201.3 kB) - added by hasanhe on 01/31/11 16:04:34.

    power supply output at 3.6 V input.jpg (177.7 kB) - added by hasanhe on 01/31/11 16:05:42.

    power supply output at 4 V input.jpg (208.2 kB) - added by hasanhe on 01/31/11 16:06:35.

    Power supply image.JPG (0.6 MB) - added by hasanhe on 02/06/11 19:13:38.

    Power supply powering Micro controller.jpg (0.7 MB) - added by hasanhe on 02/19/11 16:00:59.

    Power supply powerd from Battery and its powering the micro controller.jpg (473.6 kB) - added by hasanhe on 02/19/11 16:26:38.

    PowerSupply - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/PowerSupply

    3 of 3 5/15/2011 9:00 PM

  • 5.2 Battery

    Responsible Party: Hebah Hasan

    Introduction

    A rechargeable battery or storage battery is a group of one or more electrochemical cells. They are known as secondary cells because their

    electrochemical reactions are electrically reversible. Rechargeable batteries come in many different shapes and sizes, ranging anything from a button

    cell to megawatt systems connected to stabilize an electrical distribution network. Several different combinations of chemicals are commonly used,

    including: lead-acid, nickel cadmium (NiCd), nickel metal hydride (NiMH), lithium ion (Li-ion), and lithium ion polymer (Li-ion polymer).

    Rechargeable batteries have lower total cost of use and environmental impact than disposable batteries. Some rechargeable battery types are

    available in the same sizes as disposable types. Rechargeable batteries have higher initial cost, but can be recharged very cheaply and used many

    times. [1]

    There are several different type of rechargeable battery. According to our requirements, the size and efficiency will go with nickel metal hydride

    (NiMH) for our design.

    5.2.1: Block Diagram

    5.2.2: Interface Definition

    - - - Signal Name - - - - - - Type - - - - - - Properties- - -

    VCHARGE Electrical Input 3.6V DC + - 5%Max Current: 500mA + - 5%

    VBAT Electrical Output 3.6V DC + - 5%

    5.2.3: Design

    Figure1: Schematic

    Figure2: NiMH cells in series. [2]

    Dashboard My Profile People Groups Projects Request a Project Help! Log out

    Battery - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/Battery

    1 of 3 5/15/2011 9:01 PM

  • Fiuger3: Nickel-metal hydride cells [3]

    5.2.4: Validation

    !NiMH (nickel-metal hydride cell) battery charger is a type of secondary electrochemical cell. The !NiMH battery uses a hydrogen-absorbing alloy for

    the negative electrode. Rechargeable !NiMH AAAs typically weigh 14-15 g. !NiMH cell supply 1.2 V. !NiMH has a typical capacity of 8001250 mAh.

    [4]

    We will be connecting 3 cells of NiMH battery to get total of 3.6 V, which is will be the input for our power supply. We will be using a new type of

    nickel-metal hydride cell, which is reduces self-discharge and therefore lengthens shelf life. By using a new separator, manufacturers claim the cells

    retain 70% to 85% of their capacity after one year when stored at 20 C (68 F). These cells are marketed as "hybrid", "ready-to-use" or

    "pre-charged" rechargeable. Besides the longer shelf life, they are otherwise similar to normal !NiMH batteries of equivalent capacity and can be

    charged in typical !NiMH chargers.

    Low self-discharge cells have lower capacity than some standard !NiMH cells due to the larger area of the separator. The highest capacity low-self-

    discharge cells have 20002450 mAh and 850 mAh capacities for AA and AAA cells respectively, compared to 2800 mAh and 1000 mAh for

    standard AA and AAA cells. However, after only a few weeks of storage, the retained capacity of low-self-discharge batteries often exceeds that of

    traditional !NiMH batteries of higher capacity. [5]

    5.2.5: Tests to Complete

    In our test we need to make sure that the batteries are supplying the right amount of voltage for the output, which is 3.6 V DC +/- 5% to the power

    supply circuit.

    To test this part if it rechargeable or not, we need to measure the voltage across the battery when its empty and charge it. Then measure the battery

    voltage when it is fully charged and it should be 3.6 V DC +/- 5%.

    Prove of test:

    The test started by measuring an empty battery after we drained all the voltage in it by connecting to a big resister and we took the measurement for

    it as it shows in Figure1.

    Then we charged the battery using the charging battery circuit and we measured the voltage a cross it after it got done charging and it was 3.64 V as

    it shows in Figure 2.

    Figuer1

    Figuer2

    5.2.6: Budget

    Part # Name Quantity Description Suppler Availability Cost Total Cost

    CDP-CPH-504PR [6] NiMH 3 cells together 1X3-SAAA with PR Connector Replacement Battery Battery mart Yes $9.95 $12.94

    Grand Total $12.94

    5.2.7 References

    Battery - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/Battery

    2 of 3 5/15/2011 9:01 PM

  • [1]: http://en.wikipedia.org/wiki/Rechargeable_battery

    [2]: http://www.shoppingquarter.com/BatterySpace/buy.php?sku=453257203

    [3]: http://www.chem1.com/acad/webtext/elchem/ec6.html

    [4]: http://en.wikipedia.org/wiki/AAA_battery

    [5]: http://en.wikipedia.org/wiki/Nickel-metal_hydride_battery

    [6]: http://www.batterymart.com/p-cdp-cph-504pr.html?utm_source=Google&utm_medium=Base&utm_campaign=ComparisonShopping#tabship

    Attachments

    Battery Block Diagram.jpg (11.3 kB) - added by hasanhe on 12/05/10 21:17:42.

    NiMH Battery-.jpg (13.9 kB) - added by hasanhe on 12/05/10 21:58:05.

    Nickel-metal hydride cells.jpg (23.2 kB) - added by hasanhe on 12/05/10 22:09:37.

    BATTERY Schematic.png (4.5 kB) - added by hasanhe on 01/22/11 15:47:29.

    Battery Order.pdf (19.8 kB) - added by hasanhe on 01/23/11 13:30:37.

    Battery with full charge.jpg (164.3 kB) - added by hasanhe on 01/31/11 15:53:16.

    Battery with empty charge.jpg (164.8 kB) - added by hasanhe on 01/31/11 15:55:24.

    Battery - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/Battery

    3 of 3 5/15/2011 9:01 PM

  • 5.3 Battery Charger

    Responsible Party: Hebah Hasan

    Introduction

    A battery charger is a device used to put energy into a secondary cell or (rechargeable) battery by forcing an electric current through it. The charge

    current depends upon the technology and capacity of the battery being charged. [1]

    We will be using NiMH Charge Controller [2]. The charging voltage is in the range of 1.41.6 V/cell. This type of charging control use fast charging

    method. Fast charging a cell involves a very high current and this causes the cell to heat up. When the cell becomes fully charged, the charge-current

    is converted to a "gassing" process. The cell has the capability of re-combining the gasses but not at the rate of production during fast charging.

    Re-combination of gasses creates a lot of heat and as soon as the cell becomes fully charged, it heats up considerably. This characteristic can be

    detected to turn off the charger.

    No cell likes to be fast charged and there is some limitation to the life of a cell that has been repeatedly fast charged. [3]

    5.3.1: Block Diagram

    5.3.2: Interface Definition

    - - - Signal Name - - - - - - Type - - - - - - Properties- - -

    VCHARGE Electrical Output 3.6V DC + -5%Max Current: 500mA + -5%

    Charge Signal Electrical Input 3.3V DC + - 5%Enable: The charge cricuit is running.Disable: The charge circuit is not running.

    VUSB Electrical Input 5V DC + - 5%Max Current: 500mA + -5%

    5.3.3: Design

    Figure 1: Pin connection description. [4]

    Dashboard My Profile People Groups Projects Request a Project Help! Log out

    BatteryCharger - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/BatteryCharger

    1 of 3 5/15/2011 9:03 PM

  • Figure 2: Charging Battery Schematic.

    Figure 3: Battery Charger Image

    5.3.4: Validation

    The bq2002 and bq2002/F Fast-Charge ICs are low-cost CMOS battery-charge controllers providing reliable charge termination for both NiCd and

    !NiMH battery applications. Controlling a current-limited or constant-current supply allows the bq2002/F to be the basis for a cost-effective

    stand-alone or system-integrated charger. The bq2002/F integrates fast charge with optional top-off and pulsed-trickle control in a single IC for

    charging one or more NiCd or !NiMH battery cells. Fast charge is initiated on application of the charging supply or battery replacement. For safety,

    fast charge is inhibited if the battery temperature and voltage are outside configured limits. Fast charge is terminated by any of the following:

    _ Peak voltage detection (PVD)

    _ Negative delta voltage (-V)

    _ Maximum voltage

    _ Maximum temperature

    _ Maximum time

    After fast charge, the bq2002/F optionally tops-off and pulse-trickles the battery per the pre-configured limits. Fast charge may be inhibited using the

    INH pin. The bq2002/F may also be placed in low-standby-power mode to reduce system power consumption. The bq2002F differs from the bq2002

    only in that a slightly different set of fast-charge and top-off time limits is available. [4]

    To Find the value of RB1 and RB2, we will use the equation: (RB1/RB2) = N -1. We have N = 3 and so RB1=600k ; RB2= 300k ; R3 = 75 and

    R4 = 3.6k .

    5.3.5: Tests to Complete

    We need to make sure that the circuit will recharger the battery. In order to test this block, we will be having a 5 V input to the circuit. We will

    measure the voltage across the battery before we connected to the circuit and it should be less than 3 V. Then we will connect the battery to the

    circuit. When we connect the power the LED should turn on, which is mean its charging. When the LED turns off that means the circuit its done

    charging. Then we will measure the voltage across the battery output after the LED goes off and the voltage across the battery should be 3.6 +/- 5V.

    Proof of test:

    Test starting time: 8:20 pm

    Test Ending time: 9:20 pm

    The test started by measuring the voltage across the rechargeable battery, which was = 1 V. Then we connected the battery to the charging circuit

    and power it using USB cable with 5 V. The LED was on and we measured the voltage across the battery and it start going up. When the battery

    reached up to 3.6 V and it got fully charged, the LED in the charging circuit turned off as it shows in the pictures below.

    Before the LED turned off:

    BatteryCharger - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/BatteryCharger

    2 of 3 5/15/2011 9:03 PM

  • After the LED turned off:

    5.3.6: Budget

    Part # Name Quantity Description Suppler Availability Cost TotalCost

    Resistor [5] 300 k 1 RES 300K OHM METAL FILM .50W 1% Digikey Yes $0.96 $0.96

    Resistor [6] 600 k 1 RES 620K OHM METAL FILM .50W 1% Digikey Yes $0.96 $0.96

    BQ2002SN[7]

    Fast Charge Managementbq2002/F

    1 Fast Charge Management NiCD/NiMH 2000mA8-Pin SOIC Tube

    AVNET Yes $1.47 $1.47

    GrandTotal

    $3.39

    5.3.7 References

    [1]: http://en.wikipedia.org/wiki/Battery_charger#USB-based

    [2]: http://focus.ti.com/docs/prod/folders/print/bq2002.html

    [3]: http://talkingelectronics.com/projects/ChargingNiMH/ChargingNiMH.html

    [4]: http://focus.ti.com/lit/ds/symlink/bq2002.pdf

    [5]: http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=PPCHF300KCT-ND

    [6]: http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=PPCHF620KCT-ND

    [7]: http://avnetexpress.avnet.com/store/em/EMController?langId=-1&storeId=500201&catalogId=500201&action=products&N=0&mfr=TIS&

    term=BQ2002SN

    Attachments

    Pin connection .jpg (25.8 kB) - added by hasanhe on 12/05/10 22:54:51.

    Battery Charger Block Daigram.jpg (16.8 kB) - added by hasanhe on 01/22/11 16:19:10.

    Battery Charger order.pdf (28.3 kB) - added by hasanhe on 01/23/11 13:32:17.

    LED off.jpg (0.8 MB) - added by hasanhe on 01/31/11 13:41:58.

    LED On.jpg (367.9 kB) - added by hasanhe on 01/31/11 13:43:58.

    Recharging Image.JPG (0.7 MB) - added by hasanhe on 02/06/11 19:24:08.

    ReCharger Schematic.jpg (32.4 kB) - added by hasanhe on 04/15/11 12:52:37.

    BatteryCharger - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/BatteryCharger

    3 of 3 5/15/2011 9:03 PM

  • 5.4 High Level Controller Code

    Responsible Party: Hebah Hasan

    Introduction

    We will be Using Galaxy S Captivate1 phone and so we will be using Android 2.1 platform for it. We will be using Android Development Tools (ADT)

    that is a plug in for the Eclipse IDE that is designed to give us a powerful, integrated environment in which to build Android applications.

    Android is a software stack for mobile devices that includes an operating system, middleware and key applications. The Android SDK provides the

    tools and APIs necessary to begin developing applications on the Android platform using the Java programming language. Android will ship with a set

    of core applications including an email client, SMS program, calendar, maps, browser, contacts, and others. All applications are written using the

    Java programming language. [5]

    Using ADT extends the capabilities of Eclipse and we will be able to set up new Android projects, create an application UI, add components based on

    the Android Framework API, debug applications using the Android SDK tools, and even export signed (or unsigned) APKs in order to distribute your

    application. Developing in Eclipse with ADT is the fastest way to build Android applications. ADT gives us an incredible boost in developing Android

    applications. [5]

    5.4.1: Block Diagram

    5.4.2: Interface Definition

    - - - Signal Name - - - - - - Type - - - - - - Properties- - -

    High Code Download Electrical Program: Android

    5.4.3: Design

    High level coding Block Diagram

    The high level controller code will be handled using Android development environment. We will be using Android 2.1 Platform. We will be writing the

    code in Eclipse software using Java programming language. The high level code applications will be coded and created in Eclipse using Android 2.1

    Platform and then it will be transferred to the Smartphone.

    Our program will shows in the Application interface. After the user will click on the application itself, the main menu should show up. The user will

    have the choice to choose one of the applications on the menu, which they are:

    1. Making new Test.

    2. Store Data.

    3. The user will be able to graph the data.

    All the choices will have the choice to back to the main menu and exit choice.

    5.4.4: Validation

    Since this is a code block, validation is basic since the final system will need to be completed to verify function. We examine that all input and

    Dashboard My Profile People Groups Projects Request a Project Help! Log out

    HighLevelControl - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/HighLevel...

    1 of 2 5/15/2011 9:05 PM

  • outputs from the high level controller are included, initialized, and read from within the code.

    5.4.5: Tests to Complete

    Since this is a code block, there is not an associated block test. The entire system needs to be built, and the code is tested by performing all of the

    system tests. If all system tests pass, the code is assumed to be fully functional. Only long term testing at that point will lead to a better

    understanding of what specific bugs may exist.

    5.4.6: Budget

    There is not a budget associated with this software block.

    5.4.7: References

    [1]: http://en.wikipedia.org/wiki/Windows_Mobile#Software_development

    [2]: http://en.wikipedia.org/wiki/Programming_language

    [3]: http://en.wikipedia.org/wiki/High-level_programming_language

    [4]: http://en.wikipedia.org/wiki/C%2B%2B

    [5]: http://developer.android.com/index.html

    [6]: http://developer.android.com/reference/android/app/package-summary.html

    Attachments

    High level Code Block Diagram.jpg (11.9 kB) - added by hasanhe on 12/06/10 14:42:40.

    Test Code.jpg (39.1 kB) - added by hasanhe on 02/20/11 06:57:11.

    Applicaation icon.jpg (29.9 kB) - added by hasanhe on 02/20/11 07:00:35.

    Test Result.jpg (28.5 kB) - added by hasanhe on 02/20/11 07:02:20.

    High Level Bolck Diagram For high level Code.jpg (34.0 kB) - added by hasanhe on 03/07/11 12:25:47.

    High Level Code.java (38.7 kB) - added by hasanhe on 03/07/11 15:09:28.

    HighLevelControl - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/HighLevel...

    2 of 2 5/15/2011 9:05 PM

  • 5.5 SmartPhoneResponsible Party: Kim Kosko

    The smartphone is the Samsung Galaxy S Captivate. This phone is the perfect choice for a smartphone due to the use of Bluetooth 2.1. The

    smartphone must be compatible with the CC2560 bluetooth solution from Texas Instruments, which uses the Bluetooth 2.1+EDR Module.

    5.5.1 Block Diagram

    5.5.2 Interface Definition

    - - - Signal Name - - - - - - Type - - - - - - Properties- - -

    SmartPhone Display Electrical Displays measurement results to user

    High Code Download Electrical Program: Java

    User Input Environmental

    5.5.3 Design Block Diagram

    The smartphone is already designed and on the market. No extra circuits or components will be necessary to use the smartphone. We will need to

    download code on to the smartphone to allow the user to use the medical application that we create. We also will need to have the phone make a

    wireless Bluetooth connection to microcontrollers Bluetooth module.

    Fig. 1 Galaxy S Captivate1 [3]

    The datasheet [1] describes how to enable the smartphones Bluetooth. These steps show how to turn on the Bluetooth, change the name, and make

    the Bluetooth visible:

    To access the Bluetooth Settings menu:

    1. Touch Settings Wireless and network Bluetooth settings.

    2. Verify your Bluetooth is active.

    3. Touch the Device name, Visible, and Scan devices fields to set the options.

    To change your Bluetooth name:

    1. Verify your Bluetooth is active.

    2. From the Bluetooth settings page, tap Device name.

    Dashboard My Profile People Groups Projects Request a Project Help! Log out

    SmartPhone - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/SmartPhone

    1 of 3 5/15/2011 9:07 PM

  • 3. Tap the Device name field and enter a new name.

    4. Tap OK to complete the rename process.

    To make your device visible:

    1. Verify your Bluetooth is active.

    2. From the Bluetooth settings page, tap Visible.

    Making your device visible allows it to be detected by other devices for pairing and communication

    The steps, from the datasheet [1], to creating a Bluetooth partnership with a device to the smartphone are described below. Also shown is how to

    disconnect a paired device:

    Pairing Bluetooth Devices:

    The Bluetooth pairing process allows you to establish trusted connections between your device and another Bluetooth device. When you pair devices,

    they share a passkey, allowing for fast, secure connections while bypassing the discovery and authentication process.

    To pair your device with another Bluetooth device:

    1. Verify your Bluetooth is active.

    2. Tap Scan devices. Your device will display a list of discovered in-range Bluetooth devices.

    3. Tap a device from the list to initiate pairing.

    4. Enter the passkey or PIN code, if needed, and tap OK.

    5. The external device will then have to also accept the connection and enter your devices PIN code.

    To disconnect a paired device:

    Disconnecting a paired device breaks the connection between the device and your phone, but retains the knowledge of the pairing. At a later point

    when you wish to reconnect the device, there is no need to setup the connection information again.

    1. Verify your Bluetooth is active.

    2. From the Bluetooth settings page, touch the previously paired device (from the bottom of the page).

    3. Tap OK to confirm disconnection.

    or

    From the Bluetooth settings page, touch and hold the

    name of the previously paired device, and select Disconnect.

    To get the software downloaded on the smartphone. This is for if the product is on the market and the customers need to be able to download the

    application that we create for the phone. We can submit our software to a free application download website like [4]. Then any Galaxy user can

    download the free application and be able to use it along with our medical device. For testing and setting up our prototype and final design, we will

    use the phone the synchronize to a computer to get our program on to the smartphone. The steps to do this are also found one the smartphone's

    datasheet [1]. The data sheet says the following about PC connections:

    PC Connections

    You can connect you device to a PC using an optional PC data cable using various USB connection modes. When you connect the device to a PC, you

    can synchronize files with Windows Media Player, transfer data to and from your device directly, or use the Samsung Kies program and use you

    device as a wireless modem for a PC.

    What is Samsung Kies?

    Samsung Kies is a software suite that allows you to search and download applications directly from a PC. The applications are then installed onto a

    mobile device when synced with a PC, providing instant back up and peace of mind for application downloads.

    To learn more about Samsung Kies and Samsung applications, browse featured applications and download Kies at www.samsungapps.com.

    Connecting with Samsung Kies

    Ensure that Samsung Kies is installed on your PC. You can download the program from the Samsung website (www.samsungmobile.com).

    1. From the Home screen, touch Settings Applications USB settings Samsung Kies.

    2. Press to return to the Home screen.

    3. Using an optional PC data cable, connect the multifunction jack on your device to a PC.

    4. Run Samsung Kies and use wireless connections or copy data and files. Refer to Samsung Kies help for more information.

    5.5.4 Validation

    The Galaxy S Captivate is a valid smartphone. The Galaxy S Captivate can download Windows Media applications from [4]. Software developers can

    upload the programs to the freeware website for the public to download use. This would be useful, since it will allow customers to have access to our

    application without having to synchronized to our smartphone.

    For using and testing the code on our smartphone, we will use the computer to synchronize to the smartphone. On pages 139 of [1] lists steps for

    the smartphone to be synchronized to the computer. This will be necessary to download our code onto the smartphone. The steps are simple and

    there are multiple ways that we will be able to try if we run into any difficulties. The phone is known for being able to synchronized with a computer;

    therefore, we should have no problems getting our code onto the smartphone.

    On page 136-138 of [1] explains that the smartphone can be synchronized to other Bluetooth devices. Following the steps from the datasheet will

    allow us to recognize our medical device with the smartphone.

    I know that this smartphone will be able to connect to our Bluetooth device.

    5.5.5 Tests to Complete

    There are no block level tests for the smartphone. Only system level tests.

    5.5.6 Budget

    Part#

    Name Quantity Description Suppler Availability Cost TotalCost

    N/A Smartphone 1 Captivate Galaxy S Android Smartphone (Unlocked, AT&TBranded)

    Amazon.com[2]

    Available $524.99 $524.99

    SmartPhone - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/SmartPhone

    2 of 3 5/15/2011 9:07 PM

  • GrandTotal

    $524.99

    5.5.7 References

    [1] http://downloadcenter.samsung.com/content/UM/201007/20100730051638609/SGH-i897_ATT-Captivate_English_User_Manual.pdf

    [2] http://www.amazon.com/Captivate-Android-Smartphone-Unlocked-Branded/dp/B004BPNPGQ

    [3] http://pdadb.net/index.php?m=specs&id=2430&c=samsung_sgh-i897_galaxy_s_captivate

    [4] http://www.freewarepocketpc.net/ppc-tag-medic-5-date.html

    Attachments

    SmartPhone.jpg (6.4 kB) - added by koskok on 11/21/10 19:23:28.

    Smartphone pic.jpg (21.4 kB) - added by koskok on 12/01/10 20:47:13.

    samsung_captivate.jpg (25.3 kB) - added by koskok on 02/05/11 15:12:28.

    SmartPhone - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/SmartPhone

    3 of 3 5/15/2011 9:07 PM

  • 5.6 Bluetooth ModuleResponsible Party: Kim Kosko

    The Bluetooth solution will be the CC2560 from TI. The CC2560 is perfectly compatible with the MSP430BT5190. The PAN1315 used the CC2560 chip

    to become the Bluetooth evaluation module kit for the MSP430. The kit includes two PAN1315ETU boards each with a PAN1315 Bluetooth 2.1+EDR

    Module. The best solution will be to use the kit, since it has all the set up already done for us. The software is called the MSP430+CC2560 SDK

    including the Ethermind Bluetooth stack and SPP.

    5.6.1 Block Diagram

    5.6.2 Interface Definition

    - - - Signal Name - - - - - - Type - - - - - - Properties- - -

    VMAIN Electrical 3.3V DC +-5%Max Current: 250mA

    UART Electrical Clk Speed: 32.76kHz3.3V DC

    Bluetooth Protocol Electrical Bluetooth 2.1 Protocol Compliant10.5 dBm

    5.6.3 Design Block Diagram

    The PAN1315ETU is designed to be easy to use. The board already comes assembled with the circuits ready to use. The PAN1315 is programmed

    from the microcontroller. The only set up will be to connect the correct inputs to the board and it will be ready to use.

    The PAN1315ETU is shown in the picture below:

    The main component of the PAN1315ETU is Panasonic's new PAN1315 Host Controlled Interface (HCI) Bluetooth RF module [2]. The block diagram of

    the PAN1315 is shown below:

    The specifications of the PAN1315 are given in the cart below [2]:

    Dashboard My Profile People Groups Projects Request a Project Help! Log out

    BluetoothModule - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/Bluetooth...

    1 of 4 5/15/2011 9:08 PM

  • The core of the PAN1315 is the CC2560 all in one Bluetooth module [4]. The block diagram for this solution is shown below.

    The PAN1315ETU will be connected to the microcontroller in the following way:

    5.6.4 Validation

    The PAN1315ETU is a board that already incorporates the PAN1315. The board is designed so we can just plug in VMAIN and the other inputs without

    having to add any other circuit components. The CC2560 is Commercially licensed to the MindTree Ethermind Bluetooth Stack for the MSP430. The

    microcontroller we choose, will only work with this Bluetooth solution.

    The PAN1315ETU is made to use with the MSP430 according to [1] and [2]. The Texas Instruments website [1] states that the PAN1315ETU will also

    need the MSP430BT5190 and the USB Debugging Interface, which is the JTAG programmer. The microcontroller block shows that we are ordering

    both of those requirements.

    The wiki site for how to use the PAN1315ETU has an example of how the PAN1315 is used [4]. They create a computer game and use the PAN1315 to

    turn the MSP430 into a microcontroller. This tells me that the PAN1315 will be able to connect to the MSP430.

    5.6.5 Tests to Complete

    1. Connect VMAIN at 3.3V to the PAN1315

    2. Check LED to verify the board has power

    3. Go on the computer and see if the computer can verify our Bluetooth device renamed to Project 20 -

    4. Have the computer pair with our device

    PASS: LED lights up, screen shots are available of the renamed device, and the successful pairing

    FAIL: LED doesn't light up, screen shots aren't available of the renamed device, and the successful pairing

    This picture is the proof that the LED did light up and the board is getting power:

    This is the screen shot of the renamed Bluetooth device found on our computer:

    BluetoothModule - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/Bluetooth...

    2 of 4 5/15/2011 9:08 PM

  • This is a screen shot showing that the computer paired with our device:

    5.6.6 Budget

    Part # Name Quantity Description Suppler Availability Cost Total Cost

    PAN1315EMK PAN1315 [1] 1 Bluetooth Evaluation Module Kit for MSP430 DigiKey Available $99.00 $99.00

    Grand Total $99.00

    5.6.7 References

    [1] http://focus.ti.com/docs/toolsw/folders/print/pan1315emk.html

    [2] http://www.panasonic.com/industrial/electronic-components/rf-modules/bluetooth/pan1315-ti.aspx?cm_mmc=PIC-_-Alias-_-RF_Modules-

    _-Bluetooth-PAN1315-TI

    [3] http://www.panasonic.com/industrial/includes/pdf/PAN1315_Full-Spec_2010.pdf

    [4] http://processors.wiki.ti.com/index.php/PAN1315EMK_User_Guide

    [5] http://processors.wiki.ti.com/index.php/EZ430-RF2560

    Attachments

    PAN1315ETU pic.jpg (122.2 kB) - added by koskok on 12/02/10 00:45:25.

    PIN1315 block pic.jpg (15.9 kB) - added by koskok on 12/02/10 00:52:37.

    specifications pic.jpg (26.7 kB) - added by koskok on 12/02/10 00:59:38.

    CC2560 block pic.jpg (20.3 kB) - added by koskok on 12/02/10 01:06:15.

    bluetooth connections.jpg (39.1 kB) - added by koskok on 12/04/10 21:04:33.

    BluetoothModule - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/Bluetooth...

    3 of 4 5/15/2011 9:08 PM

  • bluetooth.jpg (10.4 kB) - added by koskok on 12/06/10 14:10:22.

    P1310125.JPG (0.9 MB) - added by koskok on 01/31/11 13:56:49.

    BluetoothModule - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/Bluetooth...

    4 of 4 5/15/2011 9:08 PM

  • 5.7 MicroControllerResponsible Party: Kim Kosko

    The microcontroller will control the actions of all the different circuits, making it very important. The measurement circuit will require the

    microcontroller to handle mixed signals. The microcontroller that was chosen is the MSP430BT5190. The main reason for the selection is due to the

    microcontrollers compatibility with the CC2560 bluetooth solution.

    The MSP430 has multiple low-power modes and is optimized to obtain a long battery life. The mircrocontroller has a 16-bit RISC CPU with

    16-registers. The device can wake up from low-power modes quickly.

    5.7.1 Block Diagram

    5.7.2 Interface Definition

    - - - Signal Name - - - - - - Type - - - - - - Properties- - -

    VMAIN Electrical 3.3V DC +-5%Max Current: 250mA

    Charge Level Electrical 0-3.3VDC, 4.8VDC fully charged, 1VDC discharged

    UART Electrical Clk Speed: 32.76kHz3.3V DC

    Low Code Download Electrical/Control Program: .net

    Data Signal Electrical 3Vp-to-p AC @ ~200Hz20mA MaxMeasured electrochemical voltage from BGSPI 32.76KHzSupplied input for DAC

    5.7.3 Design Block Diagram

    The MSP430 that we choose is a low power solution. Although the microcontroller that we are using has 100-pins and we only need 17 pins and the

    programmer connections, the microcontroller will be a good solution for our project. The main reason is that the Bluetooth stack protocol for our

    Bluetooth solution is only licensed to be used by this microcontroller.

    The programmer for the microcontroller is called JTAG. We will need to separately purchase the MSP430 USB Debugging Interface, however the

    coding and downloading will be simple.

    The microcontroller that we are using will be contained on a PCB that we designed. The microcontroller will be attached to the board. The JTAG can

    be connected to the PCB directly to program the microcontroller.

    The following picture shows the pin out for the microcontroller:

    5.7.4 Validation

    The microcontroller is already on the market. There is no formal validation. It is compatible with the Bluetooth solution according to [2]. The

    microcontroller will be programmed using the JTAG solution as the USB debugging technique. The microcontroller datasheet states that the output for

    the general I/O pins output 3.3V; therefore, we designed our system to work with that output. We will be using a UART and a SPI connect to the slow

    Dashboard My Profile People Groups Projects Request a Project Help! Log out

    MicroController - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/MicroContr...

    1 of 4 5/15/2011 9:10 PM

  • clock of the microcontroller. The datasheet states that those values will be correct [1].

    The wiki site for TI has a sample program that says how to use the microcontroller with the bluetooth solution for a game controller [7]. This tells

    me that the microcontroller will be programmable and that it will work well with our Bluetooth solution.

    A picture of the JTAG product is shown below [3]. This shows that the microcontroller will be able to connect to the computers USB port using the

    JTAG system. This will allow us to write code in C on the computer and download it to the microcontroller. The picture proves that the JTAG

    programmer is made to work with the target board that we are using:

    5.7.5 Tests to Complete

    LED test:

    1. Connect the JTAG programmer to the mircocontroller's target board

    2. Add power to Vin using 3.3V VMAIN using the JTAG programmer

    3. Download code on to microcontroller

    4. Check that VMAIN has 3.3V

    5. Check that pin98 has is outputing enough voltage to light up our LEDs (1V-3V)

    PASS: 4 and 5 are verified

    FAIL: 4 and are not verified

    Bluetooth test:

    1. Connect the JTAG programmer to the mircocontroller's target board

    2. Add power to Vin using 3.3V VMAIN using the JTAG programmer

    3. Download code on to microcontroller

    4. Check the output of the clock to verify the clock is working

    5. Verify the Bluetooth can be discovered by the computer by pairing with our renamed device (named Project 20-)

    PASS: 4 and 5 are verified

    FAIL: 4 and 5 are not verified

    These images show that the LED lighting up with the correct voltage supplied:

    These images show proof that the microcontroller can communicate with the bluetooth; therefore the UART is correct:

    MicroController - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/MicroContr...

    2 of 4 5/15/2011 9:10 PM

  • This is the clock signal from the oscilloscope:

    5.7.6 Budget

    Part # Name Quantity Description Suppler Availability Cost TotalCost

    MSP430F5438 [2] Mixed Signal Microcontroller 1 MSP430 Microcontroller TexasInstruments

    Available SamplesOnly

    $0

    MSP-FET430UIF[3]

    MSP430 USB DebuggingInterface

    1 Software forprogramming

    TexasInstruments

    Available $99.00 $99.00

    Grand Total $99.00

    5.7.7 References

    [1] http://focus.ti.com/lit/ds/symlink/msp430bt5190.pdf

    [2] http://focus.ti.com/docs/prod/folders/print/msp430f5438.html

    [3] http://focus.ti.com/docs/toolsw/folders/print/msp-fet430uif.html

    [4] http://processors.wiki.ti.com/index.php/JTAG_%28MSP430%29

    [5] http://focus.ti.com/docs/toolsw/folders/print/msp-ts430pz5x100.html

    [6] http://focus.ti.com/lit/ug/slau278e/slau278e.pdf

    [7] http://processors.wiki.ti.com/index.php/PAN1315EMK_User_Guide

    [8] http://www.cizgi-tagem.org/resource/vfiles/tagem/dms_file/3457/slau208.pdf

    [9] http://processors.wiki.ti.com/images/6/6f/MSP430BT5190_CC2560_Developers_Guide.pdf

    MicroController - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/MicroContr...

    3 of 4 5/15/2011 9:10 PM

  • Attachments

    TS430PZ5x100.jpg (72.4 kB) - added by koskok on 12/04/10 22:19:27.

    msp-fet430u5x100.jpg (307.2 kB) - added by koskok on 12/05/10 12:41:58.

    Sch Target Board.jpg (109.5 kB) - added by koskok on 12/05/10 14:09:54.

    TargetBoardLayout.png (219.7 kB) - added by koskok on 12/05/10 14:13:26.

    MicroController.jpg (11.4 kB) - added by koskok on 12/06/10 15:00:55.

    microblockdiagram.jpg (49.3 kB) - added by koskok on 12/06/10 15:55:55.

    P1310122.JPG (1.1 MB) - added by koskok on 01/31/11 13:24:43.

    P1310123.JPG (1.1 MB) - added by koskok on 01/31/11 13:25:32.

    P1310124.JPG (1.0 MB) - added by koskok on 01/31/11 13:26:22.

    clkpic.jpg (146.6 kB) - added by koskok on 01/31/11 15:03:32.

    P1310126.JPG (0.9 MB) - added by koskok on 01/31/11 15:18:58.

    paired_1.2.jpg (57.1 kB) - added by hasanhe on 01/31/11 15:30:05.

    paired_2.2.jpg (32.4 kB) - added by hasanhe on 01/31/11 15:30:34.

    Schematic_micro.jpg (114.6 kB) - added by koskok on 02/18/11 11:42:55.

    P3060303.JPG (1.0 MB) - added by koskok on 03/06/11 21:51:05.

    P3070013.JPG (0.9 MB) - added by koskok on 03/07/11 13:11:24.

    MicroController - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/MicroContr...

    4 of 4 5/15/2011 9:10 PM

  • 5.8 Low Level Controller CodeResponsible Party: klarrt

    The low level controller code will handle the taking the testing measurements as well as connecting to the smartphone

    via bluetooth. It will also control the state of the microcontroller whether goes into standby or wakes up from a user

    input. The low level code will have to be able to control the input signal to the measurement circuit and collect the

    data from the measurement circuit. That data will then be used to calculate the blood glucose levels from the blood

    sample. That information will have to be transferred to the bluetooth module to be sent to the smartphone.

    5.8.1 Block Diagram

    Figure 1: Low Level Code Block Diagram

    5.8.2 Interface Definition

    - - - Signal Name - - - - - - Type - - - - - - Properties- - -

    low code download Electrical/Control Programming: CTI USB programmer JTAG

    5.8.3 Design Block Diagram

    The low level code primary function is to open a bluetooth connection with the smartphone and make the blood

    glucose measurement. This will be done by first searching for a link partner after powering on or waking up from

    standby. If an established link partner is detected the device should automatically connect to that device. If no link

    partner is found, the device will continue to for a link partner until one of two user inputs occurs. The first user input

    (such as quickly pressing the power button once), will cause the device to become discoverable. After becoming

    discoverable, the device will search for a new link partner until it is shut off or finds one. If a link partner is found,

    the device will create a connection and the wait for the user to make a command through the smartphone via the

    bluetooth stack. The second input (such as quickly pressing the power button twice) will force the device to perform

    the test and store the data locally. If a bluetooth link is ever established, there are two possible outcomes. First, the

    device is left for 5 minutes without any action and will go to standby mode. Second, there is a command from the

    bluetooth stack which will make the device perform the test. The device will the store the calculated data as well as

    transmit any data to the smartphone which has yet been sent. During anytime of operation, the status LEDs will be

    updated to reflect the battery level, bluetooth connection, and testing progress.

    Dashboard My Profile People Groups Projects Request a Project Help!

    LowLevelControl - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/LowLevelC...

    1 of 3 5/15/2011 9:12 PM

  • Figure 2: Low Level Code State Diagram

    5.8.4 Validation Diagram

    Because this is code, the final system will have to be completed to validate design.

    LowLevelControl - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/LowLevelC...

    2 of 3 5/15/2011 9:12 PM

  • 5.8.5 Tests to Complete

    Besides compiling the code and downloading to the device, there are no block test for this section because the code

    will need to be tested at a system level.

    This is proof that the code compiles and that the mircrocontroller and communicate with the Bluetooth. I know this

    because the computer can recognize our device with the new name of Project 20-:

    5.8.6 Budget

    There is no budget for this block.

    5.8.7 References

    Attachments

    low code block.jpg (4.8 kB) - added by klarrt on 12/06/10 05:34:46.

    low code design.jpg (159.3 kB) - added by klarrt on 12/06/10 14:29:43.

    LowLevelControl - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/LowLevelC...

    3 of 3 5/15/2011 9:12 PM

  • 5.9 Test StripResponsible Party: klarrt

    In order to measure Blood Glucose Levels with electrochemical methods, a blood sample must be placed on a set of electrodes and are referred to as

    test strips. Each test strip can only be used once and is different for each meter. We have chosen to use the same test strip as our reference meter in

    order to help reduce testing variables as well as lower costs for having to order separate test strips.

    5.9.1 Block Diagram

    Figure 1: Test Strip Block Diagram

    5.9.2 Interface Definition

    - - - Signal Name - - - - - - Type - - - - - - Properties- - -

    Cyclic Voltammetry Signal Electrical 3.3Vp-to-p AC @ ~200HzApplied test voltage to BG test strip

    Blood Sample Environmental Human Blood Sample or Calibration SampleTemperature: 95F to 105F

    5.9.3 Design

    Figure 2: OneTouch Ultra Test Strip

    We have chose the OneTouch Ultra Test Strip for two main reasons. First, the strip uses three electrodes which can offer more accurate testing

    results. Second, we have acquired OneTouch Meters which require this strip and we will use these meters to test and compare our device.

    5.9.4 Validation

    Validation is basic with this block because these test strips are used with the meter that we will be comparing our final device to.

    5.9.5 Tests to Complete

    This block will be tested by using the reference meter to acquire a blood glucose level. The other tests for this block will be the same as the test for

    the measurement circuit because this block cannot be tested independently.

    This is proof that the test strips can be used to take a measurement:

    5.9.6 Budget

    Part # Name Quantity Description Suppler Cost Total Cost Availability

    Dashboard My Profile People Groups Projects Request a Project Help! Log out

    TestStrips - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/TestStrips

    1 of 2 5/15/2011 9:13 PM

  • N/A Test Strips 1 OneTouch Ultra Blue Test Strips Ultra, UltraTouch, InDuo 100ea. Wallgreens $119.99 $119.99 Yes

    Grand Total $119.99

    5.9.7 References

    The first website explains the definition of a test strip and how it works. Also, it defines the purposes and uses for them. The second link is a PDF

    that takes an in depth look at the strip itself, what it is made of, and also shows how the strip interacts with the meter.

    http://www.diabetes-diabetic-diet.com/diabetic_test_strip.htm

    http://www.liebertonline.com/doi/pdf/10.1089/dia.2008.0005

    Attachments

    test strip.jpg (25.1 kB) - added by klarrt on 12/02/10 04:42:20.

    test strip block.jpg (5.9 kB) - added by klarrt on 12/02/10 04:46:01.

    test strip2.jpg (15.1 kB) - added by klarrt on 12/06/10 04:20:47.

    P1310129.JPG (0.9 MB) - added by koskok on 01/31/11 15:16:41.

    TestStrips - Project 20 - Trac http://beaversource.oregonstate.edu/projects/44x201020/wiki/TestStrips

    2 of 2 5/15/2011 9:13 PM

  • 5.10 Measurement CircuitResponsible Party: klarrt

    The device is required to be able to make accurate Blood Glucose Level (BGL) measurements. There are a few different electrochemical methods to

    extract this information from a sample of blood. All of these methods utilize a simplified reaction of Glucose transferring two electrons to two

    mediators through use of an enzyme. Then the mediator then transfers the gained electron to an electrode. This process will generate current and is

    started by applying an electromagnetic field. The current will be proportional to the amount of electrons transferred and with this information a

    concentration of glucose can be derived [1].

    5.10.1 Block Diagram

    Figure 1: Measurement Circuit Block Diagram

    5.10.2 Interface Definition

    - - - Signal Name - - - - - - Type - - - - - - Properties- - -

    Cyclic Voltammetry Signal Electrical 2Vp-to-p AC @ ~200HzApplied test voltage to BG test strip

    Data Signal Electrical ~200mVp-to-p AC @ ~200Hz20mA MaxMeasured electrochemical voltage from BGSPI 32.76KHzSupplied input for DAC

    5.10.3 Design

    Figure 1: Measurement Circuit Schematic

    There are several methods for Electrochemical Analysis to measure BGL such as Cyclic Voltammetry and Chronoamperometry [1]. This circuit is

    designed to be used with cyclic voltammetry (CV). Rfb = 51.1kohms Cfb = 47pf R1=R2=51.1kohms U1 & U2 = OPA378

    5.10.4 Validation

    CV uses an oscillating signal applied to the Auxiliary Electrode (AE) to cause a redox reaction betwee