Wireless Heart Rate Monitor - UCF Department of...
Transcript of Wireless Heart Rate Monitor - UCF Department of...
Wireless Heart Rate MonitorWireless Heart Rate MonitorGroup #7
Frank BrunoMatthew EcklundHeather Grenitz
Eric Roberts
Sponsored by:
http://www.betterworldengineering.com
Project DescriptionProject Description
Consists of two units◦
TSU: Transmitting Sensor Unit◦
RDU: Receiving Display Unit
TSU worn by patient, RDU monitored by caregiver
Finger sensor obtains data, the TSU calculates the heart rate and transmits the information to the RDU where it is displayed
GoalsGoals
Ultimately to monitor infants at risk of SIDS
Less obtrusive and more easily worn for long periods of time compared to hospital units
More affordable than existing wireless units
Remote monitoring
Ideal for a wide variety of users
Maximum protection at minimal cost
ObjectivesObjectivesTransmitting Sensor Unit (TSU)
Able to be worn on the wrist with an attached finger sensor
Battery powered
Control the Pulse Sensor
Make calculations to achieve accurate Pulse data
Monitor unit’s battery life
Transmit data to the RDU
Receiving Display Unit (RDU)
Receive data from the TSU
Display Patient’s Pulse
Wall powered
Display TSU Battery life
Audible alerts for critical conditions, loss of signal and low battery
Overall Block DiagramOverall Block Diagram
MCU Sensor
Power
TransceiverModule
MCU
Display
Power
SpeakerTransceiver
Module
Wireless OptionWireless Option
Transmission Methods◦
Bluetooth◦
Zigbee◦
Custom Radio Frequency and Protocol
Custom RF protocol chosen◦
Alternatives have high overhead and a large amount of unnecessary features◦
Requires less power◦
Lower cost parts
MicrocontrollerMicrocontroller
Ideally, would use CC430 from Texas Instruments.◦
Composed of MSP430 with internal CC1101
◦
9mm x 9mm QFN◦
32 GPIOs, 12-bit ADC, 2-channel USART
◦
Production delayed
Using MSP430F1610 and CC1101 instead◦
12mm x 12mm LQFP, 48 GPIOs and two 12-bit DACs
◦
5mm x 5mm QFN, Sub 1GHz transceiver operating at 915 MHz in the ISM band (FCC 15.247)
◦
Communicate using SPI
CC1101 Switch to CC2500
Problem◦
915MHz band too noisy◦
All data sent was received on the other side but the CRC never checked out
Solution◦
Use CC2500 on 2.4GHz band
TSUTSU
Optical Pulse SensingOptical Pulse Sensing
Non-invasive optical measurement of heart rate
Infrared light is attenuated less by body tissues and more by blood (940nm)
Light shines through finger and strikes a photodiode, which creates a very small current based on the amount of light incident on the photodiode
Determine attenuation of light based on output of photodiode
TSU SpecificationsTSU Specifications
Sensoro Photodiode must detect light at 940 nmo Convert photodiode current to voltage values
between 0V and 2.5Vo Accuracy of 2 BPM
Transmit a minimum of 10 ft
MCUo Two 12-bit DACso Three 12-bit ADCso 12 GPIOs
Block Diagram TSUBlock Diagram TSU
PhotodiodeOED-SP-23DiffAmp
LT6242
IR LED APT1608F3C
DC/DCBuck converter
EP5368QI
ADC in
ADC in
ADC in
light
Current VAC + DC
V DC
Trans Amp
LT6242V AC
MCU
ADC
ADC
DAC
LED Control Circuit
V ir
IR
SensorSensor• To calculate pulse the photodiode current is converted to a
voltage
• This voltage has both a DC and AC component that represents
attenuation of light
• DC – constant volume of blood• AC –
ebbing and flowing of blood• AC used for measurements• DC used for AGC
15kR6Photo AC+DC
5.6MR4
3pFC18
100kR8
150k
R5
15kR9
Photo Cathode
Photo Anode
0.1uF
C19
GND
VREF+
+IN B5
-IN B6
OUT B 7
U3B
OUT C 10-IN C11
+IN C12
U3C
Photo DCPhoto AC
10uF
C20
47pFC50
Sensor ControlSensor Control
DAC controls current to LED
LED intensity must be high enough to pass through the finger
To save on power, when no finger is detected intensity is reduced using DAC
LED1
IR_AIR_C
IR_AIR_C
5k
R14
20R
R15
GND
LED_DR1
DAC
6
2
1
T1AMMDT2222V-7
4
5
3
Q2B10kR12
+3.3V
LED_DR1
1
2
6Q1A
BC856AS-710kR10
Automatic Gain ControlAutomatic Gain Control
MCU determines DAC output based on DC component input
Output from the DAC on the MCU controls current to LED
AGC constantly monitors output from photodiode and adjusts the LED level to maintain a steady voltage
Heart Rate CalculationHeart Rate Calculation
Read in whole heart beat wave
Digitally filter using symmetric FIR filter and a noise shaped DC estimator
Follow the falling edge until the value goes below a threshold
Follow the rising edge until the value goes above a threshold
Count one beat
When three beats have been recording wake up the MCU for the heart beat calculation
RDURDU
RDU SpecificationsRDU Specifications
MCU◦
18 GPIOs◦
2 SPI interfaces
Receive from source approximately 10 feet away
Display◦
Minimum 0.4in◦
Minimum 3 digits◦
Can be seen from 10ft away
Speaker producing sound at a minimum of a 60dB sound pressure level
RDU Block DiagramsRDU Block Diagrams
4243-digit,7-segmented
DisplayLDT-A512RI
LED Display Driver
MAX6957
LED ArraySSA-
LXB435SUGD
MCU
4
SPI
Buzzer
5
PWM
4
DisplayDisplay
Bright and has large numbers to be seen from across a room
3-digit, 7-segment display measures 1.5in x 0.75in with 0.56in tall digits
LED driver, Maxim part number MAX6957, used to drive the display, Lumex part number LDT-A512RI
AlarmsAlarms
Maximize safety by utilizing audible alarm
Speaker◦
Audible alerts for:
Danger conditions
Loss of signal
Low power
◦
Surface mount speaker PUI Audio part number SMT-0540-T-6-R
Speaker to BuzzerSpeaker to BuzzerProblem
MCU unable to supply enough current to drive the speaker
Solution
Use a low cost buzzer in its place◦
Buzzer requires:
1.5 to 3VDC
Max current 15mA
PCB FabricationPCB Fabrication
Altium Designer to create schematics and PCB layouts
3 TSU boards and 2 RDU boards for testing and prototyping
Sunstone Circuits ValueProtoTM PCB service◦
Specifically for low quantities of small area, two layer boards
◦
10-day turn around can be expedited
PCB Fab Express – Bare Bone PCB◦
Low cost, Fast turn pcb service
Total cost approximately $220
Populated boards ourselves
Mechanical DesignMechanical Design
Case sizes are based on PCB and battery dimensions
RDU◦
PCB measures 2in x 2.5in◦
Case measures 6in x 4in x 2in
TSU ◦
PCB measures 0.85in x 2.5in◦
Battery measures 0.70in diameter x 2.65in long◦
Case measures 4in x 2in x 1in◦
Wrist strap on the bottom
RDU caseRDU case
TSU caseTSU case
Mechanical DesignMechanical Design
Sensor mechanical design more difficult
Pre-made cases are not available as they are for the TSU and RDU
Several different options◦
Ready-made sensor◦
Fabric cuff with Velcro or elastic◦
Silicon or alginate mold
Depended on final budget
SoftwareSoftware
SoftwareSoftware
Efficient and fit inside the parameters of the MCU 5KB RAM and 32KB Flash
The primary language is C with the ability to use assembly if needed
TI Code Composer Studio v4 IDE
Olimex MSP430F1611 Development Board
TSU SoftwareTSU Software
TSU responsible for calculating ◦
Heart rate ◦
Battery Life
Communicates data to the CC2500 for RF transmission
Time multiplexed sampling
Switch turned on
Setup SPI with CC2500
Setup CC2500 comm settings
Setup LED Select Timer
Setup Send and Battery Life Timer
Setup ADCSetup DAC
Calculation Loop
Packet:
MSP430 communicates with CC2500 using SPI
CC2500 notifies MSP430 using interrupts whether a packet has been received or sent successfully
CC2500 library to handle communication between MSP430 and the CC2500
TransmissionTransmission
Header Heart Rate2 Byte CRCBattery Life
1 Byte
Receiver Interrupt
Receive Packet from
CC2500
Send Timer Interrupt
Construct and Send
Packet
P3.0/STE0 28
P3.1/SIMO0/SDA 29
P3.2/SOMI0 30
P3.3/UCLK0/SCL 3132
CS_CCSDI_CCSDO_CCSCLK_CC
SCLK1
SO (GDO1)2
GDO23 GDO0 (ATEST)6 CSn7 SI20
Int_CCCS_CCSDI_CCSDO_CCSCLK_CC
Texas Instruments Custom RF Protocol
Similar to the TCP/IP stack
Access Point and End Device Model
Internalizes all of the SPI calls and wireless transmission functionality
RDU constantly polling for TSU after set up
TSU waits to sync to RDU before monitoring
SimpliciTISimpliciTI
Receiver Interrupt
Receive Packet from
CC2500
Send Timer Interrupt
Construct and Send
Packet
P3.0/STE0 28
P3.1/SIMO0/SDA 29
P3.2/SOMI0 30
P3.3/UCLK0/SCL 3132
CS_CCSDI_CCSDO_CCSCLK_CC
SCLK1
SO (GDO1)2
GDO23 GDO0 (ATEST)6 CSn7 SI20
Int_CCCS_CCSDI_CCSDO_CCSCLK_CC
Software driven SensorSoftware driven Sensor
Timer Interrupt driven sampling◦
500 samples per second
LED has its current controlled by the DAC
15kR6Photo AC+DC
5.6MR4
3pFC18
100kR8
150k
R5
15kR9
Photo Cathode
Photo Anode
0.1uF
C19
GND
VREF+
+IN B5
-IN B6
OUT B 7
U3B
OUT C 10-IN C11
+IN C12
U3C
Photo DCPhoto AC
10uF
C20
47pFC50
IR_AIR_C
5k
R14
20R
R15
GND
LED_DR1
DAC
6
2
1
T1AMMDT2222V-7
4
5
3
Q2B10kR12
+3.3V
LED_DR1
1
2
6
Q1ABC856AS-710kR10
P2.0/ACLK20
P2.1/TAINCLK21
P2.2/CAOUT/TA022
P2.3/CA0/TA123
P2.4/CA1/TA224
P2.5/ROSC2526
LED_DR1LED_DR2Int_CC
Software driven SensorSoftware driven Sensor
LED Select Timer Interrupt
Read AC+DC voltage Supply DC Offset to OpAmp
Read in AC only Signal
Digitally process AC signal
Increment Heart Beat counter sample
Wake up for heart rate calculation every 3 whole
heart beat waves
Software RDUSoftware RDU
RDU responsible for receiving calculated data from the CC2500 upon RF reception
Analyze the data ◦
Sound alarms ◦
Changing status indicators
Display Heart Rate
Switch turned on
Setup SPI with CC2500
Setup CC2500 comm settings
Setup SPI with MAX6957
Setup MAX6957 Ports and Intensity
Setup ADC
Polling for End Device
Setup Timer for Battery Life, Alarm check and Display
Software driven DisplaySoftware driven Display
SPI communication tells MAX6957 which segments to turn on
LEDs turned on based on remaining battery life
1E1 1D2
3
1C4
1DP5
2E6 2D7 2C8
2DP9
3E10 3D11
3G12
3C13
3DP14
3B15 3A16
3F17
1819
2B20 2A21
2G22 2F23
1B24 1A25
26
1F27
1G28
DISP1LDT-A512RI
GND
+3.3V
+3.3V
SCLKCS
SDI
39kR10 +3.3V
SSA-LXB425SUGD
L11
2
L23
4
L35
6
L47
8
LED6LEDArray
10uFC16
GND
SDO
P8 1
P12 2
P9 3
P13 4
P10 5
P14 6
P11 7
P15 8
P16 9
P17 10
NC11
P18 12
P19 13
P20 14
P21 15
P22 16
P23 17
P24 18
P25 19NC20
P26 21
P27 22
P28 23
P7 24
P29 25
P6 26
P30 27
P5 28
P31 29
P4 30
NC31
SCLK32 DIN33
CS34
35
ISET36
373839
DOUT40
41
U5
Software driven SoundSoftware driven Sound
Buzzer used to create an alarm
Interrupt used to vary the sound created by the buzzer
Trial and error was used to determine the correct sounds for the alarm conditions
Yes
No
Timer Interrupt
Alarm Condition
Do nothing
Sound appropriate alarm
+1
-2
SP1
GND
250kR13
R161
26
+3.3V
Software Battery MonitoringSoftware Battery Monitoring
For the TSU the battery was drained on a simulated load
Based on this drain we created a table to lookup the battery life
To determine the battery life cycle several drain tests have been performed to understand the battery life of our system. We have chosen values to represent 25% increments and change the status whenever the life falls below these values.
Timer Interrupt
Update Battery Life from ADC
PowerPower
Power Specifications Power Specifications –– TSUTSUThe TSU requires a small amount of current at a low voltage for
a long time.
Drain 50mA or less
Power regulated to be 3.3V
Run at least 8 hours
Battery Requirement
Working voltage greater than 3.3V
Charge capacity greater than 400mAh
Smaller then a C Cell Battery (50mm x 26.2mm)
Rechargeable within 4 hours
Power Specifications Power Specifications –– RDURDUThe RDU requires a larger amount of current at a low voltage
for a long time.
Estimated draw of 150mA
Power regulated to 3.3V
Run at least 8 hours
Primary power from external 120V AC/DC supply
External AC/DC supply
COTS equipment
5V DC supplied and rated for 1A
DC/DC ConversionDC/DC Conversion
+3.3V
GND
4.7uF
C9
GND
GND
10uF
C10
GND
EP5368QI
NC 1
PGN
D2
NC 3VFB 4
VSENSE 5
AG
ND
6
VOUT 7
VOUT 8
NC 9
VS010 VS111 VS212
ENABLE13
VIN14
NC 15NC 16
U3Buck Converter
10uF
C11
10000pF
C12
Vsw
Enpirion EP5368QI
600mA Synchronous Buck Regulator
Voltage is set to 3.3V
Minimal external components needed
Input is stabilized by the 4.7uF capacitor
Ripple performance is improved by the 10uF capacitors
Ideal for space limited RF designs
3mm x 3mm QFN
DC/DC ConversionDC/DC ConversionEnpirion EP5368QI Issues:
No solder mask on RDU PCB
Small size and unique footprint
High cost component
Replaced on RDU• National Semiconductors LMZ10504-Demo• Capable of converting from 5.5V down to 3.3V• Use of development board gaurantees working circuit
Batteries Batteries -- TSUTSULithium Ion Battery Pack w/ Built in safety
3.7V with 940mAh
Safeties include 4.2V Over-voltage Protection, 2.5V Under-voltage Protections and 3A Over-current Protection
Dimensions: 17mm diameter by 67mm length
Weighs 27g (0.95oz)
Estimated Charge Life:Actual drain of 75mACharge life = 940mAh / 75mA = 12.53 hours
Charger
Smart Charger (0.5A) for 3.7V Li-ion/Polymer Rechargeable Battery Packs
4.2VDC at 0.5A
Charge time = (.94 Ah x 1.5) / (0.5 A) = 2.82 hours
Item# 290370963163
Battery MonitoringBattery MonitoringThe battery connects to a voltage divider, Op Amp, and one of the
ADC inputs of the MCUMax Voltage at ADC of MCU: 2.5VMax Voltage of TSU Battery: 4.2V4.2V * (100k / 186.6k) = 2.25V(Values chosen to account
for resistor tolerances)
This voltage is fed back to the output of the operation amplifier so that the voltage and current coming out of the operational amplifier are acceptable for the ADC input on the MCU
GND
BATT Life
GND
GND100kR3
86.6kR2
+3.3V_ANA
OUT 1-IN2
+IN3
V+
4V
-13
NC8
NC9
S17
U3A
BATT_SW
TestingTestingThere are four major systems that have been tested for our project:
Sensor Functionality◦
Data processed is in a legitimate range◦
Voltages read into ADC are correct◦
Data can be obtained from MCU and plotted to show heart waveform◦
Medical Comparison to Home-Use Pulse Monitors resulted in an accuracy of ±2 BPM
Successful Transmission◦
The TSU & RDU communicating the correct information◦
Issues with 915MHz design prevented it’s implementation◦
Replaced with a 2.4GHz module
TestingTesting
Accurate Display◦
The RDU displays the correct information on the display◦
3-digit, 7-segment display lights according to requirement◦
The RDU creates the necessary audible alerts when required
Power Usage◦
DC/DC Conversions produced accurate and stable voltage at 3.26V◦
TSU runs for at least 8 hours on its battery◦
Current consumption of TSU and RDU higher than estimated◦
Battery has plenty of enegry to spare
BudgetBudgetTSUIC's $28.66
Passive $6.86Transistor $1.16
Other $3.94Price per TSU $40.62
3 TSUs $121.85Cost/TSU after samples $17.59
3 TSUs including samples $52.77
RDUIC's $37.33
Passive $17.81Transistor $0.00
Other $15.36Price per RDU $55.20
2 RDUs $111.40Cost/RDU after samples $46.78
2 RDUs including samples $93.56
Parts $262.86PCBs $233.25DEV boards $45.00Battery $11.00Battery Charger $11.00Total $543.11
Parts including samples $146.33PCBs $233.25DEV boards $45.00Battery $11.00Battery Charger $11.00Total including samples $426.58
Questions?Questions?
DemonstrationDemonstration