Heart beat detector using arduino
-
Upload
varshaa-khandagale -
Category
Engineering
-
view
26.247 -
download
7
Transcript of Heart beat detector using arduino
![Page 1: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/1.jpg)
HEARTBEAT DETECTOR USING ARDUINO
Presented by:
Varsha Khandagale Sampada Kulkarni Himali Patil
![Page 2: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/2.jpg)
Heart beat DetectorTaking your pulse is as simple as holding a finger to your neck or wrist and timing the beats with your watch.
But if you want to record the data or use it to trigger events, you need to turn that mechanical pulsing action into an electrical signal.
This sensor fits over a fingertip and uses the amount of infrared light reflected by the blood circulating inside to do just that.
![Page 3: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/3.jpg)
Why Monitoring……?More than 2 million people are at high risk of having heart attack.
It would be helpful if there was a way for these people to monitor their heart.
So we have a problem. That is the way our project focuses on how we can utilize this problem and find a solution.
![Page 4: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/4.jpg)
Measurement of Heart rate
4
• Stethoscope --- inaccurate
• Electrocardiogram – costly
& not user friendly
![Page 5: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/5.jpg)
What we have done? ? ?
5
• We , in this project are measuring the heart beat using the IR pulse sensor and arduino.
• The timer we have set for counting the heart beat is 10s.
• There is a set point we can decide, after 10 s the heartbeat would be shown on the screen.
![Page 6: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/6.jpg)
Software we used ? ? ?
6
• Arduino IDE
• Processing
![Page 7: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/7.jpg)
Top view of our project
7
![Page 8: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/8.jpg)
Hardware implementation
8
• IR Led & Phototransistor• LM324 Quad Op Amp, 14 pin DIP
• Resistors & Capacitors• Connecting wires• Breadboard
![Page 9: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/9.jpg)
9
U1
LT1013
U2
LT1013
R18.2K
R239K
R3220K
R468K
R68K
1KR
R7
510K
C1
1µFC2
0.1µF
C3
1µF
C4
0.1µF
D2
3E1001D
Q1FPT100A
V1
5V
C5
220µF
To digital pin 2
SCHEMATIC DIAGRAM :
![Page 10: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/10.jpg)
HOW ? ? ?
10
The sensor itself consists of an infrared emitter and detector mounted side-by-side and pressed closely against the skin.
When the heart pumps, blood pressure rises sharply, and so does the amount of infrared light from the emitter that gets reflected back to the detector.
![Page 11: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/11.jpg)
The detector passes more current when it receives more light, which in turn causes a voltage drop to enter the amplifier circuitry.
This design uses two consecutive operational amplifiers (“op-amps”) to establish a steady baseline for the signal, emphasize the peaks, and filter out noise.
Both op-amps are contained in a single integrated circuit (IC or “chip”),
![Page 12: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/12.jpg)
![Page 13: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/13.jpg)
What is ‘ARDUINO’?It’s intended for students,
artists,designers,hobbyists and anyone who tinker with technology.
It is programmed in Arduino Programming language(APL) similar to C/C++.
Way more easy to program compared to other microcontroller packages.
The Arduino is a microcontroller development platform
It is the winner of “worlds best interaction award 2012” sponsered by google
![Page 14: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/14.jpg)
![Page 15: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/15.jpg)
Different flavoursThere are many versions of Arduino board.versions differ by
size,microcontroller,etc
![Page 16: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/16.jpg)
Arduino Duemilanove
http://arduino.cc/en/uploads/Main/ArduinoDuemilanove.jpg
Pin 13 LED
USBconnector
Barrel jack
Digital pins header
Reset button
ATmega328 MCU
Analog pins header
Power-ground header
![Page 17: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/17.jpg)
Arduino Duemilanove/Uno FeaturesMicrocontroller ATmega168/328
Operating Voltage 5V
Input Voltage (recommended) 7-12V
Input Voltage (limits) 6-20V
Digital I/O Pins 14 (of which 6 provide PWM output)
Analog Input Pins 6
DC Current per I/O Pin 40 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 16 KB (ATmega168) or 32 KB (ATmega328) of which 2 KB used by bootloader
SRAM 1 KB (ATmega168) or 2 KB (ATmega328)
EEPROM 512 bytes (ATmega168) or 1 KB (ATmega328)
Clock Speed 16 MHz
![Page 18: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/18.jpg)
Board Type
![Page 19: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/19.jpg)
Serial Port / COM Port
![Page 20: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/20.jpg)
The Environment
![Page 21: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/21.jpg)
PROGRAM
![Page 22: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/22.jpg)
![Page 23: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/23.jpg)
![Page 24: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/24.jpg)
Processing? Processing is a free, open source,
cross-platform programming language and environment for people who want to create images, animations, and interactions.
Created in 2001 by Casey Reas and Ben Fry at the MIT Media Lab.
Downloads, updates, reference, forums, etc. at: http://processing.org
![Page 25: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/25.jpg)
Anatomy of a sketch
A sketch is a file or project you create in Processing. When you first open up a new sketch it will be completely blank.
![Page 26: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/26.jpg)
Setup()This function runs once, at the very beginning of your sketch.You will use setup to set up certain aspects of your sketch, makes sense right?Most importantly for this class you will begin Serial communication in the setup function. The setup function without anything in it looks like this:
![Page 27: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/27.jpg)
Draw()This function is where everything happens in your sketch.The draw loop is the portion of code that keeps repeating while the Processing sketch is open. The draw loop looks like this:
![Page 28: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/28.jpg)
Basic Graphics we will be usingpoint (x, y);background(color);ellipse (x, y, width, height);fill (red, green, blue, transparency);rect(x, y, width, height);
![Page 29: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/29.jpg)
![Page 30: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/30.jpg)
ReferenceOne very convenient way to access Processing’s Help Reference is to highlight a function or a word used in your code, right click and select Find in Reference (which brings you to the processing.org reference page):
![Page 31: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/31.jpg)
Limitations
31
In-accurate method of calculating heartbeat.
Logic used iS very simple. Therefore, results may vary as for a sophisticated instrument for the same purpose
![Page 32: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/32.jpg)
Future scope• EEG, ECG and other health
parameters can also be monitored.• Continuous monitoring and future
diagnosis can be performed via the same system (TELEMEDICINE).
• More than a single patient at different places can be monitored using such system.
32
![Page 33: Heart beat detector using arduino](https://reader036.fdocuments.in/reader036/viewer/2022062310/58f9adf3760da3da068b9d8f/html5/thumbnails/33.jpg)
Thank you