SlideShare uma empresa Scribd logo
1 de 47
 Scope of Delivery
 Project Plan/Time line
 Resource Planning ( People and Time)
 System Design, Develop and Test
 Hardware interface
 Firmware programming
 Output interface and presentation
 Work Breakdown Structure
 Risk and Risk Mitigation
 Further development
Design a heart rate reader using Atmel
Atmega164a development board.
Delivery deadline: 18th November 2015.
Main Features:
 Display real time beats per minute on GUI
 LED indication of heart beat
Understanding…
 Purpose of the device
o what to measure
o what to calculate
o What to display
 Working principles
o electrical systems
o digital signals and systems
o software programing
o real life systems
o analog and digital data processing
Research….
 Available products today
o Chest strap Type: A wireless sensor on a chest strap detects the
pulse electronically and sends that data to a wristwatch-style
receiver, which displays the heart rate.
o Strapless Type: A sensor built into the wrist unit’s watchband or
case back detects the pulse
o Pulse Type
Eg: Polar X7, Garmin FR70, Samsung GearFit, Mio Fuse
 Types of pulse receivers
o Photo diodes
o Chest electrodes
http://gadgether.com/small-lightweight-necessity-the-fingertip-heart-
rate-monitor/
Heart Rate Target Zone
50-85%
Avg. Maximum Heart Rate
100%
Age Beats/minute Beats/minute
20 100–170 200
25 98–166 195
30 95–162 190
35 93–157 185
40 90–153 180
45 88–149 175
50 85–145 170
55 83–140 165
60 80–136 160
65 78–132 155
70 75–128 150
Research….
Common Users
o Joggers & Runners
o Fitness trainers and trainees
o Sportsmen and women www.heartratejournal.com
Hardware
interface
•Sensor interface
•Signal processing
• Amplification
•filtering
•output
Firmware
programming
•ADC / AC
•USART
•Registers, calculations and subfunctions
•Firmware program
Interface and
GUI
•Software and GUI design
•Interface to Atmega164a
Sensor Option 1
Dry Electrodes
Sensor Option 2
Finger Clipper
Pre-
Amplification
Noise
Filtering Stage
Post-Amplification &
Gain Stage
Analogue Signal To
Atmega 164a
Design HW Circuit to
Amplify the Signal
Design HW Circuit to
Filter Noise of the
Signal
Design HW Circuit for
Signal Gain
Hardware Design
Procurement of Materials
Installation
Testing
• Instrumentation Amplifier
INA128
• Operational Amplifier LM741
• Atmega164A
• LCD
• Voltage Regulator 7805
• LED
• Diode 1N4001
• 9V Batteries with connectors
• Bread Board
• Jump wires
Resistor
• 100 ohms, ¼ w (x1)
• 470 ohms, ¼ w (x1)
• 1 kilo ohms, ¼ w (x1)
• 10 kilo ohms, ¼ w (x2)
• 100 kilo ohms, ¼ w (x2)
• 1Mega ohms, ¼ w (x1)
Capacitor
• 10nF (x1)
• 47nF (x1)
INA 128 Features:
• Instrumentation Amplifier
• Medical Instrumentation
• General Purpose Low-power Amplifier
• Excellent accuracy
• Widely Used in Medical Application Products
INA 126 Features:
• Industrial Sensor Amplifier
• Precision Instrumentation Amplifier
Noise
Filtering Stage
Post-
Amplification
& Gain Stage
Type : 3M
Pre-
Amplification
& Gain Stage
Electrodes
Pre-
Amplification
INA128 Instrument Amplifier
Low Pass filter
Post filter
Amplification
LM741 OP-Amp
 Disposable
 Hygiene
Output signal
from Sensor
Analog signal
 Peak voltage – 3.1V
 Low voltage – 2.6V
 Eliminate lower
frequencies
 5to10mv signal feeds in to
INA 128 Pin#2”Vin+ & Pin#3
Vin-
 IC 7805 provides regulated
constant -5V supply to INA
128 Pin#4 “V-”.
 +5V supply is feeds in to
INA 128 Pin#7 “V+”
 100Ω gain resistor provide
the 500 x of gain to the input
signal
Input : 5~10mv
Output : 2.5~2.6 V DC
Input
voltage=~5mv
VOut=2.5V
G=1+(50K Ω /100 Ω)=501V/V
Calculated Cut-off Frequency using low pass filter is = 33.8 Hz
VCC2
-5V
VCC2
+5V
 Vout signal (2.5v) from INA128
feeds in to LM741 Op-Amp
Pin#3”Vin+. Non-Inverting
Amplifier.
 +5V supply feeds to LM741
Pin#7 “V+”.
 Output of LM741 is a
triggering pulse of (2.5V to
3.1V)
 Pulse Frequency F=1/Time
Time per pulse=25msec
Therefore,
Frequency = 1/(25*10^-3sec)
=40Hz
VOut=2.5V to 3.1VVin=2.5V to 3.0V
 INA126 with no pulses detected.
 No reference voltage for the circuit.
 Problem encountered at filtering segment.
 Electrodes not detecting the pulses.
 Oscilloscope not responding.
 Noise after integration.
 Keep circuits stability – moving, transporting.
• Replaced INA128 instrumentation amplifier
• Introduce a Voltage regulator -7805 to
provide -5v reference voltage for INA128 &
LM741.
• 10nF and 47nF capacitors used for low pass
filter circuit to minimize noise.
• Procurement of Better Electrode with Tape
and Solid Gel
• Use alternative calibrated oscilloscope.
• Troubleshoot the circuit to eliminate noise
• Build the circuit on a PCB to keep the stability
Research areas
 Atmega164A Analog Comparator (AC)
 Atmega164A Analog-to –Digital converter (ADC)
 Atmega164A External Interrupts
 Atmega164A Interrupt Handling
 Arduino Heart Rate example codes
(http://www.slideshare.net/varshakh7/heart-beat-detector-using-arduino-
37193083)
 Digital Signals Processing
 AVR Programming
 C/C++ programing
