---+ The Heart Rate Sensor ---++ Goal: The heartbeat monitor consists of a simple Infrared LED combined with a photo diode measuring the IR light traversing you finger and arriving at the diode. When the blood is enriched with oxygen, the color of the blood becomes lighter and the diode sees more light while just before a new beat the color is darker. This results in a typical repetitive light signal which can easily be measure with an ADC.In addition to the heart beat monitor itself we us the PCF8591 ADC to read out the diode signal. | <img alt="blood.png" height="246" src="%ATTACHURL%/blood.png" title="blood.png" width="278" /> | <img alt="pcf8591.png" height="249" src="%ATTACHURL%/pcf8591.png" title="pcf8591.png" width="381" /> | | The Heart Rate Monitor with LED and<br />Photo Diode | The PCF8591 8 bit ADC | ---++ Exercise 1: Measure the photo diode voltage when “blinking” the IR LED. Write a program similar to the one you wrote for the LED exercises with a blink rate of 2 Hz. Then measure the voltage at the photo diode and check if you can see the blinking diode.<br />Exercises 2: Measure the heart signal seen on the photo diode<br />For this to work you must hold your little finger between the LED and the photo diode. Connect the signal output from the diode to channel AIN2 of the PCF8591 ADC.<br />Program the ADC such that only channel C corresponding to AIN2 is selected. You may leave the jumpers on the board. They connect <br /><br /> * The thermistor to AIN1 * The photo resistor to AIN0 * The potentiometer to AIN3 Switch the LED on and read out the ADC channel with a frequency of 10 Hz or higher. Print the results on the terminal and check that you see the numbers changing. <br />The re-direct the output to a file and let the system run for some 20s. Finally plot the data with !GnuPLot. -- %USERSIG{UliRaich - 2017-11-14}% ---++ Comments %COMMENT%
Attachments
Attachments
Topic attachments
I
Attachment
History
Action
Size
Date
Who
Comment
png
blood.png
r1
manage
655.7 K
2017-11-14 - 14:57
UnknownUser
png
pcf8591.png
r1
manage
209.7 K
2017-11-14 - 14:57
UnknownUser
This topic: Embedded_Systems
>
WebHome
>
CourseExercises
>
HeartBeatSensor
Topic revision: r1 - 2017-11-14 - uli
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback