What i'm trying to do is i have an LED and LDR, which you place your
finger in between and on every heart beat your finger fills with blood
and after every heart beat the blood empties, this go on a graph and
what i what to is be able to could the number of beats. Any idea would be great thanks
You need to better explain what you're trying to do and what you have since it's not clear whether you're referring to objects on a screen or physical items. You say you have and LED and LDR. Are these physical? How are you detecting the "place your
finger in between"? And what do you mean by "on every heart beat your finger fills with blood". My finger usually has blood all the time.
To operate the heart rate monitor, place your finger in between the LED (D4) and LDR On every heart beat your finger fills with blood and after every heart beat the blood in your finger empties. The D4 LED shines light through your finger which is detected by the LDR. When your finger fills with blood, the red light of the LED is absorbed by your blood and the percentage of light reaching the LDR decreases. Once the blood in your finger empties, the red light is no longer absorbed and passes straight though your finger, which is detected by the LDR.The changes in light intensity cause resistance changes in the LDR and therefore, cause voltage changes in the circuit. The rest of the circuit amplifies this voltage change so that it can be read by the NIDAQ easily. The red LED, D2, represents the amplified rise and fall of resistance of the LDR.
i have it set up so i'm get a graph, but i what to be able to count the number of heart beat, i have to trouble being able to count them, because every one heart is diffent, so can't but in standard limit it
Can you provide an example of what the graph looks like, and what should be considered a heart beat? If you have raw data that would be the best, but at a minimum a picture would be helpful so that suggestions can be offered.