Firmware Program
Main Program
Analog Comparator
Compare input
voltage and output
digital pulse
Counter
Read “High” pulses
and count.
Calculate HR
Sub Funcations
LCD ini, LCD Read
/ Write
LCD Control
instructions.
Data read and Write
Interrupt Handling
Call global
interrupts.
UART ini, UASt
Read/Write
Handle read write
bit stream to PC
using USB port
Ready status:
Read input Analog
signal in Port B > Pin 3
Compare input signal
voltage against reference
voltage of 2.7V supplied
via Port B > Pin2
If
{ Input > reference
Output “1” }
If
{ output = 1
Counter ++ }
Read total counts every
5 seconds
Calculate the heart rate
{ (total
counts/5000ms)*6000
0ms
Convert Integer heart
rate value to String
Output Heart Rate
string send to LCD
Send to UART
Display
Refresh every 5
Seconds
Main Program
o Analog Comparator
o Beats Counter
Sub Programs
 LCD
o 3 bit control instructions
o 8 Bit Data read/write
o Sub program codes to display on specific line and location,
send string or characters
 UART
 Interrupts
System Constrains
 Weak input signals ( in to development board)
 Requirement of noise filtering
 System Impedance/Resistance limitations
 Input signal response and accuracy
 Buzzer
 Heart bit LED Indication 
 LCD display
 GUI display on computer 
 Mobile phone
 Smart watch
 Wires 
 Com port
 UART to USB (Plus Virtual com port
software)
 RS232, RS485
 Wireless connections (Bluetooth, WIFI)
 Inputs (Keypad , Computer keyboard)
 Visual .net
 Visual Basic
 Visual C++
 Matlab 
 Labview
Optional
 Data Storing into Text or Excel file
 Setup interface connection and display on terminal
 Install AVR studio
 Use UART to USB cable to connect Atmega 164A to
PC
 Install Atmel Libus USB Driver
 Install Virtual Com Port Driver
 Use Atmel C programming code to transmit data
 Use Atmel Add on terminal program to display the
data
32
33
34
Create GUI Interface window and display values
 Install Matlab
 Create an static text box
 Create Start button with callback function in GUI
 Add Looping counter with 0.5 second delay into
program code
 Ensure the counter value display in the GUI
correctly
35
36
37
38
Transmit data from Atmega to display on GUI
window
 Setup UART to USB connections
 Setup and use push button to simulate pulses
into Atmega board
 Write Atmega Atmel program code to send
values
 Run the GUI and receive the data to display
Phase 3 Testing Method
39
 GUI Design (Initially we have no idea of what
GUI is about)
 Interface (Between Atmega board to GUI)
 Serial communication
 Data transfer
 Group meeting
System Design – Software and
Interface Challenges
 To use Atmel AVR studio and Matlab
 To create Matlab GUI
 To transmit and receive through serial connection
 To Debug using breakpoint and check data values
 To work as a team
 To split the tasks
 Finally combine the project
41
 Display heart rate Graph
 Calorie Calculator
 Heartbeat Chart
 Integrate Bluetooth communication for wireless
data transfer
 Interface to phone application.
42
 Time and resources
 Family Commitments
 Work Commitments
 Meeting Locations
 Knowledge - Software and hardware
5 Almost certain 5
10 15
(Fail to meet
project
milestones)
20 25
4 Likely 4
8
(Software virus) 12
16
(Components
Damage)
20
(Injuries)
3 Possible 3 6
9
(Team member
absent/sick)
12
(Change of Plan
& solution)
15
(Damage of
ATMega Board)
2 Unlikely 2
4
(Timetaken to
install
software)
6 8 10
1 Rare 1 2 3 4 5
Insignificant
Minor
Moderate
Major
Severe
1 2 3 4 5
Likelihood
 Fail to meet project milestones
 Daily project progress monitoring ( Whatsapp/e-mails)
 Real-time data sharing ( Dropbox)
 Weekly meetings with entire team.
 Planned buffer time for every tasks.
 Team member absent/sick/travelling
 Each team has 2 members (back up each other).
 Availability of a floating member ( support 3 teams)
 Ready to distribute work load ( shared knowledge)
 Remote access ( Skype/Lync/….)
 Components damage
 Availability of extra components.
 Shared budget ( SGD 70.00)
 Change of designs/solutions
 Daily project progress monitoring ( Whatsapp/e-mails/phone)
 Knowledge sharing ( provide additional support/other solutions/combine teams)
 Utilize buffer time/Assign additional work hours
 Integrate Bluetooth communication for wireless data transfer
 Interface to GSM, Distance walked, Step Count
 Calculate Calories
Heart rate monitor system

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Lpc1768
Lpc1768Lpc1768
Lpc1768
 
Computational models
Computational modelsComputational models
Computational models
 
Heart beat monitor system PPT
Heart beat monitor system PPT Heart beat monitor system PPT
Heart beat monitor system PPT
 
Heart beat monitoring system
Heart beat monitoring systemHeart beat monitoring system
Heart beat monitoring system
 
Elektor 0304-2020
Elektor 0304-2020Elektor 0304-2020
Elektor 0304-2020
 
I2 c
I2 cI2 c
I2 c
 
I2C
I2CI2C
I2C
 
Sensor technology module-3-interface electronic circuits
Sensor technology module-3-interface electronic circuitsSensor technology module-3-interface electronic circuits
Sensor technology module-3-interface electronic circuits
 
Basic Sensors
Basic Sensors Basic Sensors
Basic Sensors
 
2. block diagram and components of embedded system
2. block diagram and components of embedded system2. block diagram and components of embedded system
2. block diagram and components of embedded system
 
UNIT I.pptx
UNIT I.pptxUNIT I.pptx
UNIT I.pptx
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
 
Blood pH Measurement
Blood pH MeasurementBlood pH Measurement
Blood pH Measurement
 
8 bit microcontroller
8 bit microcontroller8 bit microcontroller
8 bit microcontroller
 
Microcontroller 8051 and its interfacing
Microcontroller 8051 and its interfacingMicrocontroller 8051 and its interfacing
Microcontroller 8051 and its interfacing
 
Master synchronous serial port (mssp)
Master synchronous serial port (mssp)Master synchronous serial port (mssp)
Master synchronous serial port (mssp)
 
8051 io interface
8051 io interface8051 io interface
8051 io interface
 
Unit II Arm 7 Introduction
Unit II Arm 7 IntroductionUnit II Arm 7 Introduction
Unit II Arm 7 Introduction
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
I2c protocol - Inter–Integrated Circuit Communication Protocol
I2c protocol - Inter–Integrated Circuit Communication ProtocolI2c protocol - Inter–Integrated Circuit Communication Protocol
I2c protocol - Inter–Integrated Circuit Communication Protocol
 

Semelhante a Heart rate monitor system

arduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdfarduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdf
ssusere5db05
 
First fare 2011 overview of electronics-2012
First fare 2011 overview of electronics-2012First fare 2011 overview of electronics-2012
First fare 2011 overview of electronics-2012
Oregon FIRST Robotics
 

Semelhante a Heart rate monitor system (20)

Dsp on an-avr
Dsp on an-avrDsp on an-avr
Dsp on an-avr
 
Microcontroller from basic_to_advanced
Microcontroller from basic_to_advancedMicrocontroller from basic_to_advanced
Microcontroller from basic_to_advanced
 
Identifying Noise in DAQ
Identifying Noise in DAQIdentifying Noise in DAQ
Identifying Noise in DAQ
 
Identifying and Overcoming Noise in Data Acquisition
Identifying and Overcoming Noise in Data AcquisitionIdentifying and Overcoming Noise in Data Acquisition
Identifying and Overcoming Noise in Data Acquisition
 
Wireless Microcontroller (IEEE802.15.4 and ZigBee): JN5139
Wireless Microcontroller  (IEEE802.15.4 and ZigBee): JN5139Wireless Microcontroller  (IEEE802.15.4 and ZigBee): JN5139
Wireless Microcontroller (IEEE802.15.4 and ZigBee): JN5139
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
Identifying noise in daq webinar rp3 171027 (1)
Identifying noise in daq webinar rp3 171027 (1)Identifying noise in daq webinar rp3 171027 (1)
Identifying noise in daq webinar rp3 171027 (1)
 
Real Time System Validation using Hardware in Loop (HIL) Digital Platform
Real Time System Validation using Hardware in Loop (HIL) Digital PlatformReal Time System Validation using Hardware in Loop (HIL) Digital Platform
Real Time System Validation using Hardware in Loop (HIL) Digital Platform
 
Embedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerEmbedded systems, 8051 microcontroller
Embedded systems, 8051 microcontroller
 
arduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdfarduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdf
 
Arduino course
Arduino courseArduino course
Arduino course
 
First fare 2011 overview of electronics-2012
First fare 2011 overview of electronics-2012First fare 2011 overview of electronics-2012
First fare 2011 overview of electronics-2012
 
Lab 1 data acquisition fundamentals
Lab 1   data acquisition fundamentalsLab 1   data acquisition fundamentals
Lab 1 data acquisition fundamentals
 
Arduino
ArduinoArduino
Arduino
 
presentation_sas2016_V3
presentation_sas2016_V3presentation_sas2016_V3
presentation_sas2016_V3
 
Scaling Down Instrumentation Deploying Analog Mixed Signal Technology
Scaling Down Instrumentation Deploying Analog Mixed Signal TechnologyScaling Down Instrumentation Deploying Analog Mixed Signal Technology
Scaling Down Instrumentation Deploying Analog Mixed Signal Technology
 
Process Control (Design Conference 2013)
Process Control (Design Conference 2013)Process Control (Design Conference 2013)
Process Control (Design Conference 2013)
 
Process Control Systems - VE2013
Process Control Systems - VE2013Process Control Systems - VE2013
Process Control Systems - VE2013
 
TYPHOON HIL - Product Catalog-.pdf
TYPHOON HIL - Product Catalog-.pdfTYPHOON HIL - Product Catalog-.pdf
TYPHOON HIL - Product Catalog-.pdf
 
Ppt embedded
Ppt embeddedPpt embedded
Ppt embedded
 

Último

Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 
Verification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxVerification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptx
chumtiyababu
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 

Último (20)

Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
Verification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxVerification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptx
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 

Heart rate monitor system

  • 1.
  • 2.  Scope of Delivery  Project Plan/Time line  Resource Planning ( People and Time)  System Design, Develop and Test  Hardware interface  Firmware programming  Output interface and presentation  Work Breakdown Structure  Risk and Risk Mitigation  Further development
  • 3. Design a heart rate reader using Atmel Atmega164a development board. Delivery deadline: 18th November 2015. Main Features:  Display real time beats per minute on GUI  LED indication of heart beat
  • 4. Understanding…  Purpose of the device o what to measure o what to calculate o What to display  Working principles o electrical systems o digital signals and systems o software programing o real life systems o analog and digital data processing
  • 5. Research….  Available products today o Chest strap Type: A wireless sensor on a chest strap detects the pulse electronically and sends that data to a wristwatch-style receiver, which displays the heart rate. o Strapless Type: A sensor built into the wrist unit’s watchband or case back detects the pulse o Pulse Type Eg: Polar X7, Garmin FR70, Samsung GearFit, Mio Fuse  Types of pulse receivers o Photo diodes o Chest electrodes http://gadgether.com/small-lightweight-necessity-the-fingertip-heart- rate-monitor/
  • 6. Heart Rate Target Zone 50-85% Avg. Maximum Heart Rate 100% Age Beats/minute Beats/minute 20 100–170 200 25 98–166 195 30 95–162 190 35 93–157 185 40 90–153 180 45 88–149 175 50 85–145 170 55 83–140 165 60 80–136 160 65 78–132 155 70 75–128 150 Research…. Common Users o Joggers & Runners o Fitness trainers and trainees o Sportsmen and women www.heartratejournal.com
  • 7. Hardware interface •Sensor interface •Signal processing • Amplification •filtering •output Firmware programming •ADC / AC •USART •Registers, calculations and subfunctions •Firmware program Interface and GUI •Software and GUI design •Interface to Atmega164a
  • 8.
  • 9.
  • 10. Sensor Option 1 Dry Electrodes Sensor Option 2 Finger Clipper Pre- Amplification Noise Filtering Stage Post-Amplification & Gain Stage Analogue Signal To Atmega 164a Design HW Circuit to Amplify the Signal Design HW Circuit to Filter Noise of the Signal Design HW Circuit for Signal Gain
  • 11. Hardware Design Procurement of Materials Installation Testing
  • 12. • Instrumentation Amplifier INA128 • Operational Amplifier LM741 • Atmega164A • LCD • Voltage Regulator 7805 • LED • Diode 1N4001 • 9V Batteries with connectors • Bread Board • Jump wires Resistor • 100 ohms, ¼ w (x1) • 470 ohms, ¼ w (x1) • 1 kilo ohms, ¼ w (x1) • 10 kilo ohms, ¼ w (x2) • 100 kilo ohms, ¼ w (x2) • 1Mega ohms, ¼ w (x1) Capacitor • 10nF (x1) • 47nF (x1)
  • 13. INA 128 Features: • Instrumentation Amplifier • Medical Instrumentation • General Purpose Low-power Amplifier • Excellent accuracy • Widely Used in Medical Application Products INA 126 Features: • Industrial Sensor Amplifier • Precision Instrumentation Amplifier
  • 14. Noise Filtering Stage Post- Amplification & Gain Stage Type : 3M Pre- Amplification & Gain Stage Electrodes Pre- Amplification INA128 Instrument Amplifier Low Pass filter Post filter Amplification LM741 OP-Amp  Disposable  Hygiene Output signal from Sensor Analog signal  Peak voltage – 3.1V  Low voltage – 2.6V  Eliminate lower frequencies
  • 15.
  • 16.
  • 17.  5to10mv signal feeds in to INA 128 Pin#2”Vin+ & Pin#3 Vin-  IC 7805 provides regulated constant -5V supply to INA 128 Pin#4 “V-”.  +5V supply is feeds in to INA 128 Pin#7 “V+”  100Ω gain resistor provide the 500 x of gain to the input signal Input : 5~10mv Output : 2.5~2.6 V DC Input voltage=~5mv VOut=2.5V G=1+(50K Ω /100 Ω)=501V/V
  • 18. Calculated Cut-off Frequency using low pass filter is = 33.8 Hz
  • 19. VCC2 -5V VCC2 +5V  Vout signal (2.5v) from INA128 feeds in to LM741 Op-Amp Pin#3”Vin+. Non-Inverting Amplifier.  +5V supply feeds to LM741 Pin#7 “V+”.  Output of LM741 is a triggering pulse of (2.5V to 3.1V)  Pulse Frequency F=1/Time Time per pulse=25msec Therefore, Frequency = 1/(25*10^-3sec) =40Hz VOut=2.5V to 3.1VVin=2.5V to 3.0V
  • 20.  INA126 with no pulses detected.  No reference voltage for the circuit.  Problem encountered at filtering segment.  Electrodes not detecting the pulses.  Oscilloscope not responding.  Noise after integration.  Keep circuits stability – moving, transporting.
  • 21. • Replaced INA128 instrumentation amplifier • Introduce a Voltage regulator -7805 to provide -5v reference voltage for INA128 & LM741. • 10nF and 47nF capacitors used for low pass filter circuit to minimize noise. • Procurement of Better Electrode with Tape and Solid Gel • Use alternative calibrated oscilloscope. • Troubleshoot the circuit to eliminate noise • Build the circuit on a PCB to keep the stability
  • 22.
  • 23. Research areas  Atmega164A Analog Comparator (AC)  Atmega164A Analog-to –Digital converter (ADC)  Atmega164A External Interrupts  Atmega164A Interrupt Handling  Arduino Heart Rate example codes (http://www.slideshare.net/varshakh7/heart-beat-detector-using-arduino- 37193083)  Digital Signals Processing  AVR Programming  C/C++ programing
  • 24. Firmware Program Main Program Analog Comparator Compare input voltage and output digital pulse Counter Read “High” pulses and count. Calculate HR Sub Funcations LCD ini, LCD Read / Write LCD Control instructions. Data read and Write Interrupt Handling Call global interrupts. UART ini, UASt Read/Write Handle read write bit stream to PC using USB port
  • 25. Ready status: Read input Analog signal in Port B > Pin 3 Compare input signal voltage against reference voltage of 2.7V supplied via Port B > Pin2 If { Input > reference Output “1” } If { output = 1 Counter ++ } Read total counts every 5 seconds Calculate the heart rate { (total counts/5000ms)*6000 0ms Convert Integer heart rate value to String Output Heart Rate string send to LCD Send to UART Display Refresh every 5 Seconds
  • 26. Main Program o Analog Comparator o Beats Counter Sub Programs  LCD o 3 bit control instructions o 8 Bit Data read/write o Sub program codes to display on specific line and location, send string or characters  UART  Interrupts
  • 27. System Constrains  Weak input signals ( in to development board)  Requirement of noise filtering  System Impedance/Resistance limitations  Input signal response and accuracy
  • 28.  Buzzer  Heart bit LED Indication   LCD display  GUI display on computer   Mobile phone  Smart watch
  • 29.  Wires   Com port  UART to USB (Plus Virtual com port software)  RS232, RS485  Wireless connections (Bluetooth, WIFI)  Inputs (Keypad , Computer keyboard)
  • 30.  Visual .net  Visual Basic  Visual C++  Matlab   Labview Optional  Data Storing into Text or Excel file
  • 31.
  • 32.  Setup interface connection and display on terminal  Install AVR studio  Use UART to USB cable to connect Atmega 164A to PC  Install Atmel Libus USB Driver  Install Virtual Com Port Driver  Use Atmel C programming code to transmit data  Use Atmel Add on terminal program to display the data 32
  • 33. 33
  • 34. 34
  • 35. Create GUI Interface window and display values  Install Matlab  Create an static text box  Create Start button with callback function in GUI  Add Looping counter with 0.5 second delay into program code  Ensure the counter value display in the GUI correctly 35
  • 36. 36
  • 37. 37
  • 38. 38 Transmit data from Atmega to display on GUI window  Setup UART to USB connections  Setup and use push button to simulate pulses into Atmega board  Write Atmega Atmel program code to send values  Run the GUI and receive the data to display Phase 3 Testing Method
  • 39. 39
  • 40.  GUI Design (Initially we have no idea of what GUI is about)  Interface (Between Atmega board to GUI)  Serial communication  Data transfer  Group meeting System Design – Software and Interface Challenges
  • 41.  To use Atmel AVR studio and Matlab  To create Matlab GUI  To transmit and receive through serial connection  To Debug using breakpoint and check data values  To work as a team  To split the tasks  Finally combine the project 41
  • 42.  Display heart rate Graph  Calorie Calculator  Heartbeat Chart  Integrate Bluetooth communication for wireless data transfer  Interface to phone application. 42
  • 43.  Time and resources  Family Commitments  Work Commitments  Meeting Locations  Knowledge - Software and hardware
  • 44. 5 Almost certain 5 10 15 (Fail to meet project milestones) 20 25 4 Likely 4 8 (Software virus) 12 16 (Components Damage) 20 (Injuries) 3 Possible 3 6 9 (Team member absent/sick) 12 (Change of Plan & solution) 15 (Damage of ATMega Board) 2 Unlikely 2 4 (Timetaken to install software) 6 8 10 1 Rare 1 2 3 4 5 Insignificant Minor Moderate Major Severe 1 2 3 4 5 Likelihood
  • 45.  Fail to meet project milestones  Daily project progress monitoring ( Whatsapp/e-mails)  Real-time data sharing ( Dropbox)  Weekly meetings with entire team.  Planned buffer time for every tasks.  Team member absent/sick/travelling  Each team has 2 members (back up each other).  Availability of a floating member ( support 3 teams)  Ready to distribute work load ( shared knowledge)  Remote access ( Skype/Lync/….)  Components damage  Availability of extra components.  Shared budget ( SGD 70.00)  Change of designs/solutions  Daily project progress monitoring ( Whatsapp/e-mails/phone)  Knowledge sharing ( provide additional support/other solutions/combine teams)  Utilize buffer time/Assign additional work hours
  • 46.  Integrate Bluetooth communication for wireless data transfer  Interface to GSM, Distance walked, Step Count  Calculate Calories